diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62dc169f..7b137161 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,34 +38,44 @@ jobs: - os: windows-latest target: windows build_path: build\windows\x64\runner\Release + - os: windows-latest + target: windows-arm64 + build_path: build\windows\arm64\runner\Release steps: - uses: subosito/flutter-action@v2 with: - channel: 'stable' + channel: "stable" + # Install Linux dependencies - name: Install Linux dependencies if: matrix.target == 'linux' run: | sudo apt-get update -y sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev + + # Install Android dependencies - name: Install Android dependencies if: matrix.target == 'android' uses: actions/setup-java@v3 with: - distribution: 'zulu' + distribution: "zulu" java-version: "12.x" + # Enable desktop support - name: Enable desktop support if: matrix.target != 'android' && matrix.target != 'ios' && matrix.target != 'web' run: | flutter config --enable-linux-desktop flutter config --enable-macos-desktop flutter config --enable-windows-desktop + + # Recreating the project - run: flutter doctor -v - uses: actions/checkout@v3 # - run: flutter create . - run: flutter pub get + # Configure Keystore for Android - name: Configure Keystore for Android if: matrix.target == 'android' working-directory: android @@ -76,15 +86,19 @@ jobs: echo "storePassword=${{ secrets.KEYSTORE_STORE_PASSWORD }}" >> key.properties echo "keyPassword=${{ secrets.KEYSTORE_KEY_PASSWORD }}" >> key.properties + # Build the project for the target platform - if: matrix.target != 'android' && matrix.target != 'ios' run: flutter build ${{ matrix.target }} --release + - if: matrix.target == 'android' run: | flutter build apk --release flutter build apk --split-per-abi --release + - if: matrix.target == 'ios' run: flutter build ios --release --no-codesign + # Windows packaging - name: Copy VC redistributables to release directory for Windows if: matrix.target == 'windows' working-directory: ${{ matrix.build_path }} @@ -92,6 +106,17 @@ jobs: Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') . Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140.dll') . Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140_1.dll') . + + # Windows packaging + - name: Copy VC redistributables to release directory for Windows + if: matrix.target == 'windows-arm64' + working-directory: ${{ matrix.build_path }} + run: | + Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\arm64\*\msvcp140.dll') . + Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\arm64\*\vcruntime140.dll') . + Copy-Item (vswhere -latest -find 'VC\Redist\MSVC\*\arm64\*\vcruntime140_1.dll') . + + # Android packaging - name: Rename build for Android if: matrix.target == 'android' working-directory: ${{ matrix.build_path }} @@ -126,6 +151,7 @@ jobs: cp "$GITHUB_WORKSPACE/assets/icons/launcher/sorayomi_icon.png" "./${{ env.pkg_name }}.png" GZIP=-9 tar czf "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.tar.gz" * + # Debian packaging - name: Build deb package if: matrix.target == 'linux' run: | @@ -143,14 +169,24 @@ jobs: debuild --no-lintian -us -uc cp "../${{ env.pkg_name }}_${{ github.ref_name }}-1_amd64.deb" "$GITHUB_WORKSPACE/" + # macOS packaging - name: Compress build for macOS if: matrix.target == 'macos' working-directory: ${{ matrix.build_path }} - run: ditto -c -k --sequesterRsrc --keepParent "Tachidesk Sorayomi.app" "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" + run: ditto -c -k --sequesterRsrc --keepParent "Sorayomi.app" "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" + + # Windows packaging - name: Compress build for Windows if: matrix.target == 'windows' working-directory: ${{ matrix.build_path }} run: compress-archive -Path * -DestinationPath "${env:GITHUB_WORKSPACE}\${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.zip" + + # Windows packaging + - name: Compress build for Windows + if: matrix.target == 'windows' + working-directory: ${{ matrix.build_path }} + run: compress-archive -Path * -DestinationPath "${env:GITHUB_WORKSPACE}\${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-arm64.zip" + - name: Create MSI Package if: matrix.target == 'windows' && startsWith(github.ref, 'refs/tags/') working-directory: ${{ matrix.build_path }} @@ -164,6 +200,19 @@ jobs: light -b data "${{ env.pkg_name }}-x64.wixobj" data.wixobj -o "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.msi" Move-Item "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.msi" "${env:GITHUB_WORKSPACE}" + - name: Create arm64 MSI Package + if: matrix.target == 'windows-arm64' && startsWith(github.ref, 'refs/tags/') + working-directory: ${{ matrix.build_path }} + run: | + $env:Path += ";C:\Program Files (x86)\WiX Toolset v3.11\bin" + $upgradeCode = [guid]::NewGuid().Guid + Copy-Item "${env:GITHUB_WORKSPACE}\scripts\${{ env.pkg_name }}-arm64.wxs" . + Copy-Item "${env:GITHUB_WORKSPACE}\assets\icons\launcher\sorayomi_icon.ico" . + heat dir data -cg data -dr data -sreg -sfrag -gg -o data.wxs + candle -arch arm64 -dVersion="${{ github.ref_name }}" -dUpgradeCode="$upgradeCode" -dIcon="sorayomi_icon.ico" "${{ env.pkg_name }}-arm64.wxs" data.wxs + light -b data "${{ env.pkg_name }}-arm64.wixobj" data.wixobj -o "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-arm64.msi" + Move-Item "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-arm64.msi" "${env:GITHUB_WORKSPACE}" + - name: Add packaged build to release draft uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 25782b44..8e7c9f69 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -1,5 +1,5 @@ # Copyright (c) 2022 Contributors to the Suwayomi project -# +# # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -23,4 +23,4 @@ jobs: channel: 'stable' - uses: bluefireteam/flutter-gh-pages@v7 with: - baseHref: /Tachidesk-Sorayomi/ \ No newline at end of file + baseHref: /Tachidesk-Sorayomi/ diff --git a/.gitignore b/.gitignore index f4c0b3a4..b41db35d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,9 +7,11 @@ sym_* *.swp .DS_Store .atom/ +.build/ .buildlog/ .history .svn/ +.swiftpm/ migrate_working_dir/ # IntelliJ related diff --git a/.vscode/settings.json b/.vscode/settings.json index aea96891..400d0621 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,13 +1,18 @@ { "cSpell.words": [ + "behaviour", "canonicalized", "Compat", "dattatreya", + "Gdefault", + "Gupdate", + "Gvalues", "horiz", "keydown", "kindlish", "localsourcelang", "Mangas", + "metas", "microtask", "phonelink", "proto", @@ -16,6 +21,7 @@ "reddy", "Scanlator", "scanlators", + "Solverr", "sublist", "suwayomi", "tachidesk", @@ -23,9 +29,20 @@ "tekartik", "vals", "Webtoon", - "webtoons" + "webtoons", + "WEBUI" ], "licenser.license": "MPLv2", "licenser.projectName": "Tachidesk-Sorayomi", - "licenser.author": "Contributors to the Suwayomi project" + "licenser.author": "Contributors to the Suwayomi project", + "files.exclude": { + // "**/__generated__": true, + // "**/*.ast.gql.dart": true, + // "**/*.data.gql.dart": true, + // "**/*.freezed.dart": true, + // "**/*.g.dart": true, + // "**/*.gql.g.dart": true, + // "**/*.req.gql.dart": true, + // "**/*.var.gql.dart": true + } } diff --git a/.vscode/sorayomi.code-snippets b/.vscode/sorayomi.code-snippets new file mode 100644 index 00000000..d635a7f3 --- /dev/null +++ b/.vscode/sorayomi.code-snippets @@ -0,0 +1,17 @@ +{ + // Place your sorayomi workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and + // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope + // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is + // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. + // Placeholders with the same ids are connected. + // Example: + "Basic Dart Graphql Query Request": { + "scope": "dart", + "prefix": "req", + "body": [ + "static G${1:query}Req ${1/^(.)(.*)$/${1:/downcase}${2}/}() => G${1:query}Req();" + ], + "description": "Creates graphql query", + }, +} diff --git a/README.md b/README.md index 384553fc..dafafb9d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@

- Tachidesk Sorayomi logo + Sorayomi logo

-

Tachidesk Sorayomi

+

Sorayomi

diff --git a/analysis_options.yaml b/analysis_options.yaml index bc304fd8..bfeb970f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -34,6 +34,7 @@ analyzer: - "**/*.gform.dart" - "**/*.g.dart" - "**/*.freezed.dart" + - "**/*.gql.dart" errors: - invalid_annotation_target: ignore \ No newline at end of file + invalid_annotation_target: ignore diff --git a/android/app/build.gradle b/android/app/build.gradle index 84de668d..9f3fea11 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,10 +22,6 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { @@ -78,6 +75,4 @@ flutter { source '../..' } -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} +dependencies {} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 6cb2f6af..87f10f84 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -2,7 +2,7 @@ package="com.suwayomi.tachidesk_sorayomi"> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.7.10" apply false + id "com.google.gms.google-services" version "4.4.0" apply false + id "com.google.firebase.crashlytics" version "2.9.9" apply false +} + +include ":app" diff --git a/build.yaml b/build.yaml index aaa6e0dd..aab320fd 100644 --- a/build.yaml +++ b/build.yaml @@ -3,4 +3,23 @@ targets: builders: json_serializable: options: - explicit_to_json: true \ No newline at end of file + explicit_to_json: true + ferry_generator|graphql_builder: + enabled: true + options: + schema: tachidesk_sorayomi|lib/src/graphql/schema.graphql + type_overrides: + Upload: + name: MultipartFile + import: 'package:http/http.dart' + ferry_generator|serializer_builder: + enabled: true + options: + schema: tachidesk_sorayomi|lib/src/graphql/schema.graphql + type_overrides: + Upload: + name: MultipartFile + import: 'package:http/http.dart' + custom_serializers: + - import: 'package:tachidesk_sorayomi/src/utils/misc/upload_serializer.dart' + name: UploadSerializer diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 1bde876c..6f5d9a75 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Tachidesk Sorayomi + Sorayomi CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/lib/main.dart b/lib/main.dart index 8ae01949..eb7136da 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -6,10 +6,12 @@ import 'dart:io'; +import 'package:ferry_hive_store/ferry_hive_store.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:go_router/go_router.dart'; +import 'package:hive_flutter/hive_flutter.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:path/path.dart' as path; @@ -24,37 +26,29 @@ Future main() async { WidgetsFlutterBinding.ensureInitialized(); final packageInfo = await PackageInfo.fromPlatform(); final sharedPreferences = await SharedPreferences.getInstance(); + await Hive.initFlutter('Sorayomi'); + final box = await Hive.openBox("graphql12"); + final store = HiveStore(box); + //TODO remove final Directory? appDirectory; if (!kIsWeb) { final appDocDirectory = await getApplicationDocumentsDirectory(); appDirectory = Directory(path.join(appDocDirectory.path, 'Sorayomi')); - await appDirectory.create(recursive: true); - - final cacheFiles = ['dio_cache.hive', 'dio_cache.lock']; - for (final cacheFile in cacheFiles) { - final oldCacheFilePath = path.join(appDocDirectory.path, cacheFile); - final newCacheFilePath = path.join(appDirectory.path, cacheFile); - - if (!(await File(newCacheFilePath).exists()) && - await File(oldCacheFilePath).exists()) { - await File(oldCacheFilePath).rename(newCacheFilePath); - } - } } else { appDirectory = null; } SystemChrome.setPreferredOrientations(DeviceOrientation.values); GoRouter.optionURLReflectsImperativeAPIs = true; - runApp( ProviderScope( overrides: [ packageInfoProvider.overrideWithValue(packageInfo), sharedPreferencesProvider.overrideWithValue(sharedPreferences), appDirectoryProvider.overrideWithValue(appDirectory), + hiveStoreProvider.overrideWithValue(store) ], child: const Sorayomi(), ), diff --git a/lib/src/abstracts/locale_enum.dart b/lib/src/abstracts/locale_enum.dart new file mode 100644 index 00000000..0e1a8ddd --- /dev/null +++ b/lib/src/abstracts/locale_enum.dart @@ -0,0 +1,12 @@ +import 'package:flutter/material.dart'; + +import 'value_enum.dart'; + +abstract interface class LocaleEnum implements ValueEnum { + LocaleEnum(this.value); + + @override + final String value; + + String toLocale(BuildContext context); +} diff --git a/lib/src/abstracts/value_enum.dart b/lib/src/abstracts/value_enum.dart new file mode 100644 index 00000000..7fb0ae30 --- /dev/null +++ b/lib/src/abstracts/value_enum.dart @@ -0,0 +1,5 @@ +abstract interface class ValueEnum implements Enum { + ValueEnum(this.value); + + final String value; +} diff --git a/lib/src/constants/app_sizes.dart b/lib/src/constants/app_sizes.dart index b3cef0c7..803ceb89 100644 --- a/lib/src/constants/app_sizes.dart +++ b/lib/src/constants/app_sizes.dart @@ -12,7 +12,7 @@ import 'app_constants.dart'; import 'db_keys.dart'; const kTabSize = Size.fromHeight(kAppBarBottomHeight); -const kAppBarBottomHeight = 64.0; +const kAppBarBottomHeight = 46.0; const kDrawerWidth = 384.0; Size kCalculateAppBarBottomSize(List checks) { diff --git a/lib/src/constants/endpoints.dart b/lib/src/constants/endpoints.dart index a623c2b6..04609827 100644 --- a/lib/src/constants/endpoints.dart +++ b/lib/src/constants/endpoints.dart @@ -13,10 +13,19 @@ abstract class Endpoints { int? port, bool addPort = true, bool appendApiToUrl = true, - }) => - "${baseUrl ?? DBKeys.serverUrl.initial}" - "${port != null && addPort ? ":$port" : ''}" - "${appendApiToUrl ? '/api/v1' : ''}"; + bool isGraphQl = false, + }) { + Uri url = Uri.tryParse(baseUrl ?? DBKeys.serverUrl.initial) ?? + Uri.parse(DBKeys.serverUrl.initial); + if (port != null && addPort) { + url = url.replace(port: port); + } + if (appendApiToUrl) { + final api = ['api', isGraphQl ? 'graphql' : 'v1']; + url = url.replace(pathSegments: [...url.pathSegments, ...api]); + } + return url.toString(); + } // receiveTimeout static const Duration receiveTimeout = Duration(minutes: 1); diff --git a/lib/src/constants/enum.dart b/lib/src/constants/enum.dart index ead94888..a5ac6312 100644 --- a/lib/src/constants/enum.dart +++ b/lib/src/constants/enum.dart @@ -5,7 +5,9 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; +import 'package:freezed_annotation/freezed_annotation.dart'; +import '../abstracts/value_enum.dart'; import '../utils/extensions/custom_extensions.dart'; enum AuthType { @@ -13,8 +15,8 @@ enum AuthType { basic; String toLocale(BuildContext context) => switch (this) { - AuthType.none => context.l10n!.authTypeNone, - AuthType.basic => context.l10n!.authTypeBasic, + AuthType.none => context.l10n.authTypeNone, + AuthType.basic => context.l10n.authTypeBasic, }; } @@ -29,19 +31,19 @@ enum ReaderMode { webtoon; String toLocale(BuildContext context) => switch (this) { - ReaderMode.defaultReader => context.l10n!.readerModeDefaultReader, + ReaderMode.defaultReader => context.l10n.readerModeDefaultReader, ReaderMode.continuousVertical => - context.l10n!.readerModeContinuousVertical, + context.l10n.readerModeContinuousVertical, ReaderMode.singleHorizontalLTR => - context.l10n!.readerModeSingleHorizontalLTR, + context.l10n.readerModeSingleHorizontalLTR, ReaderMode.singleHorizontalRTL => - context.l10n!.readerModeSingleHorizontalRTL, + context.l10n.readerModeSingleHorizontalRTL, ReaderMode.continuousHorizontalLTR => - context.l10n!.readerModeContinuousHorizontalLTR, + context.l10n.readerModeContinuousHorizontalLTR, ReaderMode.continuousHorizontalRTL => - context.l10n!.readerModeContinuousHorizontalRTL, - ReaderMode.singleVertical => context.l10n!.readerModeSingleVertical, - ReaderMode.webtoon => context.l10n!.readerModeWebtoon + context.l10n.readerModeContinuousHorizontalRTL, + ReaderMode.singleVertical => context.l10n.readerModeSingleVertical, + ReaderMode.webtoon => context.l10n.readerModeWebtoon }; } @@ -55,30 +57,28 @@ enum ReaderNavigationLayout { String toLocale(BuildContext context) => switch (this) { ReaderNavigationLayout.defaultNavigation => - context.l10n!.readerNavigationLayoutDefault, + context.l10n.readerNavigationLayoutDefault, ReaderNavigationLayout.lShaped => - context.l10n!.readerNavigationLayoutLShaped, + context.l10n.readerNavigationLayoutLShaped, ReaderNavigationLayout.rightAndLeft => - context.l10n!.readerNavigationLayoutRightAndLeft, - ReaderNavigationLayout.edge => context.l10n!.readerNavigationLayoutEdge, + context.l10n.readerNavigationLayoutRightAndLeft, + ReaderNavigationLayout.edge => context.l10n.readerNavigationLayoutEdge, ReaderNavigationLayout.kindlish => - context.l10n!.readerNavigationLayoutKindlish, + context.l10n.readerNavigationLayoutKindlish, ReaderNavigationLayout.disabled => - context.l10n!.readerNavigationLayoutDisabled + context.l10n.readerNavigationLayoutDisabled }; } enum MangaSort { alphabetical, dateAdded, - unread, - lastRead; + unread; String toLocale(BuildContext context) => switch (this) { - MangaSort.alphabetical => context.l10n!.mangaSortAlphabetical, - MangaSort.dateAdded => context.l10n!.mangaSortDateAdded, - MangaSort.unread => context.l10n!.mangaSortUnread, - MangaSort.lastRead => context.l10n!.mangaSortLastRead + MangaSort.alphabetical => context.l10n.mangaSortAlphabetical, + MangaSort.dateAdded => context.l10n.mangaSortDateAdded, + MangaSort.unread => context.l10n.mangaSortUnread, }; } @@ -88,9 +88,9 @@ enum ChapterSort { fetchedDate; String toLocale(BuildContext context) => switch (this) { - ChapterSort.source => context.l10n!.chapterSortSource, - ChapterSort.fetchedDate => context.l10n!.chapterSortFetchedDate, - ChapterSort.uploadDate => context.l10n!.chapterSortUploadDate + ChapterSort.source => context.l10n.chapterSortSource, + ChapterSort.fetchedDate => context.l10n.chapterSortFetchedDate, + ChapterSort.uploadDate => context.l10n.chapterSortUploadDate }; } @@ -109,9 +109,9 @@ enum DisplayMode { const DisplayMode(this.icon); String toLocale(BuildContext context) => switch (this) { - DisplayMode.grid => context.l10n!.displayModeGrid, - DisplayMode.list => context.l10n!.displayModeList, - DisplayMode.descriptiveList => context.l10n!.displayModeDescriptiveList + DisplayMode.grid => context.l10n.displayModeGrid, + DisplayMode.list => context.l10n.displayModeList, + DisplayMode.descriptiveList => context.l10n.displayModeDescriptiveList }; } @@ -139,30 +139,25 @@ enum MangaStatus { status?.title ?? MangaStatus.unknown.title; String toLocale(BuildContext context) => switch (this) { - MangaStatus.unknown => context.l10n!.mangaStatusUnknown, - MangaStatus.ongoing => context.l10n!.mangaStatusOngoing, - MangaStatus.completed => context.l10n!.mangaStatusCompleted, - MangaStatus.licensed => context.l10n!.mangaStatusLicensed, + MangaStatus.unknown => context.l10n.mangaStatusUnknown, + MangaStatus.ongoing => context.l10n.mangaStatusOngoing, + MangaStatus.completed => context.l10n.mangaStatusCompleted, + MangaStatus.licensed => context.l10n.mangaStatusLicensed, MangaStatus.publishingFinished => - context.l10n!.mangaStatusPublishingFinished, - MangaStatus.cancelled => context.l10n!.mangaStatusCancelled, - MangaStatus.onHiatus => context.l10n!.mangaStatusOnHiatus + context.l10n.mangaStatusPublishingFinished, + MangaStatus.cancelled => context.l10n.mangaStatusCancelled, + MangaStatus.onHiatus => context.l10n.mangaStatusOnHiatus }; } -enum SourceType { - latest(Icons.new_releases_outlined, Icons.new_releases_rounded), - popular(Icons.favorite_border_rounded, Icons.favorite_rounded), - filter(Icons.filter_list_outlined, Icons.filter_list_rounded); +@JsonEnum(valueField: 'value') +enum IncludeOrExclude implements ValueEnum { + include("INCLUDE"), + exclude("EXCLUDE"), + unset("UNSET"); - const SourceType(this.icon, this.selectedIcon); + const IncludeOrExclude(this.value); - final IconData icon; - final IconData selectedIcon; - - String toLocale(BuildContext context) => switch (this) { - SourceType.latest => context.l10n!.sourceTypeLatest, - SourceType.popular => context.l10n!.sourceTypePopular, - SourceType.filter => context.l10n!.sourceTypeFilter - }; + @override + final String value; } diff --git a/lib/src/constants/gen/assets.gen.dart b/lib/src/constants/gen/assets.gen.dart index ae6da291..ccfae03e 100644 --- a/lib/src/constants/gen/assets.gen.dart +++ b/lib/src/constants/gen/assets.gen.dart @@ -16,6 +16,7 @@ class $AssetsIconsGen { AssetGenImage get darkIcon => const AssetGenImage('assets/icons/dark_icon.png'); + /// Directory path: assets/icons/launcher $AssetsIconsLauncherGen get launcher => const $AssetsIconsLauncherGen(); /// File path: assets/icons/light_icon.png @@ -69,10 +70,17 @@ class Assets { } class AssetGenImage { - const AssetGenImage(this._assetName); + const AssetGenImage( + this._assetName, { + this.size, + this.flavors = const {}, + }); final String _assetName; + final Size? size; + final Set flavors; + Image image({ Key? key, AssetBundle? bundle, @@ -91,7 +99,7 @@ class AssetGenImage { ImageRepeat repeat = ImageRepeat.noRepeat, Rect? centerSlice, bool matchTextDirection = false, - bool gaplessPlayback = false, + bool gaplessPlayback = true, bool isAntiAlias = false, String? package, FilterQuality filterQuality = FilterQuality.low, diff --git a/lib/src/constants/navigation_bar_data.dart b/lib/src/constants/navigation_bar_data.dart index c9c54352..62d9f0c5 100644 --- a/lib/src/constants/navigation_bar_data.dart +++ b/lib/src/constants/navigation_bar_data.dart @@ -6,65 +6,43 @@ import 'package:flutter/material.dart'; -import '../routes/router_config.dart'; import '../utils/extensions/custom_extensions.dart'; class NavigationBarData { final String Function(BuildContext context) label; - final ValueSetter go; final IconData icon; final IconData activeIcon; - final List activeOn; - - static int indexWherePathOrZero(path) { - final index = navList - .indexWhere((e) => e.activeOn.any((element) => path.contains(element))); - return index > 0 ? index : 0; - } - static final navList = [ NavigationBarData( icon: Icons.collections_bookmark_outlined, activeIcon: Icons.collections_bookmark_rounded, - label: (context) => context.l10n!.library, - go: const LibraryRoute().go, - activeOn: [const LibraryRoute().location], + label: (context) => context.l10n.library, ), NavigationBarData( icon: Icons.new_releases_outlined, activeIcon: Icons.new_releases_rounded, - label: (context) => context.l10n!.updates, - go: const UpdatesRoute().go, - activeOn: [const UpdatesRoute().location], + label: (context) => context.l10n.updates, ), NavigationBarData( icon: Icons.explore_outlined, activeIcon: Icons.explore_rounded, - label: (context) => context.l10n!.browse, - go: const BrowseRoute().go, - activeOn: [const BrowseRoute().location], + label: (context) => context.l10n.browse, ), NavigationBarData( icon: Icons.download_outlined, activeIcon: Icons.download_rounded, - label: (context) => context.l10n!.downloads, - go: const DownloadsRoute().go, - activeOn: [const DownloadsRoute().location], + label: (context) => context.l10n.downloads, ), NavigationBarData( icon: Icons.more_horiz_outlined, activeIcon: Icons.more_horiz_rounded, - label: (context) => context.l10n!.more, - go: const MoreRoute().go, - activeOn: [const MoreRoute().location, const SettingsRoute().location], + label: (context) => context.l10n.more, ), ]; NavigationBarData({ required this.label, - required this.go, required this.icon, required this.activeIcon, - required this.activeOn, }); } diff --git a/lib/src/constants/quick_open_help_text.dart b/lib/src/constants/quick_open_help_text.dart index 565307d6..b3cb5f76 100644 --- a/lib/src/constants/quick_open_help_text.dart +++ b/lib/src/constants/quick_open_help_text.dart @@ -14,31 +14,31 @@ List getQuickShowHintTextList(BuildContext context) { QuickSearchResult.helpText( prefill: '@S', pattern: '@', - hintText: context.l10n!.quickSearchSource, + hintText: context.l10n.quickSearchSource, ), QuickSearchResult.helpText( prefill: '@S/M', pattern: '@/', - hintText: context.l10n!.quickSearchSourceManga, + hintText: context.l10n.quickSearchSourceManga, ), QuickSearchResult.helpText( prefill: '#C', pattern: '#', - hintText: context.l10n!.quickSearchCategory, + hintText: context.l10n.quickSearchCategory, ), QuickSearchResult.helpText( prefill: '#C/M', pattern: '#/', - hintText: context.l10n!.quickSearchCategoryManga, + hintText: context.l10n.quickSearchCategoryManga, ), QuickSearchResult.helpText( prefill: '#C/M:CN', pattern: '#/:', - hintText: context.l10n!.quickSearchCategoryMangaChapter, + hintText: context.l10n.quickSearchCategoryMangaChapter, ), QuickSearchResult.helpText( prefill: 'X', - hintText: context.l10n!.quickSearchContext, + hintText: context.l10n.quickSearchContext, ), ]; } diff --git a/lib/src/constants/urls.dart b/lib/src/constants/urls.dart index f42fcee9..6c5c920d 100644 --- a/lib/src/constants/urls.dart +++ b/lib/src/constants/urls.dart @@ -15,7 +15,10 @@ enum AppUrls { sorayomiLatestReleaseApiUrl( url: "https://api.github.com/repos/Suwayomi/Tachidesk-Sorayomi/releases/latest", - ); + ), + flareSolverr( + url: + "https://github.com/FlareSolverr/FlareSolverr?tab=readme-ov-file#installation"); const AppUrls({required this.url}); diff --git a/lib/src/domain/meta_data.dart b/lib/src/domain/meta_data.dart new file mode 100644 index 00000000..6db7721d --- /dev/null +++ b/lib/src/domain/meta_data.dart @@ -0,0 +1,15 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'meta_data.freezed.dart'; +part 'meta_data.g.dart'; + +@freezed +class MetaData with _$MetaData { + factory MetaData({ + String? key, + String? value, + }) = _MetaData; + + factory MetaData.fromJson(Map json) => + _$MetaDataFromJson(json); +} diff --git a/lib/src/domain/meta_data.freezed.dart b/lib/src/domain/meta_data.freezed.dart new file mode 100644 index 00000000..31692026 --- /dev/null +++ b/lib/src/domain/meta_data.freezed.dart @@ -0,0 +1,179 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'meta_data.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +MetaData _$MetaDataFromJson(Map json) { + return _MetaData.fromJson(json); +} + +/// @nodoc +mixin _$MetaData { + String? get key => throw _privateConstructorUsedError; + String? get value => throw _privateConstructorUsedError; + + /// Serializes this MetaData to a JSON map. + Map toJson() => throw _privateConstructorUsedError; + + /// Create a copy of MetaData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + $MetaDataCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $MetaDataCopyWith<$Res> { + factory $MetaDataCopyWith(MetaData value, $Res Function(MetaData) then) = + _$MetaDataCopyWithImpl<$Res, MetaData>; + @useResult + $Res call({String? key, String? value}); +} + +/// @nodoc +class _$MetaDataCopyWithImpl<$Res, $Val extends MetaData> + implements $MetaDataCopyWith<$Res> { + _$MetaDataCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + /// Create a copy of MetaData + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? value = freezed, + }) { + return _then(_value.copyWith( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as String?, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$MetaDataImplCopyWith<$Res> + implements $MetaDataCopyWith<$Res> { + factory _$$MetaDataImplCopyWith( + _$MetaDataImpl value, $Res Function(_$MetaDataImpl) then) = + __$$MetaDataImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({String? key, String? value}); +} + +/// @nodoc +class __$$MetaDataImplCopyWithImpl<$Res> + extends _$MetaDataCopyWithImpl<$Res, _$MetaDataImpl> + implements _$$MetaDataImplCopyWith<$Res> { + __$$MetaDataImplCopyWithImpl( + _$MetaDataImpl _value, $Res Function(_$MetaDataImpl) _then) + : super(_value, _then); + + /// Create a copy of MetaData + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? key = freezed, + Object? value = freezed, + }) { + return _then(_$MetaDataImpl( + key: freezed == key + ? _value.key + : key // ignore: cast_nullable_to_non_nullable + as String?, + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc +@JsonSerializable() +class _$MetaDataImpl implements _MetaData { + _$MetaDataImpl({this.key, this.value}); + + factory _$MetaDataImpl.fromJson(Map json) => + _$$MetaDataImplFromJson(json); + + @override + final String? key; + @override + final String? value; + + @override + String toString() { + return 'MetaData(key: $key, value: $value)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$MetaDataImpl && + (identical(other.key, key) || other.key == key) && + (identical(other.value, value) || other.value == value)); + } + + @JsonKey(includeFromJson: false, includeToJson: false) + @override + int get hashCode => Object.hash(runtimeType, key, value); + + /// Create a copy of MetaData + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$MetaDataImplCopyWith<_$MetaDataImpl> get copyWith => + __$$MetaDataImplCopyWithImpl<_$MetaDataImpl>(this, _$identity); + + @override + Map toJson() { + return _$$MetaDataImplToJson( + this, + ); + } +} + +abstract class _MetaData implements MetaData { + factory _MetaData({final String? key, final String? value}) = _$MetaDataImpl; + + factory _MetaData.fromJson(Map json) = + _$MetaDataImpl.fromJson; + + @override + String? get key; + @override + String? get value; + + /// Create a copy of MetaData + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + _$$MetaDataImplCopyWith<_$MetaDataImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/domain/meta_data.g.dart b/lib/src/domain/meta_data.g.dart new file mode 100644 index 00000000..c767db2e --- /dev/null +++ b/lib/src/domain/meta_data.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'meta_data.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_$MetaDataImpl _$$MetaDataImplFromJson(Map json) => + _$MetaDataImpl( + key: json['key'] as String?, + value: json['value'] as String?, + ); + +Map _$$MetaDataImplToJson(_$MetaDataImpl instance) => + { + 'key': instance.key, + 'value': instance.value, + }; diff --git a/lib/src/domain/page.dart b/lib/src/domain/page.dart new file mode 100644 index 00000000..7f457307 --- /dev/null +++ b/lib/src/domain/page.dart @@ -0,0 +1,26 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +import 'page_info.dart'; + +part 'page.freezed.dart'; + +@freezed +class Page with _$Page { + Page._(); + factory Page({ + List? nodes, + PageInfo? pageInfo, + int? totalCount, + }) = _Page; + + Page appendPage(Page newPage) { + return copyWith( + nodes: [...?nodes, ...?newPage.nodes], + pageInfo: pageInfo?.copyWith( + endCursor: newPage.pageInfo?.endCursor ?? pageInfo?.endCursor, + hasNextPage: newPage.pageInfo?.hasNextPage ?? pageInfo?.hasNextPage, + ), + totalCount: newPage.totalCount ?? totalCount, + ); + } +} diff --git a/lib/src/domain/page.freezed.dart b/lib/src/domain/page.freezed.dart new file mode 100644 index 00000000..b601e6b8 --- /dev/null +++ b/lib/src/domain/page.freezed.dart @@ -0,0 +1,208 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'page.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$Page { + List? get nodes => throw _privateConstructorUsedError; + PageInfo? get pageInfo => throw _privateConstructorUsedError; + int? get totalCount => throw _privateConstructorUsedError; + + /// Create a copy of Page + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + $PageCopyWith> get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PageCopyWith { + factory $PageCopyWith(Page value, $Res Function(Page) then) = + _$PageCopyWithImpl>; + @useResult + $Res call({List? nodes, PageInfo? pageInfo, int? totalCount}); + + $PageInfoCopyWith<$Res>? get pageInfo; +} + +/// @nodoc +class _$PageCopyWithImpl> + implements $PageCopyWith { + _$PageCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + /// Create a copy of Page + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? nodes = freezed, + Object? pageInfo = freezed, + Object? totalCount = freezed, + }) { + return _then(_value.copyWith( + nodes: freezed == nodes + ? _value.nodes + : nodes // ignore: cast_nullable_to_non_nullable + as List?, + pageInfo: freezed == pageInfo + ? _value.pageInfo + : pageInfo // ignore: cast_nullable_to_non_nullable + as PageInfo?, + totalCount: freezed == totalCount + ? _value.totalCount + : totalCount // ignore: cast_nullable_to_non_nullable + as int?, + ) as $Val); + } + + /// Create a copy of Page + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $PageInfoCopyWith<$Res>? get pageInfo { + if (_value.pageInfo == null) { + return null; + } + + return $PageInfoCopyWith<$Res>(_value.pageInfo!, (value) { + return _then(_value.copyWith(pageInfo: value) as $Val); + }); + } +} + +/// @nodoc +abstract class _$$PageImplCopyWith implements $PageCopyWith { + factory _$$PageImplCopyWith( + _$PageImpl value, $Res Function(_$PageImpl) then) = + __$$PageImplCopyWithImpl; + @override + @useResult + $Res call({List? nodes, PageInfo? pageInfo, int? totalCount}); + + @override + $PageInfoCopyWith<$Res>? get pageInfo; +} + +/// @nodoc +class __$$PageImplCopyWithImpl + extends _$PageCopyWithImpl> + implements _$$PageImplCopyWith { + __$$PageImplCopyWithImpl( + _$PageImpl _value, $Res Function(_$PageImpl) _then) + : super(_value, _then); + + /// Create a copy of Page + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? nodes = freezed, + Object? pageInfo = freezed, + Object? totalCount = freezed, + }) { + return _then(_$PageImpl( + nodes: freezed == nodes + ? _value._nodes + : nodes // ignore: cast_nullable_to_non_nullable + as List?, + pageInfo: freezed == pageInfo + ? _value.pageInfo + : pageInfo // ignore: cast_nullable_to_non_nullable + as PageInfo?, + totalCount: freezed == totalCount + ? _value.totalCount + : totalCount // ignore: cast_nullable_to_non_nullable + as int?, + )); + } +} + +/// @nodoc + +class _$PageImpl extends _Page { + _$PageImpl({final List? nodes, this.pageInfo, this.totalCount}) + : _nodes = nodes, + super._(); + + final List? _nodes; + @override + List? get nodes { + final value = _nodes; + if (value == null) return null; + if (_nodes is EqualUnmodifiableListView) return _nodes; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); + } + + @override + final PageInfo? pageInfo; + @override + final int? totalCount; + + @override + String toString() { + return 'Page<$T>(nodes: $nodes, pageInfo: $pageInfo, totalCount: $totalCount)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PageImpl && + const DeepCollectionEquality().equals(other._nodes, _nodes) && + (identical(other.pageInfo, pageInfo) || + other.pageInfo == pageInfo) && + (identical(other.totalCount, totalCount) || + other.totalCount == totalCount)); + } + + @override + int get hashCode => Object.hash(runtimeType, + const DeepCollectionEquality().hash(_nodes), pageInfo, totalCount); + + /// Create a copy of Page + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$PageImplCopyWith> get copyWith => + __$$PageImplCopyWithImpl>(this, _$identity); +} + +abstract class _Page extends Page { + factory _Page( + {final List? nodes, + final PageInfo? pageInfo, + final int? totalCount}) = _$PageImpl; + _Page._() : super._(); + + @override + List? get nodes; + @override + PageInfo? get pageInfo; + @override + int? get totalCount; + + /// Create a copy of Page + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + _$$PageImplCopyWith> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/domain/page_info.dart b/lib/src/domain/page_info.dart new file mode 100644 index 00000000..56ed99a7 --- /dev/null +++ b/lib/src/domain/page_info.dart @@ -0,0 +1,13 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'page_info.freezed.dart'; + +@freezed +class PageInfo with _$PageInfo { + factory PageInfo({ + String? endCursor, + bool? hasNextPage, + bool? hasPreviousPage, + String? startCursor, + }) = _PageInfo; +} diff --git a/lib/src/domain/page_info.freezed.dart b/lib/src/domain/page_info.freezed.dart new file mode 100644 index 00000000..18456ed0 --- /dev/null +++ b/lib/src/domain/page_info.freezed.dart @@ -0,0 +1,211 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'page_info.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$PageInfo { + String? get endCursor => throw _privateConstructorUsedError; + bool? get hasNextPage => throw _privateConstructorUsedError; + bool? get hasPreviousPage => throw _privateConstructorUsedError; + String? get startCursor => throw _privateConstructorUsedError; + + /// Create a copy of PageInfo + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + $PageInfoCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PageInfoCopyWith<$Res> { + factory $PageInfoCopyWith(PageInfo value, $Res Function(PageInfo) then) = + _$PageInfoCopyWithImpl<$Res, PageInfo>; + @useResult + $Res call( + {String? endCursor, + bool? hasNextPage, + bool? hasPreviousPage, + String? startCursor}); +} + +/// @nodoc +class _$PageInfoCopyWithImpl<$Res, $Val extends PageInfo> + implements $PageInfoCopyWith<$Res> { + _$PageInfoCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + /// Create a copy of PageInfo + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? endCursor = freezed, + Object? hasNextPage = freezed, + Object? hasPreviousPage = freezed, + Object? startCursor = freezed, + }) { + return _then(_value.copyWith( + endCursor: freezed == endCursor + ? _value.endCursor + : endCursor // ignore: cast_nullable_to_non_nullable + as String?, + hasNextPage: freezed == hasNextPage + ? _value.hasNextPage + : hasNextPage // ignore: cast_nullable_to_non_nullable + as bool?, + hasPreviousPage: freezed == hasPreviousPage + ? _value.hasPreviousPage + : hasPreviousPage // ignore: cast_nullable_to_non_nullable + as bool?, + startCursor: freezed == startCursor + ? _value.startCursor + : startCursor // ignore: cast_nullable_to_non_nullable + as String?, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$PageInfoImplCopyWith<$Res> + implements $PageInfoCopyWith<$Res> { + factory _$$PageInfoImplCopyWith( + _$PageInfoImpl value, $Res Function(_$PageInfoImpl) then) = + __$$PageInfoImplCopyWithImpl<$Res>; + @override + @useResult + $Res call( + {String? endCursor, + bool? hasNextPage, + bool? hasPreviousPage, + String? startCursor}); +} + +/// @nodoc +class __$$PageInfoImplCopyWithImpl<$Res> + extends _$PageInfoCopyWithImpl<$Res, _$PageInfoImpl> + implements _$$PageInfoImplCopyWith<$Res> { + __$$PageInfoImplCopyWithImpl( + _$PageInfoImpl _value, $Res Function(_$PageInfoImpl) _then) + : super(_value, _then); + + /// Create a copy of PageInfo + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? endCursor = freezed, + Object? hasNextPage = freezed, + Object? hasPreviousPage = freezed, + Object? startCursor = freezed, + }) { + return _then(_$PageInfoImpl( + endCursor: freezed == endCursor + ? _value.endCursor + : endCursor // ignore: cast_nullable_to_non_nullable + as String?, + hasNextPage: freezed == hasNextPage + ? _value.hasNextPage + : hasNextPage // ignore: cast_nullable_to_non_nullable + as bool?, + hasPreviousPage: freezed == hasPreviousPage + ? _value.hasPreviousPage + : hasPreviousPage // ignore: cast_nullable_to_non_nullable + as bool?, + startCursor: freezed == startCursor + ? _value.startCursor + : startCursor // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// @nodoc + +class _$PageInfoImpl implements _PageInfo { + _$PageInfoImpl( + {this.endCursor, + this.hasNextPage, + this.hasPreviousPage, + this.startCursor}); + + @override + final String? endCursor; + @override + final bool? hasNextPage; + @override + final bool? hasPreviousPage; + @override + final String? startCursor; + + @override + String toString() { + return 'PageInfo(endCursor: $endCursor, hasNextPage: $hasNextPage, hasPreviousPage: $hasPreviousPage, startCursor: $startCursor)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PageInfoImpl && + (identical(other.endCursor, endCursor) || + other.endCursor == endCursor) && + (identical(other.hasNextPage, hasNextPage) || + other.hasNextPage == hasNextPage) && + (identical(other.hasPreviousPage, hasPreviousPage) || + other.hasPreviousPage == hasPreviousPage) && + (identical(other.startCursor, startCursor) || + other.startCursor == startCursor)); + } + + @override + int get hashCode => Object.hash( + runtimeType, endCursor, hasNextPage, hasPreviousPage, startCursor); + + /// Create a copy of PageInfo + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$PageInfoImplCopyWith<_$PageInfoImpl> get copyWith => + __$$PageInfoImplCopyWithImpl<_$PageInfoImpl>(this, _$identity); +} + +abstract class _PageInfo implements PageInfo { + factory _PageInfo( + {final String? endCursor, + final bool? hasNextPage, + final bool? hasPreviousPage, + final String? startCursor}) = _$PageInfoImpl; + + @override + String? get endCursor; + @override + bool? get hasNextPage; + @override + bool? get hasPreviousPage; + @override + String? get startCursor; + + /// Create a copy of PageInfo + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + _$$PageInfoImplCopyWith<_$PageInfoImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/domain/page_request.dart b/lib/src/domain/page_request.dart new file mode 100644 index 00000000..98134075 --- /dev/null +++ b/lib/src/domain/page_request.dart @@ -0,0 +1,15 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'page_request.freezed.dart'; + +@freezed +class PageRequest with _$PageRequest { + factory PageRequest({ + required int page, + @Default(10) int size, + }) = _PageRequest; + + const PageRequest._(); + + int get offset => page * size; +} diff --git a/lib/src/domain/page_request.freezed.dart b/lib/src/domain/page_request.freezed.dart new file mode 100644 index 00000000..5eeade5a --- /dev/null +++ b/lib/src/domain/page_request.freezed.dart @@ -0,0 +1,162 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'page_request.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$PageRequest { + int get page => throw _privateConstructorUsedError; + int get size => throw _privateConstructorUsedError; + + /// Create a copy of PageRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + $PageRequestCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $PageRequestCopyWith<$Res> { + factory $PageRequestCopyWith( + PageRequest value, $Res Function(PageRequest) then) = + _$PageRequestCopyWithImpl<$Res, PageRequest>; + @useResult + $Res call({int page, int size}); +} + +/// @nodoc +class _$PageRequestCopyWithImpl<$Res, $Val extends PageRequest> + implements $PageRequestCopyWith<$Res> { + _$PageRequestCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + /// Create a copy of PageRequest + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? page = null, + Object? size = null, + }) { + return _then(_value.copyWith( + page: null == page + ? _value.page + : page // ignore: cast_nullable_to_non_nullable + as int, + size: null == size + ? _value.size + : size // ignore: cast_nullable_to_non_nullable + as int, + ) as $Val); + } +} + +/// @nodoc +abstract class _$$PageRequestImplCopyWith<$Res> + implements $PageRequestCopyWith<$Res> { + factory _$$PageRequestImplCopyWith( + _$PageRequestImpl value, $Res Function(_$PageRequestImpl) then) = + __$$PageRequestImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({int page, int size}); +} + +/// @nodoc +class __$$PageRequestImplCopyWithImpl<$Res> + extends _$PageRequestCopyWithImpl<$Res, _$PageRequestImpl> + implements _$$PageRequestImplCopyWith<$Res> { + __$$PageRequestImplCopyWithImpl( + _$PageRequestImpl _value, $Res Function(_$PageRequestImpl) _then) + : super(_value, _then); + + /// Create a copy of PageRequest + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? page = null, + Object? size = null, + }) { + return _then(_$PageRequestImpl( + page: null == page + ? _value.page + : page // ignore: cast_nullable_to_non_nullable + as int, + size: null == size + ? _value.size + : size // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// @nodoc + +class _$PageRequestImpl extends _PageRequest { + _$PageRequestImpl({required this.page, this.size = 10}) : super._(); + + @override + final int page; + @override + @JsonKey() + final int size; + + @override + String toString() { + return 'PageRequest(page: $page, size: $size)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PageRequestImpl && + (identical(other.page, page) || other.page == page) && + (identical(other.size, size) || other.size == size)); + } + + @override + int get hashCode => Object.hash(runtimeType, page, size); + + /// Create a copy of PageRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$PageRequestImplCopyWith<_$PageRequestImpl> get copyWith => + __$$PageRequestImplCopyWithImpl<_$PageRequestImpl>(this, _$identity); +} + +abstract class _PageRequest extends PageRequest { + factory _PageRequest({required final int page, final int size}) = + _$PageRequestImpl; + _PageRequest._() : super._(); + + @override + int get page; + @override + int get size; + + /// Create a copy of PageRequest + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + _$$PageRequestImplCopyWith<_$PageRequestImpl> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/features/about/data/about_repository.dart b/lib/src/features/about/data/about_repository.dart index 1739018c..f27316f4 100644 --- a/lib/src/features/about/data/about_repository.dart +++ b/lib/src/features/about/data/about_repository.dart @@ -4,56 +4,52 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'dart:convert'; + import 'package:dio/dio.dart'; +import 'package:ferry/ferry.dart'; +import 'package:http/http.dart' as http; import 'package:package_info_plus/package_info_plus.dart'; import 'package:pub_semver/pub_semver.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../constants/endpoints.dart'; import '../../../constants/urls.dart'; import '../../../global_providers/global_providers.dart'; import '../../../utils/extensions/custom_extensions.dart'; -import '../../../utils/storage/dio/dio_client.dart'; -import '../domain/about/about_model.dart'; -import '../domain/server_update/server_update_model.dart'; +import '../domain/about/about_dto.dart'; +import '../domain/server_update/server_update.dart'; import '../presentation/about/controllers/about_controller.dart'; +import 'graphql/query.dart'; part 'about_repository.g.dart'; class AboutRepository { - final DioClient dioClient; + final Client ferryClient; final PackageInfo packageInfo; AboutRepository({ - required this.dioClient, + required this.ferryClient, required this.packageInfo, }); - Future getAbout({CancelToken? cancelToken}) async { - return (await dioClient.get( - SettingsUrl.about, - decoder: (e) => e is Map ? About.fromJson(e) : null, - cancelToken: cancelToken, - )) - .data; - } + Stream getAbout() => ferryClient.fetch( + AboutQuery.getAboutQuery, + (data) => data.aboutServer, + ); - Future?> checkServerUpdate() async { - return (await dioClient.get, ServerUpdate>( - SettingsUrl.checkServerUpdate, - decoder: (e) => - e is Map ? ServerUpdate.fromJson(e) : ServerUpdate(), - )) - .data; - } + Future?> checkServerUpdate() => ferryClient + .fetch( + AboutQuery.serverUpdateQuery, + (data) => + data.checkForServerUpdates.map((update) => update.toDto).toList(), + ) + .first; Future> checkUpdate({CancelToken? cancelToken}) async { final gitResponse = await AsyncValue.guard?>( - () async => (await dioClient.get( - AppUrls.sorayomiLatestReleaseApiUrl.url, - cancelToken: cancelToken, - )) - .data, - ); + () async => json.decode((await http.get( + Uri.parse(AppUrls.sorayomiLatestReleaseApiUrl.url), + )) + .body)); return gitResponse.copyWithData( (data) { String? tag = data?["tag_name"]; @@ -74,6 +70,6 @@ class AboutRepository { @riverpod AboutRepository aboutRepository(ref) => AboutRepository( - dioClient: ref.watch(dioClientKeyProvider), + ferryClient: ref.watch(ferryClientProvider), packageInfo: ref.watch(packageInfoProvider), ); diff --git a/lib/src/features/about/data/about_repository.g.dart b/lib/src/features/about/data/about_repository.g.dart index 3a7570a0..4d00dfa2 100644 --- a/lib/src/features/about/data/about_repository.g.dart +++ b/lib/src/features/about/data/about_repository.g.dart @@ -6,7 +6,7 @@ part of 'about_repository.dart'; // RiverpodGenerator // ************************************************************************** -String _$aboutRepositoryHash() => r'216ca259fbc00fa61ce7260975ab8d3df1e282dc'; +String _$aboutRepositoryHash() => r'8365e7f7ab23a0c6ef122555fcd8a87e36540dc3'; /// See also [aboutRepository]. @ProviderFor(aboutRepository) @@ -20,6 +20,8 @@ final aboutRepositoryProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef AboutRepositoryRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/about/data/graphql/queries/__generated__/about_query.ast.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/about_query.ast.gql.dart new file mode 100644 index 00000000..3febd296 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/about_query.ast.gql.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.ast.gql.dart' + as _i2; + +const About = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'About'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'aboutServer'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'AboutFragment'), + directives: [], + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + About, + _i2.AboutFragment, +]); diff --git a/lib/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.dart new file mode 100644 index 00000000..daf4fb3d --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.dart @@ -0,0 +1,86 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'about_query.data.gql.g.dart'; + +abstract class GAboutData implements Built { + GAboutData._(); + + factory GAboutData([void Function(GAboutDataBuilder b) updates]) = + _$GAboutData; + + static void _initializeBuilder(GAboutDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GAboutData_aboutServer get aboutServer; + static Serializer get serializer => _$gAboutDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAboutData.serializer, + this, + ) as Map); + + static GAboutData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutData.serializer, + json, + ); +} + +abstract class GAboutData_aboutServer + implements + Built, + _i2.GAboutFragment { + GAboutData_aboutServer._(); + + factory GAboutData_aboutServer( + [void Function(GAboutData_aboutServerBuilder b) updates]) = + _$GAboutData_aboutServer; + + static void _initializeBuilder(GAboutData_aboutServerBuilder b) => + b..G__typename = 'AboutServerPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i3.GLongString get buildTime; + @override + String get buildType; + @override + String get discord; + @override + String get github; + @override + String get name; + @override + String get revision; + @override + String get version; + static Serializer get serializer => + _$gAboutDataAboutServerSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAboutData_aboutServer.serializer, + this, + ) as Map); + + static GAboutData_aboutServer? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutData_aboutServer.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.g.dart b/lib/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.g.dart new file mode 100644 index 00000000..72c4890e --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.g.dart @@ -0,0 +1,484 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutDataSerializer = new _$GAboutDataSerializer(); +Serializer _$gAboutDataAboutServerSerializer = + new _$GAboutData_aboutServerSerializer(); + +class _$GAboutDataSerializer implements StructuredSerializer { + @override + final Iterable types = const [GAboutData, _$GAboutData]; + @override + final String wireName = 'GAboutData'; + + @override + Iterable serialize(Serializers serializers, GAboutData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'aboutServer', + serializers.serialize(object.aboutServer, + specifiedType: const FullType(GAboutData_aboutServer)), + ]; + + return result; + } + + @override + GAboutData deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'aboutServer': + result.aboutServer.replace(serializers.deserialize(value, + specifiedType: const FullType(GAboutData_aboutServer))! + as GAboutData_aboutServer); + break; + } + } + + return result.build(); + } +} + +class _$GAboutData_aboutServerSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAboutData_aboutServer, + _$GAboutData_aboutServer + ]; + @override + final String wireName = 'GAboutData_aboutServer'; + + @override + Iterable serialize( + Serializers serializers, GAboutData_aboutServer object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'buildTime', + serializers.serialize(object.buildTime, + specifiedType: const FullType(_i3.GLongString)), + 'buildType', + serializers.serialize(object.buildType, + specifiedType: const FullType(String)), + 'discord', + serializers.serialize(object.discord, + specifiedType: const FullType(String)), + 'github', + serializers.serialize(object.github, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'revision', + serializers.serialize(object.revision, + specifiedType: const FullType(String)), + 'version', + serializers.serialize(object.version, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAboutData_aboutServer deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutData_aboutServerBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'buildTime': + result.buildTime.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GLongString))! + as _i3.GLongString); + break; + case 'buildType': + result.buildType = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'discord': + result.discord = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'github': + result.github = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'revision': + result.revision = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'version': + result.version = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAboutData extends GAboutData { + @override + final String G__typename; + @override + final GAboutData_aboutServer aboutServer; + + factory _$GAboutData([void Function(GAboutDataBuilder)? updates]) => + (new GAboutDataBuilder()..update(updates))._build(); + + _$GAboutData._({required this.G__typename, required this.aboutServer}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + aboutServer, r'GAboutData', 'aboutServer'); + } + + @override + GAboutData rebuild(void Function(GAboutDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutDataBuilder toBuilder() => new GAboutDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutData && + G__typename == other.G__typename && + aboutServer == other.aboutServer; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, aboutServer.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutData') + ..add('G__typename', G__typename) + ..add('aboutServer', aboutServer)) + .toString(); + } +} + +class GAboutDataBuilder implements Builder { + _$GAboutData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GAboutData_aboutServerBuilder? _aboutServer; + GAboutData_aboutServerBuilder get aboutServer => + _$this._aboutServer ??= new GAboutData_aboutServerBuilder(); + set aboutServer(GAboutData_aboutServerBuilder? aboutServer) => + _$this._aboutServer = aboutServer; + + GAboutDataBuilder() { + GAboutData._initializeBuilder(this); + } + + GAboutDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _aboutServer = $v.aboutServer.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAboutData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutData; + } + + @override + void update(void Function(GAboutDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutData build() => _build(); + + _$GAboutData _build() { + _$GAboutData _$result; + try { + _$result = _$v ?? + new _$GAboutData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData', 'G__typename'), + aboutServer: aboutServer.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'aboutServer'; + aboutServer.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAboutData_aboutServer extends GAboutData_aboutServer { + @override + final String G__typename; + @override + final _i3.GLongString buildTime; + @override + final String buildType; + @override + final String discord; + @override + final String github; + @override + final String name; + @override + final String revision; + @override + final String version; + + factory _$GAboutData_aboutServer( + [void Function(GAboutData_aboutServerBuilder)? updates]) => + (new GAboutData_aboutServerBuilder()..update(updates))._build(); + + _$GAboutData_aboutServer._( + {required this.G__typename, + required this.buildTime, + required this.buildType, + required this.discord, + required this.github, + required this.name, + required this.revision, + required this.version}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData_aboutServer', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + buildTime, r'GAboutData_aboutServer', 'buildTime'); + BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutData_aboutServer', 'buildType'); + BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutData_aboutServer', 'discord'); + BuiltValueNullFieldError.checkNotNull( + github, r'GAboutData_aboutServer', 'github'); + BuiltValueNullFieldError.checkNotNull( + name, r'GAboutData_aboutServer', 'name'); + BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutData_aboutServer', 'revision'); + BuiltValueNullFieldError.checkNotNull( + version, r'GAboutData_aboutServer', 'version'); + } + + @override + GAboutData_aboutServer rebuild( + void Function(GAboutData_aboutServerBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutData_aboutServerBuilder toBuilder() => + new GAboutData_aboutServerBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutData_aboutServer && + G__typename == other.G__typename && + buildTime == other.buildTime && + buildType == other.buildType && + discord == other.discord && + github == other.github && + name == other.name && + revision == other.revision && + version == other.version; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, buildTime.hashCode); + _$hash = $jc(_$hash, buildType.hashCode); + _$hash = $jc(_$hash, discord.hashCode); + _$hash = $jc(_$hash, github.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, revision.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutData_aboutServer') + ..add('G__typename', G__typename) + ..add('buildTime', buildTime) + ..add('buildType', buildType) + ..add('discord', discord) + ..add('github', github) + ..add('name', name) + ..add('revision', revision) + ..add('version', version)) + .toString(); + } +} + +class GAboutData_aboutServerBuilder + implements Builder { + _$GAboutData_aboutServer? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i3.GLongStringBuilder? _buildTime; + _i3.GLongStringBuilder get buildTime => + _$this._buildTime ??= new _i3.GLongStringBuilder(); + set buildTime(_i3.GLongStringBuilder? buildTime) => + _$this._buildTime = buildTime; + + String? _buildType; + String? get buildType => _$this._buildType; + set buildType(String? buildType) => _$this._buildType = buildType; + + String? _discord; + String? get discord => _$this._discord; + set discord(String? discord) => _$this._discord = discord; + + String? _github; + String? get github => _$this._github; + set github(String? github) => _$this._github = github; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _revision; + String? get revision => _$this._revision; + set revision(String? revision) => _$this._revision = revision; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + GAboutData_aboutServerBuilder() { + GAboutData_aboutServer._initializeBuilder(this); + } + + GAboutData_aboutServerBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _buildTime = $v.buildTime.toBuilder(); + _buildType = $v.buildType; + _discord = $v.discord; + _github = $v.github; + _name = $v.name; + _revision = $v.revision; + _version = $v.version; + _$v = null; + } + return this; + } + + @override + void replace(GAboutData_aboutServer other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutData_aboutServer; + } + + @override + void update(void Function(GAboutData_aboutServerBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutData_aboutServer build() => _build(); + + _$GAboutData_aboutServer _build() { + _$GAboutData_aboutServer _$result; + try { + _$result = _$v ?? + new _$GAboutData_aboutServer._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutData_aboutServer', 'G__typename'), + buildTime: buildTime.build(), + buildType: BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutData_aboutServer', 'buildType'), + discord: BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutData_aboutServer', 'discord'), + github: BuiltValueNullFieldError.checkNotNull( + github, r'GAboutData_aboutServer', 'github'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAboutData_aboutServer', 'name'), + revision: BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutData_aboutServer', 'revision'), + version: BuiltValueNullFieldError.checkNotNull( + version, r'GAboutData_aboutServer', 'version'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'buildTime'; + buildTime.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutData_aboutServer', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/queries/__generated__/about_query.req.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/about_query.req.gql.dart new file mode 100644 index 00000000..aab10cc9 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/about_query.req.gql.dart @@ -0,0 +1,94 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/about_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'about_query.req.gql.g.dart'; + +abstract class GAboutReq + implements + Built, + _i1.OperationRequest<_i2.GAboutData, _i3.GAboutVars> { + GAboutReq._(); + + factory GAboutReq([void Function(GAboutReqBuilder b) updates]) = _$GAboutReq; + + static void _initializeBuilder(GAboutReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'About', + ) + ..executeOnListen = true; + + @override + _i3.GAboutVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GAboutData? Function( + _i2.GAboutData?, + _i2.GAboutData?, + )? get updateResult; + @override + _i2.GAboutData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GAboutData? parseData(Map json) => + _i2.GAboutData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GAboutData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GAboutData, _i3.GAboutVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => _$gAboutReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAboutReq.serializer, + this, + ) as Map); + + static GAboutReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAboutReq.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/queries/__generated__/about_query.req.gql.g.dart b/lib/src/features/about/data/graphql/queries/__generated__/about_query.req.gql.g.dart new file mode 100644 index 00000000..db0baa25 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/about_query.req.gql.g.dart @@ -0,0 +1,358 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutReqSerializer = new _$GAboutReqSerializer(); + +class _$GAboutReqSerializer implements StructuredSerializer { + @override + final Iterable types = const [GAboutReq, _$GAboutReq]; + @override + final String wireName = 'GAboutReq'; + + @override + Iterable serialize(Serializers serializers, GAboutReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAboutVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GAboutData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GAboutReq deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GAboutVars))! + as _i3.GAboutVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GAboutData))! + as _i2.GAboutData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GAboutReq extends GAboutReq { + @override + final _i3.GAboutVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? + updateResult; + @override + final _i2.GAboutData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GAboutReq([void Function(GAboutReqBuilder)? updates]) => + (new GAboutReqBuilder()..update(updates))._build(); + + _$GAboutReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GAboutReq', 'vars'); + BuiltValueNullFieldError.checkNotNull(operation, r'GAboutReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAboutReq', 'executeOnListen'); + } + + @override + GAboutReq rebuild(void Function(GAboutReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutReqBuilder toBuilder() => new GAboutReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GAboutReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GAboutReqBuilder implements Builder { + _$GAboutReq? _$v; + + _i3.GAboutVarsBuilder? _vars; + _i3.GAboutVarsBuilder get vars => + _$this._vars ??= new _i3.GAboutVarsBuilder(); + set vars(_i3.GAboutVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? _updateResult; + _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GAboutData? Function(_i2.GAboutData?, _i2.GAboutData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GAboutDataBuilder? _optimisticResponse; + _i2.GAboutDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GAboutDataBuilder(); + set optimisticResponse(_i2.GAboutDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GAboutReqBuilder() { + GAboutReq._initializeBuilder(this); + } + + GAboutReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GAboutReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutReq; + } + + @override + void update(void Function(GAboutReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutReq build() => _build(); + + _$GAboutReq _build() { + _$GAboutReq _$result; + try { + _$result = _$v ?? + new _$GAboutReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GAboutReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAboutReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.dart new file mode 100644 index 00000000..5a4f3530 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'about_query.var.gql.g.dart'; + +abstract class GAboutVars implements Built { + GAboutVars._(); + + factory GAboutVars([void Function(GAboutVarsBuilder b) updates]) = + _$GAboutVars; + + static Serializer get serializer => _$gAboutVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAboutVars.serializer, + this, + ) as Map); + + static GAboutVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutVars.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.g.dart b/lib/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.g.dart new file mode 100644 index 00000000..5d559ed8 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.g.dart @@ -0,0 +1,86 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutVarsSerializer = new _$GAboutVarsSerializer(); + +class _$GAboutVarsSerializer implements StructuredSerializer { + @override + final Iterable types = const [GAboutVars, _$GAboutVars]; + @override + final String wireName = 'GAboutVars'; + + @override + Iterable serialize(Serializers serializers, GAboutVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GAboutVars deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GAboutVarsBuilder().build(); + } +} + +class _$GAboutVars extends GAboutVars { + factory _$GAboutVars([void Function(GAboutVarsBuilder)? updates]) => + (new GAboutVarsBuilder()..update(updates))._build(); + + _$GAboutVars._() : super._(); + + @override + GAboutVars rebuild(void Function(GAboutVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutVarsBuilder toBuilder() => new GAboutVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutVars; + } + + @override + int get hashCode { + return 467808740; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GAboutVars').toString(); + } +} + +class GAboutVarsBuilder implements Builder { + _$GAboutVars? _$v; + + GAboutVarsBuilder(); + + @override + void replace(GAboutVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutVars; + } + + @override + void update(void Function(GAboutVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutVars build() => _build(); + + _$GAboutVars _build() { + final _$result = _$v ?? new _$GAboutVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/queries/__generated__/server_update.ast.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/server_update.ast.gql.dart new file mode 100644 index 00000000..f6b1eb04 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/server_update.ast.gql.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.ast.gql.dart' + as _i2; + +const ServerUpdate = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'ServerUpdate'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'checkForServerUpdates'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ServerUpdateFragment'), + directives: [], + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ServerUpdate, + _i2.ServerUpdateFragment, +]); diff --git a/lib/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.dart new file mode 100644 index 00000000..cc689383 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.dart @@ -0,0 +1,83 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'server_update.data.gql.g.dart'; + +abstract class GServerUpdateData + implements Built { + GServerUpdateData._(); + + factory GServerUpdateData( + [void Function(GServerUpdateDataBuilder b) updates]) = + _$GServerUpdateData; + + static void _initializeBuilder(GServerUpdateDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList get checkForServerUpdates; + static Serializer get serializer => + _$gServerUpdateDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateData.serializer, + this, + ) as Map); + + static GServerUpdateData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateData.serializer, + json, + ); +} + +abstract class GServerUpdateData_checkForServerUpdates + implements + Built, + _i2.GServerUpdateFragment { + GServerUpdateData_checkForServerUpdates._(); + + factory GServerUpdateData_checkForServerUpdates( + [void Function(GServerUpdateData_checkForServerUpdatesBuilder b) + updates]) = _$GServerUpdateData_checkForServerUpdates; + + static void _initializeBuilder( + GServerUpdateData_checkForServerUpdatesBuilder b) => + b..G__typename = 'CheckForServerUpdatesPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get channel; + @override + String get tag; + @override + String get url; + static Serializer get serializer => + _$gServerUpdateDataCheckForServerUpdatesSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateData_checkForServerUpdates.serializer, + this, + ) as Map); + + static GServerUpdateData_checkForServerUpdates? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GServerUpdateData_checkForServerUpdates.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.g.dart b/lib/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.g.dart new file mode 100644 index 00000000..27d5308c --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.g.dart @@ -0,0 +1,402 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_update.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateDataSerializer = + new _$GServerUpdateDataSerializer(); +Serializer + _$gServerUpdateDataCheckForServerUpdatesSerializer = + new _$GServerUpdateData_checkForServerUpdatesSerializer(); + +class _$GServerUpdateDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GServerUpdateData, _$GServerUpdateData]; + @override + final String wireName = 'GServerUpdateData'; + + @override + Iterable serialize(Serializers serializers, GServerUpdateData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'checkForServerUpdates', + serializers.serialize(object.checkForServerUpdates, + specifiedType: const FullType(BuiltList, + const [const FullType(GServerUpdateData_checkForServerUpdates)])), + ]; + + return result; + } + + @override + GServerUpdateData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'checkForServerUpdates': + result.checkForServerUpdates.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GServerUpdateData_checkForServerUpdates) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateData_checkForServerUpdatesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateData_checkForServerUpdates, + _$GServerUpdateData_checkForServerUpdates + ]; + @override + final String wireName = 'GServerUpdateData_checkForServerUpdates'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateData_checkForServerUpdates object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'channel', + serializers.serialize(object.channel, + specifiedType: const FullType(String)), + 'tag', + serializers.serialize(object.tag, specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GServerUpdateData_checkForServerUpdates deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateData_checkForServerUpdatesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'channel': + result.channel = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'tag': + result.tag = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateData extends GServerUpdateData { + @override + final String G__typename; + @override + final BuiltList + checkForServerUpdates; + + factory _$GServerUpdateData( + [void Function(GServerUpdateDataBuilder)? updates]) => + (new GServerUpdateDataBuilder()..update(updates))._build(); + + _$GServerUpdateData._( + {required this.G__typename, required this.checkForServerUpdates}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + checkForServerUpdates, r'GServerUpdateData', 'checkForServerUpdates'); + } + + @override + GServerUpdateData rebuild(void Function(GServerUpdateDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateDataBuilder toBuilder() => + new GServerUpdateDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateData && + G__typename == other.G__typename && + checkForServerUpdates == other.checkForServerUpdates; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, checkForServerUpdates.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateData') + ..add('G__typename', G__typename) + ..add('checkForServerUpdates', checkForServerUpdates)) + .toString(); + } +} + +class GServerUpdateDataBuilder + implements Builder { + _$GServerUpdateData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _checkForServerUpdates; + ListBuilder + get checkForServerUpdates => _$this._checkForServerUpdates ??= + new ListBuilder(); + set checkForServerUpdates( + ListBuilder? + checkForServerUpdates) => + _$this._checkForServerUpdates = checkForServerUpdates; + + GServerUpdateDataBuilder() { + GServerUpdateData._initializeBuilder(this); + } + + GServerUpdateDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _checkForServerUpdates = $v.checkForServerUpdates.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateData; + } + + @override + void update(void Function(GServerUpdateDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateData build() => _build(); + + _$GServerUpdateData _build() { + _$GServerUpdateData _$result; + try { + _$result = _$v ?? + new _$GServerUpdateData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateData', 'G__typename'), + checkForServerUpdates: checkForServerUpdates.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'checkForServerUpdates'; + checkForServerUpdates.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerUpdateData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GServerUpdateData_checkForServerUpdates + extends GServerUpdateData_checkForServerUpdates { + @override + final String G__typename; + @override + final String channel; + @override + final String tag; + @override + final String url; + + factory _$GServerUpdateData_checkForServerUpdates( + [void Function(GServerUpdateData_checkForServerUpdatesBuilder)? + updates]) => + (new GServerUpdateData_checkForServerUpdatesBuilder()..update(updates)) + ._build(); + + _$GServerUpdateData_checkForServerUpdates._( + {required this.G__typename, + required this.channel, + required this.tag, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateData_checkForServerUpdates', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateData_checkForServerUpdates', 'channel'); + BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateData_checkForServerUpdates', 'tag'); + BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateData_checkForServerUpdates', 'url'); + } + + @override + GServerUpdateData_checkForServerUpdates rebuild( + void Function(GServerUpdateData_checkForServerUpdatesBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateData_checkForServerUpdatesBuilder toBuilder() => + new GServerUpdateData_checkForServerUpdatesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateData_checkForServerUpdates && + G__typename == other.G__typename && + channel == other.channel && + tag == other.tag && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, tag.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GServerUpdateData_checkForServerUpdates') + ..add('G__typename', G__typename) + ..add('channel', channel) + ..add('tag', tag) + ..add('url', url)) + .toString(); + } +} + +class GServerUpdateData_checkForServerUpdatesBuilder + implements + Builder { + _$GServerUpdateData_checkForServerUpdates? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _channel; + String? get channel => _$this._channel; + set channel(String? channel) => _$this._channel = channel; + + String? _tag; + String? get tag => _$this._tag; + set tag(String? tag) => _$this._tag = tag; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GServerUpdateData_checkForServerUpdatesBuilder() { + GServerUpdateData_checkForServerUpdates._initializeBuilder(this); + } + + GServerUpdateData_checkForServerUpdatesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _channel = $v.channel; + _tag = $v.tag; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateData_checkForServerUpdates other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateData_checkForServerUpdates; + } + + @override + void update( + void Function(GServerUpdateData_checkForServerUpdatesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateData_checkForServerUpdates build() => _build(); + + _$GServerUpdateData_checkForServerUpdates _build() { + final _$result = _$v ?? + new _$GServerUpdateData_checkForServerUpdates._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GServerUpdateData_checkForServerUpdates', 'G__typename'), + channel: BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateData_checkForServerUpdates', 'channel'), + tag: BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateData_checkForServerUpdates', 'tag'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateData_checkForServerUpdates', 'url'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/queries/__generated__/server_update.req.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/server_update.req.gql.dart new file mode 100644 index 00000000..32da15e7 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/server_update.req.gql.dart @@ -0,0 +1,96 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/server_update.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'server_update.req.gql.g.dart'; + +abstract class GServerUpdateReq + implements + Built, + _i1.OperationRequest<_i2.GServerUpdateData, _i3.GServerUpdateVars> { + GServerUpdateReq._(); + + factory GServerUpdateReq([void Function(GServerUpdateReqBuilder b) updates]) = + _$GServerUpdateReq; + + static void _initializeBuilder(GServerUpdateReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ServerUpdate', + ) + ..executeOnListen = true; + + @override + _i3.GServerUpdateVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, + _i2.GServerUpdateData?, + )? get updateResult; + @override + _i2.GServerUpdateData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GServerUpdateData? parseData(Map json) => + _i2.GServerUpdateData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GServerUpdateData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GServerUpdateData, _i3.GServerUpdateVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gServerUpdateReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GServerUpdateReq.serializer, + this, + ) as Map); + + static GServerUpdateReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GServerUpdateReq.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/queries/__generated__/server_update.req.gql.g.dart b/lib/src/features/about/data/graphql/queries/__generated__/server_update.req.gql.g.dart new file mode 100644 index 00000000..6b3a286a --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/server_update.req.gql.g.dart @@ -0,0 +1,368 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_update.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateReqSerializer = + new _$GServerUpdateReqSerializer(); + +class _$GServerUpdateReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GServerUpdateReq, _$GServerUpdateReq]; + @override + final String wireName = 'GServerUpdateReq'; + + @override + Iterable serialize(Serializers serializers, GServerUpdateReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GServerUpdateVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GServerUpdateData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GServerUpdateReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GServerUpdateVars))! + as _i3.GServerUpdateVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GServerUpdateData))! + as _i2.GServerUpdateData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateReq extends GServerUpdateReq { + @override + final _i3.GServerUpdateVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? updateResult; + @override + final _i2.GServerUpdateData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GServerUpdateReq( + [void Function(GServerUpdateReqBuilder)? updates]) => + (new GServerUpdateReqBuilder()..update(updates))._build(); + + _$GServerUpdateReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GServerUpdateReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GServerUpdateReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GServerUpdateReq', 'executeOnListen'); + } + + @override + GServerUpdateReq rebuild(void Function(GServerUpdateReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateReqBuilder toBuilder() => + new GServerUpdateReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GServerUpdateReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GServerUpdateReqBuilder + implements Builder { + _$GServerUpdateReq? _$v; + + _i3.GServerUpdateVarsBuilder? _vars; + _i3.GServerUpdateVarsBuilder get vars => + _$this._vars ??= new _i3.GServerUpdateVarsBuilder(); + set vars(_i3.GServerUpdateVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? _updateResult; + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GServerUpdateData? Function( + _i2.GServerUpdateData?, _i2.GServerUpdateData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GServerUpdateDataBuilder? _optimisticResponse; + _i2.GServerUpdateDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GServerUpdateDataBuilder(); + set optimisticResponse(_i2.GServerUpdateDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GServerUpdateReqBuilder() { + GServerUpdateReq._initializeBuilder(this); + } + + GServerUpdateReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateReq; + } + + @override + void update(void Function(GServerUpdateReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateReq build() => _build(); + + _$GServerUpdateReq _build() { + _$GServerUpdateReq _$result; + try { + _$result = _$v ?? + new _$GServerUpdateReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GServerUpdateReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GServerUpdateReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerUpdateReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.dart b/lib/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.dart new file mode 100644 index 00000000..1bf5702a --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'server_update.var.gql.g.dart'; + +abstract class GServerUpdateVars + implements Built { + GServerUpdateVars._(); + + factory GServerUpdateVars( + [void Function(GServerUpdateVarsBuilder b) updates]) = + _$GServerUpdateVars; + + static Serializer get serializer => + _$gServerUpdateVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateVars.serializer, + this, + ) as Map); + + static GServerUpdateVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateVars.serializer, + json, + ); +} diff --git a/lib/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.g.dart b/lib/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.g.dart new file mode 100644 index 00000000..e262f371 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.g.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_update.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateVarsSerializer = + new _$GServerUpdateVarsSerializer(); + +class _$GServerUpdateVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GServerUpdateVars, _$GServerUpdateVars]; + @override + final String wireName = 'GServerUpdateVars'; + + @override + Iterable serialize(Serializers serializers, GServerUpdateVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GServerUpdateVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GServerUpdateVarsBuilder().build(); + } +} + +class _$GServerUpdateVars extends GServerUpdateVars { + factory _$GServerUpdateVars( + [void Function(GServerUpdateVarsBuilder)? updates]) => + (new GServerUpdateVarsBuilder()..update(updates))._build(); + + _$GServerUpdateVars._() : super._(); + + @override + GServerUpdateVars rebuild(void Function(GServerUpdateVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateVarsBuilder toBuilder() => + new GServerUpdateVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateVars; + } + + @override + int get hashCode { + return 646785332; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GServerUpdateVars').toString(); + } +} + +class GServerUpdateVarsBuilder + implements Builder { + _$GServerUpdateVars? _$v; + + GServerUpdateVarsBuilder(); + + @override + void replace(GServerUpdateVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateVars; + } + + @override + void update(void Function(GServerUpdateVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateVars build() => _build(); + + _$GServerUpdateVars _build() { + final _$result = _$v ?? new _$GServerUpdateVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/data/graphql/queries/about_query.graphql b/lib/src/features/about/data/graphql/queries/about_query.graphql new file mode 100644 index 00000000..8015afe6 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/about_query.graphql @@ -0,0 +1,7 @@ +# import '/src/features/about/domain/about/graphql/about_fragment.graphql' + +query About { + aboutServer { + ...AboutFragment + } +} diff --git a/lib/src/features/about/data/graphql/queries/server_update.graphql b/lib/src/features/about/data/graphql/queries/server_update.graphql new file mode 100644 index 00000000..6b814bf1 --- /dev/null +++ b/lib/src/features/about/data/graphql/queries/server_update.graphql @@ -0,0 +1,7 @@ +# import '/src/features/about/domain/server_update/graphql/service_update_fragment.graphql' + +query ServerUpdate { + checkForServerUpdates { + ...ServerUpdateFragment + } +} diff --git a/lib/src/features/about/data/graphql/query.dart b/lib/src/features/about/data/graphql/query.dart new file mode 100644 index 00000000..d47ac81c --- /dev/null +++ b/lib/src/features/about/data/graphql/query.dart @@ -0,0 +1,12 @@ +import 'package:ferry/ferry.dart'; + +import 'queries/__generated__/about_query.req.gql.dart'; +import 'queries/__generated__/server_update.req.gql.dart'; + +abstract class AboutQuery { + static GAboutReq get getAboutQuery => GAboutReq(); + + static GServerUpdateReq get serverUpdateQuery => GServerUpdateReq( + (req) => req..fetchPolicy = FetchPolicy.NoCache, + ); +} diff --git a/lib/src/features/about/domain/about/about_dto.dart b/lib/src/features/about/domain/about/about_dto.dart new file mode 100644 index 00000000..f6247949 --- /dev/null +++ b/lib/src/features/about/domain/about/about_dto.dart @@ -0,0 +1,9 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'graphql/__generated__/about_fragment.data.gql.dart'; + +typedef AboutDto = GAboutFragment; diff --git a/lib/src/features/about/domain/about/about_model.dart b/lib/src/features/about/domain/about/about_model.dart deleted file mode 100644 index 8eb5d6d6..00000000 --- a/lib/src/features/about/domain/about/about_model.dart +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:freezed_annotation/freezed_annotation.dart'; - -part 'about_model.freezed.dart'; -part 'about_model.g.dart'; - -@freezed -class About with _$About { - const factory About({ - String? name, - String? version, - String? revision, - String? buildType, - int? buildTime, - String? github, - String? discord, - }) = _About; - - factory About.fromJson(Map json) => _$AboutFromJson(json); -} diff --git a/lib/src/features/about/domain/about/about_model.freezed.dart b/lib/src/features/about/domain/about/about_model.freezed.dart deleted file mode 100644 index ec5ba4d9..00000000 --- a/lib/src/features/about/domain/about/about_model.freezed.dart +++ /dev/null @@ -1,275 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'about_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -About _$AboutFromJson(Map json) { - return _About.fromJson(json); -} - -/// @nodoc -mixin _$About { - String? get name => throw _privateConstructorUsedError; - String? get version => throw _privateConstructorUsedError; - String? get revision => throw _privateConstructorUsedError; - String? get buildType => throw _privateConstructorUsedError; - int? get buildTime => throw _privateConstructorUsedError; - String? get github => throw _privateConstructorUsedError; - String? get discord => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $AboutCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $AboutCopyWith<$Res> { - factory $AboutCopyWith(About value, $Res Function(About) then) = - _$AboutCopyWithImpl<$Res, About>; - @useResult - $Res call( - {String? name, - String? version, - String? revision, - String? buildType, - int? buildTime, - String? github, - String? discord}); -} - -/// @nodoc -class _$AboutCopyWithImpl<$Res, $Val extends About> - implements $AboutCopyWith<$Res> { - _$AboutCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = freezed, - Object? version = freezed, - Object? revision = freezed, - Object? buildType = freezed, - Object? buildTime = freezed, - Object? github = freezed, - Object? discord = freezed, - }) { - return _then(_value.copyWith( - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - revision: freezed == revision - ? _value.revision - : revision // ignore: cast_nullable_to_non_nullable - as String?, - buildType: freezed == buildType - ? _value.buildType - : buildType // ignore: cast_nullable_to_non_nullable - as String?, - buildTime: freezed == buildTime - ? _value.buildTime - : buildTime // ignore: cast_nullable_to_non_nullable - as int?, - github: freezed == github - ? _value.github - : github // ignore: cast_nullable_to_non_nullable - as String?, - discord: freezed == discord - ? _value.discord - : discord // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$AboutImplCopyWith<$Res> implements $AboutCopyWith<$Res> { - factory _$$AboutImplCopyWith( - _$AboutImpl value, $Res Function(_$AboutImpl) then) = - __$$AboutImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? name, - String? version, - String? revision, - String? buildType, - int? buildTime, - String? github, - String? discord}); -} - -/// @nodoc -class __$$AboutImplCopyWithImpl<$Res> - extends _$AboutCopyWithImpl<$Res, _$AboutImpl> - implements _$$AboutImplCopyWith<$Res> { - __$$AboutImplCopyWithImpl( - _$AboutImpl _value, $Res Function(_$AboutImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = freezed, - Object? version = freezed, - Object? revision = freezed, - Object? buildType = freezed, - Object? buildTime = freezed, - Object? github = freezed, - Object? discord = freezed, - }) { - return _then(_$AboutImpl( - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - version: freezed == version - ? _value.version - : version // ignore: cast_nullable_to_non_nullable - as String?, - revision: freezed == revision - ? _value.revision - : revision // ignore: cast_nullable_to_non_nullable - as String?, - buildType: freezed == buildType - ? _value.buildType - : buildType // ignore: cast_nullable_to_non_nullable - as String?, - buildTime: freezed == buildTime - ? _value.buildTime - : buildTime // ignore: cast_nullable_to_non_nullable - as int?, - github: freezed == github - ? _value.github - : github // ignore: cast_nullable_to_non_nullable - as String?, - discord: freezed == discord - ? _value.discord - : discord // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$AboutImpl implements _About { - const _$AboutImpl( - {this.name, - this.version, - this.revision, - this.buildType, - this.buildTime, - this.github, - this.discord}); - - factory _$AboutImpl.fromJson(Map json) => - _$$AboutImplFromJson(json); - - @override - final String? name; - @override - final String? version; - @override - final String? revision; - @override - final String? buildType; - @override - final int? buildTime; - @override - final String? github; - @override - final String? discord; - - @override - String toString() { - return 'About(name: $name, version: $version, revision: $revision, buildType: $buildType, buildTime: $buildTime, github: $github, discord: $discord)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$AboutImpl && - (identical(other.name, name) || other.name == name) && - (identical(other.version, version) || other.version == version) && - (identical(other.revision, revision) || - other.revision == revision) && - (identical(other.buildType, buildType) || - other.buildType == buildType) && - (identical(other.buildTime, buildTime) || - other.buildTime == buildTime) && - (identical(other.github, github) || other.github == github) && - (identical(other.discord, discord) || other.discord == discord)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, name, version, revision, - buildType, buildTime, github, discord); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$AboutImplCopyWith<_$AboutImpl> get copyWith => - __$$AboutImplCopyWithImpl<_$AboutImpl>(this, _$identity); - - @override - Map toJson() { - return _$$AboutImplToJson( - this, - ); - } -} - -abstract class _About implements About { - const factory _About( - {final String? name, - final String? version, - final String? revision, - final String? buildType, - final int? buildTime, - final String? github, - final String? discord}) = _$AboutImpl; - - factory _About.fromJson(Map json) = _$AboutImpl.fromJson; - - @override - String? get name; - @override - String? get version; - @override - String? get revision; - @override - String? get buildType; - @override - int? get buildTime; - @override - String? get github; - @override - String? get discord; - @override - @JsonKey(ignore: true) - _$$AboutImplCopyWith<_$AboutImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/about/domain/about/about_model.g.dart b/lib/src/features/about/domain/about/about_model.g.dart deleted file mode 100644 index 6d9940c5..00000000 --- a/lib/src/features/about/domain/about/about_model.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'about_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$AboutImpl _$$AboutImplFromJson(Map json) => _$AboutImpl( - name: json['name'] as String?, - version: json['version'] as String?, - revision: json['revision'] as String?, - buildType: json['buildType'] as String?, - buildTime: json['buildTime'] as int?, - github: json['github'] as String?, - discord: json['discord'] as String?, - ); - -Map _$$AboutImplToJson(_$AboutImpl instance) => - { - 'name': instance.name, - 'version': instance.version, - 'revision': instance.revision, - 'buildType': instance.buildType, - 'buildTime': instance.buildTime, - 'github': instance.github, - 'discord': instance.discord, - }; diff --git a/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.ast.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.ast.gql.dart new file mode 100644 index 00000000..0cff9efe --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.ast.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const AboutFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'AboutFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'AboutServerPayload'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'buildTime'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'buildType'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'discord'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'github'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'revision'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'version'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [AboutFragment]); diff --git a/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.dart new file mode 100644 index 00000000..a588a26c --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.dart @@ -0,0 +1,70 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'about_fragment.data.gql.g.dart'; + +abstract class GAboutFragment { + String get G__typename; + _i1.GLongString get buildTime; + String get buildType; + String get discord; + String get github; + String get name; + String get revision; + String get version; + Map toJson(); +} + +abstract class GAboutFragmentData + implements + Built, + GAboutFragment { + GAboutFragmentData._(); + + factory GAboutFragmentData( + [void Function(GAboutFragmentDataBuilder b) updates]) = + _$GAboutFragmentData; + + static void _initializeBuilder(GAboutFragmentDataBuilder b) => + b..G__typename = 'AboutServerPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i1.GLongString get buildTime; + @override + String get buildType; + @override + String get discord; + @override + String get github; + @override + String get name; + @override + String get revision; + @override + String get version; + static Serializer get serializer => + _$gAboutFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GAboutFragmentData.serializer, + this, + ) as Map); + + static GAboutFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GAboutFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.g.dart b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.g.dart new file mode 100644 index 00000000..c324e5df --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.g.dart @@ -0,0 +1,315 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutFragmentDataSerializer = + new _$GAboutFragmentDataSerializer(); + +class _$GAboutFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAboutFragmentData, _$GAboutFragmentData]; + @override + final String wireName = 'GAboutFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GAboutFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'buildTime', + serializers.serialize(object.buildTime, + specifiedType: const FullType(_i1.GLongString)), + 'buildType', + serializers.serialize(object.buildType, + specifiedType: const FullType(String)), + 'discord', + serializers.serialize(object.discord, + specifiedType: const FullType(String)), + 'github', + serializers.serialize(object.github, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'revision', + serializers.serialize(object.revision, + specifiedType: const FullType(String)), + 'version', + serializers.serialize(object.version, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAboutFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'buildTime': + result.buildTime.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'buildType': + result.buildType = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'discord': + result.discord = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'github': + result.github = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'revision': + result.revision = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'version': + result.version = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAboutFragmentData extends GAboutFragmentData { + @override + final String G__typename; + @override + final _i1.GLongString buildTime; + @override + final String buildType; + @override + final String discord; + @override + final String github; + @override + final String name; + @override + final String revision; + @override + final String version; + + factory _$GAboutFragmentData( + [void Function(GAboutFragmentDataBuilder)? updates]) => + (new GAboutFragmentDataBuilder()..update(updates))._build(); + + _$GAboutFragmentData._( + {required this.G__typename, + required this.buildTime, + required this.buildType, + required this.discord, + required this.github, + required this.name, + required this.revision, + required this.version}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + buildTime, r'GAboutFragmentData', 'buildTime'); + BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutFragmentData', 'buildType'); + BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutFragmentData', 'discord'); + BuiltValueNullFieldError.checkNotNull( + github, r'GAboutFragmentData', 'github'); + BuiltValueNullFieldError.checkNotNull(name, r'GAboutFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutFragmentData', 'revision'); + BuiltValueNullFieldError.checkNotNull( + version, r'GAboutFragmentData', 'version'); + } + + @override + GAboutFragmentData rebuild( + void Function(GAboutFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutFragmentDataBuilder toBuilder() => + new GAboutFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutFragmentData && + G__typename == other.G__typename && + buildTime == other.buildTime && + buildType == other.buildType && + discord == other.discord && + github == other.github && + name == other.name && + revision == other.revision && + version == other.version; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, buildTime.hashCode); + _$hash = $jc(_$hash, buildType.hashCode); + _$hash = $jc(_$hash, discord.hashCode); + _$hash = $jc(_$hash, github.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, revision.hashCode); + _$hash = $jc(_$hash, version.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutFragmentData') + ..add('G__typename', G__typename) + ..add('buildTime', buildTime) + ..add('buildType', buildType) + ..add('discord', discord) + ..add('github', github) + ..add('name', name) + ..add('revision', revision) + ..add('version', version)) + .toString(); + } +} + +class GAboutFragmentDataBuilder + implements Builder { + _$GAboutFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i1.GLongStringBuilder? _buildTime; + _i1.GLongStringBuilder get buildTime => + _$this._buildTime ??= new _i1.GLongStringBuilder(); + set buildTime(_i1.GLongStringBuilder? buildTime) => + _$this._buildTime = buildTime; + + String? _buildType; + String? get buildType => _$this._buildType; + set buildType(String? buildType) => _$this._buildType = buildType; + + String? _discord; + String? get discord => _$this._discord; + set discord(String? discord) => _$this._discord = discord; + + String? _github; + String? get github => _$this._github; + set github(String? github) => _$this._github = github; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _revision; + String? get revision => _$this._revision; + set revision(String? revision) => _$this._revision = revision; + + String? _version; + String? get version => _$this._version; + set version(String? version) => _$this._version = version; + + GAboutFragmentDataBuilder() { + GAboutFragmentData._initializeBuilder(this); + } + + GAboutFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _buildTime = $v.buildTime.toBuilder(); + _buildType = $v.buildType; + _discord = $v.discord; + _github = $v.github; + _name = $v.name; + _revision = $v.revision; + _version = $v.version; + _$v = null; + } + return this; + } + + @override + void replace(GAboutFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutFragmentData; + } + + @override + void update(void Function(GAboutFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutFragmentData build() => _build(); + + _$GAboutFragmentData _build() { + _$GAboutFragmentData _$result; + try { + _$result = _$v ?? + new _$GAboutFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAboutFragmentData', 'G__typename'), + buildTime: buildTime.build(), + buildType: BuiltValueNullFieldError.checkNotNull( + buildType, r'GAboutFragmentData', 'buildType'), + discord: BuiltValueNullFieldError.checkNotNull( + discord, r'GAboutFragmentData', 'discord'), + github: BuiltValueNullFieldError.checkNotNull( + github, r'GAboutFragmentData', 'github'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAboutFragmentData', 'name'), + revision: BuiltValueNullFieldError.checkNotNull( + revision, r'GAboutFragmentData', 'revision'), + version: BuiltValueNullFieldError.checkNotNull( + version, r'GAboutFragmentData', 'version'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'buildTime'; + buildTime.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.req.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.req.gql.dart new file mode 100644 index 00000000..5e69a516 --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.req.gql.dart @@ -0,0 +1,65 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'about_fragment.req.gql.g.dart'; + +abstract class GAboutFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GAboutFragmentData, _i3.GAboutFragmentVars> { + GAboutFragmentReq._(); + + factory GAboutFragmentReq( + [void Function(GAboutFragmentReqBuilder b) updates]) = + _$GAboutFragmentReq; + + static void _initializeBuilder(GAboutFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'AboutFragment'; + + @override + _i3.GAboutFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GAboutFragmentData? parseData(Map json) => + _i2.GAboutFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GAboutFragmentData data) => data.toJson(); + + static Serializer get serializer => + _$gAboutFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAboutFragmentReq.serializer, + this, + ) as Map); + + static GAboutFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAboutFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.req.gql.g.dart b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.req.gql.g.dart new file mode 100644 index 00000000..8cd0b8aa --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.req.gql.g.dart @@ -0,0 +1,231 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutFragmentReqSerializer = + new _$GAboutFragmentReqSerializer(); + +class _$GAboutFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAboutFragmentReq, _$GAboutFragmentReq]; + @override + final String wireName = 'GAboutFragmentReq'; + + @override + Iterable serialize(Serializers serializers, GAboutFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAboutFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GAboutFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAboutFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GAboutFragmentVars))! + as _i3.GAboutFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GAboutFragmentReq extends GAboutFragmentReq { + @override + final _i3.GAboutFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GAboutFragmentReq( + [void Function(GAboutFragmentReqBuilder)? updates]) => + (new GAboutFragmentReqBuilder()..update(updates))._build(); + + _$GAboutFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GAboutFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GAboutFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GAboutFragmentReq', 'idFields'); + } + + @override + GAboutFragmentReq rebuild(void Function(GAboutFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutFragmentReqBuilder toBuilder() => + new GAboutFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAboutFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GAboutFragmentReqBuilder + implements Builder { + _$GAboutFragmentReq? _$v; + + _i3.GAboutFragmentVarsBuilder? _vars; + _i3.GAboutFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GAboutFragmentVarsBuilder(); + set vars(_i3.GAboutFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GAboutFragmentReqBuilder() { + GAboutFragmentReq._initializeBuilder(this); + } + + GAboutFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GAboutFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutFragmentReq; + } + + @override + void update(void Function(GAboutFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutFragmentReq build() => _build(); + + _$GAboutFragmentReq _build() { + _$GAboutFragmentReq _$result; + try { + _$result = _$v ?? + new _$GAboutFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GAboutFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GAboutFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAboutFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.dart b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.dart new file mode 100644 index 00000000..38e7b594 --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'about_fragment.var.gql.g.dart'; + +abstract class GAboutFragmentVars + implements Built { + GAboutFragmentVars._(); + + factory GAboutFragmentVars( + [void Function(GAboutFragmentVarsBuilder b) updates]) = + _$GAboutFragmentVars; + + static Serializer get serializer => + _$gAboutFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAboutFragmentVars.serializer, + this, + ) as Map); + + static GAboutFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAboutFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.g.dart b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.g.dart new file mode 100644 index 00000000..6ce34bba --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.g.dart @@ -0,0 +1,94 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'about_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAboutFragmentVarsSerializer = + new _$GAboutFragmentVarsSerializer(); + +class _$GAboutFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAboutFragmentVars, _$GAboutFragmentVars]; + @override + final String wireName = 'GAboutFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GAboutFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GAboutFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GAboutFragmentVarsBuilder().build(); + } +} + +class _$GAboutFragmentVars extends GAboutFragmentVars { + factory _$GAboutFragmentVars( + [void Function(GAboutFragmentVarsBuilder)? updates]) => + (new GAboutFragmentVarsBuilder()..update(updates))._build(); + + _$GAboutFragmentVars._() : super._(); + + @override + GAboutFragmentVars rebuild( + void Function(GAboutFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAboutFragmentVarsBuilder toBuilder() => + new GAboutFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAboutFragmentVars; + } + + @override + int get hashCode { + return 756068277; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GAboutFragmentVars').toString(); + } +} + +class GAboutFragmentVarsBuilder + implements Builder { + _$GAboutFragmentVars? _$v; + + GAboutFragmentVarsBuilder(); + + @override + void replace(GAboutFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAboutFragmentVars; + } + + @override + void update(void Function(GAboutFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAboutFragmentVars build() => _build(); + + _$GAboutFragmentVars _build() { + final _$result = _$v ?? new _$GAboutFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/about/graphql/about_fragment.graphql b/lib/src/features/about/domain/about/graphql/about_fragment.graphql new file mode 100644 index 00000000..13726b5b --- /dev/null +++ b/lib/src/features/about/domain/about/graphql/about_fragment.graphql @@ -0,0 +1,9 @@ +fragment AboutFragment on AboutServerPayload { + buildTime + buildType + discord + github + name + revision + version +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.ast.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.ast.gql.dart new file mode 100644 index 00000000..5025154f --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ServerUpdateFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ServerUpdateFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckForServerUpdatesPayload'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'channel'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'tag'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ServerUpdateFragment]); diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.dart new file mode 100644 index 00000000..9d9f0c88 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.dart @@ -0,0 +1,56 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'service_update_fragment.data.gql.g.dart'; + +abstract class GServerUpdateFragment { + String get G__typename; + String get channel; + String get tag; + String get url; + Map toJson(); +} + +abstract class GServerUpdateFragmentData + implements + Built, + GServerUpdateFragment { + GServerUpdateFragmentData._(); + + factory GServerUpdateFragmentData( + [void Function(GServerUpdateFragmentDataBuilder b) updates]) = + _$GServerUpdateFragmentData; + + static void _initializeBuilder(GServerUpdateFragmentDataBuilder b) => + b..G__typename = 'CheckForServerUpdatesPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get channel; + @override + String get tag; + @override + String get url; + static Serializer get serializer => + _$gServerUpdateFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateFragmentData.serializer, + this, + ) as Map); + + static GServerUpdateFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.g.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.g.dart new file mode 100644 index 00000000..7c83ceed --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.g.dart @@ -0,0 +1,216 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'service_update_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateFragmentDataSerializer = + new _$GServerUpdateFragmentDataSerializer(); + +class _$GServerUpdateFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateFragmentData, + _$GServerUpdateFragmentData + ]; + @override + final String wireName = 'GServerUpdateFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'channel', + serializers.serialize(object.channel, + specifiedType: const FullType(String)), + 'tag', + serializers.serialize(object.tag, specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GServerUpdateFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'channel': + result.channel = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'tag': + result.tag = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateFragmentData extends GServerUpdateFragmentData { + @override + final String G__typename; + @override + final String channel; + @override + final String tag; + @override + final String url; + + factory _$GServerUpdateFragmentData( + [void Function(GServerUpdateFragmentDataBuilder)? updates]) => + (new GServerUpdateFragmentDataBuilder()..update(updates))._build(); + + _$GServerUpdateFragmentData._( + {required this.G__typename, + required this.channel, + required this.tag, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateFragmentData', 'channel'); + BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateFragmentData', 'tag'); + BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateFragmentData', 'url'); + } + + @override + GServerUpdateFragmentData rebuild( + void Function(GServerUpdateFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateFragmentDataBuilder toBuilder() => + new GServerUpdateFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateFragmentData && + G__typename == other.G__typename && + channel == other.channel && + tag == other.tag && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, channel.hashCode); + _$hash = $jc(_$hash, tag.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateFragmentData') + ..add('G__typename', G__typename) + ..add('channel', channel) + ..add('tag', tag) + ..add('url', url)) + .toString(); + } +} + +class GServerUpdateFragmentDataBuilder + implements + Builder { + _$GServerUpdateFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _channel; + String? get channel => _$this._channel; + set channel(String? channel) => _$this._channel = channel; + + String? _tag; + String? get tag => _$this._tag; + set tag(String? tag) => _$this._tag = tag; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GServerUpdateFragmentDataBuilder() { + GServerUpdateFragmentData._initializeBuilder(this); + } + + GServerUpdateFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _channel = $v.channel; + _tag = $v.tag; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateFragmentData; + } + + @override + void update(void Function(GServerUpdateFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateFragmentData build() => _build(); + + _$GServerUpdateFragmentData _build() { + final _$result = _$v ?? + new _$GServerUpdateFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerUpdateFragmentData', 'G__typename'), + channel: BuiltValueNullFieldError.checkNotNull( + channel, r'GServerUpdateFragmentData', 'channel'), + tag: BuiltValueNullFieldError.checkNotNull( + tag, r'GServerUpdateFragmentData', 'tag'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GServerUpdateFragmentData', 'url'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.req.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.req.gql.dart new file mode 100644 index 00000000..8474ef4b --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'service_update_fragment.req.gql.g.dart'; + +abstract class GServerUpdateFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GServerUpdateFragmentData, + _i3.GServerUpdateFragmentVars> { + GServerUpdateFragmentReq._(); + + factory GServerUpdateFragmentReq( + [void Function(GServerUpdateFragmentReqBuilder b) updates]) = + _$GServerUpdateFragmentReq; + + static void _initializeBuilder(GServerUpdateFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ServerUpdateFragment'; + + @override + _i3.GServerUpdateFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GServerUpdateFragmentData? parseData(Map json) => + _i2.GServerUpdateFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GServerUpdateFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gServerUpdateFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GServerUpdateFragmentReq.serializer, + this, + ) as Map); + + static GServerUpdateFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GServerUpdateFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.req.gql.g.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.req.gql.g.dart new file mode 100644 index 00000000..be2e2b01 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.req.gql.g.dart @@ -0,0 +1,238 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'service_update_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateFragmentReqSerializer = + new _$GServerUpdateFragmentReqSerializer(); + +class _$GServerUpdateFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateFragmentReq, + _$GServerUpdateFragmentReq + ]; + @override + final String wireName = 'GServerUpdateFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GServerUpdateFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GServerUpdateFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerUpdateFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GServerUpdateFragmentVars))! + as _i3.GServerUpdateFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GServerUpdateFragmentReq extends GServerUpdateFragmentReq { + @override + final _i3.GServerUpdateFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GServerUpdateFragmentReq( + [void Function(GServerUpdateFragmentReqBuilder)? updates]) => + (new GServerUpdateFragmentReqBuilder()..update(updates))._build(); + + _$GServerUpdateFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GServerUpdateFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GServerUpdateFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerUpdateFragmentReq', 'idFields'); + } + + @override + GServerUpdateFragmentReq rebuild( + void Function(GServerUpdateFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateFragmentReqBuilder toBuilder() => + new GServerUpdateFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerUpdateFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GServerUpdateFragmentReqBuilder + implements + Builder { + _$GServerUpdateFragmentReq? _$v; + + _i3.GServerUpdateFragmentVarsBuilder? _vars; + _i3.GServerUpdateFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GServerUpdateFragmentVarsBuilder(); + set vars(_i3.GServerUpdateFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GServerUpdateFragmentReqBuilder() { + GServerUpdateFragmentReq._initializeBuilder(this); + } + + GServerUpdateFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GServerUpdateFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateFragmentReq; + } + + @override + void update(void Function(GServerUpdateFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateFragmentReq build() => _build(); + + _$GServerUpdateFragmentReq _build() { + _$GServerUpdateFragmentReq _$result; + try { + _$result = _$v ?? + new _$GServerUpdateFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GServerUpdateFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerUpdateFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerUpdateFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.dart new file mode 100644 index 00000000..ea9cec20 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'service_update_fragment.var.gql.g.dart'; + +abstract class GServerUpdateFragmentVars + implements + Built { + GServerUpdateFragmentVars._(); + + factory GServerUpdateFragmentVars( + [void Function(GServerUpdateFragmentVarsBuilder b) updates]) = + _$GServerUpdateFragmentVars; + + static Serializer get serializer => + _$gServerUpdateFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerUpdateFragmentVars.serializer, + this, + ) as Map); + + static GServerUpdateFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerUpdateFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.g.dart b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.g.dart new file mode 100644 index 00000000..4eca4b00 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'service_update_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerUpdateFragmentVarsSerializer = + new _$GServerUpdateFragmentVarsSerializer(); + +class _$GServerUpdateFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerUpdateFragmentVars, + _$GServerUpdateFragmentVars + ]; + @override + final String wireName = 'GServerUpdateFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GServerUpdateFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GServerUpdateFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GServerUpdateFragmentVarsBuilder().build(); + } +} + +class _$GServerUpdateFragmentVars extends GServerUpdateFragmentVars { + factory _$GServerUpdateFragmentVars( + [void Function(GServerUpdateFragmentVarsBuilder)? updates]) => + (new GServerUpdateFragmentVarsBuilder()..update(updates))._build(); + + _$GServerUpdateFragmentVars._() : super._(); + + @override + GServerUpdateFragmentVars rebuild( + void Function(GServerUpdateFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerUpdateFragmentVarsBuilder toBuilder() => + new GServerUpdateFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerUpdateFragmentVars; + } + + @override + int get hashCode { + return 601218436; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GServerUpdateFragmentVars').toString(); + } +} + +class GServerUpdateFragmentVarsBuilder + implements + Builder { + _$GServerUpdateFragmentVars? _$v; + + GServerUpdateFragmentVarsBuilder(); + + @override + void replace(GServerUpdateFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerUpdateFragmentVars; + } + + @override + void update(void Function(GServerUpdateFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerUpdateFragmentVars build() => _build(); + + _$GServerUpdateFragmentVars _build() { + final _$result = _$v ?? new _$GServerUpdateFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/about/domain/server_update/graphql/service_update_fragment.graphql b/lib/src/features/about/domain/server_update/graphql/service_update_fragment.graphql new file mode 100644 index 00000000..df0c7196 --- /dev/null +++ b/lib/src/features/about/domain/server_update/graphql/service_update_fragment.graphql @@ -0,0 +1,6 @@ + +fragment ServerUpdateFragment on CheckForServerUpdatesPayload { + channel + tag + url +} diff --git a/lib/src/features/about/domain/server_update/server_update_model.dart b/lib/src/features/about/domain/server_update/server_update.dart similarity index 66% rename from lib/src/features/about/domain/server_update/server_update_model.dart rename to lib/src/features/about/domain/server_update/server_update.dart index ca243773..105560ff 100644 --- a/lib/src/features/about/domain/server_update/server_update_model.dart +++ b/lib/src/features/about/domain/server_update/server_update.dart @@ -6,8 +6,9 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -part 'server_update_model.freezed.dart'; -part 'server_update_model.g.dart'; +import 'graphql/__generated__/service_update_fragment.data.gql.dart'; + +part 'server_update.freezed.dart'; @freezed class ServerUpdate with _$ServerUpdate { @@ -16,7 +17,8 @@ class ServerUpdate with _$ServerUpdate { String? tag, String? url, }) = _ServerUpdate; +} - factory ServerUpdate.fromJson(Map json) => - _$ServerUpdateFromJson(json); +extension ServerUpdateConverter on GServerUpdateFragment { + ServerUpdate get toDto => ServerUpdate(channel: channel, tag: tag, url: url); } diff --git a/lib/src/features/about/domain/server_update/server_update_model.freezed.dart b/lib/src/features/about/domain/server_update/server_update.freezed.dart similarity index 86% rename from lib/src/features/about/domain/server_update/server_update_model.freezed.dart rename to lib/src/features/about/domain/server_update/server_update.freezed.dart index 6769c458..0e3ca838 100644 --- a/lib/src/features/about/domain/server_update/server_update_model.freezed.dart +++ b/lib/src/features/about/domain/server_update/server_update.freezed.dart @@ -3,7 +3,7 @@ // ignore_for_file: type=lint // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark -part of 'server_update_model.dart'; +part of 'server_update.dart'; // ************************************************************************** // FreezedGenerator @@ -12,11 +12,7 @@ part of 'server_update_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -ServerUpdate _$ServerUpdateFromJson(Map json) { - return _ServerUpdate.fromJson(json); -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$ServerUpdate { @@ -24,8 +20,9 @@ mixin _$ServerUpdate { String? get tag => throw _privateConstructorUsedError; String? get url => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of ServerUpdate + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ServerUpdateCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -49,6 +46,8 @@ class _$ServerUpdateCopyWithImpl<$Res, $Val extends ServerUpdate> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ServerUpdate + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -92,6 +91,8 @@ class __$$ServerUpdateImplCopyWithImpl<$Res> _$ServerUpdateImpl _value, $Res Function(_$ServerUpdateImpl) _then) : super(_value, _then); + /// Create a copy of ServerUpdate + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -117,13 +118,10 @@ class __$$ServerUpdateImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$ServerUpdateImpl implements _ServerUpdate { _$ServerUpdateImpl({this.channel, this.tag, this.url}); - factory _$ServerUpdateImpl.fromJson(Map json) => - _$$ServerUpdateImplFromJson(json); - @override final String? channel; @override @@ -146,22 +144,16 @@ class _$ServerUpdateImpl implements _ServerUpdate { (identical(other.url, url) || other.url == url)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, channel, tag, url); - @JsonKey(ignore: true) + /// Create a copy of ServerUpdate + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ServerUpdateImplCopyWith<_$ServerUpdateImpl> get copyWith => __$$ServerUpdateImplCopyWithImpl<_$ServerUpdateImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ServerUpdateImplToJson( - this, - ); - } } abstract class _ServerUpdate implements ServerUpdate { @@ -170,17 +162,17 @@ abstract class _ServerUpdate implements ServerUpdate { final String? tag, final String? url}) = _$ServerUpdateImpl; - factory _ServerUpdate.fromJson(Map json) = - _$ServerUpdateImpl.fromJson; - @override String? get channel; @override String? get tag; @override String? get url; + + /// Create a copy of ServerUpdate + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ServerUpdateImplCopyWith<_$ServerUpdateImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/about/domain/server_update/server_update_model.g.dart b/lib/src/features/about/domain/server_update/server_update_model.g.dart deleted file mode 100644 index e1ca2827..00000000 --- a/lib/src/features/about/domain/server_update/server_update_model.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'server_update_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ServerUpdateImpl _$$ServerUpdateImplFromJson(Map json) => - _$ServerUpdateImpl( - channel: json['channel'] as String?, - tag: json['tag'] as String?, - url: json['url'] as String?, - ); - -Map _$$ServerUpdateImplToJson(_$ServerUpdateImpl instance) => - { - 'channel': instance.channel, - 'tag': instance.tag, - 'url': instance.url, - }; diff --git a/lib/src/features/about/presentation/about/about_screen.dart b/lib/src/features/about/presentation/about/about_screen.dart index 061fbbb0..75435a45 100644 --- a/lib/src/features/about/presentation/about/about_screen.dart +++ b/lib/src/features/about/presentation/about/about_screen.dart @@ -14,13 +14,12 @@ import 'package:pub_semver/pub_semver.dart'; import '../../../../constants/app_sizes.dart'; import '../../../../constants/gen/assets.gen.dart'; import '../../../../constants/urls.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/launch_url_in_web.dart'; import '../../../../utils/misc/toast/toast.dart'; import '../../data/about_repository.dart'; -import '../../domain/about/about_model.dart'; -import '../../domain/server_update/server_update_model.dart'; +import '../../domain/about/about_dto.dart'; +import '../../domain/server_update/server_update.dart'; import 'controllers/about_controller.dart'; import 'widget/app_update_dialog.dart'; import 'widget/clipboard_list_tile.dart'; @@ -32,14 +31,14 @@ class AboutScreen extends HookConsumerWidget { void checkForServerUpdate({ required BuildContext context, required String serverVer, - required About about, + required AboutDto about, required Future?> Function() updateCallback, - required Toast toast, + required Toast? toast, }) { - toast.show(context.l10n!.searchingForUpdates); + toast?.show(context.l10n.searchingForUpdates); AsyncValue.guard(updateCallback).then( (value) { - toast.close(); + toast?.close(); try { value.whenOrNull( data: (data) { @@ -52,7 +51,7 @@ class AboutScreen extends HookConsumerWidget { final newVer = Version.parse(newUpdate.tag?.substring(1) ?? ""); if ((newVer.compareTo(currentVer)).isGreaterThan(0)) { appUpdateDialog( - title: about.name ?? context.l10n!.server, + title: about.name, newRelease: "${newVer.canonicalizedVersion}" " (${newUpdate.channel})", context: context, @@ -60,15 +59,21 @@ class AboutScreen extends HookConsumerWidget { url: newUpdate.url, ); } else { - toast.show(context.l10n!.noUpdatesAvailable); + toast?.show(context.l10n.noUpdatesAvailable); + } + }, + error: (error, stackTrace) { + if (toast != null) { + value.showToastOnError(toast); } }, - error: (error, stackTrace) => value.showToastOnError(toast), ); } catch (e) { - toast.showError( - kDebugMode ? e.toString() : context.l10n!.errorSomethingWentWrong, - ); + if (context.mounted) { + toast?.showError( + kDebugMode ? e.toString() : context.l10n.errorSomethingWentWrong, + ); + } } }, ); @@ -78,32 +83,36 @@ class AboutScreen extends HookConsumerWidget { required String? title, required BuildContext context, required Future> Function() updateCallback, - required Toast toast, + required Toast? toast, }) async { - toast.show(context.l10n!.searchingForUpdates); + toast?.show(context.l10n.searchingForUpdates); final result = await updateCallback(); - if (context.mounted) return; - toast.close(); + if (!context.mounted) return; + toast?.close(); result.whenOrNull( data: (version) { if (version != null) { appUpdateDialog( - title: title ?? context.l10n!.appTitle, + title: title ?? context.l10n.appTitle, newRelease: "v${version.canonicalizedVersion}", context: context, toast: toast, ); } else { - toast.show(context.l10n!.noUpdatesAvailable); + toast?.show(context.l10n.noUpdatesAvailable); + } + }, + error: (error, stackTrace) { + if (toast != null) { + result.showToastOnError(toast); } }, - error: (error, stackTrace) => result.showToastOnError(toast), ); } @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); final aboutAsync = ref.watch(aboutProvider); final about = aboutAsync.valueOrNull; final serverVer = about?.buildType == "Stable" @@ -112,12 +121,14 @@ class AboutScreen extends HookConsumerWidget { final packageInfo = ref.watch(packageInfoProvider); useEffect(() { - aboutAsync.showToastOnError(toast, withMicrotask: true); + if (toast != null) { + aboutAsync.showToastOnError(toast, withMicrotask: true); + } return; }, [aboutAsync.valueOrNull]); return Scaffold( - appBar: AppBar(title: Text(context.l10n!.about)), + appBar: AppBar(title: Text(context.l10n.about)), body: RefreshIndicator( onRefresh: () => ref.refresh(aboutProvider.future), child: ListView( @@ -128,22 +139,22 @@ class AboutScreen extends HookConsumerWidget { ), const Divider(), ClipboardListTile( - title: context.l10n!.client, + title: context.l10n.client, value: packageInfo.appName, ), ClipboardListTile( - title: context.l10n!.clientVersion, + title: context.l10n.clientVersion, value: "v${packageInfo.version}", ), ListTile( - title: Text(context.l10n!.whatsNew), + title: Text(context.l10n.whatsNew), onTap: () async { final url = AppUrls.sorayomiWhatsNew.url + packageInfo.version; await launchUrlInWeb(context, url, toast); }, ), ListTile( - title: Text(context.l10n!.checkForUpdates), + title: Text(context.l10n.checkForUpdates), onTap: () => checkForUpdate( title: packageInfo.appName, context: context, @@ -154,29 +165,31 @@ class AboutScreen extends HookConsumerWidget { if (about != null) ...[ const Divider(), ClipboardListTile( - title: context.l10n!.server, + title: context.l10n.server, value: about.name, ), ClipboardListTile( - title: context.l10n!.channel, + title: context.l10n.channel, value: about.buildType, ), if (serverVer.isNotBlank) ClipboardListTile( - title: context.l10n!.serverVersion, + title: context.l10n.serverVersion, value: serverVer, ), ClipboardListTile( - title: context.l10n!.buildTime, - value: (about.buildTime).isNull + title: context.l10n.buildTime, + value: (about.buildTime.value).isNull ? null : DateTime.fromMillisecondsSinceEpoch( - (about.buildTime.getValueOnNullOrNegative()) * 1000, + (int.tryParse(about.buildTime.value) + .getValueOnNullOrNegative()) * + 1000, ).toDateString, ), if (serverVer.isNotBlank) ListTile( - title: Text(context.l10n!.checkForServerUpdates), + title: Text(context.l10n.checkForServerUpdates), onTap: () => checkForServerUpdate( context: context, serverVer: serverVer ?? "", @@ -193,20 +206,20 @@ class AboutScreen extends HookConsumerWidget { alignment: WrapAlignment.spaceEvenly, children: [ MediaLaunchButton( - title: "${context.l10n!.gitHub} ", + title: "${context.l10n.gitHub} ", iconData: FontAwesomeIcons.github, url: AppUrls.sorayomiGithubUrl.url, toast: toast, ), if ((about?.discord).isNotBlank) MediaLaunchButton( - title: context.l10n!.discord, + title: context.l10n.discord, iconData: FontAwesomeIcons.discord, - url: about!.discord!, + url: about!.discord, toast: toast, ), MediaLaunchButton( - title: context.l10n!.reddit, + title: context.l10n.reddit, iconData: FontAwesomeIcons.reddit, url: AppUrls.tachideskReddit.url, toast: toast, diff --git a/lib/src/features/about/presentation/about/controllers/about_controller.dart b/lib/src/features/about/presentation/about/controllers/about_controller.dart index cfc547a6..f7d5848c 100644 --- a/lib/src/features/about/presentation/about/controllers/about_controller.dart +++ b/lib/src/features/about/presentation/about/controllers/about_controller.dart @@ -4,24 +4,20 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; +import 'dart:async'; + +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../data/about_repository.dart'; -import '../../../domain/about/about_model.dart'; +import '../../../domain/about/about_dto.dart'; part 'about_controller.g.dart'; @riverpod -Future about(AboutRef ref) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = - await ref.watch(aboutRepositoryProvider).getAbout(cancelToken: token); - ref.keepAlive(); - return result; -} +Stream about(Ref ref) => + ref.watch(aboutRepositoryProvider).getAbout(); @riverpod PackageInfo packageInfo(ref) => throw UnimplementedError(); diff --git a/lib/src/features/about/presentation/about/controllers/about_controller.g.dart b/lib/src/features/about/presentation/about/controllers/about_controller.g.dart index d9ba08f0..0180df3d 100644 --- a/lib/src/features/about/presentation/about/controllers/about_controller.g.dart +++ b/lib/src/features/about/presentation/about/controllers/about_controller.g.dart @@ -6,11 +6,11 @@ part of 'about_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$aboutHash() => r'71e0d6115e3d5baeb6cd30cea233be2cba2142bb'; +String _$aboutHash() => r'009cada3daaab584c902ff5c2f0d84999d29b78e'; /// See also [about]. @ProviderFor(about) -final aboutProvider = AutoDisposeFutureProvider.internal( +final aboutProvider = AutoDisposeStreamProvider.internal( about, name: r'aboutProvider', debugGetCreateSourceHash: @@ -19,7 +19,9 @@ final aboutProvider = AutoDisposeFutureProvider.internal( allTransitiveDependencies: null, ); -typedef AboutRef = AutoDisposeFutureProviderRef; +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef AboutRef = AutoDisposeStreamProviderRef; String _$packageInfoHash() => r'a5025c8498b8f2eacf55450228619ff1477adc05'; /// See also [packageInfo]. @@ -33,6 +35,8 @@ final packageInfoProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef PackageInfoRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/about/presentation/about/widget/app_update_dialog.dart b/lib/src/features/about/presentation/about/widget/app_update_dialog.dart index 19d73342..ad0e3813 100644 --- a/lib/src/features/about/presentation/about/widget/app_update_dialog.dart +++ b/lib/src/features/about/presentation/about/widget/app_update_dialog.dart @@ -16,19 +16,19 @@ void appUpdateDialog({ required String title, required String newRelease, required BuildContext context, - required Toast toast, + required Toast? toast, String? url, }) => showDialog( context: context, builder: (context) { return AlertDialog( - title: Text(context.l10n!.newUpdateAvailable), - content: Text(context.l10n!.versionAvailable(title, newRelease)), + title: Text(context.l10n.newUpdateAvailable), + content: Text(context.l10n.versionAvailable(title, newRelease)), actions: [ TextButton( onPressed: () => Navigator.pop(context), - child: Text(context.l10n!.close), + child: Text(context.l10n.close), ), ElevatedButton.icon( onPressed: () { @@ -37,7 +37,7 @@ void appUpdateDialog({ Navigator.pop(context); }, icon: const Icon(FontAwesomeIcons.github), - label: Text(context.l10n!.gitHub), + label: Text(context.l10n.gitHub), ), ], ); diff --git a/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart b/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart index 335ca56a..6901e162 100644 --- a/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart +++ b/lib/src/features/about/presentation/about/widget/clipboard_list_tile.dart @@ -20,21 +20,17 @@ class ClipboardListTile extends ConsumerWidget { final String title; final String? value; @override - Widget build(BuildContext context, WidgetRef ref) { - return ListTile( - title: Text(title), - subtitle: value.isNotBlank ? Text(value!) : null, - onTap: value.isNotBlank - ? () { - final msg = "$title: $value"; - Clipboard.setData( - ClipboardData(text: msg), - ); - ref - .read(toastProvider(context)) - .instantShow(context.l10n!.copyMsg(msg)); - } - : null, - ); - } + Widget build(BuildContext context, WidgetRef ref) => ListTile( + title: Text(title), + subtitle: value.isNotBlank ? Text(value!) : null, + onTap: value.isNotBlank + ? () { + final msg = "$title: $value"; + Clipboard.setData(ClipboardData(text: msg)); + ref + .read(toastProvider) + ?.show(context.l10n.copyMsg(msg), instantShow: true); + } + : null, + ); } diff --git a/lib/src/features/about/presentation/about/widget/media_launch_button.dart b/lib/src/features/about/presentation/about/widget/media_launch_button.dart index 59439074..fb100d60 100644 --- a/lib/src/features/about/presentation/about/widget/media_launch_button.dart +++ b/lib/src/features/about/presentation/about/widget/media_launch_button.dart @@ -19,7 +19,7 @@ class MediaLaunchButton extends StatelessWidget { required this.url, }); - final Toast toast; + final Toast? toast; final String title; final IconData iconData; final String url; diff --git a/lib/src/features/browse_center/data/extension_repository/extension_repository.dart b/lib/src/features/browse_center/data/extension_repository/extension_repository.dart index fdf1e324..5f442f63 100644 --- a/lib/src/features/browse_center/data/extension_repository/extension_repository.dart +++ b/lib/src/features/browse_center/data/extension_repository/extension_repository.dart @@ -4,89 +4,59 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; - +import 'package:ferry/ferry.dart'; import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:http/http.dart' as http; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../../constants/endpoints.dart'; import '../../../../global_providers/global_providers.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/storage/dio/dio_client.dart'; import '../../domain/extension/extension_model.dart'; +import 'graphql/query.dart'; part 'extension_repository.g.dart'; class ExtensionRepository { - final DioClient dioClient; + final Client ferryClient; - ExtensionRepository(this.dioClient); + ExtensionRepository(this.ferryClient); Future installExtensionFile( BuildContext context, { PlatformFile? file, - CancelToken? cancelToken, }) async { - if ((file?.path).isBlank) { - throw context.l10n!.errorFilePick; + if ((file?.name).isBlank) { + throw context.l10n.errorFilePick; } if (!(file!.name.endsWith('.apk'))) { - throw context.l10n!.errorFilePickUnknownExtension(".apk"); + throw context.l10n.errorFilePickUnknownExtension(".apk"); } - return (file.path).isNotBlank - ? (await dioClient.post( - ExtensionUrl.installFile, - data: FormData.fromMap({ - 'file': MultipartFile.fromFileSync( - file.path!, - filename: file.name, - ) - }), - cancelToken: cancelToken, - )) - .data - : null; + return (ferryClient.fetch( + ExtensionQuery.installExternalExtension( + await http.MultipartFile.fromPath("extensionFile", file.path!)), + )).first; } - Future installExtension( - String pkgName, { - CancelToken? cancelToken, - }) => - dioClient.get( - ExtensionUrl.installPkg(pkgName), - cancelToken: cancelToken, - ); + Future installExtension(String pkgName) => (ferryClient + .fetch(ExtensionQuery.updateExtension(pkgName, install: true))) + .first; - Future uninstallExtension( - String pkgName, { - CancelToken? cancelToken, - }) => - dioClient.get( - ExtensionUrl.uninstallPkg(pkgName), - cancelToken: cancelToken, - ); + Future uninstallExtension(String pkgName) => (ferryClient + .fetch(ExtensionQuery.updateExtension(pkgName, uninstall: true))) + .first; - Future updateExtension( - String pkgName, { - CancelToken? cancelToken, - }) => - dioClient.get( - ExtensionUrl.updatePkg(pkgName), - cancelToken: cancelToken, - ); + Future updateExtension(String pkgName) => + (ferryClient.fetch(ExtensionQuery.updateExtension(pkgName, update: true))) + .first; - Future?> getExtensionList({CancelToken? cancelToken}) async => - (await dioClient.get, Extension>( - ExtensionUrl.list, - decoder: (e) => - e is Map ? Extension.fromJson(e) : Extension(), - cancelToken: cancelToken, - )) - .data; + Stream?> getExtensionListStream() => (ferryClient.fetch( + ExtensionQuery.extensionList(), + (data) => data.fetchExtensions?.extensions.toList(), + )); } @riverpod -ExtensionRepository extensionRepository(ExtensionRepositoryRef ref) => - ExtensionRepository(ref.watch(dioClientKeyProvider)); +ExtensionRepository extensionRepository(Ref ref) => + ExtensionRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/browse_center/data/extension_repository/extension_repository.g.dart b/lib/src/features/browse_center/data/extension_repository/extension_repository.g.dart index 20b89aa4..65ef1894 100644 --- a/lib/src/features/browse_center/data/extension_repository/extension_repository.g.dart +++ b/lib/src/features/browse_center/data/extension_repository/extension_repository.g.dart @@ -7,7 +7,7 @@ part of 'extension_repository.dart'; // ************************************************************************** String _$extensionRepositoryHash() => - r'd5be612415075dc1ca3ac53de932d9ec4ee92ff2'; + r'b090acfac94ecffbf72f049fd0cab36a2f2049de'; /// See also [extensionRepository]. @ProviderFor(extensionRepository) @@ -22,6 +22,8 @@ final extensionRepositoryProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef ExtensionRepositoryRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.ast.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.ast.gql.dart new file mode 100644 index 00000000..c7f38259 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.ast.gql.dart @@ -0,0 +1,52 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.ast.gql.dart' + as _i2; + +const FetchExtensionList = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'FetchExtensionList'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'fetchExtensions'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: []), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'extensions'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ExtensionFragment'), + directives: [], + ) + ]), + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + FetchExtensionList, + _i2.ExtensionFragment, +]); diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.dart new file mode 100644 index 00000000..b8cda321 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.dart @@ -0,0 +1,137 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fetch_extension_list.data.gql.g.dart'; + +abstract class GFetchExtensionListData + implements Built { + GFetchExtensionListData._(); + + factory GFetchExtensionListData( + [void Function(GFetchExtensionListDataBuilder b) updates]) = + _$GFetchExtensionListData; + + static void _initializeBuilder(GFetchExtensionListDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GFetchExtensionListData_fetchExtensions? get fetchExtensions; + static Serializer get serializer => + _$gFetchExtensionListDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchExtensionListData.serializer, + this, + ) as Map); + + static GFetchExtensionListData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchExtensionListData.serializer, + json, + ); +} + +abstract class GFetchExtensionListData_fetchExtensions + implements + Built { + GFetchExtensionListData_fetchExtensions._(); + + factory GFetchExtensionListData_fetchExtensions( + [void Function(GFetchExtensionListData_fetchExtensionsBuilder b) + updates]) = _$GFetchExtensionListData_fetchExtensions; + + static void _initializeBuilder( + GFetchExtensionListData_fetchExtensionsBuilder b) => + b..G__typename = 'FetchExtensionsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + BuiltList get extensions; + static Serializer get serializer => + _$gFetchExtensionListDataFetchExtensionsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchExtensionListData_fetchExtensions.serializer, + this, + ) as Map); + + static GFetchExtensionListData_fetchExtensions? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFetchExtensionListData_fetchExtensions.serializer, + json, + ); +} + +abstract class GFetchExtensionListData_fetchExtensions_extensions + implements + Built, + _i2.GExtensionFragment { + GFetchExtensionListData_fetchExtensions_extensions._(); + + factory GFetchExtensionListData_fetchExtensions_extensions( + [void Function( + GFetchExtensionListData_fetchExtensions_extensionsBuilder b) + updates]) = _$GFetchExtensionListData_fetchExtensions_extensions; + + static void _initializeBuilder( + GFetchExtensionListData_fetchExtensions_extensionsBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get apkName; + @override + bool get hasUpdate; + @override + String get iconUrl; + @override + bool get isInstalled; + @override + bool get isNsfw; + @override + bool get isObsolete; + @override + String get lang; + @override + String get name; + @override + String get pkgName; + @override + String? get repo; + @override + int get versionCode; + @override + String get versionName; + static Serializer + get serializer => + _$gFetchExtensionListDataFetchExtensionsExtensionsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchExtensionListData_fetchExtensions_extensions.serializer, + this, + ) as Map); + + static GFetchExtensionListData_fetchExtensions_extensions? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFetchExtensionListData_fetchExtensions_extensions.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.g.dart new file mode 100644 index 00000000..fb98569d --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.g.dart @@ -0,0 +1,846 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fetch_extension_list.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gFetchExtensionListDataSerializer = + new _$GFetchExtensionListDataSerializer(); +Serializer + _$gFetchExtensionListDataFetchExtensionsSerializer = + new _$GFetchExtensionListData_fetchExtensionsSerializer(); +Serializer + _$gFetchExtensionListDataFetchExtensionsExtensionsSerializer = + new _$GFetchExtensionListData_fetchExtensions_extensionsSerializer(); + +class _$GFetchExtensionListDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchExtensionListData, + _$GFetchExtensionListData + ]; + @override + final String wireName = 'GFetchExtensionListData'; + + @override + Iterable serialize( + Serializers serializers, GFetchExtensionListData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.fetchExtensions; + if (value != null) { + result + ..add('fetchExtensions') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GFetchExtensionListData_fetchExtensions))); + } + return result; + } + + @override + GFetchExtensionListData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchExtensionListDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'fetchExtensions': + result.fetchExtensions.replace(serializers.deserialize(value, + specifiedType: + const FullType(GFetchExtensionListData_fetchExtensions))! + as GFetchExtensionListData_fetchExtensions); + break; + } + } + + return result.build(); + } +} + +class _$GFetchExtensionListData_fetchExtensionsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchExtensionListData_fetchExtensions, + _$GFetchExtensionListData_fetchExtensions + ]; + @override + final String wireName = 'GFetchExtensionListData_fetchExtensions'; + + @override + Iterable serialize( + Serializers serializers, GFetchExtensionListData_fetchExtensions object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'extensions', + serializers.serialize(object.extensions, + specifiedType: const FullType(BuiltList, const [ + const FullType(GFetchExtensionListData_fetchExtensions_extensions) + ])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchExtensionListData_fetchExtensions deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchExtensionListData_fetchExtensionsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'extensions': + result.extensions.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchExtensionListData_fetchExtensions_extensions) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFetchExtensionListData_fetchExtensions_extensionsSerializer + implements + StructuredSerializer< + GFetchExtensionListData_fetchExtensions_extensions> { + @override + final Iterable types = const [ + GFetchExtensionListData_fetchExtensions_extensions, + _$GFetchExtensionListData_fetchExtensions_extensions + ]; + @override + final String wireName = 'GFetchExtensionListData_fetchExtensions_extensions'; + + @override + Iterable serialize(Serializers serializers, + GFetchExtensionListData_fetchExtensions_extensions object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'apkName', + serializers.serialize(object.apkName, + specifiedType: const FullType(String)), + 'hasUpdate', + serializers.serialize(object.hasUpdate, + specifiedType: const FullType(bool)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'isInstalled', + serializers.serialize(object.isInstalled, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'isObsolete', + serializers.serialize(object.isObsolete, + specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + 'versionCode', + serializers.serialize(object.versionCode, + specifiedType: const FullType(int)), + 'versionName', + serializers.serialize(object.versionName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchExtensionListData_fetchExtensions_extensions deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchExtensionListData_fetchExtensions_extensionsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'apkName': + result.apkName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'hasUpdate': + result.hasUpdate = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'isInstalled': + result.isInstalled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isObsolete': + result.isObsolete = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'versionCode': + result.versionCode = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'versionName': + result.versionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFetchExtensionListData extends GFetchExtensionListData { + @override + final String G__typename; + @override + final GFetchExtensionListData_fetchExtensions? fetchExtensions; + + factory _$GFetchExtensionListData( + [void Function(GFetchExtensionListDataBuilder)? updates]) => + (new GFetchExtensionListDataBuilder()..update(updates))._build(); + + _$GFetchExtensionListData._({required this.G__typename, this.fetchExtensions}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFetchExtensionListData', 'G__typename'); + } + + @override + GFetchExtensionListData rebuild( + void Function(GFetchExtensionListDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchExtensionListDataBuilder toBuilder() => + new GFetchExtensionListDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchExtensionListData && + G__typename == other.G__typename && + fetchExtensions == other.fetchExtensions; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, fetchExtensions.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchExtensionListData') + ..add('G__typename', G__typename) + ..add('fetchExtensions', fetchExtensions)) + .toString(); + } +} + +class GFetchExtensionListDataBuilder + implements + Builder { + _$GFetchExtensionListData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GFetchExtensionListData_fetchExtensionsBuilder? _fetchExtensions; + GFetchExtensionListData_fetchExtensionsBuilder get fetchExtensions => + _$this._fetchExtensions ??= + new GFetchExtensionListData_fetchExtensionsBuilder(); + set fetchExtensions( + GFetchExtensionListData_fetchExtensionsBuilder? fetchExtensions) => + _$this._fetchExtensions = fetchExtensions; + + GFetchExtensionListDataBuilder() { + GFetchExtensionListData._initializeBuilder(this); + } + + GFetchExtensionListDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _fetchExtensions = $v.fetchExtensions?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFetchExtensionListData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchExtensionListData; + } + + @override + void update(void Function(GFetchExtensionListDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchExtensionListData build() => _build(); + + _$GFetchExtensionListData _build() { + _$GFetchExtensionListData _$result; + try { + _$result = _$v ?? + new _$GFetchExtensionListData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFetchExtensionListData', 'G__typename'), + fetchExtensions: _fetchExtensions?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchExtensions'; + _fetchExtensions?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchExtensionListData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchExtensionListData_fetchExtensions + extends GFetchExtensionListData_fetchExtensions { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final BuiltList + extensions; + + factory _$GFetchExtensionListData_fetchExtensions( + [void Function(GFetchExtensionListData_fetchExtensionsBuilder)? + updates]) => + (new GFetchExtensionListData_fetchExtensionsBuilder()..update(updates)) + ._build(); + + _$GFetchExtensionListData_fetchExtensions._( + {required this.G__typename, + this.clientMutationId, + required this.extensions}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFetchExtensionListData_fetchExtensions', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + extensions, r'GFetchExtensionListData_fetchExtensions', 'extensions'); + } + + @override + GFetchExtensionListData_fetchExtensions rebuild( + void Function(GFetchExtensionListData_fetchExtensionsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchExtensionListData_fetchExtensionsBuilder toBuilder() => + new GFetchExtensionListData_fetchExtensionsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchExtensionListData_fetchExtensions && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + extensions == other.extensions; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, extensions.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchExtensionListData_fetchExtensions') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('extensions', extensions)) + .toString(); + } +} + +class GFetchExtensionListData_fetchExtensionsBuilder + implements + Builder { + _$GFetchExtensionListData_fetchExtensions? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _extensions; + ListBuilder + get extensions => _$this._extensions ??= + new ListBuilder(); + set extensions( + ListBuilder? + extensions) => + _$this._extensions = extensions; + + GFetchExtensionListData_fetchExtensionsBuilder() { + GFetchExtensionListData_fetchExtensions._initializeBuilder(this); + } + + GFetchExtensionListData_fetchExtensionsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _extensions = $v.extensions.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFetchExtensionListData_fetchExtensions other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchExtensionListData_fetchExtensions; + } + + @override + void update( + void Function(GFetchExtensionListData_fetchExtensionsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchExtensionListData_fetchExtensions build() => _build(); + + _$GFetchExtensionListData_fetchExtensions _build() { + _$GFetchExtensionListData_fetchExtensions _$result; + try { + _$result = _$v ?? + new _$GFetchExtensionListData_fetchExtensions._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFetchExtensionListData_fetchExtensions', 'G__typename'), + clientMutationId: clientMutationId, + extensions: extensions.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensions'; + extensions.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchExtensionListData_fetchExtensions', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchExtensionListData_fetchExtensions_extensions + extends GFetchExtensionListData_fetchExtensions_extensions { + @override + final String G__typename; + @override + final String apkName; + @override + final bool hasUpdate; + @override + final String iconUrl; + @override + final bool isInstalled; + @override + final bool isNsfw; + @override + final bool isObsolete; + @override + final String lang; + @override + final String name; + @override + final String pkgName; + @override + final String? repo; + @override + final int versionCode; + @override + final String versionName; + + factory _$GFetchExtensionListData_fetchExtensions_extensions( + [void Function( + GFetchExtensionListData_fetchExtensions_extensionsBuilder)? + updates]) => + (new GFetchExtensionListData_fetchExtensions_extensionsBuilder() + ..update(updates)) + ._build(); + + _$GFetchExtensionListData_fetchExtensions_extensions._( + {required this.G__typename, + required this.apkName, + required this.hasUpdate, + required this.iconUrl, + required this.isInstalled, + required this.isNsfw, + required this.isObsolete, + required this.lang, + required this.name, + required this.pkgName, + this.repo, + required this.versionCode, + required this.versionName}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFetchExtensionListData_fetchExtensions_extensions', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(apkName, + r'GFetchExtensionListData_fetchExtensions_extensions', 'apkName'); + BuiltValueNullFieldError.checkNotNull(hasUpdate, + r'GFetchExtensionListData_fetchExtensions_extensions', 'hasUpdate'); + BuiltValueNullFieldError.checkNotNull(iconUrl, + r'GFetchExtensionListData_fetchExtensions_extensions', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull(isInstalled, + r'GFetchExtensionListData_fetchExtensions_extensions', 'isInstalled'); + BuiltValueNullFieldError.checkNotNull(isNsfw, + r'GFetchExtensionListData_fetchExtensions_extensions', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull(isObsolete, + r'GFetchExtensionListData_fetchExtensions_extensions', 'isObsolete'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GFetchExtensionListData_fetchExtensions_extensions', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFetchExtensionListData_fetchExtensions_extensions', 'name'); + BuiltValueNullFieldError.checkNotNull(pkgName, + r'GFetchExtensionListData_fetchExtensions_extensions', 'pkgName'); + BuiltValueNullFieldError.checkNotNull(versionCode, + r'GFetchExtensionListData_fetchExtensions_extensions', 'versionCode'); + BuiltValueNullFieldError.checkNotNull(versionName, + r'GFetchExtensionListData_fetchExtensions_extensions', 'versionName'); + } + + @override + GFetchExtensionListData_fetchExtensions_extensions rebuild( + void Function( + GFetchExtensionListData_fetchExtensions_extensionsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchExtensionListData_fetchExtensions_extensionsBuilder toBuilder() => + new GFetchExtensionListData_fetchExtensions_extensionsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchExtensionListData_fetchExtensions_extensions && + G__typename == other.G__typename && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchExtensionListData_fetchExtensions_extensions') + ..add('G__typename', G__typename) + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GFetchExtensionListData_fetchExtensions_extensionsBuilder + implements + Builder { + _$GFetchExtensionListData_fetchExtensions_extensions? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _apkName; + String? get apkName => _$this._apkName; + set apkName(String? apkName) => _$this._apkName = apkName; + + bool? _hasUpdate; + bool? get hasUpdate => _$this._hasUpdate; + set hasUpdate(bool? hasUpdate) => _$this._hasUpdate = hasUpdate; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + bool? _isInstalled; + bool? get isInstalled => _$this._isInstalled; + set isInstalled(bool? isInstalled) => _$this._isInstalled = isInstalled; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + bool? _isObsolete; + bool? get isObsolete => _$this._isObsolete; + set isObsolete(bool? isObsolete) => _$this._isObsolete = isObsolete; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + int? _versionCode; + int? get versionCode => _$this._versionCode; + set versionCode(int? versionCode) => _$this._versionCode = versionCode; + + String? _versionName; + String? get versionName => _$this._versionName; + set versionName(String? versionName) => _$this._versionName = versionName; + + GFetchExtensionListData_fetchExtensions_extensionsBuilder() { + GFetchExtensionListData_fetchExtensions_extensions._initializeBuilder(this); + } + + GFetchExtensionListData_fetchExtensions_extensionsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _apkName = $v.apkName; + _hasUpdate = $v.hasUpdate; + _iconUrl = $v.iconUrl; + _isInstalled = $v.isInstalled; + _isNsfw = $v.isNsfw; + _isObsolete = $v.isObsolete; + _lang = $v.lang; + _name = $v.name; + _pkgName = $v.pkgName; + _repo = $v.repo; + _versionCode = $v.versionCode; + _versionName = $v.versionName; + _$v = null; + } + return this; + } + + @override + void replace(GFetchExtensionListData_fetchExtensions_extensions other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchExtensionListData_fetchExtensions_extensions; + } + + @override + void update( + void Function(GFetchExtensionListData_fetchExtensions_extensionsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchExtensionListData_fetchExtensions_extensions build() => _build(); + + _$GFetchExtensionListData_fetchExtensions_extensions _build() { + final _$result = _$v ?? + new _$GFetchExtensionListData_fetchExtensions_extensions._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchExtensionListData_fetchExtensions_extensions', + 'G__typename'), + apkName: BuiltValueNullFieldError.checkNotNull(apkName, + r'GFetchExtensionListData_fetchExtensions_extensions', 'apkName'), + hasUpdate: BuiltValueNullFieldError.checkNotNull( + hasUpdate, + r'GFetchExtensionListData_fetchExtensions_extensions', + 'hasUpdate'), + iconUrl: BuiltValueNullFieldError.checkNotNull(iconUrl, + r'GFetchExtensionListData_fetchExtensions_extensions', 'iconUrl'), + isInstalled: BuiltValueNullFieldError.checkNotNull( + isInstalled, + r'GFetchExtensionListData_fetchExtensions_extensions', + 'isInstalled'), + isNsfw: BuiltValueNullFieldError.checkNotNull(isNsfw, + r'GFetchExtensionListData_fetchExtensions_extensions', 'isNsfw'), + isObsolete: BuiltValueNullFieldError.checkNotNull( + isObsolete, + r'GFetchExtensionListData_fetchExtensions_extensions', + 'isObsolete'), + lang: BuiltValueNullFieldError.checkNotNull(lang, + r'GFetchExtensionListData_fetchExtensions_extensions', 'lang'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GFetchExtensionListData_fetchExtensions_extensions', 'name'), + pkgName: BuiltValueNullFieldError.checkNotNull(pkgName, + r'GFetchExtensionListData_fetchExtensions_extensions', 'pkgName'), + repo: repo, + versionCode: BuiltValueNullFieldError.checkNotNull( + versionCode, + r'GFetchExtensionListData_fetchExtensions_extensions', + 'versionCode'), + versionName: BuiltValueNullFieldError.checkNotNull( + versionName, + r'GFetchExtensionListData_fetchExtensions_extensions', + 'versionName'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.req.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.req.gql.dart new file mode 100644 index 00000000..d60bfe10 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fetch_extension_list.req.gql.g.dart'; + +abstract class GFetchExtensionListReq + implements + Built, + _i1.OperationRequest<_i2.GFetchExtensionListData, + _i3.GFetchExtensionListVars> { + GFetchExtensionListReq._(); + + factory GFetchExtensionListReq( + [void Function(GFetchExtensionListReqBuilder b) updates]) = + _$GFetchExtensionListReq; + + static void _initializeBuilder(GFetchExtensionListReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'FetchExtensionList', + ) + ..executeOnListen = true; + + @override + _i3.GFetchExtensionListVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GFetchExtensionListData? Function( + _i2.GFetchExtensionListData?, + _i2.GFetchExtensionListData?, + )? get updateResult; + @override + _i2.GFetchExtensionListData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GFetchExtensionListData? parseData(Map json) => + _i2.GFetchExtensionListData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GFetchExtensionListData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GFetchExtensionListData, _i3.GFetchExtensionListVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gFetchExtensionListReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GFetchExtensionListReq.serializer, + this, + ) as Map); + + static GFetchExtensionListReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GFetchExtensionListReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.req.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.req.gql.g.dart new file mode 100644 index 00000000..68b24c19 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.req.gql.g.dart @@ -0,0 +1,376 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fetch_extension_list.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gFetchExtensionListReqSerializer = + new _$GFetchExtensionListReqSerializer(); + +class _$GFetchExtensionListReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchExtensionListReq, + _$GFetchExtensionListReq + ]; + @override + final String wireName = 'GFetchExtensionListReq'; + + @override + Iterable serialize( + Serializers serializers, GFetchExtensionListReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GFetchExtensionListVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GFetchExtensionListData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GFetchExtensionListReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchExtensionListReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GFetchExtensionListVars))! + as _i3.GFetchExtensionListVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GFetchExtensionListData))! + as _i2.GFetchExtensionListData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GFetchExtensionListReq extends GFetchExtensionListReq { + @override + final _i3.GFetchExtensionListVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GFetchExtensionListData? Function( + _i2.GFetchExtensionListData?, _i2.GFetchExtensionListData?)? updateResult; + @override + final _i2.GFetchExtensionListData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GFetchExtensionListReq( + [void Function(GFetchExtensionListReqBuilder)? updates]) => + (new GFetchExtensionListReqBuilder()..update(updates))._build(); + + _$GFetchExtensionListReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GFetchExtensionListReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GFetchExtensionListReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GFetchExtensionListReq', 'executeOnListen'); + } + + @override + GFetchExtensionListReq rebuild( + void Function(GFetchExtensionListReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchExtensionListReqBuilder toBuilder() => + new GFetchExtensionListReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GFetchExtensionListReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchExtensionListReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GFetchExtensionListReqBuilder + implements Builder { + _$GFetchExtensionListReq? _$v; + + _i3.GFetchExtensionListVarsBuilder? _vars; + _i3.GFetchExtensionListVarsBuilder get vars => + _$this._vars ??= new _i3.GFetchExtensionListVarsBuilder(); + set vars(_i3.GFetchExtensionListVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GFetchExtensionListData? Function( + _i2.GFetchExtensionListData?, _i2.GFetchExtensionListData?)? + _updateResult; + _i2.GFetchExtensionListData? Function( + _i2.GFetchExtensionListData?, _i2.GFetchExtensionListData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GFetchExtensionListData? Function( + _i2.GFetchExtensionListData?, _i2.GFetchExtensionListData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GFetchExtensionListDataBuilder? _optimisticResponse; + _i2.GFetchExtensionListDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GFetchExtensionListDataBuilder(); + set optimisticResponse( + _i2.GFetchExtensionListDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GFetchExtensionListReqBuilder() { + GFetchExtensionListReq._initializeBuilder(this); + } + + GFetchExtensionListReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GFetchExtensionListReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchExtensionListReq; + } + + @override + void update(void Function(GFetchExtensionListReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchExtensionListReq build() => _build(); + + _$GFetchExtensionListReq _build() { + _$GFetchExtensionListReq _$result; + try { + _$result = _$v ?? + new _$GFetchExtensionListReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GFetchExtensionListReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GFetchExtensionListReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchExtensionListReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.dart new file mode 100644 index 00000000..6b7eda79 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fetch_extension_list.var.gql.g.dart'; + +abstract class GFetchExtensionListVars + implements Built { + GFetchExtensionListVars._(); + + factory GFetchExtensionListVars( + [void Function(GFetchExtensionListVarsBuilder b) updates]) = + _$GFetchExtensionListVars; + + static Serializer get serializer => + _$gFetchExtensionListVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchExtensionListVars.serializer, + this, + ) as Map); + + static GFetchExtensionListVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchExtensionListVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.g.dart new file mode 100644 index 00000000..6190da93 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fetch_extension_list.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gFetchExtensionListVarsSerializer = + new _$GFetchExtensionListVarsSerializer(); + +class _$GFetchExtensionListVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchExtensionListVars, + _$GFetchExtensionListVars + ]; + @override + final String wireName = 'GFetchExtensionListVars'; + + @override + Iterable serialize( + Serializers serializers, GFetchExtensionListVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GFetchExtensionListVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GFetchExtensionListVarsBuilder().build(); + } +} + +class _$GFetchExtensionListVars extends GFetchExtensionListVars { + factory _$GFetchExtensionListVars( + [void Function(GFetchExtensionListVarsBuilder)? updates]) => + (new GFetchExtensionListVarsBuilder()..update(updates))._build(); + + _$GFetchExtensionListVars._() : super._(); + + @override + GFetchExtensionListVars rebuild( + void Function(GFetchExtensionListVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchExtensionListVarsBuilder toBuilder() => + new GFetchExtensionListVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchExtensionListVars; + } + + @override + int get hashCode { + return 257630965; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GFetchExtensionListVars').toString(); + } +} + +class GFetchExtensionListVarsBuilder + implements + Builder { + _$GFetchExtensionListVars? _$v; + + GFetchExtensionListVarsBuilder(); + + @override + void replace(GFetchExtensionListVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchExtensionListVars; + } + + @override + void update(void Function(GFetchExtensionListVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchExtensionListVars build() => _build(); + + _$GFetchExtensionListVars _build() { + final _$result = _$v ?? new _$GFetchExtensionListVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.ast.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.ast.gql.dart new file mode 100644 index 00000000..b8100303 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.ast.gql.dart @@ -0,0 +1,68 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.ast.gql.dart' + as _i2; + +const InstallExternalExtension = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'InstallExternalExtension'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'extensionFile')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'installExternalExtension'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'extensionFile'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'extensionFile')), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'extension'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ExtensionFragment'), + directives: [], + ) + ]), + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + InstallExternalExtension, + _i2.ExtensionFragment, +]); diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.dart new file mode 100644 index 00000000..ae551185 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'install_external_extension.data.gql.g.dart'; + +abstract class GInstallExternalExtensionData + implements + Built { + GInstallExternalExtensionData._(); + + factory GInstallExternalExtensionData( + [void Function(GInstallExternalExtensionDataBuilder b) updates]) = + _$GInstallExternalExtensionData; + + static void _initializeBuilder(GInstallExternalExtensionDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GInstallExternalExtensionData_installExternalExtension? + get installExternalExtension; + static Serializer get serializer => + _$gInstallExternalExtensionDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GInstallExternalExtensionData.serializer, + this, + ) as Map); + + static GInstallExternalExtensionData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GInstallExternalExtensionData.serializer, + json, + ); +} + +abstract class GInstallExternalExtensionData_installExternalExtension + implements + Built { + GInstallExternalExtensionData_installExternalExtension._(); + + factory GInstallExternalExtensionData_installExternalExtension( + [void Function( + GInstallExternalExtensionData_installExternalExtensionBuilder b) + updates]) = _$GInstallExternalExtensionData_installExternalExtension; + + static void _initializeBuilder( + GInstallExternalExtensionData_installExternalExtensionBuilder b) => + b..G__typename = 'InstallExternalExtensionPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + GInstallExternalExtensionData_installExternalExtension_extension + get extension; + static Serializer + get serializer => + _$gInstallExternalExtensionDataInstallExternalExtensionSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GInstallExternalExtensionData_installExternalExtension.serializer, + this, + ) as Map); + + static GInstallExternalExtensionData_installExternalExtension? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GInstallExternalExtensionData_installExternalExtension.serializer, + json, + ); +} + +abstract class GInstallExternalExtensionData_installExternalExtension_extension + implements + Built, + _i2.GExtensionFragment { + GInstallExternalExtensionData_installExternalExtension_extension._(); + + factory GInstallExternalExtensionData_installExternalExtension_extension( + [void Function( + GInstallExternalExtensionData_installExternalExtension_extensionBuilder + b) + updates]) = + _$GInstallExternalExtensionData_installExternalExtension_extension; + + static void _initializeBuilder( + GInstallExternalExtensionData_installExternalExtension_extensionBuilder + b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get apkName; + @override + bool get hasUpdate; + @override + String get iconUrl; + @override + bool get isInstalled; + @override + bool get isNsfw; + @override + bool get isObsolete; + @override + String get lang; + @override + String get name; + @override + String get pkgName; + @override + String? get repo; + @override + int get versionCode; + @override + String get versionName; + static Serializer< + GInstallExternalExtensionData_installExternalExtension_extension> + get serializer => + _$gInstallExternalExtensionDataInstallExternalExtensionExtensionSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GInstallExternalExtensionData_installExternalExtension_extension + .serializer, + this, + ) as Map); + + static GInstallExternalExtensionData_installExternalExtension_extension? + fromJson(Map json) => _i1.serializers.deserializeWith( + GInstallExternalExtensionData_installExternalExtension_extension + .serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.g.dart new file mode 100644 index 00000000..1674b53d --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.g.dart @@ -0,0 +1,913 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'install_external_extension.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gInstallExternalExtensionDataSerializer = + new _$GInstallExternalExtensionDataSerializer(); +Serializer + _$gInstallExternalExtensionDataInstallExternalExtensionSerializer = + new _$GInstallExternalExtensionData_installExternalExtensionSerializer(); +Serializer + _$gInstallExternalExtensionDataInstallExternalExtensionExtensionSerializer = + new _$GInstallExternalExtensionData_installExternalExtension_extensionSerializer(); + +class _$GInstallExternalExtensionDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GInstallExternalExtensionData, + _$GInstallExternalExtensionData + ]; + @override + final String wireName = 'GInstallExternalExtensionData'; + + @override + Iterable serialize( + Serializers serializers, GInstallExternalExtensionData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.installExternalExtension; + if (value != null) { + result + ..add('installExternalExtension') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GInstallExternalExtensionData_installExternalExtension))); + } + return result; + } + + @override + GInstallExternalExtensionData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GInstallExternalExtensionDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'installExternalExtension': + result.installExternalExtension.replace(serializers.deserialize(value, + specifiedType: const FullType( + GInstallExternalExtensionData_installExternalExtension))! + as GInstallExternalExtensionData_installExternalExtension); + break; + } + } + + return result.build(); + } +} + +class _$GInstallExternalExtensionData_installExternalExtensionSerializer + implements + StructuredSerializer< + GInstallExternalExtensionData_installExternalExtension> { + @override + final Iterable types = const [ + GInstallExternalExtensionData_installExternalExtension, + _$GInstallExternalExtensionData_installExternalExtension + ]; + @override + final String wireName = + 'GInstallExternalExtensionData_installExternalExtension'; + + @override + Iterable serialize(Serializers serializers, + GInstallExternalExtensionData_installExternalExtension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType( + GInstallExternalExtensionData_installExternalExtension_extension)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GInstallExternalExtensionData_installExternalExtension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GInstallExternalExtensionData_installExternalExtensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: const FullType( + GInstallExternalExtensionData_installExternalExtension_extension))! + as GInstallExternalExtensionData_installExternalExtension_extension); + break; + } + } + + return result.build(); + } +} + +class _$GInstallExternalExtensionData_installExternalExtension_extensionSerializer + implements + StructuredSerializer< + GInstallExternalExtensionData_installExternalExtension_extension> { + @override + final Iterable types = const [ + GInstallExternalExtensionData_installExternalExtension_extension, + _$GInstallExternalExtensionData_installExternalExtension_extension + ]; + @override + final String wireName = + 'GInstallExternalExtensionData_installExternalExtension_extension'; + + @override + Iterable serialize(Serializers serializers, + GInstallExternalExtensionData_installExternalExtension_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'apkName', + serializers.serialize(object.apkName, + specifiedType: const FullType(String)), + 'hasUpdate', + serializers.serialize(object.hasUpdate, + specifiedType: const FullType(bool)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'isInstalled', + serializers.serialize(object.isInstalled, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'isObsolete', + serializers.serialize(object.isObsolete, + specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + 'versionCode', + serializers.serialize(object.versionCode, + specifiedType: const FullType(int)), + 'versionName', + serializers.serialize(object.versionName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GInstallExternalExtensionData_installExternalExtension_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GInstallExternalExtensionData_installExternalExtension_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'apkName': + result.apkName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'hasUpdate': + result.hasUpdate = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'isInstalled': + result.isInstalled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isObsolete': + result.isObsolete = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'versionCode': + result.versionCode = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'versionName': + result.versionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GInstallExternalExtensionData extends GInstallExternalExtensionData { + @override + final String G__typename; + @override + final GInstallExternalExtensionData_installExternalExtension? + installExternalExtension; + + factory _$GInstallExternalExtensionData( + [void Function(GInstallExternalExtensionDataBuilder)? updates]) => + (new GInstallExternalExtensionDataBuilder()..update(updates))._build(); + + _$GInstallExternalExtensionData._( + {required this.G__typename, this.installExternalExtension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GInstallExternalExtensionData', 'G__typename'); + } + + @override + GInstallExternalExtensionData rebuild( + void Function(GInstallExternalExtensionDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GInstallExternalExtensionDataBuilder toBuilder() => + new GInstallExternalExtensionDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GInstallExternalExtensionData && + G__typename == other.G__typename && + installExternalExtension == other.installExternalExtension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, installExternalExtension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GInstallExternalExtensionData') + ..add('G__typename', G__typename) + ..add('installExternalExtension', installExternalExtension)) + .toString(); + } +} + +class GInstallExternalExtensionDataBuilder + implements + Builder { + _$GInstallExternalExtensionData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GInstallExternalExtensionData_installExternalExtensionBuilder? + _installExternalExtension; + GInstallExternalExtensionData_installExternalExtensionBuilder + get installExternalExtension => _$this._installExternalExtension ??= + new GInstallExternalExtensionData_installExternalExtensionBuilder(); + set installExternalExtension( + GInstallExternalExtensionData_installExternalExtensionBuilder? + installExternalExtension) => + _$this._installExternalExtension = installExternalExtension; + + GInstallExternalExtensionDataBuilder() { + GInstallExternalExtensionData._initializeBuilder(this); + } + + GInstallExternalExtensionDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _installExternalExtension = $v.installExternalExtension?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GInstallExternalExtensionData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GInstallExternalExtensionData; + } + + @override + void update(void Function(GInstallExternalExtensionDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GInstallExternalExtensionData build() => _build(); + + _$GInstallExternalExtensionData _build() { + _$GInstallExternalExtensionData _$result; + try { + _$result = _$v ?? + new _$GInstallExternalExtensionData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GInstallExternalExtensionData', 'G__typename'), + installExternalExtension: _installExternalExtension?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'installExternalExtension'; + _installExternalExtension?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GInstallExternalExtensionData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GInstallExternalExtensionData_installExternalExtension + extends GInstallExternalExtensionData_installExternalExtension { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final GInstallExternalExtensionData_installExternalExtension_extension + extension; + + factory _$GInstallExternalExtensionData_installExternalExtension( + [void Function( + GInstallExternalExtensionData_installExternalExtensionBuilder)? + updates]) => + (new GInstallExternalExtensionData_installExternalExtensionBuilder() + ..update(updates)) + ._build(); + + _$GInstallExternalExtensionData_installExternalExtension._( + {required this.G__typename, + this.clientMutationId, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GInstallExternalExtensionData_installExternalExtension', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull(extension, + r'GInstallExternalExtensionData_installExternalExtension', 'extension'); + } + + @override + GInstallExternalExtensionData_installExternalExtension rebuild( + void Function( + GInstallExternalExtensionData_installExternalExtensionBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GInstallExternalExtensionData_installExternalExtensionBuilder toBuilder() => + new GInstallExternalExtensionData_installExternalExtensionBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GInstallExternalExtensionData_installExternalExtension && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GInstallExternalExtensionData_installExternalExtension') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('extension', extension)) + .toString(); + } +} + +class GInstallExternalExtensionData_installExternalExtensionBuilder + implements + Builder { + _$GInstallExternalExtensionData_installExternalExtension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GInstallExternalExtensionData_installExternalExtension_extensionBuilder? + _extension; + GInstallExternalExtensionData_installExternalExtension_extensionBuilder + get extension => _$this._extension ??= + new GInstallExternalExtensionData_installExternalExtension_extensionBuilder(); + set extension( + GInstallExternalExtensionData_installExternalExtension_extensionBuilder? + extension) => + _$this._extension = extension; + + GInstallExternalExtensionData_installExternalExtensionBuilder() { + GInstallExternalExtensionData_installExternalExtension._initializeBuilder( + this); + } + + GInstallExternalExtensionData_installExternalExtensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GInstallExternalExtensionData_installExternalExtension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GInstallExternalExtensionData_installExternalExtension; + } + + @override + void update( + void Function( + GInstallExternalExtensionData_installExternalExtensionBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GInstallExternalExtensionData_installExternalExtension build() => _build(); + + _$GInstallExternalExtensionData_installExternalExtension _build() { + _$GInstallExternalExtensionData_installExternalExtension _$result; + try { + _$result = _$v ?? + new _$GInstallExternalExtensionData_installExternalExtension._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GInstallExternalExtensionData_installExternalExtension', + 'G__typename'), + clientMutationId: clientMutationId, + extension: extension.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GInstallExternalExtensionData_installExternalExtension', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GInstallExternalExtensionData_installExternalExtension_extension + extends GInstallExternalExtensionData_installExternalExtension_extension { + @override + final String G__typename; + @override + final String apkName; + @override + final bool hasUpdate; + @override + final String iconUrl; + @override + final bool isInstalled; + @override + final bool isNsfw; + @override + final bool isObsolete; + @override + final String lang; + @override + final String name; + @override + final String pkgName; + @override + final String? repo; + @override + final int versionCode; + @override + final String versionName; + + factory _$GInstallExternalExtensionData_installExternalExtension_extension( + [void Function( + GInstallExternalExtensionData_installExternalExtension_extensionBuilder)? + updates]) => + (new GInstallExternalExtensionData_installExternalExtension_extensionBuilder() + ..update(updates)) + ._build(); + + _$GInstallExternalExtensionData_installExternalExtension_extension._( + {required this.G__typename, + required this.apkName, + required this.hasUpdate, + required this.iconUrl, + required this.isInstalled, + required this.isNsfw, + required this.isObsolete, + required this.lang, + required this.name, + required this.pkgName, + this.repo, + required this.versionCode, + required this.versionName}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + apkName, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'apkName'); + BuiltValueNullFieldError.checkNotNull( + hasUpdate, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'hasUpdate'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + isInstalled, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'isInstalled'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + isObsolete, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'isObsolete'); + BuiltValueNullFieldError.checkNotNull( + lang, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'name'); + BuiltValueNullFieldError.checkNotNull( + pkgName, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'pkgName'); + BuiltValueNullFieldError.checkNotNull( + versionCode, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'versionCode'); + BuiltValueNullFieldError.checkNotNull( + versionName, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'versionName'); + } + + @override + GInstallExternalExtensionData_installExternalExtension_extension rebuild( + void Function( + GInstallExternalExtensionData_installExternalExtension_extensionBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GInstallExternalExtensionData_installExternalExtension_extensionBuilder + toBuilder() => + new GInstallExternalExtensionData_installExternalExtension_extensionBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GInstallExternalExtensionData_installExternalExtension_extension && + G__typename == other.G__typename && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GInstallExternalExtensionData_installExternalExtension_extension') + ..add('G__typename', G__typename) + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GInstallExternalExtensionData_installExternalExtension_extensionBuilder + implements + Builder< + GInstallExternalExtensionData_installExternalExtension_extension, + GInstallExternalExtensionData_installExternalExtension_extensionBuilder> { + _$GInstallExternalExtensionData_installExternalExtension_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _apkName; + String? get apkName => _$this._apkName; + set apkName(String? apkName) => _$this._apkName = apkName; + + bool? _hasUpdate; + bool? get hasUpdate => _$this._hasUpdate; + set hasUpdate(bool? hasUpdate) => _$this._hasUpdate = hasUpdate; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + bool? _isInstalled; + bool? get isInstalled => _$this._isInstalled; + set isInstalled(bool? isInstalled) => _$this._isInstalled = isInstalled; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + bool? _isObsolete; + bool? get isObsolete => _$this._isObsolete; + set isObsolete(bool? isObsolete) => _$this._isObsolete = isObsolete; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + int? _versionCode; + int? get versionCode => _$this._versionCode; + set versionCode(int? versionCode) => _$this._versionCode = versionCode; + + String? _versionName; + String? get versionName => _$this._versionName; + set versionName(String? versionName) => _$this._versionName = versionName; + + GInstallExternalExtensionData_installExternalExtension_extensionBuilder() { + GInstallExternalExtensionData_installExternalExtension_extension + ._initializeBuilder(this); + } + + GInstallExternalExtensionData_installExternalExtension_extensionBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _apkName = $v.apkName; + _hasUpdate = $v.hasUpdate; + _iconUrl = $v.iconUrl; + _isInstalled = $v.isInstalled; + _isNsfw = $v.isNsfw; + _isObsolete = $v.isObsolete; + _lang = $v.lang; + _name = $v.name; + _pkgName = $v.pkgName; + _repo = $v.repo; + _versionCode = $v.versionCode; + _versionName = $v.versionName; + _$v = null; + } + return this; + } + + @override + void replace( + GInstallExternalExtensionData_installExternalExtension_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GInstallExternalExtensionData_installExternalExtension_extension; + } + + @override + void update( + void Function( + GInstallExternalExtensionData_installExternalExtension_extensionBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GInstallExternalExtensionData_installExternalExtension_extension build() => + _build(); + + _$GInstallExternalExtensionData_installExternalExtension_extension _build() { + final _$result = _$v ?? + new _$GInstallExternalExtensionData_installExternalExtension_extension + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'G__typename'), + apkName: BuiltValueNullFieldError.checkNotNull( + apkName, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'apkName'), + hasUpdate: BuiltValueNullFieldError.checkNotNull( + hasUpdate, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'hasUpdate'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'iconUrl'), + isInstalled: BuiltValueNullFieldError.checkNotNull( + isInstalled, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'isInstalled'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'isNsfw'), + isObsolete: BuiltValueNullFieldError.checkNotNull( + isObsolete, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'isObsolete'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'name'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'pkgName'), + repo: repo, + versionCode: BuiltValueNullFieldError.checkNotNull( + versionCode, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'versionCode'), + versionName: BuiltValueNullFieldError.checkNotNull( + versionName, + r'GInstallExternalExtensionData_installExternalExtension_extension', + 'versionName'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.req.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.req.gql.dart new file mode 100644 index 00000000..50adc474 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.req.gql.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'install_external_extension.req.gql.g.dart'; + +abstract class GInstallExternalExtensionReq + implements + Built, + _i1.OperationRequest<_i2.GInstallExternalExtensionData, + _i3.GInstallExternalExtensionVars> { + GInstallExternalExtensionReq._(); + + factory GInstallExternalExtensionReq( + [void Function(GInstallExternalExtensionReqBuilder b) updates]) = + _$GInstallExternalExtensionReq; + + static void _initializeBuilder(GInstallExternalExtensionReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'InstallExternalExtension', + ) + ..executeOnListen = true; + + @override + _i3.GInstallExternalExtensionVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GInstallExternalExtensionData? Function( + _i2.GInstallExternalExtensionData?, + _i2.GInstallExternalExtensionData?, + )? get updateResult; + @override + _i2.GInstallExternalExtensionData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GInstallExternalExtensionData? parseData(Map json) => + _i2.GInstallExternalExtensionData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GInstallExternalExtensionData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GInstallExternalExtensionData, + _i3.GInstallExternalExtensionVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gInstallExternalExtensionReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GInstallExternalExtensionReq.serializer, + this, + ) as Map); + + static GInstallExternalExtensionReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GInstallExternalExtensionReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.req.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.req.gql.g.dart new file mode 100644 index 00000000..f1c6e886 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.req.gql.g.dart @@ -0,0 +1,388 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'install_external_extension.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gInstallExternalExtensionReqSerializer = + new _$GInstallExternalExtensionReqSerializer(); + +class _$GInstallExternalExtensionReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GInstallExternalExtensionReq, + _$GInstallExternalExtensionReq + ]; + @override + final String wireName = 'GInstallExternalExtensionReq'; + + @override + Iterable serialize( + Serializers serializers, GInstallExternalExtensionReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GInstallExternalExtensionVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GInstallExternalExtensionData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GInstallExternalExtensionReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GInstallExternalExtensionReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GInstallExternalExtensionVars))! + as _i3.GInstallExternalExtensionVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GInstallExternalExtensionData))! + as _i2.GInstallExternalExtensionData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GInstallExternalExtensionReq extends GInstallExternalExtensionReq { + @override + final _i3.GInstallExternalExtensionVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GInstallExternalExtensionData? Function( + _i2.GInstallExternalExtensionData?, + _i2.GInstallExternalExtensionData?)? updateResult; + @override + final _i2.GInstallExternalExtensionData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GInstallExternalExtensionReq( + [void Function(GInstallExternalExtensionReqBuilder)? updates]) => + (new GInstallExternalExtensionReqBuilder()..update(updates))._build(); + + _$GInstallExternalExtensionReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GInstallExternalExtensionReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GInstallExternalExtensionReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GInstallExternalExtensionReq', 'executeOnListen'); + } + + @override + GInstallExternalExtensionReq rebuild( + void Function(GInstallExternalExtensionReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GInstallExternalExtensionReqBuilder toBuilder() => + new GInstallExternalExtensionReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GInstallExternalExtensionReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GInstallExternalExtensionReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GInstallExternalExtensionReqBuilder + implements + Builder { + _$GInstallExternalExtensionReq? _$v; + + _i3.GInstallExternalExtensionVarsBuilder? _vars; + _i3.GInstallExternalExtensionVarsBuilder get vars => + _$this._vars ??= new _i3.GInstallExternalExtensionVarsBuilder(); + set vars(_i3.GInstallExternalExtensionVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GInstallExternalExtensionData? Function( + _i2.GInstallExternalExtensionData?, + _i2.GInstallExternalExtensionData?)? _updateResult; + _i2.GInstallExternalExtensionData? Function( + _i2.GInstallExternalExtensionData?, + _i2.GInstallExternalExtensionData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GInstallExternalExtensionData? Function( + _i2.GInstallExternalExtensionData?, + _i2.GInstallExternalExtensionData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GInstallExternalExtensionDataBuilder? _optimisticResponse; + _i2.GInstallExternalExtensionDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GInstallExternalExtensionDataBuilder(); + set optimisticResponse( + _i2.GInstallExternalExtensionDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GInstallExternalExtensionReqBuilder() { + GInstallExternalExtensionReq._initializeBuilder(this); + } + + GInstallExternalExtensionReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GInstallExternalExtensionReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GInstallExternalExtensionReq; + } + + @override + void update(void Function(GInstallExternalExtensionReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GInstallExternalExtensionReq build() => _build(); + + _$GInstallExternalExtensionReq _build() { + _$GInstallExternalExtensionReq _$result; + try { + _$result = _$v ?? + new _$GInstallExternalExtensionReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GInstallExternalExtensionReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GInstallExternalExtensionReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GInstallExternalExtensionReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.dart new file mode 100644 index 00000000..155f630c --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:http/http.dart' as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'install_external_extension.var.gql.g.dart'; + +abstract class GInstallExternalExtensionVars + implements + Built { + GInstallExternalExtensionVars._(); + + factory GInstallExternalExtensionVars( + [void Function(GInstallExternalExtensionVarsBuilder b) updates]) = + _$GInstallExternalExtensionVars; + + _i1.MultipartFile get extensionFile; + static Serializer get serializer => + _$gInstallExternalExtensionVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GInstallExternalExtensionVars.serializer, + this, + ) as Map); + + static GInstallExternalExtensionVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GInstallExternalExtensionVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.g.dart new file mode 100644 index 00000000..e5360b79 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.g.dart @@ -0,0 +1,152 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'install_external_extension.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gInstallExternalExtensionVarsSerializer = + new _$GInstallExternalExtensionVarsSerializer(); + +class _$GInstallExternalExtensionVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GInstallExternalExtensionVars, + _$GInstallExternalExtensionVars + ]; + @override + final String wireName = 'GInstallExternalExtensionVars'; + + @override + Iterable serialize( + Serializers serializers, GInstallExternalExtensionVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'extensionFile', + serializers.serialize(object.extensionFile, + specifiedType: const FullType(_i1.MultipartFile)), + ]; + + return result; + } + + @override + GInstallExternalExtensionVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GInstallExternalExtensionVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'extensionFile': + result.extensionFile = serializers.deserialize(value, + specifiedType: const FullType(_i1.MultipartFile))! + as _i1.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GInstallExternalExtensionVars extends GInstallExternalExtensionVars { + @override + final _i1.MultipartFile extensionFile; + + factory _$GInstallExternalExtensionVars( + [void Function(GInstallExternalExtensionVarsBuilder)? updates]) => + (new GInstallExternalExtensionVarsBuilder()..update(updates))._build(); + + _$GInstallExternalExtensionVars._({required this.extensionFile}) : super._() { + BuiltValueNullFieldError.checkNotNull( + extensionFile, r'GInstallExternalExtensionVars', 'extensionFile'); + } + + @override + GInstallExternalExtensionVars rebuild( + void Function(GInstallExternalExtensionVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GInstallExternalExtensionVarsBuilder toBuilder() => + new GInstallExternalExtensionVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GInstallExternalExtensionVars && + extensionFile == other.extensionFile; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, extensionFile.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GInstallExternalExtensionVars') + ..add('extensionFile', extensionFile)) + .toString(); + } +} + +class GInstallExternalExtensionVarsBuilder + implements + Builder { + _$GInstallExternalExtensionVars? _$v; + + _i1.MultipartFile? _extensionFile; + _i1.MultipartFile? get extensionFile => _$this._extensionFile; + set extensionFile(_i1.MultipartFile? extensionFile) => + _$this._extensionFile = extensionFile; + + GInstallExternalExtensionVarsBuilder(); + + GInstallExternalExtensionVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _extensionFile = $v.extensionFile; + _$v = null; + } + return this; + } + + @override + void replace(GInstallExternalExtensionVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GInstallExternalExtensionVars; + } + + @override + void update(void Function(GInstallExternalExtensionVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GInstallExternalExtensionVars build() => _build(); + + _$GInstallExternalExtensionVars _build() { + final _$result = _$v ?? + new _$GInstallExternalExtensionVars._( + extensionFile: BuiltValueNullFieldError.checkNotNull( + extensionFile, r'GInstallExternalExtensionVars', 'extensionFile'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.ast.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.ast.gql.dart new file mode 100644 index 00000000..3c494b88 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.ast.gql.dart @@ -0,0 +1,115 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.ast.gql.dart' + as _i2; + +const UpdateExtension = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateExtension'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'install')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'uninstall')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'update')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'updateExtension'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + ), + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'patch'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'install'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'install')), + ), + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'uninstall'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'uninstall')), + ), + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'update'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'update')), + ), + ]), + ), + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'extension'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ExtensionFragment'), + directives: [], + ) + ]), + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateExtension, + _i2.ExtensionFragment, +]); diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.dart new file mode 100644 index 00000000..c9bf4402 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.dart @@ -0,0 +1,135 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_extension.data.gql.g.dart'; + +abstract class GUpdateExtensionData + implements Built { + GUpdateExtensionData._(); + + factory GUpdateExtensionData( + [void Function(GUpdateExtensionDataBuilder b) updates]) = + _$GUpdateExtensionData; + + static void _initializeBuilder(GUpdateExtensionDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateExtensionData_updateExtension? get updateExtension; + static Serializer get serializer => + _$gUpdateExtensionDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionData.serializer, + this, + ) as Map); + + static GUpdateExtensionData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionData.serializer, + json, + ); +} + +abstract class GUpdateExtensionData_updateExtension + implements + Built { + GUpdateExtensionData_updateExtension._(); + + factory GUpdateExtensionData_updateExtension( + [void Function(GUpdateExtensionData_updateExtensionBuilder b) + updates]) = _$GUpdateExtensionData_updateExtension; + + static void _initializeBuilder( + GUpdateExtensionData_updateExtensionBuilder b) => + b..G__typename = 'UpdateExtensionPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + GUpdateExtensionData_updateExtension_extension? get extension; + static Serializer get serializer => + _$gUpdateExtensionDataUpdateExtensionSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionData_updateExtension.serializer, + this, + ) as Map); + + static GUpdateExtensionData_updateExtension? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionData_updateExtension.serializer, + json, + ); +} + +abstract class GUpdateExtensionData_updateExtension_extension + implements + Built, + _i2.GExtensionFragment { + GUpdateExtensionData_updateExtension_extension._(); + + factory GUpdateExtensionData_updateExtension_extension( + [void Function(GUpdateExtensionData_updateExtension_extensionBuilder b) + updates]) = _$GUpdateExtensionData_updateExtension_extension; + + static void _initializeBuilder( + GUpdateExtensionData_updateExtension_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get apkName; + @override + bool get hasUpdate; + @override + String get iconUrl; + @override + bool get isInstalled; + @override + bool get isNsfw; + @override + bool get isObsolete; + @override + String get lang; + @override + String get name; + @override + String get pkgName; + @override + String? get repo; + @override + int get versionCode; + @override + String get versionName; + static Serializer + get serializer => + _$gUpdateExtensionDataUpdateExtensionExtensionSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionData_updateExtension_extension.serializer, + this, + ) as Map); + + static GUpdateExtensionData_updateExtension_extension? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionData_updateExtension_extension.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.g.dart new file mode 100644 index 00000000..64644274 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.g.dart @@ -0,0 +1,823 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_extension.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateExtensionDataSerializer = + new _$GUpdateExtensionDataSerializer(); +Serializer + _$gUpdateExtensionDataUpdateExtensionSerializer = + new _$GUpdateExtensionData_updateExtensionSerializer(); +Serializer + _$gUpdateExtensionDataUpdateExtensionExtensionSerializer = + new _$GUpdateExtensionData_updateExtension_extensionSerializer(); + +class _$GUpdateExtensionDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionData, + _$GUpdateExtensionData + ]; + @override + final String wireName = 'GUpdateExtensionData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.updateExtension; + if (value != null) { + result + ..add('updateExtension') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GUpdateExtensionData_updateExtension))); + } + return result; + } + + @override + GUpdateExtensionData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'updateExtension': + result.updateExtension.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateExtensionData_updateExtension))! + as GUpdateExtensionData_updateExtension); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionData_updateExtensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionData_updateExtension, + _$GUpdateExtensionData_updateExtension + ]; + @override + final String wireName = 'GUpdateExtensionData_updateExtension'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionData_updateExtension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.extension; + if (value != null) { + result + ..add('extension') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GUpdateExtensionData_updateExtension_extension))); + } + return result; + } + + @override + GUpdateExtensionData_updateExtension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionData_updateExtensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateExtensionData_updateExtension_extension))! + as GUpdateExtensionData_updateExtension_extension); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionData_updateExtension_extensionSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionData_updateExtension_extension, + _$GUpdateExtensionData_updateExtension_extension + ]; + @override + final String wireName = 'GUpdateExtensionData_updateExtension_extension'; + + @override + Iterable serialize(Serializers serializers, + GUpdateExtensionData_updateExtension_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'apkName', + serializers.serialize(object.apkName, + specifiedType: const FullType(String)), + 'hasUpdate', + serializers.serialize(object.hasUpdate, + specifiedType: const FullType(bool)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'isInstalled', + serializers.serialize(object.isInstalled, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'isObsolete', + serializers.serialize(object.isObsolete, + specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + 'versionCode', + serializers.serialize(object.versionCode, + specifiedType: const FullType(int)), + 'versionName', + serializers.serialize(object.versionName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateExtensionData_updateExtension_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionData_updateExtension_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'apkName': + result.apkName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'hasUpdate': + result.hasUpdate = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'isInstalled': + result.isInstalled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isObsolete': + result.isObsolete = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'versionCode': + result.versionCode = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'versionName': + result.versionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionData extends GUpdateExtensionData { + @override + final String G__typename; + @override + final GUpdateExtensionData_updateExtension? updateExtension; + + factory _$GUpdateExtensionData( + [void Function(GUpdateExtensionDataBuilder)? updates]) => + (new GUpdateExtensionDataBuilder()..update(updates))._build(); + + _$GUpdateExtensionData._({required this.G__typename, this.updateExtension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionData', 'G__typename'); + } + + @override + GUpdateExtensionData rebuild( + void Function(GUpdateExtensionDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionDataBuilder toBuilder() => + new GUpdateExtensionDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionData && + G__typename == other.G__typename && + updateExtension == other.updateExtension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, updateExtension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionData') + ..add('G__typename', G__typename) + ..add('updateExtension', updateExtension)) + .toString(); + } +} + +class GUpdateExtensionDataBuilder + implements Builder { + _$GUpdateExtensionData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateExtensionData_updateExtensionBuilder? _updateExtension; + GUpdateExtensionData_updateExtensionBuilder get updateExtension => + _$this._updateExtension ??= + new GUpdateExtensionData_updateExtensionBuilder(); + set updateExtension( + GUpdateExtensionData_updateExtensionBuilder? updateExtension) => + _$this._updateExtension = updateExtension; + + GUpdateExtensionDataBuilder() { + GUpdateExtensionData._initializeBuilder(this); + } + + GUpdateExtensionDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _updateExtension = $v.updateExtension?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionData; + } + + @override + void update(void Function(GUpdateExtensionDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionData build() => _build(); + + _$GUpdateExtensionData _build() { + _$GUpdateExtensionData _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionData', 'G__typename'), + updateExtension: _updateExtension?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'updateExtension'; + _updateExtension?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionData_updateExtension + extends GUpdateExtensionData_updateExtension { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final GUpdateExtensionData_updateExtension_extension? extension; + + factory _$GUpdateExtensionData_updateExtension( + [void Function(GUpdateExtensionData_updateExtensionBuilder)? + updates]) => + (new GUpdateExtensionData_updateExtensionBuilder()..update(updates)) + ._build(); + + _$GUpdateExtensionData_updateExtension._( + {required this.G__typename, this.clientMutationId, this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionData_updateExtension', 'G__typename'); + } + + @override + GUpdateExtensionData_updateExtension rebuild( + void Function(GUpdateExtensionData_updateExtensionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionData_updateExtensionBuilder toBuilder() => + new GUpdateExtensionData_updateExtensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionData_updateExtension && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionData_updateExtension') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('extension', extension)) + .toString(); + } +} + +class GUpdateExtensionData_updateExtensionBuilder + implements + Builder { + _$GUpdateExtensionData_updateExtension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GUpdateExtensionData_updateExtension_extensionBuilder? _extension; + GUpdateExtensionData_updateExtension_extensionBuilder get extension => + _$this._extension ??= + new GUpdateExtensionData_updateExtension_extensionBuilder(); + set extension( + GUpdateExtensionData_updateExtension_extensionBuilder? extension) => + _$this._extension = extension; + + GUpdateExtensionData_updateExtensionBuilder() { + GUpdateExtensionData_updateExtension._initializeBuilder(this); + } + + GUpdateExtensionData_updateExtensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _extension = $v.extension?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionData_updateExtension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionData_updateExtension; + } + + @override + void update( + void Function(GUpdateExtensionData_updateExtensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionData_updateExtension build() => _build(); + + _$GUpdateExtensionData_updateExtension _build() { + _$GUpdateExtensionData_updateExtension _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionData_updateExtension._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateExtensionData_updateExtension', 'G__typename'), + clientMutationId: clientMutationId, + extension: _extension?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extension'; + _extension?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionData_updateExtension', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionData_updateExtension_extension + extends GUpdateExtensionData_updateExtension_extension { + @override + final String G__typename; + @override + final String apkName; + @override + final bool hasUpdate; + @override + final String iconUrl; + @override + final bool isInstalled; + @override + final bool isNsfw; + @override + final bool isObsolete; + @override + final String lang; + @override + final String name; + @override + final String pkgName; + @override + final String? repo; + @override + final int versionCode; + @override + final String versionName; + + factory _$GUpdateExtensionData_updateExtension_extension( + [void Function(GUpdateExtensionData_updateExtension_extensionBuilder)? + updates]) => + (new GUpdateExtensionData_updateExtension_extensionBuilder() + ..update(updates)) + ._build(); + + _$GUpdateExtensionData_updateExtension_extension._( + {required this.G__typename, + required this.apkName, + required this.hasUpdate, + required this.iconUrl, + required this.isInstalled, + required this.isNsfw, + required this.isObsolete, + required this.lang, + required this.name, + required this.pkgName, + this.repo, + required this.versionCode, + required this.versionName}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateExtensionData_updateExtension_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + apkName, r'GUpdateExtensionData_updateExtension_extension', 'apkName'); + BuiltValueNullFieldError.checkNotNull(hasUpdate, + r'GUpdateExtensionData_updateExtension_extension', 'hasUpdate'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GUpdateExtensionData_updateExtension_extension', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull(isInstalled, + r'GUpdateExtensionData_updateExtension_extension', 'isInstalled'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GUpdateExtensionData_updateExtension_extension', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull(isObsolete, + r'GUpdateExtensionData_updateExtension_extension', 'isObsolete'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GUpdateExtensionData_updateExtension_extension', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GUpdateExtensionData_updateExtension_extension', 'name'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GUpdateExtensionData_updateExtension_extension', 'pkgName'); + BuiltValueNullFieldError.checkNotNull(versionCode, + r'GUpdateExtensionData_updateExtension_extension', 'versionCode'); + BuiltValueNullFieldError.checkNotNull(versionName, + r'GUpdateExtensionData_updateExtension_extension', 'versionName'); + } + + @override + GUpdateExtensionData_updateExtension_extension rebuild( + void Function(GUpdateExtensionData_updateExtension_extensionBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionData_updateExtension_extensionBuilder toBuilder() => + new GUpdateExtensionData_updateExtension_extensionBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionData_updateExtension_extension && + G__typename == other.G__typename && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateExtensionData_updateExtension_extension') + ..add('G__typename', G__typename) + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GUpdateExtensionData_updateExtension_extensionBuilder + implements + Builder { + _$GUpdateExtensionData_updateExtension_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _apkName; + String? get apkName => _$this._apkName; + set apkName(String? apkName) => _$this._apkName = apkName; + + bool? _hasUpdate; + bool? get hasUpdate => _$this._hasUpdate; + set hasUpdate(bool? hasUpdate) => _$this._hasUpdate = hasUpdate; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + bool? _isInstalled; + bool? get isInstalled => _$this._isInstalled; + set isInstalled(bool? isInstalled) => _$this._isInstalled = isInstalled; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + bool? _isObsolete; + bool? get isObsolete => _$this._isObsolete; + set isObsolete(bool? isObsolete) => _$this._isObsolete = isObsolete; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + int? _versionCode; + int? get versionCode => _$this._versionCode; + set versionCode(int? versionCode) => _$this._versionCode = versionCode; + + String? _versionName; + String? get versionName => _$this._versionName; + set versionName(String? versionName) => _$this._versionName = versionName; + + GUpdateExtensionData_updateExtension_extensionBuilder() { + GUpdateExtensionData_updateExtension_extension._initializeBuilder(this); + } + + GUpdateExtensionData_updateExtension_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _apkName = $v.apkName; + _hasUpdate = $v.hasUpdate; + _iconUrl = $v.iconUrl; + _isInstalled = $v.isInstalled; + _isNsfw = $v.isNsfw; + _isObsolete = $v.isObsolete; + _lang = $v.lang; + _name = $v.name; + _pkgName = $v.pkgName; + _repo = $v.repo; + _versionCode = $v.versionCode; + _versionName = $v.versionName; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionData_updateExtension_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionData_updateExtension_extension; + } + + @override + void update( + void Function(GUpdateExtensionData_updateExtension_extensionBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionData_updateExtension_extension build() => _build(); + + _$GUpdateExtensionData_updateExtension_extension _build() { + final _$result = _$v ?? + new _$GUpdateExtensionData_updateExtension_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateExtensionData_updateExtension_extension', 'G__typename'), + apkName: BuiltValueNullFieldError.checkNotNull(apkName, + r'GUpdateExtensionData_updateExtension_extension', 'apkName'), + hasUpdate: BuiltValueNullFieldError.checkNotNull(hasUpdate, + r'GUpdateExtensionData_updateExtension_extension', 'hasUpdate'), + iconUrl: BuiltValueNullFieldError.checkNotNull(iconUrl, + r'GUpdateExtensionData_updateExtension_extension', 'iconUrl'), + isInstalled: BuiltValueNullFieldError.checkNotNull(isInstalled, + r'GUpdateExtensionData_updateExtension_extension', 'isInstalled'), + isNsfw: BuiltValueNullFieldError.checkNotNull(isNsfw, + r'GUpdateExtensionData_updateExtension_extension', 'isNsfw'), + isObsolete: BuiltValueNullFieldError.checkNotNull(isObsolete, + r'GUpdateExtensionData_updateExtension_extension', 'isObsolete'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GUpdateExtensionData_updateExtension_extension', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GUpdateExtensionData_updateExtension_extension', 'name'), + pkgName: BuiltValueNullFieldError.checkNotNull(pkgName, + r'GUpdateExtensionData_updateExtension_extension', 'pkgName'), + repo: repo, + versionCode: BuiltValueNullFieldError.checkNotNull(versionCode, + r'GUpdateExtensionData_updateExtension_extension', 'versionCode'), + versionName: BuiltValueNullFieldError.checkNotNull(versionName, + r'GUpdateExtensionData_updateExtension_extension', 'versionName'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.req.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.req.gql.dart new file mode 100644 index 00000000..5ba6ee4d --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_extension.req.gql.g.dart'; + +abstract class GUpdateExtensionReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateExtensionData, _i3.GUpdateExtensionVars> { + GUpdateExtensionReq._(); + + factory GUpdateExtensionReq( + [void Function(GUpdateExtensionReqBuilder b) updates]) = + _$GUpdateExtensionReq; + + static void _initializeBuilder(GUpdateExtensionReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateExtension', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateExtensionVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateExtensionData? Function( + _i2.GUpdateExtensionData?, + _i2.GUpdateExtensionData?, + )? get updateResult; + @override + _i2.GUpdateExtensionData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateExtensionData? parseData(Map json) => + _i2.GUpdateExtensionData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateExtensionData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateExtensionData, _i3.GUpdateExtensionVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateExtensionReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateExtensionReq.serializer, + this, + ) as Map); + + static GUpdateExtensionReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateExtensionReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.req.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.req.gql.g.dart new file mode 100644 index 00000000..e5225c36 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.req.gql.g.dart @@ -0,0 +1,373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_extension.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateExtensionReqSerializer = + new _$GUpdateExtensionReqSerializer(); + +class _$GUpdateExtensionReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReq, + _$GUpdateExtensionReq + ]; + @override + final String wireName = 'GUpdateExtensionReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateExtensionVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateExtensionData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateExtensionReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateExtensionVars))! + as _i3.GUpdateExtensionVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateExtensionData))! + as _i2.GUpdateExtensionData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReq extends GUpdateExtensionReq { + @override + final _i3.GUpdateExtensionVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateExtensionData? Function( + _i2.GUpdateExtensionData?, _i2.GUpdateExtensionData?)? updateResult; + @override + final _i2.GUpdateExtensionData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateExtensionReq( + [void Function(GUpdateExtensionReqBuilder)? updates]) => + (new GUpdateExtensionReqBuilder()..update(updates))._build(); + + _$GUpdateExtensionReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateExtensionReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateExtensionReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateExtensionReq', 'executeOnListen'); + } + + @override + GUpdateExtensionReq rebuild( + void Function(GUpdateExtensionReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReqBuilder toBuilder() => + new GUpdateExtensionReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateExtensionReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateExtensionReqBuilder + implements Builder { + _$GUpdateExtensionReq? _$v; + + _i3.GUpdateExtensionVarsBuilder? _vars; + _i3.GUpdateExtensionVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateExtensionVarsBuilder(); + set vars(_i3.GUpdateExtensionVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateExtensionData? Function( + _i2.GUpdateExtensionData?, _i2.GUpdateExtensionData?)? _updateResult; + _i2.GUpdateExtensionData? Function( + _i2.GUpdateExtensionData?, _i2.GUpdateExtensionData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateExtensionData? Function( + _i2.GUpdateExtensionData?, _i2.GUpdateExtensionData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateExtensionDataBuilder? _optimisticResponse; + _i2.GUpdateExtensionDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateExtensionDataBuilder(); + set optimisticResponse(_i2.GUpdateExtensionDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateExtensionReqBuilder() { + GUpdateExtensionReq._initializeBuilder(this); + } + + GUpdateExtensionReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReq; + } + + @override + void update(void Function(GUpdateExtensionReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReq build() => _build(); + + _$GUpdateExtensionReq _build() { + _$GUpdateExtensionReq _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateExtensionReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateExtensionReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.dart new file mode 100644 index 00000000..c7c0f84a --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.dart @@ -0,0 +1,38 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_extension.var.gql.g.dart'; + +abstract class GUpdateExtensionVars + implements Built { + GUpdateExtensionVars._(); + + factory GUpdateExtensionVars( + [void Function(GUpdateExtensionVarsBuilder b) updates]) = + _$GUpdateExtensionVars; + + String get id; + bool? get install; + bool? get uninstall; + @BuiltValueField(wireName: 'update') + bool? get Gupdate; + static Serializer get serializer => + _$gUpdateExtensionVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionVars.serializer, + this, + ) as Map); + + static GUpdateExtensionVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.g.dart b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.g.dart new file mode 100644 index 00000000..35056052 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.g.dart @@ -0,0 +1,213 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_extension.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateExtensionVarsSerializer = + new _$GUpdateExtensionVarsSerializer(); + +class _$GUpdateExtensionVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionVars, + _$GUpdateExtensionVars + ]; + @override + final String wireName = 'GUpdateExtensionVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.install; + if (value != null) { + result + ..add('install') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.uninstall; + if (value != null) { + result + ..add('uninstall') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.Gupdate; + if (value != null) { + result + ..add('update') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateExtensionVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'install': + result.install = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'uninstall': + result.uninstall = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'update': + result.Gupdate = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionVars extends GUpdateExtensionVars { + @override + final String id; + @override + final bool? install; + @override + final bool? uninstall; + @override + final bool? Gupdate; + + factory _$GUpdateExtensionVars( + [void Function(GUpdateExtensionVarsBuilder)? updates]) => + (new GUpdateExtensionVarsBuilder()..update(updates))._build(); + + _$GUpdateExtensionVars._( + {required this.id, this.install, this.uninstall, this.Gupdate}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateExtensionVars', 'id'); + } + + @override + GUpdateExtensionVars rebuild( + void Function(GUpdateExtensionVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionVarsBuilder toBuilder() => + new GUpdateExtensionVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionVars && + id == other.id && + install == other.install && + uninstall == other.uninstall && + Gupdate == other.Gupdate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, install.hashCode); + _$hash = $jc(_$hash, uninstall.hashCode); + _$hash = $jc(_$hash, Gupdate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionVars') + ..add('id', id) + ..add('install', install) + ..add('uninstall', uninstall) + ..add('Gupdate', Gupdate)) + .toString(); + } +} + +class GUpdateExtensionVarsBuilder + implements Builder { + _$GUpdateExtensionVars? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _install; + bool? get install => _$this._install; + set install(bool? install) => _$this._install = install; + + bool? _uninstall; + bool? get uninstall => _$this._uninstall; + set uninstall(bool? uninstall) => _$this._uninstall = uninstall; + + bool? _Gupdate; + bool? get Gupdate => _$this._Gupdate; + set Gupdate(bool? Gupdate) => _$this._Gupdate = Gupdate; + + GUpdateExtensionVarsBuilder(); + + GUpdateExtensionVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _install = $v.install; + _uninstall = $v.uninstall; + _Gupdate = $v.Gupdate; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionVars; + } + + @override + void update(void Function(GUpdateExtensionVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionVars build() => _build(); + + _$GUpdateExtensionVars _build() { + final _$result = _$v ?? + new _$GUpdateExtensionVars._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateExtensionVars', 'id'), + install: install, + uninstall: uninstall, + Gupdate: Gupdate, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/fetch_extension_list.graphql b/lib/src/features/browse_center/data/extension_repository/graphql/queries/fetch_extension_list.graphql new file mode 100644 index 00000000..934414ab --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/fetch_extension_list.graphql @@ -0,0 +1,10 @@ +# import '/src/features/browse_center/domain/extension/graphql/extension_fragment.graphql' + +mutation FetchExtensionList { + fetchExtensions(input: {}) { + clientMutationId + extensions { + ...ExtensionFragment + } + } +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/install_external_extension.graphql b/lib/src/features/browse_center/data/extension_repository/graphql/queries/install_external_extension.graphql new file mode 100644 index 00000000..e15dfa98 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/install_external_extension.graphql @@ -0,0 +1,10 @@ +# import '/src/features/browse_center/domain/extension/graphql/extension_fragment.graphql' + +mutation InstallExternalExtension($extensionFile: Upload!) { + installExternalExtension(input: {extensionFile: $extensionFile}) { + clientMutationId + extension { + ...ExtensionFragment + } + } +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/queries/update_extension.graphql b/lib/src/features/browse_center/data/extension_repository/graphql/queries/update_extension.graphql new file mode 100644 index 00000000..9659fa2c --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/queries/update_extension.graphql @@ -0,0 +1,12 @@ +# import '/src/features/browse_center/domain/extension/graphql/extension_fragment.graphql' + +mutation UpdateExtension($id: String!, $install: Boolean = false, $uninstall: Boolean = false, $update: Boolean = false) { + updateExtension( + input: {id: $id, patch: {install: $install, uninstall: $uninstall, update: $update}} + ) { + clientMutationId + extension { + ...ExtensionFragment + } + } +} diff --git a/lib/src/features/browse_center/data/extension_repository/graphql/query.dart b/lib/src/features/browse_center/data/extension_repository/graphql/query.dart new file mode 100644 index 00000000..7685c528 --- /dev/null +++ b/lib/src/features/browse_center/data/extension_repository/graphql/query.dart @@ -0,0 +1,26 @@ +import 'package:http/http.dart'; + +import 'queries/__generated__/fetch_extension_list.req.gql.dart'; +import 'queries/__generated__/install_external_extension.req.gql.dart'; +import 'queries/__generated__/update_extension.req.gql.dart'; + +abstract class ExtensionQuery { + static GFetchExtensionListReq extensionList() => GFetchExtensionListReq(); + + static GUpdateExtensionReq updateExtension( + String pkgId, { + bool install = false, + bool uninstall = false, + bool update = false, + }) => + GUpdateExtensionReq((req) => req + ..vars.id = pkgId + ..vars.install = install + ..vars.uninstall = uninstall + ..vars.Gupdate = update); + + static GInstallExternalExtensionReq installExternalExtension( + MultipartFile? extensionFile) => + GInstallExternalExtensionReq( + (req) => req..vars.extensionFile = extensionFile); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.ast.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.ast.gql.dart new file mode 100644 index 00000000..a2d3256a --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.ast.gql.dart @@ -0,0 +1,56 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.ast.gql.dart' + as _i3; + +const FetchSourceManga = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'FetchSourceManga'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaInput'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'fetchSourceManga'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SourceMangaPage'), + directives: [], + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + FetchSourceManga, + _i2.SourceMangaPage, + _i3.MangaFragment, + _i4.ChapterFragment, + _i5.SourceFragment, +]); diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.dart new file mode 100644 index 00000000..22a3ea03 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.dart @@ -0,0 +1,849 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fetch_source_manga.data.gql.g.dart'; + +abstract class GFetchSourceMangaData + implements Built { + GFetchSourceMangaData._(); + + factory GFetchSourceMangaData( + [void Function(GFetchSourceMangaDataBuilder b) updates]) = + _$GFetchSourceMangaData; + + static void _initializeBuilder(GFetchSourceMangaDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GFetchSourceMangaData_fetchSourceManga? get fetchSourceManga; + static Serializer get serializer => + _$gFetchSourceMangaDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData.serializer, + this, + ) as Map); + + static GFetchSourceMangaData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchSourceMangaData.serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga + implements + Built, + _i2.GSourceMangaPage { + GFetchSourceMangaData_fetchSourceManga._(); + + factory GFetchSourceMangaData_fetchSourceManga( + [void Function(GFetchSourceMangaData_fetchSourceMangaBuilder b) + updates]) = _$GFetchSourceMangaData_fetchSourceManga; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceMangaBuilder b) => + b..G__typename = 'FetchSourceMangaPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get hasNextPage; + @override + BuiltList get mangas; + static Serializer get serializer => + _$gFetchSourceMangaDataFetchSourceMangaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga.serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga.serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas + implements + Built, + _i2.GSourceMangaPage_mangas, + _i3.GMangaFragment { + GFetchSourceMangaData_fetchSourceManga_mangas._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas( + [void Function(GFetchSourceMangaData_fetchSourceManga_mangasBuilder b) + updates]) = _$GFetchSourceMangaData_fetchSourceManga_mangas; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangasBuilder b) => + b..G__typename = 'MangaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i4.GLongString? get age; + @override + String? get artist; + @override + String? get author; + @override + _i4.GLongString? get chaptersAge; + @override + _i4.GLongString? get chaptersLastFetchedAt; + @override + String? get description; + @override + int get downloadCount; + @override + BuiltList get genre; + @override + int get id; + @override + bool get inLibrary; + @override + _i4.GLongString get inLibraryAt; + @override + bool get initialized; + @override + _i4.GLongString? get lastFetchedAt; + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter? + get lastReadChapter; + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter? + get latestFetchedChapter; + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter? + get latestReadChapter; + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter? + get latestUploadedChapter; + @override + BuiltList get meta; + @override + String? get realUrl; + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source? get source; + @override + _i4.GLongString get sourceId; + @override + _i4.GMangaStatus get status; + @override + String? get thumbnailUrl; + @override + _i4.GLongString? get thumbnailUrlLastFetched; + @override + String get title; + @override + int get unreadCount; + @override + _i4.GUpdateStrategy get updateStrategy; + @override + String get url; + static Serializer + get serializer => _$gFetchSourceMangaDataFetchSourceMangaMangasSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas.serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas.serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter + implements + Built, + _i2.GSourceMangaPage_mangas_lastReadChapter, + _i3.GMangaFragment_lastReadChapter, + _i5.GChapterFragment { + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder + b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i4.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i4.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i4.GLongString get uploadDate; + @override + String get url; + @override + BuiltList + get meta; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLastReadChapterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + implements + Built< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder>, + _i2.GSourceMangaPage_mangas_lastReadChapter_meta, + _i3.GMangaFragment_lastReadChapter_meta, + _i5.GChapterFragment_meta { + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder + b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLastReadChapterMetaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + implements + Built< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder>, + _i2.GSourceMangaPage_mangas_latestFetchedChapter, + _i3.GMangaFragment_latestFetchedChapter, + _i5.GChapterFragment { + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder + b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i4.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i4.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i4.GLongString get uploadDate; + @override + String get url; + @override + BuiltList< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta> + get meta; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestFetchedChapterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + implements + Built< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder>, + _i2.GSourceMangaPage_mangas_latestFetchedChapter_meta, + _i3.GMangaFragment_latestFetchedChapter_meta, + _i5.GChapterFragment_meta { + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder + b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestFetchedChapterMetaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + implements + Built, + _i2.GSourceMangaPage_mangas_latestReadChapter, + _i3.GMangaFragment_latestReadChapter, + _i5.GChapterFragment { + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder + b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i4.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i4.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i4.GLongString get uploadDate; + @override + String get url; + @override + BuiltList< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta> + get meta; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestReadChapterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + implements + Built< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder>, + _i2.GSourceMangaPage_mangas_latestReadChapter_meta, + _i3.GMangaFragment_latestReadChapter_meta, + _i5.GChapterFragment_meta { + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder + b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestReadChapterMetaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + implements + Built< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder>, + _i2.GSourceMangaPage_mangas_latestUploadedChapter, + _i3.GMangaFragment_latestUploadedChapter, + _i5.GChapterFragment { + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder + b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i4.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i4.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i4.GLongString get uploadDate; + @override + String get url; + @override + BuiltList< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta> + get meta; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestUploadedChapterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + implements + Built< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder>, + _i2.GSourceMangaPage_mangas_latestUploadedChapter_meta, + _i3.GMangaFragment_latestUploadedChapter_meta, + _i5.GChapterFragment_meta { + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder + b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestUploadedChapterMetaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + .serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_meta + implements + Built, + _i2.GSourceMangaPage_mangas_meta, + _i3.GMangaFragment_meta { + GFetchSourceMangaData_fetchSourceManga_mangas_meta._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder b) + updates]) = _$GFetchSourceMangaData_fetchSourceManga_mangas_meta; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder b) => + b..G__typename = 'MangaMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasMetaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_meta.serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_meta? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_meta.serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_source + implements + Built, + _i2.GSourceMangaPage_mangas_source, + _i3.GMangaFragment_source, + _i6.GSourceFragment { + GFetchSourceMangaData_fetchSourceManga_mangas_source._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_source( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder b) + updates]) = _$GFetchSourceMangaData_fetchSourceManga_mangas_source; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i4.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension get extension; + static Serializer + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasSourceSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_source.serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_source? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_source.serializer, + json, + ); +} + +abstract class GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + implements + Built, + _i2.GSourceMangaPage_mangas_source_extension, + _i3.GMangaFragment_source_extension, + _i6.GSourceFragment_extension { + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension._(); + + factory GFetchSourceMangaData_fetchSourceManga_mangas_source_extension( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder + b) + updates]) = + _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension; + + static void _initializeBuilder( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder + b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension> + get serializer => + _$gFetchSourceMangaDataFetchSourceMangaMangasSourceExtensionSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + .serializer, + this, + ) as Map); + + static GFetchSourceMangaData_fetchSourceManga_mangas_source_extension? + fromJson(Map json) => _i1.serializers.deserializeWith( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + .serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.g.dart new file mode 100644 index 00000000..85aff3d0 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.g.dart @@ -0,0 +1,5632 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fetch_source_manga.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gFetchSourceMangaDataSerializer = + new _$GFetchSourceMangaDataSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaSerializer = + new _$GFetchSourceMangaData_fetchSourceMangaSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangasSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasLastReadChapterSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasLastReadChapterMetaSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestFetchedChapterSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterSerializer(); +Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta> + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestFetchedChapterMetaSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestReadChapterSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestReadChapterMetaSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestUploadedChapterSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterSerializer(); +Serializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta> + _$gFetchSourceMangaDataFetchSourceMangaMangasLatestUploadedChapterMetaSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasMetaSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_metaSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasSourceSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_sourceSerializer(); +Serializer + _$gFetchSourceMangaDataFetchSourceMangaMangasSourceExtensionSerializer = + new _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionSerializer(); + +class _$GFetchSourceMangaDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchSourceMangaData, + _$GFetchSourceMangaData + ]; + @override + final String wireName = 'GFetchSourceMangaData'; + + @override + Iterable serialize( + Serializers serializers, GFetchSourceMangaData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.fetchSourceManga; + if (value != null) { + result + ..add('fetchSourceManga') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GFetchSourceMangaData_fetchSourceManga))); + } + return result; + } + + @override + GFetchSourceMangaData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchSourceMangaDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'fetchSourceManga': + result.fetchSourceManga.replace(serializers.deserialize(value, + specifiedType: + const FullType(GFetchSourceMangaData_fetchSourceManga))! + as GFetchSourceMangaData_fetchSourceManga); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceMangaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga, + _$GFetchSourceMangaData_fetchSourceManga + ]; + @override + final String wireName = 'GFetchSourceMangaData_fetchSourceManga'; + + @override + Iterable serialize( + Serializers serializers, GFetchSourceMangaData_fetchSourceManga object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'hasNextPage', + serializers.serialize(object.hasNextPage, + specifiedType: const FullType(bool)), + 'mangas', + serializers.serialize(object.mangas, + specifiedType: const FullType(BuiltList, const [ + const FullType(GFetchSourceMangaData_fetchSourceManga_mangas) + ])), + ]; + + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchSourceMangaData_fetchSourceMangaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'hasNextPage': + result.hasNextPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'mangas': + result.mangas.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GFetchSourceMangaData_fetchSourceManga_mangas) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangasSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas, + _$GFetchSourceMangaData_fetchSourceManga_mangas + ]; + @override + final String wireName = 'GFetchSourceMangaData_fetchSourceManga_mangas'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'downloadCount', + serializers.serialize(object.downloadCount, + specifiedType: const FullType(int)), + 'genre', + serializers.serialize(object.genre, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'inLibrary', + serializers.serialize(object.inLibrary, + specifiedType: const FullType(bool)), + 'inLibraryAt', + serializers.serialize(object.inLibraryAt, + specifiedType: const FullType(_i4.GLongString)), + 'initialized', + serializers.serialize(object.initialized, + specifiedType: const FullType(bool)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GFetchSourceMangaData_fetchSourceManga_mangas_meta) + ])), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(_i4.GLongString)), + 'status', + serializers.serialize(object.status, + specifiedType: const FullType(_i4.GMangaStatus)), + 'title', + serializers.serialize(object.title, + specifiedType: const FullType(String)), + 'unreadCount', + serializers.serialize(object.unreadCount, + specifiedType: const FullType(int)), + 'updateStrategy', + serializers.serialize(object.updateStrategy, + specifiedType: const FullType(_i4.GUpdateStrategy)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.age; + if (value != null) { + result + ..add('age') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i4.GLongString))); + } + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.chaptersAge; + if (value != null) { + result + ..add('chaptersAge') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i4.GLongString))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i4.GLongString))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i4.GLongString))); + } + value = object.lastReadChapter; + if (value != null) { + result + ..add('lastReadChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter))); + } + value = object.latestFetchedChapter; + if (value != null) { + result + ..add('latestFetchedChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter))); + } + value = object.latestReadChapter; + if (value != null) { + result + ..add('latestReadChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter))); + } + value = object.latestUploadedChapter; + if (value != null) { + result + ..add('latestUploadedChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.source; + if (value != null) { + result + ..add('source') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_source))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.thumbnailUrlLastFetched; + if (value != null) { + result + ..add('thumbnailUrlLastFetched') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i4.GLongString))); + } + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchSourceMangaData_fetchSourceManga_mangasBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'age': + result.age.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'artist': + result.artist = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'author': + result.author = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'chaptersAge': + result.chaptersAge.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'downloadCount': + result.downloadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'initialized': + result.initialized = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'lastReadChapter': + result.lastReadChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter))! + as GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter); + break; + case 'latestFetchedChapter': + result.latestFetchedChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter))! + as GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter); + break; + case 'latestReadChapter': + result.latestReadChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter))! + as GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter); + break; + case 'latestUploadedChapter': + result.latestUploadedChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter))! + as GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_meta) + ]))! as BuiltList); + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_source))! + as GFetchSourceMangaData_fetchSourceManga_mangas_source); + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(_i4.GMangaStatus))! + as _i4.GMangaStatus; + break; + case 'thumbnailUrl': + result.thumbnailUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'thumbnailUrlLastFetched': + result.thumbnailUrlLastFetched.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'unreadCount': + result.unreadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'updateStrategy': + result.updateStrategy = serializers.deserialize(value, + specifiedType: const FullType(_i4.GUpdateStrategy))! + as _i4.GUpdateStrategy; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter, + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i4.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i4.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i4.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta, + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter, + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i4.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i4.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i4.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta, + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta'; + + @override + Iterable serialize( + Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter, + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i4.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i4.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i4.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta, + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta'; + + @override + Iterable serialize( + Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter, + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter'; + + @override + Iterable serialize( + Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i4.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i4.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i4.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta, + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta'; + + @override + Iterable serialize( + Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_metaSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_meta> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_meta, + _$GFetchSourceMangaData_fetchSourceManga_mangas_meta + ]; + @override + final String wireName = 'GFetchSourceMangaData_fetchSourceManga_mangas_meta'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_sourceSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_source> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_source, + _$GFetchSourceMangaData_fetchSourceManga_mangas_source + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_source'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_source object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i4.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension)), + ]; + + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i4.GLongString))! + as _i4.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension))! + as GFetchSourceMangaData_fetchSourceManga_mangas_source_extension); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionSerializer + implements + StructuredSerializer< + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension> { + @override + final Iterable types = const [ + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension, + _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + ]; + @override + final String wireName = + 'GFetchSourceMangaData_fetchSourceManga_mangas_source_extension'; + + @override + Iterable serialize(Serializers serializers, + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaData extends GFetchSourceMangaData { + @override + final String G__typename; + @override + final GFetchSourceMangaData_fetchSourceManga? fetchSourceManga; + + factory _$GFetchSourceMangaData( + [void Function(GFetchSourceMangaDataBuilder)? updates]) => + (new GFetchSourceMangaDataBuilder()..update(updates))._build(); + + _$GFetchSourceMangaData._({required this.G__typename, this.fetchSourceManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFetchSourceMangaData', 'G__typename'); + } + + @override + GFetchSourceMangaData rebuild( + void Function(GFetchSourceMangaDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaDataBuilder toBuilder() => + new GFetchSourceMangaDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaData && + G__typename == other.G__typename && + fetchSourceManga == other.fetchSourceManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, fetchSourceManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchSourceMangaData') + ..add('G__typename', G__typename) + ..add('fetchSourceManga', fetchSourceManga)) + .toString(); + } +} + +class GFetchSourceMangaDataBuilder + implements Builder { + _$GFetchSourceMangaData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GFetchSourceMangaData_fetchSourceMangaBuilder? _fetchSourceManga; + GFetchSourceMangaData_fetchSourceMangaBuilder get fetchSourceManga => + _$this._fetchSourceManga ??= + new GFetchSourceMangaData_fetchSourceMangaBuilder(); + set fetchSourceManga( + GFetchSourceMangaData_fetchSourceMangaBuilder? fetchSourceManga) => + _$this._fetchSourceManga = fetchSourceManga; + + GFetchSourceMangaDataBuilder() { + GFetchSourceMangaData._initializeBuilder(this); + } + + GFetchSourceMangaDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _fetchSourceManga = $v.fetchSourceManga?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaData; + } + + @override + void update(void Function(GFetchSourceMangaDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData build() => _build(); + + _$GFetchSourceMangaData _build() { + _$GFetchSourceMangaData _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFetchSourceMangaData', 'G__typename'), + fetchSourceManga: _fetchSourceManga?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchSourceManga'; + _fetchSourceManga?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga + extends GFetchSourceMangaData_fetchSourceManga { + @override + final String G__typename; + @override + final bool hasNextPage; + @override + final BuiltList mangas; + + factory _$GFetchSourceMangaData_fetchSourceManga( + [void Function(GFetchSourceMangaData_fetchSourceMangaBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceMangaBuilder()..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga._( + {required this.G__typename, + required this.hasNextPage, + required this.mangas}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFetchSourceMangaData_fetchSourceManga', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GFetchSourceMangaData_fetchSourceManga', 'hasNextPage'); + BuiltValueNullFieldError.checkNotNull( + mangas, r'GFetchSourceMangaData_fetchSourceManga', 'mangas'); + } + + @override + GFetchSourceMangaData_fetchSourceManga rebuild( + void Function(GFetchSourceMangaData_fetchSourceMangaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceMangaBuilder toBuilder() => + new GFetchSourceMangaData_fetchSourceMangaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaData_fetchSourceManga && + G__typename == other.G__typename && + hasNextPage == other.hasNextPage && + mangas == other.mangas; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, hasNextPage.hashCode); + _$hash = $jc(_$hash, mangas.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga') + ..add('G__typename', G__typename) + ..add('hasNextPage', hasNextPage) + ..add('mangas', mangas)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceMangaBuilder + implements + Builder { + _$GFetchSourceMangaData_fetchSourceManga? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _hasNextPage; + bool? get hasNextPage => _$this._hasNextPage; + set hasNextPage(bool? hasNextPage) => _$this._hasNextPage = hasNextPage; + + ListBuilder? _mangas; + ListBuilder get mangas => + _$this._mangas ??= + new ListBuilder(); + set mangas( + ListBuilder? mangas) => + _$this._mangas = mangas; + + GFetchSourceMangaData_fetchSourceMangaBuilder() { + GFetchSourceMangaData_fetchSourceManga._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceMangaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _hasNextPage = $v.hasNextPage; + _mangas = $v.mangas.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaData_fetchSourceManga other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaData_fetchSourceManga; + } + + @override + void update( + void Function(GFetchSourceMangaData_fetchSourceMangaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga build() => _build(); + + _$GFetchSourceMangaData_fetchSourceManga _build() { + _$GFetchSourceMangaData_fetchSourceManga _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFetchSourceMangaData_fetchSourceManga', 'G__typename'), + hasNextPage: BuiltValueNullFieldError.checkNotNull(hasNextPage, + r'GFetchSourceMangaData_fetchSourceManga', 'hasNextPage'), + mangas: mangas.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'mangas'; + mangas.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData_fetchSourceManga', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas + extends GFetchSourceMangaData_fetchSourceManga_mangas { + @override + final String G__typename; + @override + final _i4.GLongString? age; + @override + final String? artist; + @override + final String? author; + @override + final _i4.GLongString? chaptersAge; + @override + final _i4.GLongString? chaptersLastFetchedAt; + @override + final String? description; + @override + final int downloadCount; + @override + final BuiltList genre; + @override + final int id; + @override + final bool inLibrary; + @override + final _i4.GLongString inLibraryAt; + @override + final bool initialized; + @override + final _i4.GLongString? lastFetchedAt; + @override + final GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter? + lastReadChapter; + @override + final GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter? + latestFetchedChapter; + @override + final GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter? + latestReadChapter; + @override + final GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter? + latestUploadedChapter; + @override + final BuiltList meta; + @override + final String? realUrl; + @override + final GFetchSourceMangaData_fetchSourceManga_mangas_source? source; + @override + final _i4.GLongString sourceId; + @override + final _i4.GMangaStatus status; + @override + final String? thumbnailUrl; + @override + final _i4.GLongString? thumbnailUrlLastFetched; + @override + final String title; + @override + final int unreadCount; + @override + final _i4.GUpdateStrategy updateStrategy; + @override + final String url; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas( + [void Function(GFetchSourceMangaData_fetchSourceManga_mangasBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangasBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas._( + {required this.G__typename, + this.age, + this.artist, + this.author, + this.chaptersAge, + this.chaptersLastFetchedAt, + this.description, + required this.downloadCount, + required this.genre, + required this.id, + required this.inLibrary, + required this.inLibraryAt, + required this.initialized, + this.lastFetchedAt, + this.lastReadChapter, + this.latestFetchedChapter, + this.latestReadChapter, + this.latestUploadedChapter, + required this.meta, + this.realUrl, + this.source, + required this.sourceId, + required this.status, + this.thumbnailUrl, + this.thumbnailUrlLastFetched, + required this.title, + required this.unreadCount, + required this.updateStrategy, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(downloadCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'downloadCount'); + BuiltValueNullFieldError.checkNotNull( + genre, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'genre'); + BuiltValueNullFieldError.checkNotNull( + id, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'id'); + BuiltValueNullFieldError.checkNotNull(inLibrary, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'inLibrary'); + BuiltValueNullFieldError.checkNotNull(inLibraryAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'inLibraryAt'); + BuiltValueNullFieldError.checkNotNull(initialized, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'initialized'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'meta'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'sourceId'); + BuiltValueNullFieldError.checkNotNull( + status, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'status'); + BuiltValueNullFieldError.checkNotNull( + title, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'title'); + BuiltValueNullFieldError.checkNotNull(unreadCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'unreadCount'); + BuiltValueNullFieldError.checkNotNull(updateStrategy, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'updateStrategy'); + BuiltValueNullFieldError.checkNotNull( + url, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'url'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas rebuild( + void Function(GFetchSourceMangaData_fetchSourceManga_mangasBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangasBuilder toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangasBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaData_fetchSourceManga_mangas && + G__typename == other.G__typename && + age == other.age && + artist == other.artist && + author == other.author && + chaptersAge == other.chaptersAge && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + downloadCount == other.downloadCount && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + lastReadChapter == other.lastReadChapter && + latestFetchedChapter == other.latestFetchedChapter && + latestReadChapter == other.latestReadChapter && + latestUploadedChapter == other.latestUploadedChapter && + meta == other.meta && + realUrl == other.realUrl && + source == other.source && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + thumbnailUrlLastFetched == other.thumbnailUrlLastFetched && + title == other.title && + unreadCount == other.unreadCount && + updateStrategy == other.updateStrategy && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, age.hashCode); + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, chaptersAge.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, downloadCount.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, lastReadChapter.hashCode); + _$hash = $jc(_$hash, latestFetchedChapter.hashCode); + _$hash = $jc(_$hash, latestReadChapter.hashCode); + _$hash = $jc(_$hash, latestUploadedChapter.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, thumbnailUrlLastFetched.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, unreadCount.hashCode); + _$hash = $jc(_$hash, updateStrategy.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas') + ..add('G__typename', G__typename) + ..add('age', age) + ..add('artist', artist) + ..add('author', author) + ..add('chaptersAge', chaptersAge) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('downloadCount', downloadCount) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('lastReadChapter', lastReadChapter) + ..add('latestFetchedChapter', latestFetchedChapter) + ..add('latestReadChapter', latestReadChapter) + ..add('latestUploadedChapter', latestUploadedChapter) + ..add('meta', meta) + ..add('realUrl', realUrl) + ..add('source', source) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('thumbnailUrlLastFetched', thumbnailUrlLastFetched) + ..add('title', title) + ..add('unreadCount', unreadCount) + ..add('updateStrategy', updateStrategy) + ..add('url', url)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangasBuilder + implements + Builder { + _$GFetchSourceMangaData_fetchSourceManga_mangas? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i4.GLongStringBuilder? _age; + _i4.GLongStringBuilder get age => + _$this._age ??= new _i4.GLongStringBuilder(); + set age(_i4.GLongStringBuilder? age) => _$this._age = age; + + String? _artist; + String? get artist => _$this._artist; + set artist(String? artist) => _$this._artist = artist; + + String? _author; + String? get author => _$this._author; + set author(String? author) => _$this._author = author; + + _i4.GLongStringBuilder? _chaptersAge; + _i4.GLongStringBuilder get chaptersAge => + _$this._chaptersAge ??= new _i4.GLongStringBuilder(); + set chaptersAge(_i4.GLongStringBuilder? chaptersAge) => + _$this._chaptersAge = chaptersAge; + + _i4.GLongStringBuilder? _chaptersLastFetchedAt; + _i4.GLongStringBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new _i4.GLongStringBuilder(); + set chaptersLastFetchedAt(_i4.GLongStringBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + int? _downloadCount; + int? get downloadCount => _$this._downloadCount; + set downloadCount(int? downloadCount) => + _$this._downloadCount = downloadCount; + + ListBuilder? _genre; + ListBuilder get genre => _$this._genre ??= new ListBuilder(); + set genre(ListBuilder? genre) => _$this._genre = genre; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + _i4.GLongStringBuilder? _inLibraryAt; + _i4.GLongStringBuilder get inLibraryAt => + _$this._inLibraryAt ??= new _i4.GLongStringBuilder(); + set inLibraryAt(_i4.GLongStringBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + bool? _initialized; + bool? get initialized => _$this._initialized; + set initialized(bool? initialized) => _$this._initialized = initialized; + + _i4.GLongStringBuilder? _lastFetchedAt; + _i4.GLongStringBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new _i4.GLongStringBuilder(); + set lastFetchedAt(_i4.GLongStringBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder? + _lastReadChapter; + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder + get lastReadChapter => _$this._lastReadChapter ??= + new GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder(); + set lastReadChapter( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder? + lastReadChapter) => + _$this._lastReadChapter = lastReadChapter; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder? + _latestFetchedChapter; + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder + get latestFetchedChapter => _$this._latestFetchedChapter ??= + new GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder(); + set latestFetchedChapter( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder? + latestFetchedChapter) => + _$this._latestFetchedChapter = latestFetchedChapter; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder? + _latestReadChapter; + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder + get latestReadChapter => _$this._latestReadChapter ??= + new GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder(); + set latestReadChapter( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder? + latestReadChapter) => + _$this._latestReadChapter = latestReadChapter; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder? + _latestUploadedChapter; + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder + get latestUploadedChapter => _$this._latestUploadedChapter ??= + new GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder(); + set latestUploadedChapter( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder? + latestUploadedChapter) => + _$this._latestUploadedChapter = latestUploadedChapter; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta( + ListBuilder? + meta) => + _$this._meta = meta; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder? _source; + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder get source => + _$this._source ??= + new GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder(); + set source( + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder? + source) => + _$this._source = source; + + _i4.GLongStringBuilder? _sourceId; + _i4.GLongStringBuilder get sourceId => + _$this._sourceId ??= new _i4.GLongStringBuilder(); + set sourceId(_i4.GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + _i4.GMangaStatus? _status; + _i4.GMangaStatus? get status => _$this._status; + set status(_i4.GMangaStatus? status) => _$this._status = status; + + String? _thumbnailUrl; + String? get thumbnailUrl => _$this._thumbnailUrl; + set thumbnailUrl(String? thumbnailUrl) => _$this._thumbnailUrl = thumbnailUrl; + + _i4.GLongStringBuilder? _thumbnailUrlLastFetched; + _i4.GLongStringBuilder get thumbnailUrlLastFetched => + _$this._thumbnailUrlLastFetched ??= new _i4.GLongStringBuilder(); + set thumbnailUrlLastFetched( + _i4.GLongStringBuilder? thumbnailUrlLastFetched) => + _$this._thumbnailUrlLastFetched = thumbnailUrlLastFetched; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + int? _unreadCount; + int? get unreadCount => _$this._unreadCount; + set unreadCount(int? unreadCount) => _$this._unreadCount = unreadCount; + + _i4.GUpdateStrategy? _updateStrategy; + _i4.GUpdateStrategy? get updateStrategy => _$this._updateStrategy; + set updateStrategy(_i4.GUpdateStrategy? updateStrategy) => + _$this._updateStrategy = updateStrategy; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GFetchSourceMangaData_fetchSourceManga_mangasBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangasBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _age = $v.age?.toBuilder(); + _artist = $v.artist; + _author = $v.author; + _chaptersAge = $v.chaptersAge?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description; + _downloadCount = $v.downloadCount; + _genre = $v.genre.toBuilder(); + _id = $v.id; + _inLibrary = $v.inLibrary; + _inLibraryAt = $v.inLibraryAt.toBuilder(); + _initialized = $v.initialized; + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _lastReadChapter = $v.lastReadChapter?.toBuilder(); + _latestFetchedChapter = $v.latestFetchedChapter?.toBuilder(); + _latestReadChapter = $v.latestReadChapter?.toBuilder(); + _latestUploadedChapter = $v.latestUploadedChapter?.toBuilder(); + _meta = $v.meta.toBuilder(); + _realUrl = $v.realUrl; + _source = $v.source?.toBuilder(); + _sourceId = $v.sourceId.toBuilder(); + _status = $v.status; + _thumbnailUrl = $v.thumbnailUrl; + _thumbnailUrlLastFetched = $v.thumbnailUrlLastFetched?.toBuilder(); + _title = $v.title; + _unreadCount = $v.unreadCount; + _updateStrategy = $v.updateStrategy; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaData_fetchSourceManga_mangas other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaData_fetchSourceManga_mangas; + } + + @override + void update( + void Function(GFetchSourceMangaData_fetchSourceManga_mangasBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas build() => _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas _build() { + _$GFetchSourceMangaData_fetchSourceManga_mangas _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas', + 'G__typename'), + age: _age?.build(), + artist: artist, + author: author, + chaptersAge: _chaptersAge?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: description, + downloadCount: BuiltValueNullFieldError.checkNotNull( + downloadCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas', + 'downloadCount'), + genre: genre.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'id'), + inLibrary: BuiltValueNullFieldError.checkNotNull(inLibrary, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'inLibrary'), + inLibraryAt: inLibraryAt.build(), + initialized: BuiltValueNullFieldError.checkNotNull( + initialized, + r'GFetchSourceMangaData_fetchSourceManga_mangas', + 'initialized'), + lastFetchedAt: _lastFetchedAt?.build(), + lastReadChapter: _lastReadChapter?.build(), + latestFetchedChapter: _latestFetchedChapter?.build(), + latestReadChapter: _latestReadChapter?.build(), + latestUploadedChapter: _latestUploadedChapter?.build(), + meta: meta.build(), + realUrl: realUrl, + source: _source?.build(), + sourceId: sourceId.build(), + status: BuiltValueNullFieldError.checkNotNull(status, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'status'), + thumbnailUrl: thumbnailUrl, + thumbnailUrlLastFetched: _thumbnailUrlLastFetched?.build(), + title: BuiltValueNullFieldError.checkNotNull(title, + r'GFetchSourceMangaData_fetchSourceManga_mangas', 'title'), + unreadCount: BuiltValueNullFieldError.checkNotNull( + unreadCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas', + 'unreadCount'), + updateStrategy: BuiltValueNullFieldError.checkNotNull( + updateStrategy, + r'GFetchSourceMangaData_fetchSourceManga_mangas', + 'updateStrategy'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GFetchSourceMangaData_fetchSourceManga_mangas', 'url'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'age'; + _age?.build(); + + _$failedField = 'chaptersAge'; + _chaptersAge?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + + _$failedField = 'genre'; + genre.build(); + + _$failedField = 'inLibraryAt'; + inLibraryAt.build(); + + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + _$failedField = 'lastReadChapter'; + _lastReadChapter?.build(); + _$failedField = 'latestFetchedChapter'; + _latestFetchedChapter?.build(); + _$failedField = 'latestReadChapter'; + _latestReadChapter?.build(); + _$failedField = 'latestUploadedChapter'; + _latestUploadedChapter?.build(); + _$failedField = 'meta'; + meta.build(); + + _$failedField = 'source'; + _source?.build(); + _$failedField = 'sourceId'; + sourceId.build(); + + _$failedField = 'thumbnailUrlLastFetched'; + _thumbnailUrlLastFetched?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData_fetchSourceManga_mangas', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter + extends GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i4.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i4.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i4.GLongString uploadDate; + @override + final String url; + @override + final BuiltList< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta> meta; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull(id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'meta'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder + implements + Builder { + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i4.GLongStringBuilder? _fetchedAt; + _i4.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i4.GLongStringBuilder(); + set fetchedAt(_i4.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i4.GLongStringBuilder? _lastReadAt; + _i4.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i4.GLongStringBuilder(); + set lastReadAt(_i4.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i4.GLongStringBuilder? _uploadDate; + _i4.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i4.GLongStringBuilder(); + set uploadDate(_i4.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta>? + _meta; + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta> + get meta => _$this._meta ??= new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta>(); + set meta( + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta>? + meta) => + _$this._meta = meta; + + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter build() => + _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter _build() { + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + extends GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta', + 'key'); + BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta', + 'value'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder + implements + Builder< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder> { + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta build() => + _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + _build() { + final _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta', + 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta', + 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + extends GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i4.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i4.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i4.GLongString uploadDate; + @override + final String url; + @override + final BuiltList< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta> + meta; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'meta'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder + implements + Builder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder> { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i4.GLongStringBuilder? _fetchedAt; + _i4.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i4.GLongStringBuilder(); + set fetchedAt(_i4.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i4.GLongStringBuilder? _lastReadAt; + _i4.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i4.GLongStringBuilder(); + set lastReadAt(_i4.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i4.GLongStringBuilder? _uploadDate; + _i4.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i4.GLongStringBuilder(); + set uploadDate(_i4.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta>? + _meta; + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta> + get meta => _$this._meta ??= new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta>(); + set meta( + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta>? + meta) => + _$this._meta = meta; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter build() => + _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + _build() { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + extends GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta', + 'key'); + BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta', + 'value'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder + implements + Builder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder> { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta? + _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + build() => _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + _build() { + final _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta', + 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta', + 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + extends GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i4.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i4.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i4.GLongString uploadDate; + @override + final String url; + @override + final BuiltList< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta> + meta; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'meta'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder + implements + Builder { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i4.GLongStringBuilder? _fetchedAt; + _i4.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i4.GLongStringBuilder(); + set fetchedAt(_i4.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i4.GLongStringBuilder? _lastReadAt; + _i4.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i4.GLongStringBuilder(); + set lastReadAt(_i4.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i4.GLongStringBuilder? _uploadDate; + _i4.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i4.GLongStringBuilder(); + set uploadDate(_i4.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta>? + _meta; + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta> + get meta => _$this._meta ??= new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta>(); + set meta( + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta>? + meta) => + _$this._meta = meta; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter build() => + _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter _build() { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + extends GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta', + 'key'); + BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta', + 'value'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder + implements + Builder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder> { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + build() => _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + _build() { + final _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta', + 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta', + 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + extends GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i4.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i4.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i4.GLongString uploadDate; + @override + final String url; + @override + final BuiltList< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta> + meta; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'meta'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder + implements + Builder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder> { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i4.GLongStringBuilder? _fetchedAt; + _i4.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i4.GLongStringBuilder(); + set fetchedAt(_i4.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i4.GLongStringBuilder? _lastReadAt; + _i4.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i4.GLongStringBuilder(); + set lastReadAt(_i4.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i4.GLongStringBuilder? _uploadDate; + _i4.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i4.GLongStringBuilder(); + set uploadDate(_i4.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta>? + _meta; + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta> + get meta => _$this._meta ??= new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta>(); + set meta( + ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta>? + meta) => + _$this._meta = meta; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter build() => + _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + _build() { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + extends GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta', + 'key'); + BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta', + 'value'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder + implements + Builder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder> { + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta? + _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + build() => _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + _build() { + final _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta', + 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta', + 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_meta + extends GFetchSourceMangaData_fetchSourceManga_mangas_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_meta( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GFetchSourceMangaData_fetchSourceManga_mangas_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GFetchSourceMangaData_fetchSourceManga_mangas_meta', 'value'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_meta rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaData_fetchSourceManga_mangas_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder + implements + Builder { + _$GFetchSourceMangaData_fetchSourceManga_mangas_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_meta._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaData_fetchSourceManga_mangas_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaData_fetchSourceManga_mangas_meta; + } + + @override + void update( + void Function(GFetchSourceMangaData_fetchSourceManga_mangas_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_meta build() => _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_meta _build() { + final _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull(key, + r'GFetchSourceMangaData_fetchSourceManga_mangas_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull(value, + r'GFetchSourceMangaData_fetchSourceManga_mangas_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_source + extends GFetchSourceMangaData_fetchSourceManga_mangas_source { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i4.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + extension; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_source( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_source._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(displayName, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'displayName'); + BuiltValueNullFieldError.checkNotNull(iconUrl, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + id, r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull(isNsfw, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull(extension, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', 'extension'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaData_fetchSourceManga_mangas_source && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_source') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder + implements + Builder { + _$GFetchSourceMangaData_fetchSourceManga_mangas_source? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i4.GLongStringBuilder? _id; + _i4.GLongStringBuilder get id => _$this._id ??= new _i4.GLongStringBuilder(); + set id(_i4.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder? + _extension; + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder + get extension => _$this._extension ??= + new GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder(); + set extension( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder? + extension) => + _$this._extension = extension; + + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_source._initializeBuilder( + this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaData_fetchSourceManga_mangas_source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaData_fetchSourceManga_mangas_source; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_sourceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source build() => _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_source _build() { + _$GFetchSourceMangaData_fetchSourceManga_mangas_source _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_source._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + 'supportsLatest'), + extension: extension.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaData_fetchSourceManga_mangas_source', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + extends GFetchSourceMangaData_fetchSourceManga_mangas_source_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension( + [void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder)? + updates]) => + (new GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder() + ..update(updates)) + ._build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source_extension', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source_extension', + 'pkgName'); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension rebuild( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder + toBuilder() => + new GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GFetchSourceMangaData_fetchSourceManga_mangas_source_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFetchSourceMangaData_fetchSourceManga_mangas_source_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder + implements + Builder { + _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder() { + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + ._initializeBuilder(this); + } + + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension; + } + + @override + void update( + void Function( + GFetchSourceMangaData_fetchSourceManga_mangas_source_extensionBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension build() => + _build(); + + _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension _build() { + final _$result = _$v ?? + new _$GFetchSourceMangaData_fetchSourceManga_mangas_source_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source_extension', + 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, + r'GFetchSourceMangaData_fetchSourceManga_mangas_source_extension', + 'pkgName'), + repo: repo, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.req.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.req.gql.dart new file mode 100644 index 00000000..e030162b --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fetch_source_manga.req.gql.g.dart'; + +abstract class GFetchSourceMangaReq + implements + Built, + _i1.OperationRequest<_i2.GFetchSourceMangaData, + _i3.GFetchSourceMangaVars> { + GFetchSourceMangaReq._(); + + factory GFetchSourceMangaReq( + [void Function(GFetchSourceMangaReqBuilder b) updates]) = + _$GFetchSourceMangaReq; + + static void _initializeBuilder(GFetchSourceMangaReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'FetchSourceManga', + ) + ..executeOnListen = true; + + @override + _i3.GFetchSourceMangaVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GFetchSourceMangaData? Function( + _i2.GFetchSourceMangaData?, + _i2.GFetchSourceMangaData?, + )? get updateResult; + @override + _i2.GFetchSourceMangaData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GFetchSourceMangaData? parseData(Map json) => + _i2.GFetchSourceMangaData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GFetchSourceMangaData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GFetchSourceMangaData, _i3.GFetchSourceMangaVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gFetchSourceMangaReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GFetchSourceMangaReq.serializer, + this, + ) as Map); + + static GFetchSourceMangaReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GFetchSourceMangaReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.req.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.req.gql.g.dart new file mode 100644 index 00000000..c37b4152 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.req.gql.g.dart @@ -0,0 +1,375 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fetch_source_manga.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gFetchSourceMangaReqSerializer = + new _$GFetchSourceMangaReqSerializer(); + +class _$GFetchSourceMangaReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchSourceMangaReq, + _$GFetchSourceMangaReq + ]; + @override + final String wireName = 'GFetchSourceMangaReq'; + + @override + Iterable serialize( + Serializers serializers, GFetchSourceMangaReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GFetchSourceMangaVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GFetchSourceMangaData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GFetchSourceMangaReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchSourceMangaReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GFetchSourceMangaVars))! + as _i3.GFetchSourceMangaVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GFetchSourceMangaData))! + as _i2.GFetchSourceMangaData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaReq extends GFetchSourceMangaReq { + @override + final _i3.GFetchSourceMangaVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GFetchSourceMangaData? Function( + _i2.GFetchSourceMangaData?, _i2.GFetchSourceMangaData?)? updateResult; + @override + final _i2.GFetchSourceMangaData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GFetchSourceMangaReq( + [void Function(GFetchSourceMangaReqBuilder)? updates]) => + (new GFetchSourceMangaReqBuilder()..update(updates))._build(); + + _$GFetchSourceMangaReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GFetchSourceMangaReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GFetchSourceMangaReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GFetchSourceMangaReq', 'executeOnListen'); + } + + @override + GFetchSourceMangaReq rebuild( + void Function(GFetchSourceMangaReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaReqBuilder toBuilder() => + new GFetchSourceMangaReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GFetchSourceMangaReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchSourceMangaReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GFetchSourceMangaReqBuilder + implements Builder { + _$GFetchSourceMangaReq? _$v; + + _i3.GFetchSourceMangaVarsBuilder? _vars; + _i3.GFetchSourceMangaVarsBuilder get vars => + _$this._vars ??= new _i3.GFetchSourceMangaVarsBuilder(); + set vars(_i3.GFetchSourceMangaVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GFetchSourceMangaData? Function( + _i2.GFetchSourceMangaData?, _i2.GFetchSourceMangaData?)? _updateResult; + _i2.GFetchSourceMangaData? Function( + _i2.GFetchSourceMangaData?, _i2.GFetchSourceMangaData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GFetchSourceMangaData? Function( + _i2.GFetchSourceMangaData?, _i2.GFetchSourceMangaData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GFetchSourceMangaDataBuilder? _optimisticResponse; + _i2.GFetchSourceMangaDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GFetchSourceMangaDataBuilder(); + set optimisticResponse( + _i2.GFetchSourceMangaDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GFetchSourceMangaReqBuilder() { + GFetchSourceMangaReq._initializeBuilder(this); + } + + GFetchSourceMangaReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaReq; + } + + @override + void update(void Function(GFetchSourceMangaReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaReq build() => _build(); + + _$GFetchSourceMangaReq _build() { + _$GFetchSourceMangaReq _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GFetchSourceMangaReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GFetchSourceMangaReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.dart new file mode 100644 index 00000000..744b9798 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fetch_source_manga.var.gql.g.dart'; + +abstract class GFetchSourceMangaVars + implements Built { + GFetchSourceMangaVars._(); + + factory GFetchSourceMangaVars( + [void Function(GFetchSourceMangaVarsBuilder b) updates]) = + _$GFetchSourceMangaVars; + + _i1.GFetchSourceMangaInput get input; + static Serializer get serializer => + _$gFetchSourceMangaVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GFetchSourceMangaVars.serializer, + this, + ) as Map); + + static GFetchSourceMangaVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GFetchSourceMangaVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.g.dart new file mode 100644 index 00000000..852260b5 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.g.dart @@ -0,0 +1,160 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fetch_source_manga.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gFetchSourceMangaVarsSerializer = + new _$GFetchSourceMangaVarsSerializer(); + +class _$GFetchSourceMangaVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchSourceMangaVars, + _$GFetchSourceMangaVars + ]; + @override + final String wireName = 'GFetchSourceMangaVars'; + + @override + Iterable serialize( + Serializers serializers, GFetchSourceMangaVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'input', + serializers.serialize(object.input, + specifiedType: const FullType(_i1.GFetchSourceMangaInput)), + ]; + + return result; + } + + @override + GFetchSourceMangaVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchSourceMangaVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'input': + result.input.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GFetchSourceMangaInput))! + as _i1.GFetchSourceMangaInput); + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaVars extends GFetchSourceMangaVars { + @override + final _i1.GFetchSourceMangaInput input; + + factory _$GFetchSourceMangaVars( + [void Function(GFetchSourceMangaVarsBuilder)? updates]) => + (new GFetchSourceMangaVarsBuilder()..update(updates))._build(); + + _$GFetchSourceMangaVars._({required this.input}) : super._() { + BuiltValueNullFieldError.checkNotNull( + input, r'GFetchSourceMangaVars', 'input'); + } + + @override + GFetchSourceMangaVars rebuild( + void Function(GFetchSourceMangaVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaVarsBuilder toBuilder() => + new GFetchSourceMangaVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaVars && input == other.input; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, input.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchSourceMangaVars') + ..add('input', input)) + .toString(); + } +} + +class GFetchSourceMangaVarsBuilder + implements Builder { + _$GFetchSourceMangaVars? _$v; + + _i1.GFetchSourceMangaInputBuilder? _input; + _i1.GFetchSourceMangaInputBuilder get input => + _$this._input ??= new _i1.GFetchSourceMangaInputBuilder(); + set input(_i1.GFetchSourceMangaInputBuilder? input) => _$this._input = input; + + GFetchSourceMangaVarsBuilder(); + + GFetchSourceMangaVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _input = $v.input.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaVars; + } + + @override + void update(void Function(GFetchSourceMangaVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaVars build() => _build(); + + _$GFetchSourceMangaVars _build() { + _$GFetchSourceMangaVars _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaVars._( + input: input.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'input'; + input.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.ast.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.ast.gql.dart new file mode 100644 index 00000000..56f61dd2 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.ast.gql.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart' + as _i2; + +const SourceById = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'SourceById'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'source'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SourceFragment'), + directives: [], + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + SourceById, + _i2.SourceFragment, +]); diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.dart new file mode 100644 index 00000000..a580c830 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.dart @@ -0,0 +1,130 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'source_by_id.data.gql.g.dart'; + +abstract class GSourceByIdData + implements Built { + GSourceByIdData._(); + + factory GSourceByIdData([void Function(GSourceByIdDataBuilder b) updates]) = + _$GSourceByIdData; + + static void _initializeBuilder(GSourceByIdDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GSourceByIdData_source get source; + static Serializer get serializer => + _$gSourceByIdDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceByIdData.serializer, + this, + ) as Map); + + static GSourceByIdData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceByIdData.serializer, + json, + ); +} + +abstract class GSourceByIdData_source + implements + Built, + _i2.GSourceFragment { + GSourceByIdData_source._(); + + factory GSourceByIdData_source( + [void Function(GSourceByIdData_sourceBuilder b) updates]) = + _$GSourceByIdData_source; + + static void _initializeBuilder(GSourceByIdData_sourceBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i3.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GSourceByIdData_source_extension get extension; + static Serializer get serializer => + _$gSourceByIdDataSourceSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourceByIdData_source.serializer, + this, + ) as Map); + + static GSourceByIdData_source? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceByIdData_source.serializer, + json, + ); +} + +abstract class GSourceByIdData_source_extension + implements + Built, + _i2.GSourceFragment_extension { + GSourceByIdData_source_extension._(); + + factory GSourceByIdData_source_extension( + [void Function(GSourceByIdData_source_extensionBuilder b) updates]) = + _$GSourceByIdData_source_extension; + + static void _initializeBuilder(GSourceByIdData_source_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer get serializer => + _$gSourceByIdDataSourceExtensionSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourceByIdData_source_extension.serializer, + this, + ) as Map); + + static GSourceByIdData_source_extension? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GSourceByIdData_source_extension.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.g.dart new file mode 100644 index 00000000..56a092b9 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.g.dart @@ -0,0 +1,722 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_by_id.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceByIdDataSerializer = + new _$GSourceByIdDataSerializer(); +Serializer _$gSourceByIdDataSourceSerializer = + new _$GSourceByIdData_sourceSerializer(); +Serializer + _$gSourceByIdDataSourceExtensionSerializer = + new _$GSourceByIdData_source_extensionSerializer(); + +class _$GSourceByIdDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceByIdData, _$GSourceByIdData]; + @override + final String wireName = 'GSourceByIdData'; + + @override + Iterable serialize(Serializers serializers, GSourceByIdData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'source', + serializers.serialize(object.source, + specifiedType: const FullType(GSourceByIdData_source)), + ]; + + return result; + } + + @override + GSourceByIdData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceByIdDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceByIdData_source))! + as GSourceByIdData_source); + break; + } + } + + return result.build(); + } +} + +class _$GSourceByIdData_sourceSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceByIdData_source, + _$GSourceByIdData_source + ]; + @override + final String wireName = 'GSourceByIdData_source'; + + @override + Iterable serialize( + Serializers serializers, GSourceByIdData_source object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i3.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType(GSourceByIdData_source_extension)), + ]; + + return result; + } + + @override + GSourceByIdData_source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceByIdData_sourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GLongString))! + as _i3.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: + const FullType(GSourceByIdData_source_extension))! + as GSourceByIdData_source_extension); + break; + } + } + + return result.build(); + } +} + +class _$GSourceByIdData_source_extensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceByIdData_source_extension, + _$GSourceByIdData_source_extension + ]; + @override + final String wireName = 'GSourceByIdData_source_extension'; + + @override + Iterable serialize( + Serializers serializers, GSourceByIdData_source_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceByIdData_source_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceByIdData_source_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourceByIdData extends GSourceByIdData { + @override + final String G__typename; + @override + final GSourceByIdData_source source; + + factory _$GSourceByIdData([void Function(GSourceByIdDataBuilder)? updates]) => + (new GSourceByIdDataBuilder()..update(updates))._build(); + + _$GSourceByIdData._({required this.G__typename, required this.source}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceByIdData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(source, r'GSourceByIdData', 'source'); + } + + @override + GSourceByIdData rebuild(void Function(GSourceByIdDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceByIdDataBuilder toBuilder() => + new GSourceByIdDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceByIdData && + G__typename == other.G__typename && + source == other.source; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceByIdData') + ..add('G__typename', G__typename) + ..add('source', source)) + .toString(); + } +} + +class GSourceByIdDataBuilder + implements Builder { + _$GSourceByIdData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GSourceByIdData_sourceBuilder? _source; + GSourceByIdData_sourceBuilder get source => + _$this._source ??= new GSourceByIdData_sourceBuilder(); + set source(GSourceByIdData_sourceBuilder? source) => _$this._source = source; + + GSourceByIdDataBuilder() { + GSourceByIdData._initializeBuilder(this); + } + + GSourceByIdDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _source = $v.source.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceByIdData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceByIdData; + } + + @override + void update(void Function(GSourceByIdDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceByIdData build() => _build(); + + _$GSourceByIdData _build() { + _$GSourceByIdData _$result; + try { + _$result = _$v ?? + new _$GSourceByIdData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceByIdData', 'G__typename'), + source: source.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'source'; + source.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceByIdData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceByIdData_source extends GSourceByIdData_source { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i3.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GSourceByIdData_source_extension extension; + + factory _$GSourceByIdData_source( + [void Function(GSourceByIdData_sourceBuilder)? updates]) => + (new GSourceByIdData_sourceBuilder()..update(updates))._build(); + + _$GSourceByIdData_source._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceByIdData_source', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceByIdData_source', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceByIdData_source', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull(id, r'GSourceByIdData_source', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GSourceByIdData_source', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceByIdData_source', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceByIdData_source', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GSourceByIdData_source', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GSourceByIdData_source', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GSourceByIdData_source', 'extension'); + } + + @override + GSourceByIdData_source rebuild( + void Function(GSourceByIdData_sourceBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceByIdData_sourceBuilder toBuilder() => + new GSourceByIdData_sourceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceByIdData_source && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceByIdData_source') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GSourceByIdData_sourceBuilder + implements Builder { + _$GSourceByIdData_source? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i3.GLongStringBuilder? _id; + _i3.GLongStringBuilder get id => _$this._id ??= new _i3.GLongStringBuilder(); + set id(_i3.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GSourceByIdData_source_extensionBuilder? _extension; + GSourceByIdData_source_extensionBuilder get extension => + _$this._extension ??= new GSourceByIdData_source_extensionBuilder(); + set extension(GSourceByIdData_source_extensionBuilder? extension) => + _$this._extension = extension; + + GSourceByIdData_sourceBuilder() { + GSourceByIdData_source._initializeBuilder(this); + } + + GSourceByIdData_sourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceByIdData_source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceByIdData_source; + } + + @override + void update(void Function(GSourceByIdData_sourceBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceByIdData_source build() => _build(); + + _$GSourceByIdData_source _build() { + _$GSourceByIdData_source _$result; + try { + _$result = _$v ?? + new _$GSourceByIdData_source._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceByIdData_source', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceByIdData_source', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceByIdData_source', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GSourceByIdData_source', 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceByIdData_source', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceByIdData_source', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GSourceByIdData_source', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GSourceByIdData_source', 'supportsLatest'), + extension: extension.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceByIdData_source', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceByIdData_source_extension + extends GSourceByIdData_source_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GSourceByIdData_source_extension( + [void Function(GSourceByIdData_source_extensionBuilder)? updates]) => + (new GSourceByIdData_source_extensionBuilder()..update(updates))._build(); + + _$GSourceByIdData_source_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceByIdData_source_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceByIdData_source_extension', 'pkgName'); + } + + @override + GSourceByIdData_source_extension rebuild( + void Function(GSourceByIdData_source_extensionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceByIdData_source_extensionBuilder toBuilder() => + new GSourceByIdData_source_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceByIdData_source_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceByIdData_source_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GSourceByIdData_source_extensionBuilder + implements + Builder { + _$GSourceByIdData_source_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GSourceByIdData_source_extensionBuilder() { + GSourceByIdData_source_extension._initializeBuilder(this); + } + + GSourceByIdData_source_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GSourceByIdData_source_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceByIdData_source_extension; + } + + @override + void update(void Function(GSourceByIdData_source_extensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceByIdData_source_extension build() => _build(); + + _$GSourceByIdData_source_extension _build() { + final _$result = _$v ?? + new _$GSourceByIdData_source_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceByIdData_source_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceByIdData_source_extension', 'pkgName'), + repo: repo, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.req.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.req.gql.dart new file mode 100644 index 00000000..c6700886 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.req.gql.dart @@ -0,0 +1,96 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'source_by_id.req.gql.g.dart'; + +abstract class GSourceByIdReq + implements + Built, + _i1.OperationRequest<_i2.GSourceByIdData, _i3.GSourceByIdVars> { + GSourceByIdReq._(); + + factory GSourceByIdReq([void Function(GSourceByIdReqBuilder b) updates]) = + _$GSourceByIdReq; + + static void _initializeBuilder(GSourceByIdReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'SourceById', + ) + ..executeOnListen = true; + + @override + _i3.GSourceByIdVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GSourceByIdData? Function( + _i2.GSourceByIdData?, + _i2.GSourceByIdData?, + )? get updateResult; + @override + _i2.GSourceByIdData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GSourceByIdData? parseData(Map json) => + _i2.GSourceByIdData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourceByIdData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GSourceByIdData, _i3.GSourceByIdVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gSourceByIdReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourceByIdReq.serializer, + this, + ) as Map); + + static GSourceByIdReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourceByIdReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.req.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.req.gql.g.dart new file mode 100644 index 00000000..94d2030e --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.req.gql.g.dart @@ -0,0 +1,366 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_by_id.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceByIdReqSerializer = + new _$GSourceByIdReqSerializer(); + +class _$GSourceByIdReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceByIdReq, _$GSourceByIdReq]; + @override + final String wireName = 'GSourceByIdReq'; + + @override + Iterable serialize(Serializers serializers, GSourceByIdReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourceByIdVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GSourceByIdData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GSourceByIdReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceByIdReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSourceByIdVars))! + as _i3.GSourceByIdVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GSourceByIdData))! + as _i2.GSourceByIdData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GSourceByIdReq extends GSourceByIdReq { + @override + final _i3.GSourceByIdVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GSourceByIdData? Function( + _i2.GSourceByIdData?, _i2.GSourceByIdData?)? updateResult; + @override + final _i2.GSourceByIdData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GSourceByIdReq([void Function(GSourceByIdReqBuilder)? updates]) => + (new GSourceByIdReqBuilder()..update(updates))._build(); + + _$GSourceByIdReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GSourceByIdReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GSourceByIdReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GSourceByIdReq', 'executeOnListen'); + } + + @override + GSourceByIdReq rebuild(void Function(GSourceByIdReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceByIdReqBuilder toBuilder() => + new GSourceByIdReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GSourceByIdReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceByIdReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GSourceByIdReqBuilder + implements Builder { + _$GSourceByIdReq? _$v; + + _i3.GSourceByIdVarsBuilder? _vars; + _i3.GSourceByIdVarsBuilder get vars => + _$this._vars ??= new _i3.GSourceByIdVarsBuilder(); + set vars(_i3.GSourceByIdVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GSourceByIdData? Function(_i2.GSourceByIdData?, _i2.GSourceByIdData?)? + _updateResult; + _i2.GSourceByIdData? Function(_i2.GSourceByIdData?, _i2.GSourceByIdData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GSourceByIdData? Function( + _i2.GSourceByIdData?, _i2.GSourceByIdData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GSourceByIdDataBuilder? _optimisticResponse; + _i2.GSourceByIdDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GSourceByIdDataBuilder(); + set optimisticResponse(_i2.GSourceByIdDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GSourceByIdReqBuilder() { + GSourceByIdReq._initializeBuilder(this); + } + + GSourceByIdReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GSourceByIdReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceByIdReq; + } + + @override + void update(void Function(GSourceByIdReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceByIdReq build() => _build(); + + _$GSourceByIdReq _build() { + _$GSourceByIdReq _$result; + try { + _$result = _$v ?? + new _$GSourceByIdReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GSourceByIdReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GSourceByIdReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceByIdReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.dart new file mode 100644 index 00000000..fd537a95 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'source_by_id.var.gql.g.dart'; + +abstract class GSourceByIdVars + implements Built { + GSourceByIdVars._(); + + factory GSourceByIdVars([void Function(GSourceByIdVarsBuilder b) updates]) = + _$GSourceByIdVars; + + _i1.GLongString get id; + static Serializer get serializer => + _$gSourceByIdVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GSourceByIdVars.serializer, + this, + ) as Map); + + static GSourceByIdVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourceByIdVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.g.dart new file mode 100644 index 00000000..aacf4551 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.g.dart @@ -0,0 +1,151 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_by_id.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceByIdVarsSerializer = + new _$GSourceByIdVarsSerializer(); + +class _$GSourceByIdVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceByIdVars, _$GSourceByIdVars]; + @override + final String wireName = 'GSourceByIdVars'; + + @override + Iterable serialize(Serializers serializers, GSourceByIdVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + ]; + + return result; + } + + @override + GSourceByIdVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceByIdVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + } + } + + return result.build(); + } +} + +class _$GSourceByIdVars extends GSourceByIdVars { + @override + final _i1.GLongString id; + + factory _$GSourceByIdVars([void Function(GSourceByIdVarsBuilder)? updates]) => + (new GSourceByIdVarsBuilder()..update(updates))._build(); + + _$GSourceByIdVars._({required this.id}) : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GSourceByIdVars', 'id'); + } + + @override + GSourceByIdVars rebuild(void Function(GSourceByIdVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceByIdVarsBuilder toBuilder() => + new GSourceByIdVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceByIdVars && id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceByIdVars')..add('id', id)) + .toString(); + } +} + +class GSourceByIdVarsBuilder + implements Builder { + _$GSourceByIdVars? _$v; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + GSourceByIdVarsBuilder(); + + GSourceByIdVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceByIdVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceByIdVars; + } + + @override + void update(void Function(GSourceByIdVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceByIdVars build() => _build(); + + _$GSourceByIdVars _build() { + _$GSourceByIdVars _$result; + try { + _$result = _$v ?? + new _$GSourceByIdVars._( + id: id.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceByIdVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.ast.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.ast.gql.dart new file mode 100644 index 00000000..3f8aa52e --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.ast.gql.dart @@ -0,0 +1,371 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const PrimitiveFilterFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'PrimitiveFilterFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Filter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'checkBoxState'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'HeaderFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SelectFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'selectState'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'values'), + alias: _i1.NameNode(value: 'displayValues'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriStateFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'tristate'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TextFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'textState'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'sortState'), + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SortSelectionFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'values'), + alias: _i1.NameNode(value: 'displayValues'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SeparatorFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const FilterFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'FilterFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Filter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'PrimitiveFilterFragment'), + directives: [], + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GroupFilter'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'filters'), + alias: _i1.NameNode(value: 'groupState'), + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'PrimitiveFilterFragment'), + directives: [], + ) + ]), + ), + ]), + ), + ]), +); +const SortSelectionFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SortSelectionFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortSelection'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'ascending'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'index'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const SourceFilterById = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'SourceFilterById'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'source'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'filters'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'FilterFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + PrimitiveFilterFragment, + FilterFragment, + SortSelectionFragment, + SourceFilterById, +]); diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.dart new file mode 100644 index 00000000..19094d2c --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.dart @@ -0,0 +1,776 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:gql_code_builder_serializers/gql_code_builder_serializers.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'source_filter_by_id.data.gql.g.dart'; + +abstract class GSourceFilterByIdData + implements Built { + GSourceFilterByIdData._(); + + factory GSourceFilterByIdData( + [void Function(GSourceFilterByIdDataBuilder b) updates]) = + _$GSourceFilterByIdData; + + static void _initializeBuilder(GSourceFilterByIdDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GSourceFilterByIdData_source get source; + static Serializer get serializer => + _$gSourceFilterByIdDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceFilterByIdData.serializer, + this, + ) as Map); + + static GSourceFilterByIdData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceFilterByIdData.serializer, + json, + ); +} + +abstract class GSourceFilterByIdData_source + implements + Built { + GSourceFilterByIdData_source._(); + + factory GSourceFilterByIdData_source( + [void Function(GSourceFilterByIdData_sourceBuilder b) updates]) = + _$GSourceFilterByIdData_source; + + static void _initializeBuilder(GSourceFilterByIdData_sourceBuilder b) => + b..G__typename = 'SourceType'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList get filters; + static Serializer get serializer => + _$gSourceFilterByIdDataSourceSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceFilterByIdData_source.serializer, + this, + ) as Map); + + static GSourceFilterByIdData_source? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceFilterByIdData_source.serializer, + json, + ); +} + +abstract class GSourceFilterByIdData_source_filters + implements + Built, + GFilterFragment { + GSourceFilterByIdData_source_filters._(); + + factory GSourceFilterByIdData_source_filters( + [void Function(GSourceFilterByIdData_source_filtersBuilder b) + updates]) = _$GSourceFilterByIdData_source_filters; + + static void _initializeBuilder( + GSourceFilterByIdData_source_filtersBuilder b) => + b..G__typename = 'Filter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _$gSourceFilterByIdDataSourceFiltersSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourceFilterByIdData_source_filters.serializer, + this, + ) as Map); + + static GSourceFilterByIdData_source_filters? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GSourceFilterByIdData_source_filters.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragment { + String get G__typename; +} + +abstract class GPrimitiveFilterFragment__base + implements GPrimitiveFilterFragment { + @override + String get G__typename; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asCheckBoxFilter + implements GPrimitiveFilterFragment { + @override + String get G__typename; + bool get checkBoxState; + String get name; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asHeaderFilter + implements GPrimitiveFilterFragment { + @override + String get G__typename; + String get name; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asSelectFilter + implements GPrimitiveFilterFragment { + @override + String get G__typename; + int get selectState; + String get name; + BuiltList get displayValues; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asTriStateFilter + implements GPrimitiveFilterFragment { + @override + String get G__typename; + _i2.GTriState get tristate; + String get name; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asTextFilter + implements GPrimitiveFilterFragment { + @override + String get G__typename; + String get textState; + String get name; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asSortFilter + implements GPrimitiveFilterFragment { + @override + String get G__typename; + GPrimitiveFilterFragment__asSortFilter_sortState? get sortState; + String get name; + BuiltList get displayValues; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asSortFilter_sortState + implements GSortSelectionFragment { + @override + String get G__typename; + @override + bool get ascending; + @override + int get index; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragment__asSeparatorFilter + implements GPrimitiveFilterFragment { + @override + String get G__typename; + String get name; + @override + Map toJson(); +} + +abstract class GPrimitiveFilterFragmentData + implements GPrimitiveFilterFragment { + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _i3.InlineFragmentSerializer( + 'GPrimitiveFilterFragmentData', + GPrimitiveFilterFragmentData__base, + { + 'CheckBoxFilter': GPrimitiveFilterFragmentData__asCheckBoxFilter, + 'HeaderFilter': GPrimitiveFilterFragmentData__asHeaderFilter, + 'SelectFilter': GPrimitiveFilterFragmentData__asSelectFilter, + 'TriStateFilter': GPrimitiveFilterFragmentData__asTriStateFilter, + 'TextFilter': GPrimitiveFilterFragmentData__asTextFilter, + 'SortFilter': GPrimitiveFilterFragmentData__asSortFilter, + 'SeparatorFilter': GPrimitiveFilterFragmentData__asSeparatorFilter, + }, + ); + + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__base + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__base._(); + + factory GPrimitiveFilterFragmentData__base( + [void Function(GPrimitiveFilterFragmentData__baseBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__base; + + static void _initializeBuilder(GPrimitiveFilterFragmentData__baseBuilder b) => + b..G__typename = 'Filter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _$gPrimitiveFilterFragmentDataBaseSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__base.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__base? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__base.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asCheckBoxFilter + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__asCheckBoxFilter._(); + + factory GPrimitiveFilterFragmentData__asCheckBoxFilter( + [void Function(GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asCheckBoxFilter; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder b) => + b..G__typename = 'CheckBoxFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + bool get checkBoxState; + String get name; + static Serializer + get serializer => + _$gPrimitiveFilterFragmentDataAsCheckBoxFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asCheckBoxFilter.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asCheckBoxFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asCheckBoxFilter.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asHeaderFilter + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__asHeaderFilter._(); + + factory GPrimitiveFilterFragmentData__asHeaderFilter( + [void Function(GPrimitiveFilterFragmentData__asHeaderFilterBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asHeaderFilter; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asHeaderFilterBuilder b) => + b..G__typename = 'HeaderFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get name; + static Serializer + get serializer => _$gPrimitiveFilterFragmentDataAsHeaderFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asHeaderFilter.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asHeaderFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asHeaderFilter.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asSelectFilter + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__asSelectFilter._(); + + factory GPrimitiveFilterFragmentData__asSelectFilter( + [void Function(GPrimitiveFilterFragmentData__asSelectFilterBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asSelectFilter; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asSelectFilterBuilder b) => + b..G__typename = 'SelectFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + int get selectState; + String get name; + BuiltList get displayValues; + static Serializer + get serializer => _$gPrimitiveFilterFragmentDataAsSelectFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asSelectFilter.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asSelectFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asSelectFilter.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asTriStateFilter + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__asTriStateFilter._(); + + factory GPrimitiveFilterFragmentData__asTriStateFilter( + [void Function(GPrimitiveFilterFragmentData__asTriStateFilterBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asTriStateFilter; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asTriStateFilterBuilder b) => + b..G__typename = 'TriStateFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + _i2.GTriState get tristate; + String get name; + static Serializer + get serializer => + _$gPrimitiveFilterFragmentDataAsTriStateFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asTriStateFilter.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asTriStateFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asTriStateFilter.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asTextFilter + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__asTextFilter._(); + + factory GPrimitiveFilterFragmentData__asTextFilter( + [void Function(GPrimitiveFilterFragmentData__asTextFilterBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asTextFilter; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asTextFilterBuilder b) => + b..G__typename = 'TextFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get textState; + String get name; + static Serializer + get serializer => _$gPrimitiveFilterFragmentDataAsTextFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asTextFilter.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asTextFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asTextFilter.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asSortFilter + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__asSortFilter._(); + + factory GPrimitiveFilterFragmentData__asSortFilter( + [void Function(GPrimitiveFilterFragmentData__asSortFilterBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asSortFilter; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asSortFilterBuilder b) => + b..G__typename = 'SortFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + GPrimitiveFilterFragmentData__asSortFilter_sortState? get sortState; + String get name; + BuiltList get displayValues; + static Serializer + get serializer => _$gPrimitiveFilterFragmentDataAsSortFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asSortFilter.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asSortFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asSortFilter.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asSortFilter_sortState + implements + Built, + GSortSelectionFragment { + GPrimitiveFilterFragmentData__asSortFilter_sortState._(); + + factory GPrimitiveFilterFragmentData__asSortFilter_sortState( + [void Function( + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asSortFilter_sortState; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder b) => + b..G__typename = 'SortSelection'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get ascending; + @override + int get index; + static Serializer + get serializer => + _$gPrimitiveFilterFragmentDataAsSortFilterSortStateSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asSortFilter_sortState.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asSortFilter_sortState? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asSortFilter_sortState.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentData__asSeparatorFilter + implements + Built, + GPrimitiveFilterFragmentData { + GPrimitiveFilterFragmentData__asSeparatorFilter._(); + + factory GPrimitiveFilterFragmentData__asSeparatorFilter( + [void Function(GPrimitiveFilterFragmentData__asSeparatorFilterBuilder b) + updates]) = _$GPrimitiveFilterFragmentData__asSeparatorFilter; + + static void _initializeBuilder( + GPrimitiveFilterFragmentData__asSeparatorFilterBuilder b) => + b..G__typename = 'SeparatorFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get name; + static Serializer + get serializer => + _$gPrimitiveFilterFragmentDataAsSeparatorFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GPrimitiveFilterFragmentData__asSeparatorFilter.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentData__asSeparatorFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GPrimitiveFilterFragmentData__asSeparatorFilter.serializer, + json, + ); +} + +abstract class GFilterFragment implements GPrimitiveFilterFragment { + @override + String get G__typename; +} + +abstract class GFilterFragment__base + implements GFilterFragment, GPrimitiveFilterFragment { + @override + String get G__typename; + @override + Map toJson(); +} + +abstract class GFilterFragment__asGroupFilter + implements GFilterFragment, GPrimitiveFilterFragment { + @override + String get G__typename; + String get name; + BuiltList get groupState; + @override + Map toJson(); +} + +abstract class GFilterFragment__asGroupFilter_groupState + implements GPrimitiveFilterFragment { + @override + String get G__typename; + @override + Map toJson(); +} + +abstract class GFilterFragmentData + implements GFilterFragment, GPrimitiveFilterFragment { + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _i3.InlineFragmentSerializer( + 'GFilterFragmentData', + GFilterFragmentData__base, + {'GroupFilter': GFilterFragmentData__asGroupFilter}, + ); + + Map toJson() => (_i1.serializers.serializeWith( + GFilterFragmentData.serializer, + this, + ) as Map); + + static GFilterFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFilterFragmentData.serializer, + json, + ); +} + +abstract class GFilterFragmentData__base + implements + Built, + GFilterFragmentData, + GPrimitiveFilterFragment { + GFilterFragmentData__base._(); + + factory GFilterFragmentData__base( + [void Function(GFilterFragmentData__baseBuilder b) updates]) = + _$GFilterFragmentData__base; + + static void _initializeBuilder(GFilterFragmentData__baseBuilder b) => + b..G__typename = 'Filter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer get serializer => + _$gFilterFragmentDataBaseSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFilterFragmentData__base.serializer, + this, + ) as Map); + + static GFilterFragmentData__base? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFilterFragmentData__base.serializer, + json, + ); +} + +abstract class GFilterFragmentData__asGroupFilter + implements + Built, + GFilterFragmentData, + GPrimitiveFilterFragment { + GFilterFragmentData__asGroupFilter._(); + + factory GFilterFragmentData__asGroupFilter( + [void Function(GFilterFragmentData__asGroupFilterBuilder b) + updates]) = _$GFilterFragmentData__asGroupFilter; + + static void _initializeBuilder(GFilterFragmentData__asGroupFilterBuilder b) => + b..G__typename = 'GroupFilter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get name; + BuiltList get groupState; + static Serializer get serializer => + _$gFilterFragmentDataAsGroupFilterSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFilterFragmentData__asGroupFilter.serializer, + this, + ) as Map); + + static GFilterFragmentData__asGroupFilter? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFilterFragmentData__asGroupFilter.serializer, + json, + ); +} + +abstract class GFilterFragmentData__asGroupFilter_groupState + implements + Built, + GPrimitiveFilterFragment { + GFilterFragmentData__asGroupFilter_groupState._(); + + factory GFilterFragmentData__asGroupFilter_groupState( + [void Function(GFilterFragmentData__asGroupFilter_groupStateBuilder b) + updates]) = _$GFilterFragmentData__asGroupFilter_groupState; + + static void _initializeBuilder( + GFilterFragmentData__asGroupFilter_groupStateBuilder b) => + b..G__typename = 'Filter'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer + get serializer => _$gFilterFragmentDataAsGroupFilterGroupStateSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GFilterFragmentData__asGroupFilter_groupState.serializer, + this, + ) as Map); + + static GFilterFragmentData__asGroupFilter_groupState? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GFilterFragmentData__asGroupFilter_groupState.serializer, + json, + ); +} + +abstract class GSortSelectionFragment { + String get G__typename; + bool get ascending; + int get index; + Map toJson(); +} + +abstract class GSortSelectionFragmentData + implements + Built, + GSortSelectionFragment { + GSortSelectionFragmentData._(); + + factory GSortSelectionFragmentData( + [void Function(GSortSelectionFragmentDataBuilder b) updates]) = + _$GSortSelectionFragmentData; + + static void _initializeBuilder(GSortSelectionFragmentDataBuilder b) => + b..G__typename = 'SortSelection'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get ascending; + @override + int get index; + static Serializer get serializer => + _$gSortSelectionFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSortSelectionFragmentData.serializer, + this, + ) as Map); + + static GSortSelectionFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSortSelectionFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.g.dart new file mode 100644 index 00000000..a973dae5 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.g.dart @@ -0,0 +1,2977 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_filter_by_id.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFilterByIdDataSerializer = + new _$GSourceFilterByIdDataSerializer(); +Serializer + _$gSourceFilterByIdDataSourceSerializer = + new _$GSourceFilterByIdData_sourceSerializer(); +Serializer + _$gSourceFilterByIdDataSourceFiltersSerializer = + new _$GSourceFilterByIdData_source_filtersSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataBaseSerializer = + new _$GPrimitiveFilterFragmentData__baseSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsCheckBoxFilterSerializer = + new _$GPrimitiveFilterFragmentData__asCheckBoxFilterSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsHeaderFilterSerializer = + new _$GPrimitiveFilterFragmentData__asHeaderFilterSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsSelectFilterSerializer = + new _$GPrimitiveFilterFragmentData__asSelectFilterSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsTriStateFilterSerializer = + new _$GPrimitiveFilterFragmentData__asTriStateFilterSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsTextFilterSerializer = + new _$GPrimitiveFilterFragmentData__asTextFilterSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsSortFilterSerializer = + new _$GPrimitiveFilterFragmentData__asSortFilterSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsSortFilterSortStateSerializer = + new _$GPrimitiveFilterFragmentData__asSortFilter_sortStateSerializer(); +Serializer + _$gPrimitiveFilterFragmentDataAsSeparatorFilterSerializer = + new _$GPrimitiveFilterFragmentData__asSeparatorFilterSerializer(); +Serializer _$gFilterFragmentDataBaseSerializer = + new _$GFilterFragmentData__baseSerializer(); +Serializer + _$gFilterFragmentDataAsGroupFilterSerializer = + new _$GFilterFragmentData__asGroupFilterSerializer(); +Serializer + _$gFilterFragmentDataAsGroupFilterGroupStateSerializer = + new _$GFilterFragmentData__asGroupFilter_groupStateSerializer(); +Serializer _$gSortSelectionFragmentDataSerializer = + new _$GSortSelectionFragmentDataSerializer(); + +class _$GSourceFilterByIdDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFilterByIdData, + _$GSourceFilterByIdData + ]; + @override + final String wireName = 'GSourceFilterByIdData'; + + @override + Iterable serialize( + Serializers serializers, GSourceFilterByIdData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'source', + serializers.serialize(object.source, + specifiedType: const FullType(GSourceFilterByIdData_source)), + ]; + + return result; + } + + @override + GSourceFilterByIdData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFilterByIdDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceFilterByIdData_source))! + as GSourceFilterByIdData_source); + break; + } + } + + return result.build(); + } +} + +class _$GSourceFilterByIdData_sourceSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFilterByIdData_source, + _$GSourceFilterByIdData_source + ]; + @override + final String wireName = 'GSourceFilterByIdData_source'; + + @override + Iterable serialize( + Serializers serializers, GSourceFilterByIdData_source object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'filters', + serializers.serialize(object.filters, + specifiedType: const FullType(BuiltList, + const [const FullType(GSourceFilterByIdData_source_filters)])), + ]; + + return result; + } + + @override + GSourceFilterByIdData_source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFilterByIdData_sourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'filters': + result.filters.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourceFilterByIdData_source_filters) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceFilterByIdData_source_filtersSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFilterByIdData_source_filters, + _$GSourceFilterByIdData_source_filters + ]; + @override + final String wireName = 'GSourceFilterByIdData_source_filters'; + + @override + Iterable serialize( + Serializers serializers, GSourceFilterByIdData_source_filters object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceFilterByIdData_source_filters deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFilterByIdData_source_filtersBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__baseSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__base, + _$GPrimitiveFilterFragmentData__base + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__base'; + + @override + Iterable serialize( + Serializers serializers, GPrimitiveFilterFragmentData__base object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__base deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__baseBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asCheckBoxFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asCheckBoxFilter, + _$GPrimitiveFilterFragmentData__asCheckBoxFilter + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__asCheckBoxFilter'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asCheckBoxFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'checkBoxState', + serializers.serialize(object.checkBoxState, + specifiedType: const FullType(bool)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__asCheckBoxFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'checkBoxState': + result.checkBoxState = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asHeaderFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asHeaderFilter, + _$GPrimitiveFilterFragmentData__asHeaderFilter + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__asHeaderFilter'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asHeaderFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__asHeaderFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__asHeaderFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asSelectFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asSelectFilter, + _$GPrimitiveFilterFragmentData__asSelectFilter + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__asSelectFilter'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asSelectFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'selectState', + serializers.serialize(object.selectState, + specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'displayValues', + serializers.serialize(object.displayValues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__asSelectFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__asSelectFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'selectState': + result.selectState = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayValues': + result.displayValues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asTriStateFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asTriStateFilter, + _$GPrimitiveFilterFragmentData__asTriStateFilter + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__asTriStateFilter'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asTriStateFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'tristate', + serializers.serialize(object.tristate, + specifiedType: const FullType(_i2.GTriState)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__asTriStateFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__asTriStateFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'tristate': + result.tristate = serializers.deserialize(value, + specifiedType: const FullType(_i2.GTriState))! as _i2.GTriState; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asTextFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asTextFilter, + _$GPrimitiveFilterFragmentData__asTextFilter + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__asTextFilter'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asTextFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'textState', + serializers.serialize(object.textState, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__asTextFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__asTextFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'textState': + result.textState = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asSortFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asSortFilter, + _$GPrimitiveFilterFragmentData__asSortFilter + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__asSortFilter'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asSortFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'displayValues', + serializers.serialize(object.displayValues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + Object? value; + value = object.sortState; + if (value != null) { + result + ..add('sortState') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GPrimitiveFilterFragmentData__asSortFilter_sortState))); + } + return result; + } + + @override + GPrimitiveFilterFragmentData__asSortFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__asSortFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'sortState': + result.sortState.replace(serializers.deserialize(value, + specifiedType: const FullType( + GPrimitiveFilterFragmentData__asSortFilter_sortState))! + as GPrimitiveFilterFragmentData__asSortFilter_sortState); + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayValues': + result.displayValues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asSortFilter_sortStateSerializer + implements + StructuredSerializer< + GPrimitiveFilterFragmentData__asSortFilter_sortState> { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asSortFilter_sortState, + _$GPrimitiveFilterFragmentData__asSortFilter_sortState + ]; + @override + final String wireName = + 'GPrimitiveFilterFragmentData__asSortFilter_sortState'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asSortFilter_sortState object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'ascending', + serializers.serialize(object.ascending, + specifiedType: const FullType(bool)), + 'index', + serializers.serialize(object.index, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__asSortFilter_sortState deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ascending': + result.ascending = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'index': + result.index = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentData__asSeparatorFilterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentData__asSeparatorFilter, + _$GPrimitiveFilterFragmentData__asSeparatorFilter + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentData__asSeparatorFilter'; + + @override + Iterable serialize(Serializers serializers, + GPrimitiveFilterFragmentData__asSeparatorFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GPrimitiveFilterFragmentData__asSeparatorFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentData__asSeparatorFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFilterFragmentData__baseSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFilterFragmentData__base, + _$GFilterFragmentData__base + ]; + @override + final String wireName = 'GFilterFragmentData__base'; + + @override + Iterable serialize( + Serializers serializers, GFilterFragmentData__base object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFilterFragmentData__base deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFilterFragmentData__baseBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GFilterFragmentData__asGroupFilterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFilterFragmentData__asGroupFilter, + _$GFilterFragmentData__asGroupFilter + ]; + @override + final String wireName = 'GFilterFragmentData__asGroupFilter'; + + @override + Iterable serialize( + Serializers serializers, GFilterFragmentData__asGroupFilter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'groupState', + serializers.serialize(object.groupState, + specifiedType: const FullType(BuiltList, const [ + const FullType(GFilterFragmentData__asGroupFilter_groupState) + ])), + ]; + + return result; + } + + @override + GFilterFragmentData__asGroupFilter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFilterFragmentData__asGroupFilterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'groupState': + result.groupState.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GFilterFragmentData__asGroupFilter_groupState) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GFilterFragmentData__asGroupFilter_groupStateSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GFilterFragmentData__asGroupFilter_groupState, + _$GFilterFragmentData__asGroupFilter_groupState + ]; + @override + final String wireName = 'GFilterFragmentData__asGroupFilter_groupState'; + + @override + Iterable serialize(Serializers serializers, + GFilterFragmentData__asGroupFilter_groupState object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GFilterFragmentData__asGroupFilter_groupState deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFilterFragmentData__asGroupFilter_groupStateBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSortSelectionFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSortSelectionFragmentData, + _$GSortSelectionFragmentData + ]; + @override + final String wireName = 'GSortSelectionFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GSortSelectionFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'ascending', + serializers.serialize(object.ascending, + specifiedType: const FullType(bool)), + 'index', + serializers.serialize(object.index, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GSortSelectionFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSortSelectionFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ascending': + result.ascending = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'index': + result.index = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFilterByIdData extends GSourceFilterByIdData { + @override + final String G__typename; + @override + final GSourceFilterByIdData_source source; + + factory _$GSourceFilterByIdData( + [void Function(GSourceFilterByIdDataBuilder)? updates]) => + (new GSourceFilterByIdDataBuilder()..update(updates))._build(); + + _$GSourceFilterByIdData._({required this.G__typename, required this.source}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFilterByIdData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + source, r'GSourceFilterByIdData', 'source'); + } + + @override + GSourceFilterByIdData rebuild( + void Function(GSourceFilterByIdDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFilterByIdDataBuilder toBuilder() => + new GSourceFilterByIdDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFilterByIdData && + G__typename == other.G__typename && + source == other.source; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFilterByIdData') + ..add('G__typename', G__typename) + ..add('source', source)) + .toString(); + } +} + +class GSourceFilterByIdDataBuilder + implements Builder { + _$GSourceFilterByIdData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GSourceFilterByIdData_sourceBuilder? _source; + GSourceFilterByIdData_sourceBuilder get source => + _$this._source ??= new GSourceFilterByIdData_sourceBuilder(); + set source(GSourceFilterByIdData_sourceBuilder? source) => + _$this._source = source; + + GSourceFilterByIdDataBuilder() { + GSourceFilterByIdData._initializeBuilder(this); + } + + GSourceFilterByIdDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _source = $v.source.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceFilterByIdData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFilterByIdData; + } + + @override + void update(void Function(GSourceFilterByIdDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFilterByIdData build() => _build(); + + _$GSourceFilterByIdData _build() { + _$GSourceFilterByIdData _$result; + try { + _$result = _$v ?? + new _$GSourceFilterByIdData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFilterByIdData', 'G__typename'), + source: source.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'source'; + source.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFilterByIdData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceFilterByIdData_source extends GSourceFilterByIdData_source { + @override + final String G__typename; + @override + final BuiltList filters; + + factory _$GSourceFilterByIdData_source( + [void Function(GSourceFilterByIdData_sourceBuilder)? updates]) => + (new GSourceFilterByIdData_sourceBuilder()..update(updates))._build(); + + _$GSourceFilterByIdData_source._( + {required this.G__typename, required this.filters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFilterByIdData_source', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + filters, r'GSourceFilterByIdData_source', 'filters'); + } + + @override + GSourceFilterByIdData_source rebuild( + void Function(GSourceFilterByIdData_sourceBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFilterByIdData_sourceBuilder toBuilder() => + new GSourceFilterByIdData_sourceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFilterByIdData_source && + G__typename == other.G__typename && + filters == other.filters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, filters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFilterByIdData_source') + ..add('G__typename', G__typename) + ..add('filters', filters)) + .toString(); + } +} + +class GSourceFilterByIdData_sourceBuilder + implements + Builder { + _$GSourceFilterByIdData_source? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _filters; + ListBuilder get filters => + _$this._filters ??= + new ListBuilder(); + set filters(ListBuilder? filters) => + _$this._filters = filters; + + GSourceFilterByIdData_sourceBuilder() { + GSourceFilterByIdData_source._initializeBuilder(this); + } + + GSourceFilterByIdData_sourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _filters = $v.filters.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceFilterByIdData_source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFilterByIdData_source; + } + + @override + void update(void Function(GSourceFilterByIdData_sourceBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFilterByIdData_source build() => _build(); + + _$GSourceFilterByIdData_source _build() { + _$GSourceFilterByIdData_source _$result; + try { + _$result = _$v ?? + new _$GSourceFilterByIdData_source._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFilterByIdData_source', 'G__typename'), + filters: filters.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'filters'; + filters.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFilterByIdData_source', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceFilterByIdData_source_filters + extends GSourceFilterByIdData_source_filters { + @override + final String G__typename; + + factory _$GSourceFilterByIdData_source_filters( + [void Function(GSourceFilterByIdData_source_filtersBuilder)? + updates]) => + (new GSourceFilterByIdData_source_filtersBuilder()..update(updates)) + ._build(); + + _$GSourceFilterByIdData_source_filters._({required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFilterByIdData_source_filters', 'G__typename'); + } + + @override + GSourceFilterByIdData_source_filters rebuild( + void Function(GSourceFilterByIdData_source_filtersBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFilterByIdData_source_filtersBuilder toBuilder() => + new GSourceFilterByIdData_source_filtersBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFilterByIdData_source_filters && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFilterByIdData_source_filters') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GSourceFilterByIdData_source_filtersBuilder + implements + Builder { + _$GSourceFilterByIdData_source_filters? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GSourceFilterByIdData_source_filtersBuilder() { + GSourceFilterByIdData_source_filters._initializeBuilder(this); + } + + GSourceFilterByIdData_source_filtersBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GSourceFilterByIdData_source_filters other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFilterByIdData_source_filters; + } + + @override + void update( + void Function(GSourceFilterByIdData_source_filtersBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFilterByIdData_source_filters build() => _build(); + + _$GSourceFilterByIdData_source_filters _build() { + final _$result = _$v ?? + new _$GSourceFilterByIdData_source_filters._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceFilterByIdData_source_filters', 'G__typename'), + ); + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__base + extends GPrimitiveFilterFragmentData__base { + @override + final String G__typename; + + factory _$GPrimitiveFilterFragmentData__base( + [void Function(GPrimitiveFilterFragmentData__baseBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__baseBuilder()..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__base._({required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GPrimitiveFilterFragmentData__base', 'G__typename'); + } + + @override + GPrimitiveFilterFragmentData__base rebuild( + void Function(GPrimitiveFilterFragmentData__baseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__baseBuilder toBuilder() => + new GPrimitiveFilterFragmentData__baseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__base && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPrimitiveFilterFragmentData__base') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__baseBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__base? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GPrimitiveFilterFragmentData__baseBuilder() { + GPrimitiveFilterFragmentData__base._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__baseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__base other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__base; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__baseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__base build() => _build(); + + _$GPrimitiveFilterFragmentData__base _build() { + final _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__base._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__base', 'G__typename'), + ); + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asCheckBoxFilter + extends GPrimitiveFilterFragmentData__asCheckBoxFilter { + @override + final String G__typename; + @override + final bool checkBoxState; + @override + final String name; + + factory _$GPrimitiveFilterFragmentData__asCheckBoxFilter( + [void Function(GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder() + ..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asCheckBoxFilter._( + {required this.G__typename, + required this.checkBoxState, + required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asCheckBoxFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(checkBoxState, + r'GPrimitiveFilterFragmentData__asCheckBoxFilter', 'checkBoxState'); + BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asCheckBoxFilter', 'name'); + } + + @override + GPrimitiveFilterFragmentData__asCheckBoxFilter rebuild( + void Function(GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asCheckBoxFilter && + G__typename == other.G__typename && + checkBoxState == other.checkBoxState && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, checkBoxState.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asCheckBoxFilter') + ..add('G__typename', G__typename) + ..add('checkBoxState', checkBoxState) + ..add('name', name)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asCheckBoxFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _checkBoxState; + bool? get checkBoxState => _$this._checkBoxState; + set checkBoxState(bool? checkBoxState) => + _$this._checkBoxState = checkBoxState; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder() { + GPrimitiveFilterFragmentData__asCheckBoxFilter._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _checkBoxState = $v.checkBoxState; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asCheckBoxFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asCheckBoxFilter; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__asCheckBoxFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asCheckBoxFilter build() => _build(); + + _$GPrimitiveFilterFragmentData__asCheckBoxFilter _build() { + final _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asCheckBoxFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asCheckBoxFilter', 'G__typename'), + checkBoxState: BuiltValueNullFieldError.checkNotNull( + checkBoxState, + r'GPrimitiveFilterFragmentData__asCheckBoxFilter', + 'checkBoxState'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asCheckBoxFilter', 'name'), + ); + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asHeaderFilter + extends GPrimitiveFilterFragmentData__asHeaderFilter { + @override + final String G__typename; + @override + final String name; + + factory _$GPrimitiveFilterFragmentData__asHeaderFilter( + [void Function(GPrimitiveFilterFragmentData__asHeaderFilterBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asHeaderFilterBuilder() + ..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asHeaderFilter._( + {required this.G__typename, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asHeaderFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asHeaderFilter', 'name'); + } + + @override + GPrimitiveFilterFragmentData__asHeaderFilter rebuild( + void Function(GPrimitiveFilterFragmentData__asHeaderFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asHeaderFilterBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asHeaderFilterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asHeaderFilter && + G__typename == other.G__typename && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asHeaderFilter') + ..add('G__typename', G__typename) + ..add('name', name)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asHeaderFilterBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asHeaderFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GPrimitiveFilterFragmentData__asHeaderFilterBuilder() { + GPrimitiveFilterFragmentData__asHeaderFilter._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__asHeaderFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asHeaderFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asHeaderFilter; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__asHeaderFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asHeaderFilter build() => _build(); + + _$GPrimitiveFilterFragmentData__asHeaderFilter _build() { + final _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asHeaderFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asHeaderFilter', 'G__typename'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asHeaderFilter', 'name'), + ); + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asSelectFilter + extends GPrimitiveFilterFragmentData__asSelectFilter { + @override + final String G__typename; + @override + final int selectState; + @override + final String name; + @override + final BuiltList displayValues; + + factory _$GPrimitiveFilterFragmentData__asSelectFilter( + [void Function(GPrimitiveFilterFragmentData__asSelectFilterBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asSelectFilterBuilder() + ..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asSelectFilter._( + {required this.G__typename, + required this.selectState, + required this.name, + required this.displayValues}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asSelectFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(selectState, + r'GPrimitiveFilterFragmentData__asSelectFilter', 'selectState'); + BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asSelectFilter', 'name'); + BuiltValueNullFieldError.checkNotNull(displayValues, + r'GPrimitiveFilterFragmentData__asSelectFilter', 'displayValues'); + } + + @override + GPrimitiveFilterFragmentData__asSelectFilter rebuild( + void Function(GPrimitiveFilterFragmentData__asSelectFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asSelectFilterBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asSelectFilterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asSelectFilter && + G__typename == other.G__typename && + selectState == other.selectState && + name == other.name && + displayValues == other.displayValues; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, selectState.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, displayValues.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asSelectFilter') + ..add('G__typename', G__typename) + ..add('selectState', selectState) + ..add('name', name) + ..add('displayValues', displayValues)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asSelectFilterBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asSelectFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _selectState; + int? get selectState => _$this._selectState; + set selectState(int? selectState) => _$this._selectState = selectState; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _displayValues; + ListBuilder get displayValues => + _$this._displayValues ??= new ListBuilder(); + set displayValues(ListBuilder? displayValues) => + _$this._displayValues = displayValues; + + GPrimitiveFilterFragmentData__asSelectFilterBuilder() { + GPrimitiveFilterFragmentData__asSelectFilter._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__asSelectFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _selectState = $v.selectState; + _name = $v.name; + _displayValues = $v.displayValues.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asSelectFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asSelectFilter; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__asSelectFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asSelectFilter build() => _build(); + + _$GPrimitiveFilterFragmentData__asSelectFilter _build() { + _$GPrimitiveFilterFragmentData__asSelectFilter _$result; + try { + _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asSelectFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asSelectFilter', 'G__typename'), + selectState: BuiltValueNullFieldError.checkNotNull(selectState, + r'GPrimitiveFilterFragmentData__asSelectFilter', 'selectState'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asSelectFilter', 'name'), + displayValues: displayValues.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'displayValues'; + displayValues.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPrimitiveFilterFragmentData__asSelectFilter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asTriStateFilter + extends GPrimitiveFilterFragmentData__asTriStateFilter { + @override + final String G__typename; + @override + final _i2.GTriState tristate; + @override + final String name; + + factory _$GPrimitiveFilterFragmentData__asTriStateFilter( + [void Function(GPrimitiveFilterFragmentData__asTriStateFilterBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asTriStateFilterBuilder() + ..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asTriStateFilter._( + {required this.G__typename, required this.tristate, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asTriStateFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(tristate, + r'GPrimitiveFilterFragmentData__asTriStateFilter', 'tristate'); + BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asTriStateFilter', 'name'); + } + + @override + GPrimitiveFilterFragmentData__asTriStateFilter rebuild( + void Function(GPrimitiveFilterFragmentData__asTriStateFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asTriStateFilterBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asTriStateFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asTriStateFilter && + G__typename == other.G__typename && + tristate == other.tristate && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, tristate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asTriStateFilter') + ..add('G__typename', G__typename) + ..add('tristate', tristate) + ..add('name', name)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asTriStateFilterBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asTriStateFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i2.GTriState? _tristate; + _i2.GTriState? get tristate => _$this._tristate; + set tristate(_i2.GTriState? tristate) => _$this._tristate = tristate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GPrimitiveFilterFragmentData__asTriStateFilterBuilder() { + GPrimitiveFilterFragmentData__asTriStateFilter._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__asTriStateFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _tristate = $v.tristate; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asTriStateFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asTriStateFilter; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__asTriStateFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asTriStateFilter build() => _build(); + + _$GPrimitiveFilterFragmentData__asTriStateFilter _build() { + final _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asTriStateFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asTriStateFilter', 'G__typename'), + tristate: BuiltValueNullFieldError.checkNotNull(tristate, + r'GPrimitiveFilterFragmentData__asTriStateFilter', 'tristate'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asTriStateFilter', 'name'), + ); + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asTextFilter + extends GPrimitiveFilterFragmentData__asTextFilter { + @override + final String G__typename; + @override + final String textState; + @override + final String name; + + factory _$GPrimitiveFilterFragmentData__asTextFilter( + [void Function(GPrimitiveFilterFragmentData__asTextFilterBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asTextFilterBuilder()..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asTextFilter._( + {required this.G__typename, required this.textState, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asTextFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + textState, r'GPrimitiveFilterFragmentData__asTextFilter', 'textState'); + BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asTextFilter', 'name'); + } + + @override + GPrimitiveFilterFragmentData__asTextFilter rebuild( + void Function(GPrimitiveFilterFragmentData__asTextFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asTextFilterBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asTextFilterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asTextFilter && + G__typename == other.G__typename && + textState == other.textState && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, textState.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asTextFilter') + ..add('G__typename', G__typename) + ..add('textState', textState) + ..add('name', name)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asTextFilterBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asTextFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _textState; + String? get textState => _$this._textState; + set textState(String? textState) => _$this._textState = textState; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GPrimitiveFilterFragmentData__asTextFilterBuilder() { + GPrimitiveFilterFragmentData__asTextFilter._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__asTextFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _textState = $v.textState; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asTextFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asTextFilter; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__asTextFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asTextFilter build() => _build(); + + _$GPrimitiveFilterFragmentData__asTextFilter _build() { + final _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asTextFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asTextFilter', 'G__typename'), + textState: BuiltValueNullFieldError.checkNotNull(textState, + r'GPrimitiveFilterFragmentData__asTextFilter', 'textState'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asTextFilter', 'name'), + ); + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asSortFilter + extends GPrimitiveFilterFragmentData__asSortFilter { + @override + final String G__typename; + @override + final GPrimitiveFilterFragmentData__asSortFilter_sortState? sortState; + @override + final String name; + @override + final BuiltList displayValues; + + factory _$GPrimitiveFilterFragmentData__asSortFilter( + [void Function(GPrimitiveFilterFragmentData__asSortFilterBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asSortFilterBuilder()..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asSortFilter._( + {required this.G__typename, + this.sortState, + required this.name, + required this.displayValues}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asSortFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asSortFilter', 'name'); + BuiltValueNullFieldError.checkNotNull(displayValues, + r'GPrimitiveFilterFragmentData__asSortFilter', 'displayValues'); + } + + @override + GPrimitiveFilterFragmentData__asSortFilter rebuild( + void Function(GPrimitiveFilterFragmentData__asSortFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asSortFilterBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asSortFilterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asSortFilter && + G__typename == other.G__typename && + sortState == other.sortState && + name == other.name && + displayValues == other.displayValues; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, sortState.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, displayValues.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asSortFilter') + ..add('G__typename', G__typename) + ..add('sortState', sortState) + ..add('name', name) + ..add('displayValues', displayValues)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asSortFilterBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asSortFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder? _sortState; + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder get sortState => + _$this._sortState ??= + new GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder(); + set sortState( + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder? + sortState) => + _$this._sortState = sortState; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _displayValues; + ListBuilder get displayValues => + _$this._displayValues ??= new ListBuilder(); + set displayValues(ListBuilder? displayValues) => + _$this._displayValues = displayValues; + + GPrimitiveFilterFragmentData__asSortFilterBuilder() { + GPrimitiveFilterFragmentData__asSortFilter._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__asSortFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _sortState = $v.sortState?.toBuilder(); + _name = $v.name; + _displayValues = $v.displayValues.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asSortFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asSortFilter; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__asSortFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asSortFilter build() => _build(); + + _$GPrimitiveFilterFragmentData__asSortFilter _build() { + _$GPrimitiveFilterFragmentData__asSortFilter _$result; + try { + _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asSortFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asSortFilter', 'G__typename'), + sortState: _sortState?.build(), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asSortFilter', 'name'), + displayValues: displayValues.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'sortState'; + _sortState?.build(); + + _$failedField = 'displayValues'; + displayValues.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPrimitiveFilterFragmentData__asSortFilter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asSortFilter_sortState + extends GPrimitiveFilterFragmentData__asSortFilter_sortState { + @override + final String G__typename; + @override + final bool ascending; + @override + final int index; + + factory _$GPrimitiveFilterFragmentData__asSortFilter_sortState( + [void Function( + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder() + ..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asSortFilter_sortState._( + {required this.G__typename, required this.ascending, required this.index}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asSortFilter_sortState', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(ascending, + r'GPrimitiveFilterFragmentData__asSortFilter_sortState', 'ascending'); + BuiltValueNullFieldError.checkNotNull(index, + r'GPrimitiveFilterFragmentData__asSortFilter_sortState', 'index'); + } + + @override + GPrimitiveFilterFragmentData__asSortFilter_sortState rebuild( + void Function( + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asSortFilter_sortState && + G__typename == other.G__typename && + ascending == other.ascending && + index == other.index; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, ascending.hashCode); + _$hash = $jc(_$hash, index.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asSortFilter_sortState') + ..add('G__typename', G__typename) + ..add('ascending', ascending) + ..add('index', index)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asSortFilter_sortState? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _ascending; + bool? get ascending => _$this._ascending; + set ascending(bool? ascending) => _$this._ascending = ascending; + + int? _index; + int? get index => _$this._index; + set index(int? index) => _$this._index = index; + + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder() { + GPrimitiveFilterFragmentData__asSortFilter_sortState._initializeBuilder( + this); + } + + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _ascending = $v.ascending; + _index = $v.index; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asSortFilter_sortState other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asSortFilter_sortState; + } + + @override + void update( + void Function( + GPrimitiveFilterFragmentData__asSortFilter_sortStateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asSortFilter_sortState build() => _build(); + + _$GPrimitiveFilterFragmentData__asSortFilter_sortState _build() { + final _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asSortFilter_sortState._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GPrimitiveFilterFragmentData__asSortFilter_sortState', + 'G__typename'), + ascending: BuiltValueNullFieldError.checkNotNull( + ascending, + r'GPrimitiveFilterFragmentData__asSortFilter_sortState', + 'ascending'), + index: BuiltValueNullFieldError.checkNotNull(index, + r'GPrimitiveFilterFragmentData__asSortFilter_sortState', 'index'), + ); + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentData__asSeparatorFilter + extends GPrimitiveFilterFragmentData__asSeparatorFilter { + @override + final String G__typename; + @override + final String name; + + factory _$GPrimitiveFilterFragmentData__asSeparatorFilter( + [void Function( + GPrimitiveFilterFragmentData__asSeparatorFilterBuilder)? + updates]) => + (new GPrimitiveFilterFragmentData__asSeparatorFilterBuilder() + ..update(updates)) + ._build(); + + _$GPrimitiveFilterFragmentData__asSeparatorFilter._( + {required this.G__typename, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GPrimitiveFilterFragmentData__asSeparatorFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asSeparatorFilter', 'name'); + } + + @override + GPrimitiveFilterFragmentData__asSeparatorFilter rebuild( + void Function(GPrimitiveFilterFragmentData__asSeparatorFilterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentData__asSeparatorFilterBuilder toBuilder() => + new GPrimitiveFilterFragmentData__asSeparatorFilterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentData__asSeparatorFilter && + G__typename == other.G__typename && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GPrimitiveFilterFragmentData__asSeparatorFilter') + ..add('G__typename', G__typename) + ..add('name', name)) + .toString(); + } +} + +class GPrimitiveFilterFragmentData__asSeparatorFilterBuilder + implements + Builder { + _$GPrimitiveFilterFragmentData__asSeparatorFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GPrimitiveFilterFragmentData__asSeparatorFilterBuilder() { + GPrimitiveFilterFragmentData__asSeparatorFilter._initializeBuilder(this); + } + + GPrimitiveFilterFragmentData__asSeparatorFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentData__asSeparatorFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentData__asSeparatorFilter; + } + + @override + void update( + void Function(GPrimitiveFilterFragmentData__asSeparatorFilterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentData__asSeparatorFilter build() => _build(); + + _$GPrimitiveFilterFragmentData__asSeparatorFilter _build() { + final _$result = _$v ?? + new _$GPrimitiveFilterFragmentData__asSeparatorFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GPrimitiveFilterFragmentData__asSeparatorFilter', + 'G__typename'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GPrimitiveFilterFragmentData__asSeparatorFilter', 'name'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFilterFragmentData__base extends GFilterFragmentData__base { + @override + final String G__typename; + + factory _$GFilterFragmentData__base( + [void Function(GFilterFragmentData__baseBuilder)? updates]) => + (new GFilterFragmentData__baseBuilder()..update(updates))._build(); + + _$GFilterFragmentData__base._({required this.G__typename}) : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFilterFragmentData__base', 'G__typename'); + } + + @override + GFilterFragmentData__base rebuild( + void Function(GFilterFragmentData__baseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFilterFragmentData__baseBuilder toBuilder() => + new GFilterFragmentData__baseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFilterFragmentData__base && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFilterFragmentData__base') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GFilterFragmentData__baseBuilder + implements + Builder { + _$GFilterFragmentData__base? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GFilterFragmentData__baseBuilder() { + GFilterFragmentData__base._initializeBuilder(this); + } + + GFilterFragmentData__baseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GFilterFragmentData__base other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFilterFragmentData__base; + } + + @override + void update(void Function(GFilterFragmentData__baseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFilterFragmentData__base build() => _build(); + + _$GFilterFragmentData__base _build() { + final _$result = _$v ?? + new _$GFilterFragmentData__base._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFilterFragmentData__base', 'G__typename'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFilterFragmentData__asGroupFilter + extends GFilterFragmentData__asGroupFilter { + @override + final String G__typename; + @override + final String name; + @override + final BuiltList groupState; + + factory _$GFilterFragmentData__asGroupFilter( + [void Function(GFilterFragmentData__asGroupFilterBuilder)? + updates]) => + (new GFilterFragmentData__asGroupFilterBuilder()..update(updates)) + ._build(); + + _$GFilterFragmentData__asGroupFilter._( + {required this.G__typename, required this.name, required this.groupState}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GFilterFragmentData__asGroupFilter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GFilterFragmentData__asGroupFilter', 'name'); + BuiltValueNullFieldError.checkNotNull( + groupState, r'GFilterFragmentData__asGroupFilter', 'groupState'); + } + + @override + GFilterFragmentData__asGroupFilter rebuild( + void Function(GFilterFragmentData__asGroupFilterBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFilterFragmentData__asGroupFilterBuilder toBuilder() => + new GFilterFragmentData__asGroupFilterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFilterFragmentData__asGroupFilter && + G__typename == other.G__typename && + name == other.name && + groupState == other.groupState; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, groupState.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFilterFragmentData__asGroupFilter') + ..add('G__typename', G__typename) + ..add('name', name) + ..add('groupState', groupState)) + .toString(); + } +} + +class GFilterFragmentData__asGroupFilterBuilder + implements + Builder { + _$GFilterFragmentData__asGroupFilter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + ListBuilder? _groupState; + ListBuilder get groupState => + _$this._groupState ??= + new ListBuilder(); + set groupState( + ListBuilder? + groupState) => + _$this._groupState = groupState; + + GFilterFragmentData__asGroupFilterBuilder() { + GFilterFragmentData__asGroupFilter._initializeBuilder(this); + } + + GFilterFragmentData__asGroupFilterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _name = $v.name; + _groupState = $v.groupState.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFilterFragmentData__asGroupFilter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFilterFragmentData__asGroupFilter; + } + + @override + void update( + void Function(GFilterFragmentData__asGroupFilterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFilterFragmentData__asGroupFilter build() => _build(); + + _$GFilterFragmentData__asGroupFilter _build() { + _$GFilterFragmentData__asGroupFilter _$result; + try { + _$result = _$v ?? + new _$GFilterFragmentData__asGroupFilter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFilterFragmentData__asGroupFilter', 'G__typename'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GFilterFragmentData__asGroupFilter', 'name'), + groupState: groupState.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'groupState'; + groupState.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFilterFragmentData__asGroupFilter', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFilterFragmentData__asGroupFilter_groupState + extends GFilterFragmentData__asGroupFilter_groupState { + @override + final String G__typename; + + factory _$GFilterFragmentData__asGroupFilter_groupState( + [void Function(GFilterFragmentData__asGroupFilter_groupStateBuilder)? + updates]) => + (new GFilterFragmentData__asGroupFilter_groupStateBuilder() + ..update(updates)) + ._build(); + + _$GFilterFragmentData__asGroupFilter_groupState._({required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFilterFragmentData__asGroupFilter_groupState', 'G__typename'); + } + + @override + GFilterFragmentData__asGroupFilter_groupState rebuild( + void Function(GFilterFragmentData__asGroupFilter_groupStateBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GFilterFragmentData__asGroupFilter_groupStateBuilder toBuilder() => + new GFilterFragmentData__asGroupFilter_groupStateBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFilterFragmentData__asGroupFilter_groupState && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GFilterFragmentData__asGroupFilter_groupState') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GFilterFragmentData__asGroupFilter_groupStateBuilder + implements + Builder { + _$GFilterFragmentData__asGroupFilter_groupState? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GFilterFragmentData__asGroupFilter_groupStateBuilder() { + GFilterFragmentData__asGroupFilter_groupState._initializeBuilder(this); + } + + GFilterFragmentData__asGroupFilter_groupStateBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GFilterFragmentData__asGroupFilter_groupState other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFilterFragmentData__asGroupFilter_groupState; + } + + @override + void update( + void Function(GFilterFragmentData__asGroupFilter_groupStateBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GFilterFragmentData__asGroupFilter_groupState build() => _build(); + + _$GFilterFragmentData__asGroupFilter_groupState _build() { + final _$result = _$v ?? + new _$GFilterFragmentData__asGroupFilter_groupState._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GFilterFragmentData__asGroupFilter_groupState', 'G__typename'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSortSelectionFragmentData extends GSortSelectionFragmentData { + @override + final String G__typename; + @override + final bool ascending; + @override + final int index; + + factory _$GSortSelectionFragmentData( + [void Function(GSortSelectionFragmentDataBuilder)? updates]) => + (new GSortSelectionFragmentDataBuilder()..update(updates))._build(); + + _$GSortSelectionFragmentData._( + {required this.G__typename, required this.ascending, required this.index}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSortSelectionFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + ascending, r'GSortSelectionFragmentData', 'ascending'); + BuiltValueNullFieldError.checkNotNull( + index, r'GSortSelectionFragmentData', 'index'); + } + + @override + GSortSelectionFragmentData rebuild( + void Function(GSortSelectionFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSortSelectionFragmentDataBuilder toBuilder() => + new GSortSelectionFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSortSelectionFragmentData && + G__typename == other.G__typename && + ascending == other.ascending && + index == other.index; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, ascending.hashCode); + _$hash = $jc(_$hash, index.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSortSelectionFragmentData') + ..add('G__typename', G__typename) + ..add('ascending', ascending) + ..add('index', index)) + .toString(); + } +} + +class GSortSelectionFragmentDataBuilder + implements + Builder { + _$GSortSelectionFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _ascending; + bool? get ascending => _$this._ascending; + set ascending(bool? ascending) => _$this._ascending = ascending; + + int? _index; + int? get index => _$this._index; + set index(int? index) => _$this._index = index; + + GSortSelectionFragmentDataBuilder() { + GSortSelectionFragmentData._initializeBuilder(this); + } + + GSortSelectionFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _ascending = $v.ascending; + _index = $v.index; + _$v = null; + } + return this; + } + + @override + void replace(GSortSelectionFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSortSelectionFragmentData; + } + + @override + void update(void Function(GSortSelectionFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSortSelectionFragmentData build() => _build(); + + _$GSortSelectionFragmentData _build() { + final _$result = _$v ?? + new _$GSortSelectionFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSortSelectionFragmentData', 'G__typename'), + ascending: BuiltValueNullFieldError.checkNotNull( + ascending, r'GSortSelectionFragmentData', 'ascending'), + index: BuiltValueNullFieldError.checkNotNull( + index, r'GSortSelectionFragmentData', 'index'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.req.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.req.gql.dart new file mode 100644 index 00000000..4fa520a9 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.req.gql.dart @@ -0,0 +1,246 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i7; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'source_filter_by_id.req.gql.g.dart'; + +abstract class GSourceFilterByIdReq + implements + Built, + _i1.OperationRequest<_i2.GSourceFilterByIdData, + _i3.GSourceFilterByIdVars> { + GSourceFilterByIdReq._(); + + factory GSourceFilterByIdReq( + [void Function(GSourceFilterByIdReqBuilder b) updates]) = + _$GSourceFilterByIdReq; + + static void _initializeBuilder(GSourceFilterByIdReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'SourceFilterById', + ) + ..executeOnListen = true; + + @override + _i3.GSourceFilterByIdVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GSourceFilterByIdData? Function( + _i2.GSourceFilterByIdData?, + _i2.GSourceFilterByIdData?, + )? get updateResult; + @override + _i2.GSourceFilterByIdData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GSourceFilterByIdData? parseData(Map json) => + _i2.GSourceFilterByIdData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourceFilterByIdData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GSourceFilterByIdData, _i3.GSourceFilterByIdVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gSourceFilterByIdReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourceFilterByIdReq.serializer, + this, + ) as Map); + + static GSourceFilterByIdReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourceFilterByIdReq.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GPrimitiveFilterFragmentData, + _i3.GPrimitiveFilterFragmentVars> { + GPrimitiveFilterFragmentReq._(); + + factory GPrimitiveFilterFragmentReq( + [void Function(GPrimitiveFilterFragmentReqBuilder b) updates]) = + _$GPrimitiveFilterFragmentReq; + + static void _initializeBuilder(GPrimitiveFilterFragmentReqBuilder b) => b + ..document = _i5.document + ..fragmentName = 'PrimitiveFilterFragment'; + + @override + _i3.GPrimitiveFilterFragmentVars get vars; + @override + _i7.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GPrimitiveFilterFragmentData? parseData(Map json) => + _i2.GPrimitiveFilterFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GPrimitiveFilterFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gPrimitiveFilterFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GPrimitiveFilterFragmentReq.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GPrimitiveFilterFragmentReq.serializer, + json, + ); +} + +abstract class GFilterFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GFilterFragmentData, _i3.GFilterFragmentVars> { + GFilterFragmentReq._(); + + factory GFilterFragmentReq( + [void Function(GFilterFragmentReqBuilder b) updates]) = + _$GFilterFragmentReq; + + static void _initializeBuilder(GFilterFragmentReqBuilder b) => b + ..document = _i5.document + ..fragmentName = 'FilterFragment'; + + @override + _i3.GFilterFragmentVars get vars; + @override + _i7.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GFilterFragmentData? parseData(Map json) => + _i2.GFilterFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GFilterFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gFilterFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GFilterFragmentReq.serializer, + this, + ) as Map); + + static GFilterFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GFilterFragmentReq.serializer, + json, + ); +} + +abstract class GSortSelectionFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GSortSelectionFragmentData, + _i3.GSortSelectionFragmentVars> { + GSortSelectionFragmentReq._(); + + factory GSortSelectionFragmentReq( + [void Function(GSortSelectionFragmentReqBuilder b) updates]) = + _$GSortSelectionFragmentReq; + + static void _initializeBuilder(GSortSelectionFragmentReqBuilder b) => b + ..document = _i5.document + ..fragmentName = 'SortSelectionFragment'; + + @override + _i3.GSortSelectionFragmentVars get vars; + @override + _i7.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSortSelectionFragmentData? parseData(Map json) => + _i2.GSortSelectionFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSortSelectionFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gSortSelectionFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSortSelectionFragmentReq.serializer, + this, + ) as Map); + + static GSortSelectionFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSortSelectionFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.req.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.req.gql.g.dart new file mode 100644 index 00000000..aee4fcd9 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.req.gql.g.dart @@ -0,0 +1,1059 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_filter_by_id.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFilterByIdReqSerializer = + new _$GSourceFilterByIdReqSerializer(); +Serializer + _$gPrimitiveFilterFragmentReqSerializer = + new _$GPrimitiveFilterFragmentReqSerializer(); +Serializer _$gFilterFragmentReqSerializer = + new _$GFilterFragmentReqSerializer(); +Serializer _$gSortSelectionFragmentReqSerializer = + new _$GSortSelectionFragmentReqSerializer(); + +class _$GSourceFilterByIdReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFilterByIdReq, + _$GSourceFilterByIdReq + ]; + @override + final String wireName = 'GSourceFilterByIdReq'; + + @override + Iterable serialize( + Serializers serializers, GSourceFilterByIdReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourceFilterByIdVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GSourceFilterByIdData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GSourceFilterByIdReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFilterByIdReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSourceFilterByIdVars))! + as _i3.GSourceFilterByIdVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GSourceFilterByIdData))! + as _i2.GSourceFilterByIdData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentReq, + _$GPrimitiveFilterFragmentReq + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GPrimitiveFilterFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GPrimitiveFilterFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i7.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GPrimitiveFilterFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPrimitiveFilterFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GPrimitiveFilterFragmentVars))! + as _i3.GPrimitiveFilterFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i7.DocumentNode))! + as _i7.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GFilterFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFilterFragmentReq, _$GFilterFragmentReq]; + @override + final String wireName = 'GFilterFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GFilterFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GFilterFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i7.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFilterFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFilterFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GFilterFragmentVars))! + as _i3.GFilterFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i7.DocumentNode))! + as _i7.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSortSelectionFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSortSelectionFragmentReq, + _$GSortSelectionFragmentReq + ]; + @override + final String wireName = 'GSortSelectionFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GSortSelectionFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSortSelectionFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i7.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSortSelectionFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSortSelectionFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GSortSelectionFragmentVars))! + as _i3.GSortSelectionFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i7.DocumentNode))! + as _i7.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFilterByIdReq extends GSourceFilterByIdReq { + @override + final _i3.GSourceFilterByIdVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GSourceFilterByIdData? Function( + _i2.GSourceFilterByIdData?, _i2.GSourceFilterByIdData?)? updateResult; + @override + final _i2.GSourceFilterByIdData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GSourceFilterByIdReq( + [void Function(GSourceFilterByIdReqBuilder)? updates]) => + (new GSourceFilterByIdReqBuilder()..update(updates))._build(); + + _$GSourceFilterByIdReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GSourceFilterByIdReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GSourceFilterByIdReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GSourceFilterByIdReq', 'executeOnListen'); + } + + @override + GSourceFilterByIdReq rebuild( + void Function(GSourceFilterByIdReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFilterByIdReqBuilder toBuilder() => + new GSourceFilterByIdReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GSourceFilterByIdReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFilterByIdReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GSourceFilterByIdReqBuilder + implements Builder { + _$GSourceFilterByIdReq? _$v; + + _i3.GSourceFilterByIdVarsBuilder? _vars; + _i3.GSourceFilterByIdVarsBuilder get vars => + _$this._vars ??= new _i3.GSourceFilterByIdVarsBuilder(); + set vars(_i3.GSourceFilterByIdVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GSourceFilterByIdData? Function( + _i2.GSourceFilterByIdData?, _i2.GSourceFilterByIdData?)? _updateResult; + _i2.GSourceFilterByIdData? Function( + _i2.GSourceFilterByIdData?, _i2.GSourceFilterByIdData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GSourceFilterByIdData? Function( + _i2.GSourceFilterByIdData?, _i2.GSourceFilterByIdData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GSourceFilterByIdDataBuilder? _optimisticResponse; + _i2.GSourceFilterByIdDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GSourceFilterByIdDataBuilder(); + set optimisticResponse( + _i2.GSourceFilterByIdDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GSourceFilterByIdReqBuilder() { + GSourceFilterByIdReq._initializeBuilder(this); + } + + GSourceFilterByIdReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GSourceFilterByIdReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFilterByIdReq; + } + + @override + void update(void Function(GSourceFilterByIdReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFilterByIdReq build() => _build(); + + _$GSourceFilterByIdReq _build() { + _$GSourceFilterByIdReq _$result; + try { + _$result = _$v ?? + new _$GSourceFilterByIdReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GSourceFilterByIdReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GSourceFilterByIdReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFilterByIdReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentReq extends GPrimitiveFilterFragmentReq { + @override + final _i3.GPrimitiveFilterFragmentVars vars; + @override + final _i7.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GPrimitiveFilterFragmentReq( + [void Function(GPrimitiveFilterFragmentReqBuilder)? updates]) => + (new GPrimitiveFilterFragmentReqBuilder()..update(updates))._build(); + + _$GPrimitiveFilterFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GPrimitiveFilterFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GPrimitiveFilterFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GPrimitiveFilterFragmentReq', 'idFields'); + } + + @override + GPrimitiveFilterFragmentReq rebuild( + void Function(GPrimitiveFilterFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentReqBuilder toBuilder() => + new GPrimitiveFilterFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPrimitiveFilterFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GPrimitiveFilterFragmentReqBuilder + implements + Builder { + _$GPrimitiveFilterFragmentReq? _$v; + + _i3.GPrimitiveFilterFragmentVarsBuilder? _vars; + _i3.GPrimitiveFilterFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GPrimitiveFilterFragmentVarsBuilder(); + set vars(_i3.GPrimitiveFilterFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i7.DocumentNode? _document; + _i7.DocumentNode? get document => _$this._document; + set document(_i7.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GPrimitiveFilterFragmentReqBuilder() { + GPrimitiveFilterFragmentReq._initializeBuilder(this); + } + + GPrimitiveFilterFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GPrimitiveFilterFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentReq; + } + + @override + void update(void Function(GPrimitiveFilterFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentReq build() => _build(); + + _$GPrimitiveFilterFragmentReq _build() { + _$GPrimitiveFilterFragmentReq _$result; + try { + _$result = _$v ?? + new _$GPrimitiveFilterFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GPrimitiveFilterFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GPrimitiveFilterFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPrimitiveFilterFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFilterFragmentReq extends GFilterFragmentReq { + @override + final _i3.GFilterFragmentVars vars; + @override + final _i7.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GFilterFragmentReq( + [void Function(GFilterFragmentReqBuilder)? updates]) => + (new GFilterFragmentReqBuilder()..update(updates))._build(); + + _$GFilterFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GFilterFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GFilterFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GFilterFragmentReq', 'idFields'); + } + + @override + GFilterFragmentReq rebuild( + void Function(GFilterFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFilterFragmentReqBuilder toBuilder() => + new GFilterFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFilterFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFilterFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GFilterFragmentReqBuilder + implements Builder { + _$GFilterFragmentReq? _$v; + + _i3.GFilterFragmentVarsBuilder? _vars; + _i3.GFilterFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GFilterFragmentVarsBuilder(); + set vars(_i3.GFilterFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i7.DocumentNode? _document; + _i7.DocumentNode? get document => _$this._document; + set document(_i7.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GFilterFragmentReqBuilder() { + GFilterFragmentReq._initializeBuilder(this); + } + + GFilterFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GFilterFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFilterFragmentReq; + } + + @override + void update(void Function(GFilterFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFilterFragmentReq build() => _build(); + + _$GFilterFragmentReq _build() { + _$GFilterFragmentReq _$result; + try { + _$result = _$v ?? + new _$GFilterFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GFilterFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GFilterFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFilterFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSortSelectionFragmentReq extends GSortSelectionFragmentReq { + @override + final _i3.GSortSelectionFragmentVars vars; + @override + final _i7.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSortSelectionFragmentReq( + [void Function(GSortSelectionFragmentReqBuilder)? updates]) => + (new GSortSelectionFragmentReqBuilder()..update(updates))._build(); + + _$GSortSelectionFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GSortSelectionFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSortSelectionFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSortSelectionFragmentReq', 'idFields'); + } + + @override + GSortSelectionFragmentReq rebuild( + void Function(GSortSelectionFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSortSelectionFragmentReqBuilder toBuilder() => + new GSortSelectionFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSortSelectionFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSortSelectionFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSortSelectionFragmentReqBuilder + implements + Builder { + _$GSortSelectionFragmentReq? _$v; + + _i3.GSortSelectionFragmentVarsBuilder? _vars; + _i3.GSortSelectionFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSortSelectionFragmentVarsBuilder(); + set vars(_i3.GSortSelectionFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i7.DocumentNode? _document; + _i7.DocumentNode? get document => _$this._document; + set document(_i7.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSortSelectionFragmentReqBuilder() { + GSortSelectionFragmentReq._initializeBuilder(this); + } + + GSortSelectionFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSortSelectionFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSortSelectionFragmentReq; + } + + @override + void update(void Function(GSortSelectionFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSortSelectionFragmentReq build() => _build(); + + _$GSortSelectionFragmentReq _build() { + _$GSortSelectionFragmentReq _$result; + try { + _$result = _$v ?? + new _$GSortSelectionFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSortSelectionFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSortSelectionFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSortSelectionFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.dart new file mode 100644 index 00000000..04d3fb3b --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.dart @@ -0,0 +1,108 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'source_filter_by_id.var.gql.g.dart'; + +abstract class GSourceFilterByIdVars + implements Built { + GSourceFilterByIdVars._(); + + factory GSourceFilterByIdVars( + [void Function(GSourceFilterByIdVarsBuilder b) updates]) = + _$GSourceFilterByIdVars; + + _i1.GLongString get id; + static Serializer get serializer => + _$gSourceFilterByIdVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GSourceFilterByIdVars.serializer, + this, + ) as Map); + + static GSourceFilterByIdVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourceFilterByIdVars.serializer, + json, + ); +} + +abstract class GPrimitiveFilterFragmentVars + implements + Built { + GPrimitiveFilterFragmentVars._(); + + factory GPrimitiveFilterFragmentVars( + [void Function(GPrimitiveFilterFragmentVarsBuilder b) updates]) = + _$GPrimitiveFilterFragmentVars; + + static Serializer get serializer => + _$gPrimitiveFilterFragmentVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GPrimitiveFilterFragmentVars.serializer, + this, + ) as Map); + + static GPrimitiveFilterFragmentVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GPrimitiveFilterFragmentVars.serializer, + json, + ); +} + +abstract class GFilterFragmentVars + implements Built { + GFilterFragmentVars._(); + + factory GFilterFragmentVars( + [void Function(GFilterFragmentVarsBuilder b) updates]) = + _$GFilterFragmentVars; + + static Serializer get serializer => + _$gFilterFragmentVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GFilterFragmentVars.serializer, + this, + ) as Map); + + static GFilterFragmentVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GFilterFragmentVars.serializer, + json, + ); +} + +abstract class GSortSelectionFragmentVars + implements + Built { + GSortSelectionFragmentVars._(); + + factory GSortSelectionFragmentVars( + [void Function(GSortSelectionFragmentVarsBuilder b) updates]) = + _$GSortSelectionFragmentVars; + + static Serializer get serializer => + _$gSortSelectionFragmentVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GSortSelectionFragmentVars.serializer, + this, + ) as Map); + + static GSortSelectionFragmentVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSortSelectionFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.g.dart new file mode 100644 index 00000000..4a8542b7 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.g.dart @@ -0,0 +1,425 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_filter_by_id.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFilterByIdVarsSerializer = + new _$GSourceFilterByIdVarsSerializer(); +Serializer + _$gPrimitiveFilterFragmentVarsSerializer = + new _$GPrimitiveFilterFragmentVarsSerializer(); +Serializer _$gFilterFragmentVarsSerializer = + new _$GFilterFragmentVarsSerializer(); +Serializer _$gSortSelectionFragmentVarsSerializer = + new _$GSortSelectionFragmentVarsSerializer(); + +class _$GSourceFilterByIdVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFilterByIdVars, + _$GSourceFilterByIdVars + ]; + @override + final String wireName = 'GSourceFilterByIdVars'; + + @override + Iterable serialize( + Serializers serializers, GSourceFilterByIdVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + ]; + + return result; + } + + @override + GSourceFilterByIdVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFilterByIdVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + } + } + + return result.build(); + } +} + +class _$GPrimitiveFilterFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPrimitiveFilterFragmentVars, + _$GPrimitiveFilterFragmentVars + ]; + @override + final String wireName = 'GPrimitiveFilterFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GPrimitiveFilterFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GPrimitiveFilterFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GPrimitiveFilterFragmentVarsBuilder().build(); + } +} + +class _$GFilterFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFilterFragmentVars, + _$GFilterFragmentVars + ]; + @override + final String wireName = 'GFilterFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GFilterFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GFilterFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GFilterFragmentVarsBuilder().build(); + } +} + +class _$GSortSelectionFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSortSelectionFragmentVars, + _$GSortSelectionFragmentVars + ]; + @override + final String wireName = 'GSortSelectionFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GSortSelectionFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSortSelectionFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSortSelectionFragmentVarsBuilder().build(); + } +} + +class _$GSourceFilterByIdVars extends GSourceFilterByIdVars { + @override + final _i1.GLongString id; + + factory _$GSourceFilterByIdVars( + [void Function(GSourceFilterByIdVarsBuilder)? updates]) => + (new GSourceFilterByIdVarsBuilder()..update(updates))._build(); + + _$GSourceFilterByIdVars._({required this.id}) : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GSourceFilterByIdVars', 'id'); + } + + @override + GSourceFilterByIdVars rebuild( + void Function(GSourceFilterByIdVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFilterByIdVarsBuilder toBuilder() => + new GSourceFilterByIdVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFilterByIdVars && id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFilterByIdVars') + ..add('id', id)) + .toString(); + } +} + +class GSourceFilterByIdVarsBuilder + implements Builder { + _$GSourceFilterByIdVars? _$v; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + GSourceFilterByIdVarsBuilder(); + + GSourceFilterByIdVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceFilterByIdVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFilterByIdVars; + } + + @override + void update(void Function(GSourceFilterByIdVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFilterByIdVars build() => _build(); + + _$GSourceFilterByIdVars _build() { + _$GSourceFilterByIdVars _$result; + try { + _$result = _$v ?? + new _$GSourceFilterByIdVars._( + id: id.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFilterByIdVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GPrimitiveFilterFragmentVars extends GPrimitiveFilterFragmentVars { + factory _$GPrimitiveFilterFragmentVars( + [void Function(GPrimitiveFilterFragmentVarsBuilder)? updates]) => + (new GPrimitiveFilterFragmentVarsBuilder()..update(updates))._build(); + + _$GPrimitiveFilterFragmentVars._() : super._(); + + @override + GPrimitiveFilterFragmentVars rebuild( + void Function(GPrimitiveFilterFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPrimitiveFilterFragmentVarsBuilder toBuilder() => + new GPrimitiveFilterFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPrimitiveFilterFragmentVars; + } + + @override + int get hashCode { + return 853733631; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GPrimitiveFilterFragmentVars') + .toString(); + } +} + +class GPrimitiveFilterFragmentVarsBuilder + implements + Builder { + _$GPrimitiveFilterFragmentVars? _$v; + + GPrimitiveFilterFragmentVarsBuilder(); + + @override + void replace(GPrimitiveFilterFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPrimitiveFilterFragmentVars; + } + + @override + void update(void Function(GPrimitiveFilterFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPrimitiveFilterFragmentVars build() => _build(); + + _$GPrimitiveFilterFragmentVars _build() { + final _$result = _$v ?? new _$GPrimitiveFilterFragmentVars._(); + replace(_$result); + return _$result; + } +} + +class _$GFilterFragmentVars extends GFilterFragmentVars { + factory _$GFilterFragmentVars( + [void Function(GFilterFragmentVarsBuilder)? updates]) => + (new GFilterFragmentVarsBuilder()..update(updates))._build(); + + _$GFilterFragmentVars._() : super._(); + + @override + GFilterFragmentVars rebuild( + void Function(GFilterFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFilterFragmentVarsBuilder toBuilder() => + new GFilterFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFilterFragmentVars; + } + + @override + int get hashCode { + return 295217939; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GFilterFragmentVars').toString(); + } +} + +class GFilterFragmentVarsBuilder + implements Builder { + _$GFilterFragmentVars? _$v; + + GFilterFragmentVarsBuilder(); + + @override + void replace(GFilterFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFilterFragmentVars; + } + + @override + void update(void Function(GFilterFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFilterFragmentVars build() => _build(); + + _$GFilterFragmentVars _build() { + final _$result = _$v ?? new _$GFilterFragmentVars._(); + replace(_$result); + return _$result; + } +} + +class _$GSortSelectionFragmentVars extends GSortSelectionFragmentVars { + factory _$GSortSelectionFragmentVars( + [void Function(GSortSelectionFragmentVarsBuilder)? updates]) => + (new GSortSelectionFragmentVarsBuilder()..update(updates))._build(); + + _$GSortSelectionFragmentVars._() : super._(); + + @override + GSortSelectionFragmentVars rebuild( + void Function(GSortSelectionFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSortSelectionFragmentVarsBuilder toBuilder() => + new GSortSelectionFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSortSelectionFragmentVars; + } + + @override + int get hashCode { + return 842433256; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSortSelectionFragmentVars') + .toString(); + } +} + +class GSortSelectionFragmentVarsBuilder + implements + Builder { + _$GSortSelectionFragmentVars? _$v; + + GSortSelectionFragmentVarsBuilder(); + + @override + void replace(GSortSelectionFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSortSelectionFragmentVars; + } + + @override + void update(void Function(GSortSelectionFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSortSelectionFragmentVars build() => _build(); + + _$GSortSelectionFragmentVars _build() { + final _$result = _$v ?? new _$GSortSelectionFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.ast.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.ast.gql.dart new file mode 100644 index 00000000..467c1947 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.ast.gql.dart @@ -0,0 +1,40 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart' + as _i2; + +const SourceList = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'SourceList'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'sources'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SourceFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + SourceList, + _i2.SourceFragment, +]); diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.dart new file mode 100644 index 00000000..f2f8c765 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.dart @@ -0,0 +1,162 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'source_list.data.gql.g.dart'; + +abstract class GSourceListData + implements Built { + GSourceListData._(); + + factory GSourceListData([void Function(GSourceListDataBuilder b) updates]) = + _$GSourceListData; + + static void _initializeBuilder(GSourceListDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GSourceListData_sources get sources; + static Serializer get serializer => + _$gSourceListDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceListData.serializer, + this, + ) as Map); + + static GSourceListData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceListData.serializer, + json, + ); +} + +abstract class GSourceListData_sources + implements Built { + GSourceListData_sources._(); + + factory GSourceListData_sources( + [void Function(GSourceListData_sourcesBuilder b) updates]) = + _$GSourceListData_sources; + + static void _initializeBuilder(GSourceListData_sourcesBuilder b) => + b..G__typename = 'SourceNodeList'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList get nodes; + static Serializer get serializer => + _$gSourceListDataSourcesSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceListData_sources.serializer, + this, + ) as Map); + + static GSourceListData_sources? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceListData_sources.serializer, + json, + ); +} + +abstract class GSourceListData_sources_nodes + implements + Built, + _i2.GSourceFragment { + GSourceListData_sources_nodes._(); + + factory GSourceListData_sources_nodes( + [void Function(GSourceListData_sources_nodesBuilder b) updates]) = + _$GSourceListData_sources_nodes; + + static void _initializeBuilder(GSourceListData_sources_nodesBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i3.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GSourceListData_sources_nodes_extension get extension; + static Serializer get serializer => + _$gSourceListDataSourcesNodesSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourceListData_sources_nodes.serializer, + this, + ) as Map); + + static GSourceListData_sources_nodes? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceListData_sources_nodes.serializer, + json, + ); +} + +abstract class GSourceListData_sources_nodes_extension + implements + Built, + _i2.GSourceFragment_extension { + GSourceListData_sources_nodes_extension._(); + + factory GSourceListData_sources_nodes_extension( + [void Function(GSourceListData_sources_nodes_extensionBuilder b) + updates]) = _$GSourceListData_sources_nodes_extension; + + static void _initializeBuilder( + GSourceListData_sources_nodes_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer get serializer => + _$gSourceListDataSourcesNodesExtensionSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourceListData_sources_nodes_extension.serializer, + this, + ) as Map); + + static GSourceListData_sources_nodes_extension? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GSourceListData_sources_nodes_extension.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.g.dart new file mode 100644 index 00000000..84155d89 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.g.dart @@ -0,0 +1,918 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_list.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceListDataSerializer = + new _$GSourceListDataSerializer(); +Serializer _$gSourceListDataSourcesSerializer = + new _$GSourceListData_sourcesSerializer(); +Serializer + _$gSourceListDataSourcesNodesSerializer = + new _$GSourceListData_sources_nodesSerializer(); +Serializer + _$gSourceListDataSourcesNodesExtensionSerializer = + new _$GSourceListData_sources_nodes_extensionSerializer(); + +class _$GSourceListDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceListData, _$GSourceListData]; + @override + final String wireName = 'GSourceListData'; + + @override + Iterable serialize(Serializers serializers, GSourceListData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'sources', + serializers.serialize(object.sources, + specifiedType: const FullType(GSourceListData_sources)), + ]; + + return result; + } + + @override + GSourceListData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceListDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'sources': + result.sources.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceListData_sources))! + as GSourceListData_sources); + break; + } + } + + return result.build(); + } +} + +class _$GSourceListData_sourcesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceListData_sources, + _$GSourceListData_sources + ]; + @override + final String wireName = 'GSourceListData_sources'; + + @override + Iterable serialize( + Serializers serializers, GSourceListData_sources object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'nodes', + serializers.serialize(object.nodes, + specifiedType: const FullType(BuiltList, + const [const FullType(GSourceListData_sources_nodes)])), + ]; + + return result; + } + + @override + GSourceListData_sources deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceListData_sourcesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'nodes': + result.nodes.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourceListData_sources_nodes) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceListData_sources_nodesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceListData_sources_nodes, + _$GSourceListData_sources_nodes + ]; + @override + final String wireName = 'GSourceListData_sources_nodes'; + + @override + Iterable serialize( + Serializers serializers, GSourceListData_sources_nodes object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i3.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: + const FullType(GSourceListData_sources_nodes_extension)), + ]; + + return result; + } + + @override + GSourceListData_sources_nodes deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceListData_sources_nodesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GLongString))! + as _i3.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: + const FullType(GSourceListData_sources_nodes_extension))! + as GSourceListData_sources_nodes_extension); + break; + } + } + + return result.build(); + } +} + +class _$GSourceListData_sources_nodes_extensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceListData_sources_nodes_extension, + _$GSourceListData_sources_nodes_extension + ]; + @override + final String wireName = 'GSourceListData_sources_nodes_extension'; + + @override + Iterable serialize( + Serializers serializers, GSourceListData_sources_nodes_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceListData_sources_nodes_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceListData_sources_nodes_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourceListData extends GSourceListData { + @override + final String G__typename; + @override + final GSourceListData_sources sources; + + factory _$GSourceListData([void Function(GSourceListDataBuilder)? updates]) => + (new GSourceListDataBuilder()..update(updates))._build(); + + _$GSourceListData._({required this.G__typename, required this.sources}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceListData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + sources, r'GSourceListData', 'sources'); + } + + @override + GSourceListData rebuild(void Function(GSourceListDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceListDataBuilder toBuilder() => + new GSourceListDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceListData && + G__typename == other.G__typename && + sources == other.sources; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, sources.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceListData') + ..add('G__typename', G__typename) + ..add('sources', sources)) + .toString(); + } +} + +class GSourceListDataBuilder + implements Builder { + _$GSourceListData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GSourceListData_sourcesBuilder? _sources; + GSourceListData_sourcesBuilder get sources => + _$this._sources ??= new GSourceListData_sourcesBuilder(); + set sources(GSourceListData_sourcesBuilder? sources) => + _$this._sources = sources; + + GSourceListDataBuilder() { + GSourceListData._initializeBuilder(this); + } + + GSourceListDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _sources = $v.sources.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceListData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceListData; + } + + @override + void update(void Function(GSourceListDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceListData build() => _build(); + + _$GSourceListData _build() { + _$GSourceListData _$result; + try { + _$result = _$v ?? + new _$GSourceListData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceListData', 'G__typename'), + sources: sources.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'sources'; + sources.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceListData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceListData_sources extends GSourceListData_sources { + @override + final String G__typename; + @override + final BuiltList nodes; + + factory _$GSourceListData_sources( + [void Function(GSourceListData_sourcesBuilder)? updates]) => + (new GSourceListData_sourcesBuilder()..update(updates))._build(); + + _$GSourceListData_sources._({required this.G__typename, required this.nodes}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceListData_sources', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + nodes, r'GSourceListData_sources', 'nodes'); + } + + @override + GSourceListData_sources rebuild( + void Function(GSourceListData_sourcesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceListData_sourcesBuilder toBuilder() => + new GSourceListData_sourcesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceListData_sources && + G__typename == other.G__typename && + nodes == other.nodes; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, nodes.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceListData_sources') + ..add('G__typename', G__typename) + ..add('nodes', nodes)) + .toString(); + } +} + +class GSourceListData_sourcesBuilder + implements + Builder { + _$GSourceListData_sources? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _nodes; + ListBuilder get nodes => + _$this._nodes ??= new ListBuilder(); + set nodes(ListBuilder? nodes) => + _$this._nodes = nodes; + + GSourceListData_sourcesBuilder() { + GSourceListData_sources._initializeBuilder(this); + } + + GSourceListData_sourcesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _nodes = $v.nodes.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceListData_sources other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceListData_sources; + } + + @override + void update(void Function(GSourceListData_sourcesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceListData_sources build() => _build(); + + _$GSourceListData_sources _build() { + _$GSourceListData_sources _$result; + try { + _$result = _$v ?? + new _$GSourceListData_sources._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceListData_sources', 'G__typename'), + nodes: nodes.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'nodes'; + nodes.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceListData_sources', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceListData_sources_nodes extends GSourceListData_sources_nodes { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i3.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GSourceListData_sources_nodes_extension extension; + + factory _$GSourceListData_sources_nodes( + [void Function(GSourceListData_sources_nodesBuilder)? updates]) => + (new GSourceListData_sources_nodesBuilder()..update(updates))._build(); + + _$GSourceListData_sources_nodes._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceListData_sources_nodes', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceListData_sources_nodes', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceListData_sources_nodes', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + id, r'GSourceListData_sources_nodes', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GSourceListData_sources_nodes', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceListData_sources_nodes', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceListData_sources_nodes', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GSourceListData_sources_nodes', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GSourceListData_sources_nodes', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GSourceListData_sources_nodes', 'extension'); + } + + @override + GSourceListData_sources_nodes rebuild( + void Function(GSourceListData_sources_nodesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceListData_sources_nodesBuilder toBuilder() => + new GSourceListData_sources_nodesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceListData_sources_nodes && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceListData_sources_nodes') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GSourceListData_sources_nodesBuilder + implements + Builder { + _$GSourceListData_sources_nodes? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i3.GLongStringBuilder? _id; + _i3.GLongStringBuilder get id => _$this._id ??= new _i3.GLongStringBuilder(); + set id(_i3.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GSourceListData_sources_nodes_extensionBuilder? _extension; + GSourceListData_sources_nodes_extensionBuilder get extension => + _$this._extension ??= + new GSourceListData_sources_nodes_extensionBuilder(); + set extension(GSourceListData_sources_nodes_extensionBuilder? extension) => + _$this._extension = extension; + + GSourceListData_sources_nodesBuilder() { + GSourceListData_sources_nodes._initializeBuilder(this); + } + + GSourceListData_sources_nodesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceListData_sources_nodes other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceListData_sources_nodes; + } + + @override + void update(void Function(GSourceListData_sources_nodesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceListData_sources_nodes build() => _build(); + + _$GSourceListData_sources_nodes _build() { + _$GSourceListData_sources_nodes _$result; + try { + _$result = _$v ?? + new _$GSourceListData_sources_nodes._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceListData_sources_nodes', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceListData_sources_nodes', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceListData_sources_nodes', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, + r'GSourceListData_sources_nodes', + 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceListData_sources_nodes', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceListData_sources_nodes', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GSourceListData_sources_nodes', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, + r'GSourceListData_sources_nodes', + 'supportsLatest'), + extension: extension.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceListData_sources_nodes', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceListData_sources_nodes_extension + extends GSourceListData_sources_nodes_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GSourceListData_sources_nodes_extension( + [void Function(GSourceListData_sources_nodes_extensionBuilder)? + updates]) => + (new GSourceListData_sources_nodes_extensionBuilder()..update(updates)) + ._build(); + + _$GSourceListData_sources_nodes_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceListData_sources_nodes_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceListData_sources_nodes_extension', 'pkgName'); + } + + @override + GSourceListData_sources_nodes_extension rebuild( + void Function(GSourceListData_sources_nodes_extensionBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceListData_sources_nodes_extensionBuilder toBuilder() => + new GSourceListData_sources_nodes_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceListData_sources_nodes_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceListData_sources_nodes_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GSourceListData_sources_nodes_extensionBuilder + implements + Builder { + _$GSourceListData_sources_nodes_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GSourceListData_sources_nodes_extensionBuilder() { + GSourceListData_sources_nodes_extension._initializeBuilder(this); + } + + GSourceListData_sources_nodes_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GSourceListData_sources_nodes_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceListData_sources_nodes_extension; + } + + @override + void update( + void Function(GSourceListData_sources_nodes_extensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceListData_sources_nodes_extension build() => _build(); + + _$GSourceListData_sources_nodes_extension _build() { + final _$result = _$v ?? + new _$GSourceListData_sources_nodes_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceListData_sources_nodes_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceListData_sources_nodes_extension', 'pkgName'), + repo: repo, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.req.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.req.gql.dart new file mode 100644 index 00000000..903036ee --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.req.gql.dart @@ -0,0 +1,96 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'source_list.req.gql.g.dart'; + +abstract class GSourceListReq + implements + Built, + _i1.OperationRequest<_i2.GSourceListData, _i3.GSourceListVars> { + GSourceListReq._(); + + factory GSourceListReq([void Function(GSourceListReqBuilder b) updates]) = + _$GSourceListReq; + + static void _initializeBuilder(GSourceListReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'SourceList', + ) + ..executeOnListen = true; + + @override + _i3.GSourceListVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GSourceListData? Function( + _i2.GSourceListData?, + _i2.GSourceListData?, + )? get updateResult; + @override + _i2.GSourceListData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GSourceListData? parseData(Map json) => + _i2.GSourceListData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourceListData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GSourceListData, _i3.GSourceListVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gSourceListReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourceListReq.serializer, + this, + ) as Map); + + static GSourceListReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourceListReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.req.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.req.gql.g.dart new file mode 100644 index 00000000..7973fe8c --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.req.gql.g.dart @@ -0,0 +1,366 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_list.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceListReqSerializer = + new _$GSourceListReqSerializer(); + +class _$GSourceListReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceListReq, _$GSourceListReq]; + @override + final String wireName = 'GSourceListReq'; + + @override + Iterable serialize(Serializers serializers, GSourceListReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourceListVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GSourceListData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GSourceListReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceListReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSourceListVars))! + as _i3.GSourceListVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GSourceListData))! + as _i2.GSourceListData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GSourceListReq extends GSourceListReq { + @override + final _i3.GSourceListVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GSourceListData? Function( + _i2.GSourceListData?, _i2.GSourceListData?)? updateResult; + @override + final _i2.GSourceListData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GSourceListReq([void Function(GSourceListReqBuilder)? updates]) => + (new GSourceListReqBuilder()..update(updates))._build(); + + _$GSourceListReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GSourceListReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GSourceListReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GSourceListReq', 'executeOnListen'); + } + + @override + GSourceListReq rebuild(void Function(GSourceListReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceListReqBuilder toBuilder() => + new GSourceListReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GSourceListReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceListReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GSourceListReqBuilder + implements Builder { + _$GSourceListReq? _$v; + + _i3.GSourceListVarsBuilder? _vars; + _i3.GSourceListVarsBuilder get vars => + _$this._vars ??= new _i3.GSourceListVarsBuilder(); + set vars(_i3.GSourceListVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GSourceListData? Function(_i2.GSourceListData?, _i2.GSourceListData?)? + _updateResult; + _i2.GSourceListData? Function(_i2.GSourceListData?, _i2.GSourceListData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GSourceListData? Function( + _i2.GSourceListData?, _i2.GSourceListData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GSourceListDataBuilder? _optimisticResponse; + _i2.GSourceListDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GSourceListDataBuilder(); + set optimisticResponse(_i2.GSourceListDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GSourceListReqBuilder() { + GSourceListReq._initializeBuilder(this); + } + + GSourceListReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GSourceListReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceListReq; + } + + @override + void update(void Function(GSourceListReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceListReq build() => _build(); + + _$GSourceListReq _build() { + _$GSourceListReq _$result; + try { + _$result = _$v ?? + new _$GSourceListReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GSourceListReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GSourceListReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceListReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.dart new file mode 100644 index 00000000..c9204436 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'source_list.var.gql.g.dart'; + +abstract class GSourceListVars + implements Built { + GSourceListVars._(); + + factory GSourceListVars([void Function(GSourceListVarsBuilder b) updates]) = + _$GSourceListVars; + + static Serializer get serializer => + _$gSourceListVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceListVars.serializer, + this, + ) as Map); + + static GSourceListVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceListVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.g.dart new file mode 100644 index 00000000..b7c64fcc --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.g.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_list.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceListVarsSerializer = + new _$GSourceListVarsSerializer(); + +class _$GSourceListVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceListVars, _$GSourceListVars]; + @override + final String wireName = 'GSourceListVars'; + + @override + Iterable serialize(Serializers serializers, GSourceListVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSourceListVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSourceListVarsBuilder().build(); + } +} + +class _$GSourceListVars extends GSourceListVars { + factory _$GSourceListVars([void Function(GSourceListVarsBuilder)? updates]) => + (new GSourceListVarsBuilder()..update(updates))._build(); + + _$GSourceListVars._() : super._(); + + @override + GSourceListVars rebuild(void Function(GSourceListVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceListVarsBuilder toBuilder() => + new GSourceListVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceListVars; + } + + @override + int get hashCode { + return 795176983; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSourceListVars').toString(); + } +} + +class GSourceListVarsBuilder + implements Builder { + _$GSourceListVars? _$v; + + GSourceListVarsBuilder(); + + @override + void replace(GSourceListVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceListVars; + } + + @override + void update(void Function(GSourceListVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceListVars build() => _build(); + + _$GSourceListVars _build() { + final _$result = _$v ?? new _$GSourceListVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.ast.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.ast.gql.dart new file mode 100644 index 00000000..a953e340 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.ast.gql.dart @@ -0,0 +1,382 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const SourcePreferenceById = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'SourcePreferenceById'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'source'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'id')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'preferences'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'checkBoxValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'checkBoxDefaultValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'checkBoxTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EditTextPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'editTextValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'EditTextDefaultValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'editTextTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'text'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogTitle'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogMessage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SwitchPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'switchValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'switchDefaultValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'switchTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MultiSelectListPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogMessage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'dialogTitle'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'multiSelectTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entryValues'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entries'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'multiSelectDefaultValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'multiSelectValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.InlineFragmentNode( + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ListPreference'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'currentValue'), + alias: _i1.NameNode(value: 'listValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: _i1.NameNode(value: 'listDefaultValue'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: _i1.NameNode(value: 'listTitle'), + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'summary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entryValues'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'entries'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), + ) + ]), + ) + ]), +); +const UpdateSourcePreference = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSourcePreference'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateSourcePreferenceInput'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'updateSourcePreference'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'input')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + SourcePreferenceById, + UpdateSourcePreference, +]); diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.dart new file mode 100644 index 00000000..153a0413 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.dart @@ -0,0 +1,459 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:gql_code_builder_serializers/gql_code_builder_serializers.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'source_preferences_by_id.data.gql.g.dart'; + +abstract class GSourcePreferenceByIdData + implements + Built { + GSourcePreferenceByIdData._(); + + factory GSourcePreferenceByIdData( + [void Function(GSourcePreferenceByIdDataBuilder b) updates]) = + _$GSourcePreferenceByIdData; + + static void _initializeBuilder(GSourcePreferenceByIdDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GSourcePreferenceByIdData_source get source; + static Serializer get serializer => + _$gSourcePreferenceByIdDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData.serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourcePreferenceByIdData.serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source + implements + Built { + GSourcePreferenceByIdData_source._(); + + factory GSourcePreferenceByIdData_source( + [void Function(GSourcePreferenceByIdData_sourceBuilder b) updates]) = + _$GSourcePreferenceByIdData_source; + + static void _initializeBuilder(GSourcePreferenceByIdData_sourceBuilder b) => + b..G__typename = 'SourceType'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList get preferences; + static Serializer get serializer => + _$gSourcePreferenceByIdDataSourceSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source.serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source.serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source_preferences { + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer + get serializer => _i2.InlineFragmentSerializer< + GSourcePreferenceByIdData_source_preferences>( + 'GSourcePreferenceByIdData_source_preferences', + GSourcePreferenceByIdData_source_preferences__base, + { + 'CheckBoxPreference': + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference, + 'EditTextPreference': + GSourcePreferenceByIdData_source_preferences__asEditTextPreference, + 'SwitchPreference': + GSourcePreferenceByIdData_source_preferences__asSwitchPreference, + 'MultiSelectListPreference': + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference, + 'ListPreference': + GSourcePreferenceByIdData_source_preferences__asListPreference, + }, + ); + + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source_preferences.serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source_preferences? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source_preferences.serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source_preferences__base + implements + Built, + GSourcePreferenceByIdData_source_preferences { + GSourcePreferenceByIdData_source_preferences__base._(); + + factory GSourcePreferenceByIdData_source_preferences__base( + [void Function( + GSourcePreferenceByIdData_source_preferences__baseBuilder b) + updates]) = _$GSourcePreferenceByIdData_source_preferences__base; + + static void _initializeBuilder( + GSourcePreferenceByIdData_source_preferences__baseBuilder b) => + b..G__typename = 'Preference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer + get serializer => + _$gSourcePreferenceByIdDataSourcePreferencesBaseSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source_preferences__base.serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source_preferences__base? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source_preferences__base.serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + implements + Built< + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference, + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder>, + GSourcePreferenceByIdData_source_preferences { + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference._(); + + factory GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder + b) + updates]) = + _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference; + + static void _initializeBuilder( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder + b) => + b..G__typename = 'CheckBoxPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + bool? get checkBoxValue; + String? get summary; + bool get checkBoxDefaultValue; + String get key; + String get checkBoxTitle; + static Serializer< + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference> + get serializer => + _$gSourcePreferenceByIdDataSourcePreferencesAsCheckBoxPreferenceSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + .serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference? + fromJson(Map json) => _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + .serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source_preferences__asEditTextPreference + implements + Built< + GSourcePreferenceByIdData_source_preferences__asEditTextPreference, + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder>, + GSourcePreferenceByIdData_source_preferences { + GSourcePreferenceByIdData_source_preferences__asEditTextPreference._(); + + factory GSourcePreferenceByIdData_source_preferences__asEditTextPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder + b) + updates]) = + _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference; + + static void _initializeBuilder( + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder + b) => + b..G__typename = 'EditTextPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get editTextValue; + String? get EditTextDefaultValue; + String? get editTextTitle; + String? get text; + String? get summary; + String get key; + String? get dialogTitle; + String? get dialogMessage; + static Serializer< + GSourcePreferenceByIdData_source_preferences__asEditTextPreference> + get serializer => + _$gSourcePreferenceByIdDataSourcePreferencesAsEditTextPreferenceSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source_preferences__asEditTextPreference + .serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source_preferences__asEditTextPreference? + fromJson(Map json) => _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source_preferences__asEditTextPreference + .serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source_preferences__asSwitchPreference + implements + Built, + GSourcePreferenceByIdData_source_preferences { + GSourcePreferenceByIdData_source_preferences__asSwitchPreference._(); + + factory GSourcePreferenceByIdData_source_preferences__asSwitchPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder + b) + updates]) = + _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference; + + static void _initializeBuilder( + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder + b) => + b..G__typename = 'SwitchPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + bool? get switchValue; + String? get summary; + String get key; + bool get switchDefaultValue; + String get switchTitle; + static Serializer< + GSourcePreferenceByIdData_source_preferences__asSwitchPreference> + get serializer => + _$gSourcePreferenceByIdDataSourcePreferencesAsSwitchPreferenceSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source_preferences__asSwitchPreference + .serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source_preferences__asSwitchPreference? + fromJson(Map json) => _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source_preferences__asSwitchPreference + .serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + implements + Built< + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference, + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder>, + GSourcePreferenceByIdData_source_preferences { + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference._(); + + factory GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder + b) + updates]) = + _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference; + + static void _initializeBuilder( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder + b) => + b..G__typename = 'MultiSelectListPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get dialogMessage; + String? get dialogTitle; + String? get multiSelectTitle; + String? get summary; + String get key; + BuiltList get entryValues; + BuiltList get entries; + BuiltList? get multiSelectDefaultValue; + BuiltList? get multiSelectValue; + static Serializer< + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference> + get serializer => + _$gSourcePreferenceByIdDataSourcePreferencesAsMultiSelectListPreferenceSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + .serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference? + fromJson(Map json) => _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + .serializer, + json, + ); +} + +abstract class GSourcePreferenceByIdData_source_preferences__asListPreference + implements + Built, + GSourcePreferenceByIdData_source_preferences { + GSourcePreferenceByIdData_source_preferences__asListPreference._(); + + factory GSourcePreferenceByIdData_source_preferences__asListPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder + b) + updates]) = + _$GSourcePreferenceByIdData_source_preferences__asListPreference; + + static void _initializeBuilder( + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder + b) => + b..G__typename = 'ListPreference'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get listValue; + String? get listDefaultValue; + String? get listTitle; + String? get summary; + String get key; + BuiltList get entryValues; + BuiltList get entries; + static Serializer< + GSourcePreferenceByIdData_source_preferences__asListPreference> + get serializer => + _$gSourcePreferenceByIdDataSourcePreferencesAsListPreferenceSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceByIdData_source_preferences__asListPreference + .serializer, + this, + ) as Map); + + static GSourcePreferenceByIdData_source_preferences__asListPreference? + fromJson(Map json) => _i1.serializers.deserializeWith( + GSourcePreferenceByIdData_source_preferences__asListPreference + .serializer, + json, + ); +} + +abstract class GUpdateSourcePreferenceData + implements + Built { + GUpdateSourcePreferenceData._(); + + factory GUpdateSourcePreferenceData( + [void Function(GUpdateSourcePreferenceDataBuilder b) updates]) = + _$GUpdateSourcePreferenceData; + + static void _initializeBuilder(GUpdateSourcePreferenceDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSourcePreferenceData_updateSourcePreference? + get updateSourcePreference; + static Serializer get serializer => + _$gUpdateSourcePreferenceDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourcePreferenceData.serializer, + this, + ) as Map); + + static GUpdateSourcePreferenceData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSourcePreferenceData.serializer, + json, + ); +} + +abstract class GUpdateSourcePreferenceData_updateSourcePreference + implements + Built { + GUpdateSourcePreferenceData_updateSourcePreference._(); + + factory GUpdateSourcePreferenceData_updateSourcePreference( + [void Function( + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder b) + updates]) = _$GUpdateSourcePreferenceData_updateSourcePreference; + + static void _initializeBuilder( + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder b) => + b..G__typename = 'UpdateSourcePreferencePayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + static Serializer + get serializer => + _$gUpdateSourcePreferenceDataUpdateSourcePreferenceSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourcePreferenceData_updateSourcePreference.serializer, + this, + ) as Map); + + static GUpdateSourcePreferenceData_updateSourcePreference? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSourcePreferenceData_updateSourcePreference.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.g.dart new file mode 100644 index 00000000..6c2780c1 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.g.dart @@ -0,0 +1,2641 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_preferences_by_id.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourcePreferenceByIdDataSerializer = + new _$GSourcePreferenceByIdDataSerializer(); +Serializer + _$gSourcePreferenceByIdDataSourceSerializer = + new _$GSourcePreferenceByIdData_sourceSerializer(); +Serializer + _$gSourcePreferenceByIdDataSourcePreferencesBaseSerializer = + new _$GSourcePreferenceByIdData_source_preferences__baseSerializer(); +Serializer + _$gSourcePreferenceByIdDataSourcePreferencesAsCheckBoxPreferenceSerializer = + new _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceSerializer(); +Serializer + _$gSourcePreferenceByIdDataSourcePreferencesAsEditTextPreferenceSerializer = + new _$GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceSerializer(); +Serializer + _$gSourcePreferenceByIdDataSourcePreferencesAsSwitchPreferenceSerializer = + new _$GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceSerializer(); +Serializer< + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference> + _$gSourcePreferenceByIdDataSourcePreferencesAsMultiSelectListPreferenceSerializer = + new _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceSerializer(); +Serializer + _$gSourcePreferenceByIdDataSourcePreferencesAsListPreferenceSerializer = + new _$GSourcePreferenceByIdData_source_preferences__asListPreferenceSerializer(); +Serializer + _$gUpdateSourcePreferenceDataSerializer = + new _$GUpdateSourcePreferenceDataSerializer(); +Serializer + _$gUpdateSourcePreferenceDataUpdateSourcePreferenceSerializer = + new _$GUpdateSourcePreferenceData_updateSourcePreferenceSerializer(); + +class _$GSourcePreferenceByIdDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceByIdData, + _$GSourcePreferenceByIdData + ]; + @override + final String wireName = 'GSourcePreferenceByIdData'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceByIdData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'source', + serializers.serialize(object.source, + specifiedType: const FullType(GSourcePreferenceByIdData_source)), + ]; + + return result; + } + + @override + GSourcePreferenceByIdData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceByIdDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: + const FullType(GSourcePreferenceByIdData_source))! + as GSourcePreferenceByIdData_source); + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData_sourceSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceByIdData_source, + _$GSourcePreferenceByIdData_source + ]; + @override + final String wireName = 'GSourcePreferenceByIdData_source'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceByIdData_source object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'preferences', + serializers.serialize(object.preferences, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourcePreferenceByIdData_source_preferences) + ])), + ]; + + return result; + } + + @override + GSourcePreferenceByIdData_source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceByIdData_sourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'preferences': + result.preferences.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourcePreferenceByIdData_source_preferences) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData_source_preferences__baseSerializer + implements + StructuredSerializer< + GSourcePreferenceByIdData_source_preferences__base> { + @override + final Iterable types = const [ + GSourcePreferenceByIdData_source_preferences__base, + _$GSourcePreferenceByIdData_source_preferences__base + ]; + @override + final String wireName = 'GSourcePreferenceByIdData_source_preferences__base'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceByIdData_source_preferences__base object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourcePreferenceByIdData_source_preferences__base deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceByIdData_source_preferences__baseBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference> { + @override + final Iterable types = const [ + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference, + _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + ]; + @override + final String wireName = + 'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'checkBoxDefaultValue', + serializers.serialize(object.checkBoxDefaultValue, + specifiedType: const FullType(bool)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'checkBoxTitle', + serializers.serialize(object.checkBoxTitle, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.checkBoxValue; + if (value != null) { + result + ..add('checkBoxValue') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'checkBoxValue': + result.checkBoxValue = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'checkBoxDefaultValue': + result.checkBoxDefaultValue = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'checkBoxTitle': + result.checkBoxTitle = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceByIdData_source_preferences__asEditTextPreference> { + @override + final Iterable types = const [ + GSourcePreferenceByIdData_source_preferences__asEditTextPreference, + _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference + ]; + @override + final String wireName = + 'GSourcePreferenceByIdData_source_preferences__asEditTextPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceByIdData_source_preferences__asEditTextPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.editTextValue; + if (value != null) { + result + ..add('editTextValue') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.EditTextDefaultValue; + if (value != null) { + result + ..add('EditTextDefaultValue') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.editTextTitle; + if (value != null) { + result + ..add('editTextTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.text; + if (value != null) { + result + ..add('text') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.dialogTitle; + if (value != null) { + result + ..add('dialogTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.dialogMessage; + if (value != null) { + result + ..add('dialogMessage') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceByIdData_source_preferences__asEditTextPreference + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'editTextValue': + result.editTextValue = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'EditTextDefaultValue': + result.EditTextDefaultValue = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'editTextTitle': + result.editTextTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'text': + result.text = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'dialogTitle': + result.dialogTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'dialogMessage': + result.dialogMessage = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceByIdData_source_preferences__asSwitchPreference> { + @override + final Iterable types = const [ + GSourcePreferenceByIdData_source_preferences__asSwitchPreference, + _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference + ]; + @override + final String wireName = + 'GSourcePreferenceByIdData_source_preferences__asSwitchPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceByIdData_source_preferences__asSwitchPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'switchDefaultValue', + serializers.serialize(object.switchDefaultValue, + specifiedType: const FullType(bool)), + 'switchTitle', + serializers.serialize(object.switchTitle, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.switchValue; + if (value != null) { + result + ..add('switchValue') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceByIdData_source_preferences__asSwitchPreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'switchValue': + result.switchValue = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'switchDefaultValue': + result.switchDefaultValue = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'switchTitle': + result.switchTitle = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference> { + @override + final Iterable types = const [ + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference, + _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + ]; + @override + final String wireName = + 'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference'; + + @override + Iterable serialize( + Serializers serializers, + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'entryValues', + serializers.serialize(object.entryValues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'entries', + serializers.serialize(object.entries, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + Object? value; + value = object.dialogMessage; + if (value != null) { + result + ..add('dialogMessage') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.dialogTitle; + if (value != null) { + result + ..add('dialogTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.multiSelectTitle; + if (value != null) { + result + ..add('multiSelectTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.multiSelectDefaultValue; + if (value != null) { + result + ..add('multiSelectDefaultValue') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.multiSelectValue; + if (value != null) { + result + ..add('multiSelectValue') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + return result; + } + + @override + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + deserialize(Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'dialogMessage': + result.dialogMessage = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'dialogTitle': + result.dialogTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'multiSelectTitle': + result.multiSelectTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'entryValues': + result.entryValues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'entries': + result.entries.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'multiSelectDefaultValue': + result.multiSelectDefaultValue.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'multiSelectValue': + result.multiSelectValue.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asListPreferenceSerializer + implements + StructuredSerializer< + GSourcePreferenceByIdData_source_preferences__asListPreference> { + @override + final Iterable types = const [ + GSourcePreferenceByIdData_source_preferences__asListPreference, + _$GSourcePreferenceByIdData_source_preferences__asListPreference + ]; + @override + final String wireName = + 'GSourcePreferenceByIdData_source_preferences__asListPreference'; + + @override + Iterable serialize(Serializers serializers, + GSourcePreferenceByIdData_source_preferences__asListPreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'entryValues', + serializers.serialize(object.entryValues, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'entries', + serializers.serialize(object.entries, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + Object? value; + value = object.listValue; + if (value != null) { + result + ..add('listValue') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.listDefaultValue; + if (value != null) { + result + ..add('listDefaultValue') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.listTitle; + if (value != null) { + result + ..add('listTitle') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.summary; + if (value != null) { + result + ..add('summary') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourcePreferenceByIdData_source_preferences__asListPreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'listValue': + result.listValue = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'listDefaultValue': + result.listDefaultValue = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'listTitle': + result.listTitle = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'summary': + result.summary = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'entryValues': + result.entryValues.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'entries': + result.entries.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourcePreferenceDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourcePreferenceData, + _$GUpdateSourcePreferenceData + ]; + @override + final String wireName = 'GUpdateSourcePreferenceData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourcePreferenceData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.updateSourcePreference; + if (value != null) { + result + ..add('updateSourcePreference') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GUpdateSourcePreferenceData_updateSourcePreference))); + } + return result; + } + + @override + GUpdateSourcePreferenceData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourcePreferenceDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'updateSourcePreference': + result.updateSourcePreference.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSourcePreferenceData_updateSourcePreference))! + as GUpdateSourcePreferenceData_updateSourcePreference); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourcePreferenceData_updateSourcePreferenceSerializer + implements + StructuredSerializer< + GUpdateSourcePreferenceData_updateSourcePreference> { + @override + final Iterable types = const [ + GUpdateSourcePreferenceData_updateSourcePreference, + _$GUpdateSourcePreferenceData_updateSourcePreference + ]; + @override + final String wireName = 'GUpdateSourcePreferenceData_updateSourcePreference'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSourcePreferenceData_updateSourcePreference object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSourcePreferenceData_updateSourcePreference deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateSourcePreferenceData_updateSourcePreferenceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdData extends GSourcePreferenceByIdData { + @override + final String G__typename; + @override + final GSourcePreferenceByIdData_source source; + + factory _$GSourcePreferenceByIdData( + [void Function(GSourcePreferenceByIdDataBuilder)? updates]) => + (new GSourcePreferenceByIdDataBuilder()..update(updates))._build(); + + _$GSourcePreferenceByIdData._( + {required this.G__typename, required this.source}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourcePreferenceByIdData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + source, r'GSourcePreferenceByIdData', 'source'); + } + + @override + GSourcePreferenceByIdData rebuild( + void Function(GSourcePreferenceByIdDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdDataBuilder toBuilder() => + new GSourcePreferenceByIdDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceByIdData && + G__typename == other.G__typename && + source == other.source; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceByIdData') + ..add('G__typename', G__typename) + ..add('source', source)) + .toString(); + } +} + +class GSourcePreferenceByIdDataBuilder + implements + Builder { + _$GSourcePreferenceByIdData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GSourcePreferenceByIdData_sourceBuilder? _source; + GSourcePreferenceByIdData_sourceBuilder get source => + _$this._source ??= new GSourcePreferenceByIdData_sourceBuilder(); + set source(GSourcePreferenceByIdData_sourceBuilder? source) => + _$this._source = source; + + GSourcePreferenceByIdDataBuilder() { + GSourcePreferenceByIdData._initializeBuilder(this); + } + + GSourcePreferenceByIdDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _source = $v.source.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceByIdData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceByIdData; + } + + @override + void update(void Function(GSourcePreferenceByIdDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData build() => _build(); + + _$GSourcePreferenceByIdData _build() { + _$GSourcePreferenceByIdData _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceByIdData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourcePreferenceByIdData', 'G__typename'), + source: source.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'source'; + source.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceByIdData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceByIdData_source + extends GSourcePreferenceByIdData_source { + @override + final String G__typename; + @override + final BuiltList preferences; + + factory _$GSourcePreferenceByIdData_source( + [void Function(GSourcePreferenceByIdData_sourceBuilder)? updates]) => + (new GSourcePreferenceByIdData_sourceBuilder()..update(updates))._build(); + + _$GSourcePreferenceByIdData_source._( + {required this.G__typename, required this.preferences}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourcePreferenceByIdData_source', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + preferences, r'GSourcePreferenceByIdData_source', 'preferences'); + } + + @override + GSourcePreferenceByIdData_source rebuild( + void Function(GSourcePreferenceByIdData_sourceBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdData_sourceBuilder toBuilder() => + new GSourcePreferenceByIdData_sourceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceByIdData_source && + G__typename == other.G__typename && + preferences == other.preferences; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, preferences.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceByIdData_source') + ..add('G__typename', G__typename) + ..add('preferences', preferences)) + .toString(); + } +} + +class GSourcePreferenceByIdData_sourceBuilder + implements + Builder { + _$GSourcePreferenceByIdData_source? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _preferences; + ListBuilder get preferences => + _$this._preferences ??= + new ListBuilder(); + set preferences( + ListBuilder? + preferences) => + _$this._preferences = preferences; + + GSourcePreferenceByIdData_sourceBuilder() { + GSourcePreferenceByIdData_source._initializeBuilder(this); + } + + GSourcePreferenceByIdData_sourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _preferences = $v.preferences.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceByIdData_source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceByIdData_source; + } + + @override + void update(void Function(GSourcePreferenceByIdData_sourceBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData_source build() => _build(); + + _$GSourcePreferenceByIdData_source _build() { + _$GSourcePreferenceByIdData_source _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceByIdData_source._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourcePreferenceByIdData_source', 'G__typename'), + preferences: preferences.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'preferences'; + preferences.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceByIdData_source', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceByIdData_source_preferences__base + extends GSourcePreferenceByIdData_source_preferences__base { + @override + final String G__typename; + + factory _$GSourcePreferenceByIdData_source_preferences__base( + [void Function( + GSourcePreferenceByIdData_source_preferences__baseBuilder)? + updates]) => + (new GSourcePreferenceByIdData_source_preferences__baseBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceByIdData_source_preferences__base._( + {required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourcePreferenceByIdData_source_preferences__base', 'G__typename'); + } + + @override + GSourcePreferenceByIdData_source_preferences__base rebuild( + void Function( + GSourcePreferenceByIdData_source_preferences__baseBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdData_source_preferences__baseBuilder toBuilder() => + new GSourcePreferenceByIdData_source_preferences__baseBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceByIdData_source_preferences__base && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceByIdData_source_preferences__base') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GSourcePreferenceByIdData_source_preferences__baseBuilder + implements + Builder { + _$GSourcePreferenceByIdData_source_preferences__base? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GSourcePreferenceByIdData_source_preferences__baseBuilder() { + GSourcePreferenceByIdData_source_preferences__base._initializeBuilder(this); + } + + GSourcePreferenceByIdData_source_preferences__baseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceByIdData_source_preferences__base other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceByIdData_source_preferences__base; + } + + @override + void update( + void Function(GSourcePreferenceByIdData_source_preferences__baseBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData_source_preferences__base build() => _build(); + + _$GSourcePreferenceByIdData_source_preferences__base _build() { + final _$result = _$v ?? + new _$GSourcePreferenceByIdData_source_preferences__base._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__base', + 'G__typename'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + extends GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference { + @override + final String G__typename; + @override + final bool? checkBoxValue; + @override + final String? summary; + @override + final bool checkBoxDefaultValue; + @override + final String key; + @override + final String checkBoxTitle; + + factory _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder)? + updates]) => + (new GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference._( + {required this.G__typename, + this.checkBoxValue, + this.summary, + required this.checkBoxDefaultValue, + required this.key, + required this.checkBoxTitle}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + checkBoxDefaultValue, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'checkBoxDefaultValue'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'key'); + BuiltValueNullFieldError.checkNotNull( + checkBoxTitle, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'checkBoxTitle'); + } + + @override + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference rebuild( + void Function( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder + toBuilder() => + new GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference && + G__typename == other.G__typename && + checkBoxValue == other.checkBoxValue && + summary == other.summary && + checkBoxDefaultValue == other.checkBoxDefaultValue && + key == other.key && + checkBoxTitle == other.checkBoxTitle; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, checkBoxValue.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, checkBoxDefaultValue.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, checkBoxTitle.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference') + ..add('G__typename', G__typename) + ..add('checkBoxValue', checkBoxValue) + ..add('summary', summary) + ..add('checkBoxDefaultValue', checkBoxDefaultValue) + ..add('key', key) + ..add('checkBoxTitle', checkBoxTitle)) + .toString(); + } +} + +class GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder + implements + Builder< + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference, + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder> { + _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _checkBoxValue; + bool? get checkBoxValue => _$this._checkBoxValue; + set checkBoxValue(bool? checkBoxValue) => + _$this._checkBoxValue = checkBoxValue; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + bool? _checkBoxDefaultValue; + bool? get checkBoxDefaultValue => _$this._checkBoxDefaultValue; + set checkBoxDefaultValue(bool? checkBoxDefaultValue) => + _$this._checkBoxDefaultValue = checkBoxDefaultValue; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _checkBoxTitle; + String? get checkBoxTitle => _$this._checkBoxTitle; + set checkBoxTitle(String? checkBoxTitle) => + _$this._checkBoxTitle = checkBoxTitle; + + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder() { + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + ._initializeBuilder(this); + } + + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _checkBoxValue = $v.checkBoxValue; + _summary = $v.summary; + _checkBoxDefaultValue = $v.checkBoxDefaultValue; + _key = $v.key; + _checkBoxTitle = $v.checkBoxTitle; + _$v = null; + } + return this; + } + + @override + void replace( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference; + } + + @override + void update( + void Function( + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference build() => + _build(); + + _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + _build() { + final _$result = _$v ?? + new _$GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'G__typename'), + checkBoxValue: checkBoxValue, + summary: summary, + checkBoxDefaultValue: BuiltValueNullFieldError.checkNotNull( + checkBoxDefaultValue, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'checkBoxDefaultValue'), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'key'), + checkBoxTitle: BuiltValueNullFieldError.checkNotNull( + checkBoxTitle, + r'GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference', + 'checkBoxTitle'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference + extends GSourcePreferenceByIdData_source_preferences__asEditTextPreference { + @override + final String G__typename; + @override + final String? editTextValue; + @override + final String? EditTextDefaultValue; + @override + final String? editTextTitle; + @override + final String? text; + @override + final String? summary; + @override + final String key; + @override + final String? dialogTitle; + @override + final String? dialogMessage; + + factory _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder)? + updates]) => + (new GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference._( + {required this.G__typename, + this.editTextValue, + this.EditTextDefaultValue, + this.editTextTitle, + this.text, + this.summary, + required this.key, + this.dialogTitle, + this.dialogMessage}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asEditTextPreference', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asEditTextPreference', + 'key'); + } + + @override + GSourcePreferenceByIdData_source_preferences__asEditTextPreference rebuild( + void Function( + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder + toBuilder() => + new GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GSourcePreferenceByIdData_source_preferences__asEditTextPreference && + G__typename == other.G__typename && + editTextValue == other.editTextValue && + EditTextDefaultValue == other.EditTextDefaultValue && + editTextTitle == other.editTextTitle && + text == other.text && + summary == other.summary && + key == other.key && + dialogTitle == other.dialogTitle && + dialogMessage == other.dialogMessage; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, editTextValue.hashCode); + _$hash = $jc(_$hash, EditTextDefaultValue.hashCode); + _$hash = $jc(_$hash, editTextTitle.hashCode); + _$hash = $jc(_$hash, text.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, dialogTitle.hashCode); + _$hash = $jc(_$hash, dialogMessage.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceByIdData_source_preferences__asEditTextPreference') + ..add('G__typename', G__typename) + ..add('editTextValue', editTextValue) + ..add('EditTextDefaultValue', EditTextDefaultValue) + ..add('editTextTitle', editTextTitle) + ..add('text', text) + ..add('summary', summary) + ..add('key', key) + ..add('dialogTitle', dialogTitle) + ..add('dialogMessage', dialogMessage)) + .toString(); + } +} + +class GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder + implements + Builder< + GSourcePreferenceByIdData_source_preferences__asEditTextPreference, + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder> { + _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _editTextValue; + String? get editTextValue => _$this._editTextValue; + set editTextValue(String? editTextValue) => + _$this._editTextValue = editTextValue; + + String? _EditTextDefaultValue; + String? get EditTextDefaultValue => _$this._EditTextDefaultValue; + set EditTextDefaultValue(String? EditTextDefaultValue) => + _$this._EditTextDefaultValue = EditTextDefaultValue; + + String? _editTextTitle; + String? get editTextTitle => _$this._editTextTitle; + set editTextTitle(String? editTextTitle) => + _$this._editTextTitle = editTextTitle; + + String? _text; + String? get text => _$this._text; + set text(String? text) => _$this._text = text; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _dialogTitle; + String? get dialogTitle => _$this._dialogTitle; + set dialogTitle(String? dialogTitle) => _$this._dialogTitle = dialogTitle; + + String? _dialogMessage; + String? get dialogMessage => _$this._dialogMessage; + set dialogMessage(String? dialogMessage) => + _$this._dialogMessage = dialogMessage; + + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder() { + GSourcePreferenceByIdData_source_preferences__asEditTextPreference + ._initializeBuilder(this); + } + + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _editTextValue = $v.editTextValue; + _EditTextDefaultValue = $v.EditTextDefaultValue; + _editTextTitle = $v.editTextTitle; + _text = $v.text; + _summary = $v.summary; + _key = $v.key; + _dialogTitle = $v.dialogTitle; + _dialogMessage = $v.dialogMessage; + _$v = null; + } + return this; + } + + @override + void replace( + GSourcePreferenceByIdData_source_preferences__asEditTextPreference + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference; + } + + @override + void update( + void Function( + GSourcePreferenceByIdData_source_preferences__asEditTextPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData_source_preferences__asEditTextPreference build() => + _build(); + + _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference + _build() { + final _$result = _$v ?? + new _$GSourcePreferenceByIdData_source_preferences__asEditTextPreference + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asEditTextPreference', + 'G__typename'), + editTextValue: editTextValue, + EditTextDefaultValue: EditTextDefaultValue, + editTextTitle: editTextTitle, + text: text, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asEditTextPreference', + 'key'), + dialogTitle: dialogTitle, + dialogMessage: dialogMessage, + ); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference + extends GSourcePreferenceByIdData_source_preferences__asSwitchPreference { + @override + final String G__typename; + @override + final bool? switchValue; + @override + final String? summary; + @override + final String key; + @override + final bool switchDefaultValue; + @override + final String switchTitle; + + factory _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder)? + updates]) => + (new GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference._( + {required this.G__typename, + this.switchValue, + this.summary, + required this.key, + required this.switchDefaultValue, + required this.switchTitle}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'key'); + BuiltValueNullFieldError.checkNotNull( + switchDefaultValue, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'switchDefaultValue'); + BuiltValueNullFieldError.checkNotNull( + switchTitle, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'switchTitle'); + } + + @override + GSourcePreferenceByIdData_source_preferences__asSwitchPreference rebuild( + void Function( + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder + toBuilder() => + new GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GSourcePreferenceByIdData_source_preferences__asSwitchPreference && + G__typename == other.G__typename && + switchValue == other.switchValue && + summary == other.summary && + key == other.key && + switchDefaultValue == other.switchDefaultValue && + switchTitle == other.switchTitle; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, switchValue.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, switchDefaultValue.hashCode); + _$hash = $jc(_$hash, switchTitle.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference') + ..add('G__typename', G__typename) + ..add('switchValue', switchValue) + ..add('summary', summary) + ..add('key', key) + ..add('switchDefaultValue', switchDefaultValue) + ..add('switchTitle', switchTitle)) + .toString(); + } +} + +class GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder + implements + Builder< + GSourcePreferenceByIdData_source_preferences__asSwitchPreference, + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder> { + _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _switchValue; + bool? get switchValue => _$this._switchValue; + set switchValue(bool? switchValue) => _$this._switchValue = switchValue; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + bool? _switchDefaultValue; + bool? get switchDefaultValue => _$this._switchDefaultValue; + set switchDefaultValue(bool? switchDefaultValue) => + _$this._switchDefaultValue = switchDefaultValue; + + String? _switchTitle; + String? get switchTitle => _$this._switchTitle; + set switchTitle(String? switchTitle) => _$this._switchTitle = switchTitle; + + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder() { + GSourcePreferenceByIdData_source_preferences__asSwitchPreference + ._initializeBuilder(this); + } + + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _switchValue = $v.switchValue; + _summary = $v.summary; + _key = $v.key; + _switchDefaultValue = $v.switchDefaultValue; + _switchTitle = $v.switchTitle; + _$v = null; + } + return this; + } + + @override + void replace( + GSourcePreferenceByIdData_source_preferences__asSwitchPreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference; + } + + @override + void update( + void Function( + GSourcePreferenceByIdData_source_preferences__asSwitchPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData_source_preferences__asSwitchPreference build() => + _build(); + + _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference _build() { + final _$result = _$v ?? + new _$GSourcePreferenceByIdData_source_preferences__asSwitchPreference + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'G__typename'), + switchValue: switchValue, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'key'), + switchDefaultValue: BuiltValueNullFieldError.checkNotNull( + switchDefaultValue, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'switchDefaultValue'), + switchTitle: BuiltValueNullFieldError.checkNotNull( + switchTitle, + r'GSourcePreferenceByIdData_source_preferences__asSwitchPreference', + 'switchTitle'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + extends GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference { + @override + final String G__typename; + @override + final String? dialogMessage; + @override + final String? dialogTitle; + @override + final String? multiSelectTitle; + @override + final String? summary; + @override + final String key; + @override + final BuiltList entryValues; + @override + final BuiltList entries; + @override + final BuiltList? multiSelectDefaultValue; + @override + final BuiltList? multiSelectValue; + + factory _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder)? + updates]) => + (new GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference._( + {required this.G__typename, + this.dialogMessage, + this.dialogTitle, + this.multiSelectTitle, + this.summary, + required this.key, + required this.entryValues, + required this.entries, + this.multiSelectDefaultValue, + this.multiSelectValue}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference', + 'key'); + BuiltValueNullFieldError.checkNotNull( + entryValues, + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference', + 'entryValues'); + BuiltValueNullFieldError.checkNotNull( + entries, + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference', + 'entries'); + } + + @override + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference rebuild( + void Function( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder + toBuilder() => + new GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference && + G__typename == other.G__typename && + dialogMessage == other.dialogMessage && + dialogTitle == other.dialogTitle && + multiSelectTitle == other.multiSelectTitle && + summary == other.summary && + key == other.key && + entryValues == other.entryValues && + entries == other.entries && + multiSelectDefaultValue == other.multiSelectDefaultValue && + multiSelectValue == other.multiSelectValue; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, dialogMessage.hashCode); + _$hash = $jc(_$hash, dialogTitle.hashCode); + _$hash = $jc(_$hash, multiSelectTitle.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, entryValues.hashCode); + _$hash = $jc(_$hash, entries.hashCode); + _$hash = $jc(_$hash, multiSelectDefaultValue.hashCode); + _$hash = $jc(_$hash, multiSelectValue.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference') + ..add('G__typename', G__typename) + ..add('dialogMessage', dialogMessage) + ..add('dialogTitle', dialogTitle) + ..add('multiSelectTitle', multiSelectTitle) + ..add('summary', summary) + ..add('key', key) + ..add('entryValues', entryValues) + ..add('entries', entries) + ..add('multiSelectDefaultValue', multiSelectDefaultValue) + ..add('multiSelectValue', multiSelectValue)) + .toString(); + } +} + +class GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder + implements + Builder< + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference, + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder> { + _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference? + _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _dialogMessage; + String? get dialogMessage => _$this._dialogMessage; + set dialogMessage(String? dialogMessage) => + _$this._dialogMessage = dialogMessage; + + String? _dialogTitle; + String? get dialogTitle => _$this._dialogTitle; + set dialogTitle(String? dialogTitle) => _$this._dialogTitle = dialogTitle; + + String? _multiSelectTitle; + String? get multiSelectTitle => _$this._multiSelectTitle; + set multiSelectTitle(String? multiSelectTitle) => + _$this._multiSelectTitle = multiSelectTitle; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + ListBuilder? _entryValues; + ListBuilder get entryValues => + _$this._entryValues ??= new ListBuilder(); + set entryValues(ListBuilder? entryValues) => + _$this._entryValues = entryValues; + + ListBuilder? _entries; + ListBuilder get entries => + _$this._entries ??= new ListBuilder(); + set entries(ListBuilder? entries) => _$this._entries = entries; + + ListBuilder? _multiSelectDefaultValue; + ListBuilder get multiSelectDefaultValue => + _$this._multiSelectDefaultValue ??= new ListBuilder(); + set multiSelectDefaultValue(ListBuilder? multiSelectDefaultValue) => + _$this._multiSelectDefaultValue = multiSelectDefaultValue; + + ListBuilder? _multiSelectValue; + ListBuilder get multiSelectValue => + _$this._multiSelectValue ??= new ListBuilder(); + set multiSelectValue(ListBuilder? multiSelectValue) => + _$this._multiSelectValue = multiSelectValue; + + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder() { + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + ._initializeBuilder(this); + } + + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _dialogMessage = $v.dialogMessage; + _dialogTitle = $v.dialogTitle; + _multiSelectTitle = $v.multiSelectTitle; + _summary = $v.summary; + _key = $v.key; + _entryValues = $v.entryValues.toBuilder(); + _entries = $v.entries.toBuilder(); + _multiSelectDefaultValue = $v.multiSelectDefaultValue?.toBuilder(); + _multiSelectValue = $v.multiSelectValue?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference; + } + + @override + void update( + void Function( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + build() => _build(); + + _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + _build() { + _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference', + 'G__typename'), + dialogMessage: dialogMessage, + dialogTitle: dialogTitle, + multiSelectTitle: multiSelectTitle, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference', + 'key'), + entryValues: entryValues.build(), + entries: entries.build(), + multiSelectDefaultValue: _multiSelectDefaultValue?.build(), + multiSelectValue: _multiSelectValue?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'entryValues'; + entryValues.build(); + _$failedField = 'entries'; + entries.build(); + _$failedField = 'multiSelectDefaultValue'; + _multiSelectDefaultValue?.build(); + _$failedField = 'multiSelectValue'; + _multiSelectValue?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceByIdData_source_preferences__asListPreference + extends GSourcePreferenceByIdData_source_preferences__asListPreference { + @override + final String G__typename; + @override + final String? listValue; + @override + final String? listDefaultValue; + @override + final String? listTitle; + @override + final String? summary; + @override + final String key; + @override + final BuiltList entryValues; + @override + final BuiltList entries; + + factory _$GSourcePreferenceByIdData_source_preferences__asListPreference( + [void Function( + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder)? + updates]) => + (new GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder() + ..update(updates)) + ._build(); + + _$GSourcePreferenceByIdData_source_preferences__asListPreference._( + {required this.G__typename, + this.listValue, + this.listDefaultValue, + this.listTitle, + this.summary, + required this.key, + required this.entryValues, + required this.entries}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asListPreference', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asListPreference', + 'key'); + BuiltValueNullFieldError.checkNotNull( + entryValues, + r'GSourcePreferenceByIdData_source_preferences__asListPreference', + 'entryValues'); + BuiltValueNullFieldError.checkNotNull( + entries, + r'GSourcePreferenceByIdData_source_preferences__asListPreference', + 'entries'); + } + + @override + GSourcePreferenceByIdData_source_preferences__asListPreference rebuild( + void Function( + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder + toBuilder() => + new GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GSourcePreferenceByIdData_source_preferences__asListPreference && + G__typename == other.G__typename && + listValue == other.listValue && + listDefaultValue == other.listDefaultValue && + listTitle == other.listTitle && + summary == other.summary && + key == other.key && + entryValues == other.entryValues && + entries == other.entries; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, listValue.hashCode); + _$hash = $jc(_$hash, listDefaultValue.hashCode); + _$hash = $jc(_$hash, listTitle.hashCode); + _$hash = $jc(_$hash, summary.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, entryValues.hashCode); + _$hash = $jc(_$hash, entries.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourcePreferenceByIdData_source_preferences__asListPreference') + ..add('G__typename', G__typename) + ..add('listValue', listValue) + ..add('listDefaultValue', listDefaultValue) + ..add('listTitle', listTitle) + ..add('summary', summary) + ..add('key', key) + ..add('entryValues', entryValues) + ..add('entries', entries)) + .toString(); + } +} + +class GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder + implements + Builder { + _$GSourcePreferenceByIdData_source_preferences__asListPreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _listValue; + String? get listValue => _$this._listValue; + set listValue(String? listValue) => _$this._listValue = listValue; + + String? _listDefaultValue; + String? get listDefaultValue => _$this._listDefaultValue; + set listDefaultValue(String? listDefaultValue) => + _$this._listDefaultValue = listDefaultValue; + + String? _listTitle; + String? get listTitle => _$this._listTitle; + set listTitle(String? listTitle) => _$this._listTitle = listTitle; + + String? _summary; + String? get summary => _$this._summary; + set summary(String? summary) => _$this._summary = summary; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + ListBuilder? _entryValues; + ListBuilder get entryValues => + _$this._entryValues ??= new ListBuilder(); + set entryValues(ListBuilder? entryValues) => + _$this._entryValues = entryValues; + + ListBuilder? _entries; + ListBuilder get entries => + _$this._entries ??= new ListBuilder(); + set entries(ListBuilder? entries) => _$this._entries = entries; + + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder() { + GSourcePreferenceByIdData_source_preferences__asListPreference + ._initializeBuilder(this); + } + + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _listValue = $v.listValue; + _listDefaultValue = $v.listDefaultValue; + _listTitle = $v.listTitle; + _summary = $v.summary; + _key = $v.key; + _entryValues = $v.entryValues.toBuilder(); + _entries = $v.entries.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace( + GSourcePreferenceByIdData_source_preferences__asListPreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GSourcePreferenceByIdData_source_preferences__asListPreference; + } + + @override + void update( + void Function( + GSourcePreferenceByIdData_source_preferences__asListPreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdData_source_preferences__asListPreference build() => + _build(); + + _$GSourcePreferenceByIdData_source_preferences__asListPreference _build() { + _$GSourcePreferenceByIdData_source_preferences__asListPreference _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceByIdData_source_preferences__asListPreference + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourcePreferenceByIdData_source_preferences__asListPreference', + 'G__typename'), + listValue: listValue, + listDefaultValue: listDefaultValue, + listTitle: listTitle, + summary: summary, + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GSourcePreferenceByIdData_source_preferences__asListPreference', + 'key'), + entryValues: entryValues.build(), + entries: entries.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'entryValues'; + entryValues.build(); + _$failedField = 'entries'; + entries.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceByIdData_source_preferences__asListPreference', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourcePreferenceData extends GUpdateSourcePreferenceData { + @override + final String G__typename; + @override + final GUpdateSourcePreferenceData_updateSourcePreference? + updateSourcePreference; + + factory _$GUpdateSourcePreferenceData( + [void Function(GUpdateSourcePreferenceDataBuilder)? updates]) => + (new GUpdateSourcePreferenceDataBuilder()..update(updates))._build(); + + _$GUpdateSourcePreferenceData._( + {required this.G__typename, this.updateSourcePreference}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourcePreferenceData', 'G__typename'); + } + + @override + GUpdateSourcePreferenceData rebuild( + void Function(GUpdateSourcePreferenceDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourcePreferenceDataBuilder toBuilder() => + new GUpdateSourcePreferenceDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourcePreferenceData && + G__typename == other.G__typename && + updateSourcePreference == other.updateSourcePreference; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, updateSourcePreference.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourcePreferenceData') + ..add('G__typename', G__typename) + ..add('updateSourcePreference', updateSourcePreference)) + .toString(); + } +} + +class GUpdateSourcePreferenceDataBuilder + implements + Builder { + _$GUpdateSourcePreferenceData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder? + _updateSourcePreference; + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder + get updateSourcePreference => _$this._updateSourcePreference ??= + new GUpdateSourcePreferenceData_updateSourcePreferenceBuilder(); + set updateSourcePreference( + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder? + updateSourcePreference) => + _$this._updateSourcePreference = updateSourcePreference; + + GUpdateSourcePreferenceDataBuilder() { + GUpdateSourcePreferenceData._initializeBuilder(this); + } + + GUpdateSourcePreferenceDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _updateSourcePreference = $v.updateSourcePreference?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourcePreferenceData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourcePreferenceData; + } + + @override + void update(void Function(GUpdateSourcePreferenceDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourcePreferenceData build() => _build(); + + _$GUpdateSourcePreferenceData _build() { + _$GUpdateSourcePreferenceData _$result; + try { + _$result = _$v ?? + new _$GUpdateSourcePreferenceData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourcePreferenceData', 'G__typename'), + updateSourcePreference: _updateSourcePreference?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'updateSourcePreference'; + _updateSourcePreference?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourcePreferenceData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourcePreferenceData_updateSourcePreference + extends GUpdateSourcePreferenceData_updateSourcePreference { + @override + final String G__typename; + + factory _$GUpdateSourcePreferenceData_updateSourcePreference( + [void Function( + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder)? + updates]) => + (new GUpdateSourcePreferenceData_updateSourcePreferenceBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSourcePreferenceData_updateSourcePreference._( + {required this.G__typename}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSourcePreferenceData_updateSourcePreference', 'G__typename'); + } + + @override + GUpdateSourcePreferenceData_updateSourcePreference rebuild( + void Function( + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder toBuilder() => + new GUpdateSourcePreferenceData_updateSourcePreferenceBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourcePreferenceData_updateSourcePreference && + G__typename == other.G__typename; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSourcePreferenceData_updateSourcePreference') + ..add('G__typename', G__typename)) + .toString(); + } +} + +class GUpdateSourcePreferenceData_updateSourcePreferenceBuilder + implements + Builder { + _$GUpdateSourcePreferenceData_updateSourcePreference? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder() { + GUpdateSourcePreferenceData_updateSourcePreference._initializeBuilder(this); + } + + GUpdateSourcePreferenceData_updateSourcePreferenceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourcePreferenceData_updateSourcePreference other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourcePreferenceData_updateSourcePreference; + } + + @override + void update( + void Function(GUpdateSourcePreferenceData_updateSourcePreferenceBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourcePreferenceData_updateSourcePreference build() => _build(); + + _$GUpdateSourcePreferenceData_updateSourcePreference _build() { + final _$result = _$v ?? + new _$GUpdateSourcePreferenceData_updateSourcePreference._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateSourcePreferenceData_updateSourcePreference', + 'G__typename'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.req.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.req.gql.dart new file mode 100644 index 00000000..b67fba02 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.req.gql.dart @@ -0,0 +1,182 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'source_preferences_by_id.req.gql.g.dart'; + +abstract class GSourcePreferenceByIdReq + implements + Built, + _i1.OperationRequest<_i2.GSourcePreferenceByIdData, + _i3.GSourcePreferenceByIdVars> { + GSourcePreferenceByIdReq._(); + + factory GSourcePreferenceByIdReq( + [void Function(GSourcePreferenceByIdReqBuilder b) updates]) = + _$GSourcePreferenceByIdReq; + + static void _initializeBuilder(GSourcePreferenceByIdReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'SourcePreferenceById', + ) + ..executeOnListen = true; + + @override + _i3.GSourcePreferenceByIdVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GSourcePreferenceByIdData? Function( + _i2.GSourcePreferenceByIdData?, + _i2.GSourcePreferenceByIdData?, + )? get updateResult; + @override + _i2.GSourcePreferenceByIdData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GSourcePreferenceByIdData? parseData(Map json) => + _i2.GSourcePreferenceByIdData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourcePreferenceByIdData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GSourcePreferenceByIdData, + _i3.GSourcePreferenceByIdVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gSourcePreferenceByIdReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourcePreferenceByIdReq.serializer, + this, + ) as Map); + + static GSourcePreferenceByIdReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourcePreferenceByIdReq.serializer, + json, + ); +} + +abstract class GUpdateSourcePreferenceReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSourcePreferenceData, + _i3.GUpdateSourcePreferenceVars> { + GUpdateSourcePreferenceReq._(); + + factory GUpdateSourcePreferenceReq( + [void Function(GUpdateSourcePreferenceReqBuilder b) updates]) = + _$GUpdateSourcePreferenceReq; + + static void _initializeBuilder(GUpdateSourcePreferenceReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSourcePreference', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSourcePreferenceVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSourcePreferenceData? Function( + _i2.GUpdateSourcePreferenceData?, + _i2.GUpdateSourcePreferenceData?, + )? get updateResult; + @override + _i2.GUpdateSourcePreferenceData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSourcePreferenceData? parseData(Map json) => + _i2.GUpdateSourcePreferenceData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSourcePreferenceData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSourcePreferenceData, + _i3.GUpdateSourcePreferenceVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSourcePreferenceReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSourcePreferenceReq.serializer, + this, + ) as Map); + + static GUpdateSourcePreferenceReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSourcePreferenceReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.req.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.req.gql.g.dart new file mode 100644 index 00000000..f48d82ab --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.req.gql.g.dart @@ -0,0 +1,755 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_preferences_by_id.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourcePreferenceByIdReqSerializer = + new _$GSourcePreferenceByIdReqSerializer(); +Serializer _$gUpdateSourcePreferenceReqSerializer = + new _$GUpdateSourcePreferenceReqSerializer(); + +class _$GSourcePreferenceByIdReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceByIdReq, + _$GSourcePreferenceByIdReq + ]; + @override + final String wireName = 'GSourcePreferenceByIdReq'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceByIdReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourcePreferenceByIdVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GSourcePreferenceByIdData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GSourcePreferenceByIdReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceByIdReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSourcePreferenceByIdVars))! + as _i3.GSourcePreferenceByIdVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GSourcePreferenceByIdData))! + as _i2.GSourcePreferenceByIdData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourcePreferenceReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourcePreferenceReq, + _$GUpdateSourcePreferenceReq + ]; + @override + final String wireName = 'GUpdateSourcePreferenceReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourcePreferenceReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSourcePreferenceVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSourcePreferenceData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSourcePreferenceReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourcePreferenceReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateSourcePreferenceVars))! + as _i3.GUpdateSourcePreferenceVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateSourcePreferenceData))! + as _i2.GUpdateSourcePreferenceData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdReq extends GSourcePreferenceByIdReq { + @override + final _i3.GSourcePreferenceByIdVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GSourcePreferenceByIdData? Function( + _i2.GSourcePreferenceByIdData?, _i2.GSourcePreferenceByIdData?)? + updateResult; + @override + final _i2.GSourcePreferenceByIdData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GSourcePreferenceByIdReq( + [void Function(GSourcePreferenceByIdReqBuilder)? updates]) => + (new GSourcePreferenceByIdReqBuilder()..update(updates))._build(); + + _$GSourcePreferenceByIdReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GSourcePreferenceByIdReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GSourcePreferenceByIdReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GSourcePreferenceByIdReq', 'executeOnListen'); + } + + @override + GSourcePreferenceByIdReq rebuild( + void Function(GSourcePreferenceByIdReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdReqBuilder toBuilder() => + new GSourcePreferenceByIdReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GSourcePreferenceByIdReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceByIdReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GSourcePreferenceByIdReqBuilder + implements + Builder { + _$GSourcePreferenceByIdReq? _$v; + + _i3.GSourcePreferenceByIdVarsBuilder? _vars; + _i3.GSourcePreferenceByIdVarsBuilder get vars => + _$this._vars ??= new _i3.GSourcePreferenceByIdVarsBuilder(); + set vars(_i3.GSourcePreferenceByIdVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GSourcePreferenceByIdData? Function( + _i2.GSourcePreferenceByIdData?, _i2.GSourcePreferenceByIdData?)? + _updateResult; + _i2.GSourcePreferenceByIdData? Function( + _i2.GSourcePreferenceByIdData?, _i2.GSourcePreferenceByIdData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GSourcePreferenceByIdData? Function( + _i2.GSourcePreferenceByIdData?, + _i2.GSourcePreferenceByIdData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GSourcePreferenceByIdDataBuilder? _optimisticResponse; + _i2.GSourcePreferenceByIdDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GSourcePreferenceByIdDataBuilder(); + set optimisticResponse( + _i2.GSourcePreferenceByIdDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GSourcePreferenceByIdReqBuilder() { + GSourcePreferenceByIdReq._initializeBuilder(this); + } + + GSourcePreferenceByIdReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceByIdReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceByIdReq; + } + + @override + void update(void Function(GSourcePreferenceByIdReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdReq build() => _build(); + + _$GSourcePreferenceByIdReq _build() { + _$GSourcePreferenceByIdReq _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceByIdReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GSourcePreferenceByIdReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GSourcePreferenceByIdReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceByIdReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourcePreferenceReq extends GUpdateSourcePreferenceReq { + @override + final _i3.GUpdateSourcePreferenceVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSourcePreferenceData? Function( + _i2.GUpdateSourcePreferenceData?, _i2.GUpdateSourcePreferenceData?)? + updateResult; + @override + final _i2.GUpdateSourcePreferenceData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSourcePreferenceReq( + [void Function(GUpdateSourcePreferenceReqBuilder)? updates]) => + (new GUpdateSourcePreferenceReqBuilder()..update(updates))._build(); + + _$GUpdateSourcePreferenceReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSourcePreferenceReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSourcePreferenceReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSourcePreferenceReq', 'executeOnListen'); + } + + @override + GUpdateSourcePreferenceReq rebuild( + void Function(GUpdateSourcePreferenceReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourcePreferenceReqBuilder toBuilder() => + new GUpdateSourcePreferenceReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSourcePreferenceReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourcePreferenceReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSourcePreferenceReqBuilder + implements + Builder { + _$GUpdateSourcePreferenceReq? _$v; + + _i3.GUpdateSourcePreferenceVarsBuilder? _vars; + _i3.GUpdateSourcePreferenceVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSourcePreferenceVarsBuilder(); + set vars(_i3.GUpdateSourcePreferenceVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSourcePreferenceData? Function( + _i2.GUpdateSourcePreferenceData?, _i2.GUpdateSourcePreferenceData?)? + _updateResult; + _i2.GUpdateSourcePreferenceData? Function( + _i2.GUpdateSourcePreferenceData?, _i2.GUpdateSourcePreferenceData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSourcePreferenceData? Function( + _i2.GUpdateSourcePreferenceData?, + _i2.GUpdateSourcePreferenceData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSourcePreferenceDataBuilder? _optimisticResponse; + _i2.GUpdateSourcePreferenceDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateSourcePreferenceDataBuilder(); + set optimisticResponse( + _i2.GUpdateSourcePreferenceDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSourcePreferenceReqBuilder() { + GUpdateSourcePreferenceReq._initializeBuilder(this); + } + + GUpdateSourcePreferenceReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourcePreferenceReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourcePreferenceReq; + } + + @override + void update(void Function(GUpdateSourcePreferenceReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourcePreferenceReq build() => _build(); + + _$GUpdateSourcePreferenceReq _build() { + _$GUpdateSourcePreferenceReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSourcePreferenceReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSourcePreferenceReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateSourcePreferenceReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourcePreferenceReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.dart new file mode 100644 index 00000000..79d7c636 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.dart @@ -0,0 +1,62 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'source_preferences_by_id.var.gql.g.dart'; + +abstract class GSourcePreferenceByIdVars + implements + Built { + GSourcePreferenceByIdVars._(); + + factory GSourcePreferenceByIdVars( + [void Function(GSourcePreferenceByIdVarsBuilder b) updates]) = + _$GSourcePreferenceByIdVars; + + _i1.GLongString get id; + static Serializer get serializer => + _$gSourcePreferenceByIdVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GSourcePreferenceByIdVars.serializer, + this, + ) as Map); + + static GSourcePreferenceByIdVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourcePreferenceByIdVars.serializer, + json, + ); +} + +abstract class GUpdateSourcePreferenceVars + implements + Built { + GUpdateSourcePreferenceVars._(); + + factory GUpdateSourcePreferenceVars( + [void Function(GUpdateSourcePreferenceVarsBuilder b) updates]) = + _$GUpdateSourcePreferenceVars; + + _i1.GUpdateSourcePreferenceInput get input; + static Serializer get serializer => + _$gUpdateSourcePreferenceVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GUpdateSourcePreferenceVars.serializer, + this, + ) as Map); + + static GUpdateSourcePreferenceVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GUpdateSourcePreferenceVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.g.dart b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.g.dart new file mode 100644 index 00000000..1e72ec26 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.g.dart @@ -0,0 +1,315 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_preferences_by_id.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourcePreferenceByIdVarsSerializer = + new _$GSourcePreferenceByIdVarsSerializer(); +Serializer + _$gUpdateSourcePreferenceVarsSerializer = + new _$GUpdateSourcePreferenceVarsSerializer(); + +class _$GSourcePreferenceByIdVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceByIdVars, + _$GSourcePreferenceByIdVars + ]; + @override + final String wireName = 'GSourcePreferenceByIdVars'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceByIdVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + ]; + + return result; + } + + @override + GSourcePreferenceByIdVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceByIdVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourcePreferenceVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourcePreferenceVars, + _$GUpdateSourcePreferenceVars + ]; + @override + final String wireName = 'GUpdateSourcePreferenceVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourcePreferenceVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'input', + serializers.serialize(object.input, + specifiedType: const FullType(_i1.GUpdateSourcePreferenceInput)), + ]; + + return result; + } + + @override + GUpdateSourcePreferenceVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourcePreferenceVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'input': + result.input.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i1.GUpdateSourcePreferenceInput))! + as _i1.GUpdateSourcePreferenceInput); + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceByIdVars extends GSourcePreferenceByIdVars { + @override + final _i1.GLongString id; + + factory _$GSourcePreferenceByIdVars( + [void Function(GSourcePreferenceByIdVarsBuilder)? updates]) => + (new GSourcePreferenceByIdVarsBuilder()..update(updates))._build(); + + _$GSourcePreferenceByIdVars._({required this.id}) : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GSourcePreferenceByIdVars', 'id'); + } + + @override + GSourcePreferenceByIdVars rebuild( + void Function(GSourcePreferenceByIdVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceByIdVarsBuilder toBuilder() => + new GSourcePreferenceByIdVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceByIdVars && id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceByIdVars') + ..add('id', id)) + .toString(); + } +} + +class GSourcePreferenceByIdVarsBuilder + implements + Builder { + _$GSourcePreferenceByIdVars? _$v; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + GSourcePreferenceByIdVarsBuilder(); + + GSourcePreferenceByIdVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceByIdVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceByIdVars; + } + + @override + void update(void Function(GSourcePreferenceByIdVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceByIdVars build() => _build(); + + _$GSourcePreferenceByIdVars _build() { + _$GSourcePreferenceByIdVars _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceByIdVars._( + id: id.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceByIdVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourcePreferenceVars extends GUpdateSourcePreferenceVars { + @override + final _i1.GUpdateSourcePreferenceInput input; + + factory _$GUpdateSourcePreferenceVars( + [void Function(GUpdateSourcePreferenceVarsBuilder)? updates]) => + (new GUpdateSourcePreferenceVarsBuilder()..update(updates))._build(); + + _$GUpdateSourcePreferenceVars._({required this.input}) : super._() { + BuiltValueNullFieldError.checkNotNull( + input, r'GUpdateSourcePreferenceVars', 'input'); + } + + @override + GUpdateSourcePreferenceVars rebuild( + void Function(GUpdateSourcePreferenceVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourcePreferenceVarsBuilder toBuilder() => + new GUpdateSourcePreferenceVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourcePreferenceVars && input == other.input; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, input.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourcePreferenceVars') + ..add('input', input)) + .toString(); + } +} + +class GUpdateSourcePreferenceVarsBuilder + implements + Builder { + _$GUpdateSourcePreferenceVars? _$v; + + _i1.GUpdateSourcePreferenceInputBuilder? _input; + _i1.GUpdateSourcePreferenceInputBuilder get input => + _$this._input ??= new _i1.GUpdateSourcePreferenceInputBuilder(); + set input(_i1.GUpdateSourcePreferenceInputBuilder? input) => + _$this._input = input; + + GUpdateSourcePreferenceVarsBuilder(); + + GUpdateSourcePreferenceVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _input = $v.input.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourcePreferenceVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourcePreferenceVars; + } + + @override + void update(void Function(GUpdateSourcePreferenceVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourcePreferenceVars build() => _build(); + + _$GUpdateSourcePreferenceVars _build() { + _$GUpdateSourcePreferenceVars _$result; + try { + _$result = _$v ?? + new _$GUpdateSourcePreferenceVars._( + input: input.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'input'; + input.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourcePreferenceVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/fetch_source_manga.graphql b/lib/src/features/browse_center/data/source_repository/graphql/queries/fetch_source_manga.graphql new file mode 100644 index 00000000..525fb03a --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/fetch_source_manga.graphql @@ -0,0 +1,7 @@ +# import '/src/features/browse_center/domain/manga_page/graphql/manga_page_fragment.graphql' + +mutation FetchSourceManga($input: FetchSourceMangaInput!) { + fetchSourceManga(input: $input) { + ...SourceMangaPage + } +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/source_by_id.graphql b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_by_id.graphql new file mode 100644 index 00000000..59e19377 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_by_id.graphql @@ -0,0 +1,7 @@ +# import '/src/features/browse_center/domain/source/graphql/source_fragment.graphql' + +query SourceById($id: LongString!) { + source(id: $id) { + ...SourceFragment + } +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/source_filter_by_id.graphql b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_filter_by_id.graphql new file mode 100644 index 00000000..ea3a65b0 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_filter_by_id.graphql @@ -0,0 +1,66 @@ + +fragment PrimitiveFilterFragment on Filter { + __typename + ... on CheckBoxFilter { + __typename + checkBoxState: default + name + } + ... on HeaderFilter { + __typename + name + } + ... on SelectFilter { + __typename + selectState: default + name + displayValues: values + } + ... on TriStateFilter { + __typename + tristate: default + name + } + ... on TextFilter { + __typename + textState: default + name + } + ... on SortFilter { + __typename + sortState: default { + ...SortSelectionFragment + } + name + displayValues: values + } + ... on SeparatorFilter { + __typename + name + } +} +fragment FilterFragment on Filter { + ...PrimitiveFilterFragment + ... on GroupFilter { + __typename + name + groupState: filters { + ...PrimitiveFilterFragment + } + } +} + +fragment SortSelectionFragment on SortSelection { + ascending + index +} + +query SourceFilterById($id: LongString!) { + source(id: $id) { + filters { + ...FilterFragment + } + } +} + + diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/source_list.graphql b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_list.graphql new file mode 100644 index 00000000..bf0f6aa5 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_list.graphql @@ -0,0 +1,9 @@ +# import '/src/features/browse_center/domain/source/graphql/source_fragment.graphql' + +query SourceList { + sources { + nodes { + ...SourceFragment + } + } +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/queries/source_preferences_by_id.graphql b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_preferences_by_id.graphql new file mode 100644 index 00000000..8ee16696 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/queries/source_preferences_by_id.graphql @@ -0,0 +1,56 @@ +query SourcePreferenceById($id: LongString!) { + source(id: $id) { + preferences { + __typename + ... on CheckBoxPreference { + checkBoxValue: currentValue + summary + checkBoxDefaultValue: default + key + checkBoxTitle: title + } + ... on EditTextPreference { + editTextValue: currentValue + EditTextDefaultValue: default + editTextTitle: title + text + summary + key + dialogTitle + dialogMessage + } + ... on SwitchPreference { + switchValue: currentValue + summary + key + switchDefaultValue: default + switchTitle: title + } + ... on MultiSelectListPreference { + dialogMessage + dialogTitle + multiSelectTitle: title + summary + key + entryValues + entries + multiSelectDefaultValue: default + multiSelectValue:currentValue + } + ... on ListPreference { + listValue:currentValue + listDefaultValue: default + listTitle: title + summary + key + entryValues + entries + } + } + } +} +mutation UpdateSourcePreference($input: UpdateSourcePreferenceInput!) { + updateSourcePreference(input: $input) { + __typename + } +} diff --git a/lib/src/features/browse_center/data/source_repository/graphql/query.dart b/lib/src/features/browse_center/data/source_repository/graphql/query.dart new file mode 100644 index 00000000..ce2a4bc8 --- /dev/null +++ b/lib/src/features/browse_center/data/source_repository/graphql/query.dart @@ -0,0 +1,61 @@ +import 'package:built_collection/built_collection.dart'; + +import '../../../../../graphql/__generated__/schema.schema.gql.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../domain/filter/filter_model.dart'; +import '../../../domain/source/source_model.dart'; +import '../../../domain/source_preference/source_preference.dart'; +import 'queries/__generated__/fetch_source_manga.req.gql.dart'; +import 'queries/__generated__/source_by_id.req.gql.dart'; +import 'queries/__generated__/source_filter_by_id.req.gql.dart'; +import 'queries/__generated__/source_list.req.gql.dart'; +import 'queries/__generated__/source_preferences_by_id.req.gql.dart'; + +abstract class SourceQuery { + static GSourceListReq getSourceList() => GSourceListReq(); + + static GFetchSourceMangaReq fetchSourceManga( + String sourceId, + SourceType sourceMangaType, + String? query, + List? filters, + int page, + ) { + GLongStringBuilder source = GLongStringBuilder()..value = sourceId; + GFetchSourceMangaInputBuilder input = GFetchSourceMangaInputBuilder() + ..page = page + ..type = sourceMangaType + ..query = query + ..source = source; + + if (filters.isNotBlank) { + input.filters = ListBuilder(filters!.map((filter) => filter.build())); + } + return GFetchSourceMangaReq((req) => req..vars.input = input); + } + + static GSourceByIdReq getSourceById(String sourceId) { + final sourceIdBuilder = GLongStringBuilder()..value = sourceId; + return GSourceByIdReq((req) => req..vars.id = sourceIdBuilder); + } + + static GSourcePreferenceByIdReq getSourcePreferenceById(String sourceId) { + final sourceIdBuilder = GLongStringBuilder()..value = sourceId; + return GSourcePreferenceByIdReq((req) => req..vars.id = sourceIdBuilder); + } + + static GSourceFilterByIdReq getSourceFilterById(String sourceId) { + final sourceIdBuilder = GLongStringBuilder()..value = sourceId; + return GSourceFilterByIdReq((req) => req..vars.id = sourceIdBuilder); + } + + static GUpdateSourcePreferenceReq updateSourcePreferences( + String sourceId, SourcePreferenceChange changes) { + final sourceIdBuilder = GLongStringBuilder()..value = sourceId; + return GUpdateSourcePreferenceReq( + (req) => req + ..vars.input.source = sourceIdBuilder + ..vars.input.change = changes, + ); + } +} diff --git a/lib/src/features/browse_center/data/source_repository/source_repository.dart b/lib/src/features/browse_center/data/source_repository/source_repository.dart index bdfe59ec..71d360de 100644 --- a/lib/src/features/browse_center/data/source_repository/source_repository.dart +++ b/lib/src/features/browse_center/data/source_repository/source_repository.dart @@ -4,33 +4,54 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'package:built_collection/built_collection.dart'; import 'package:dio/dio.dart'; +import 'package:ferry/ferry.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../constants/endpoints.dart'; -import '../../../../constants/enum.dart'; import '../../../../global_providers/global_providers.dart'; +import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/storage/dio/dio_client.dart'; import '../../domain/filter/filter_model.dart'; import '../../domain/manga_page/manga_page.dart'; import '../../domain/source/source_model.dart'; import '../../domain/source_preference/source_preference.dart'; +import 'graphql/query.dart'; part 'source_repository.g.dart'; class SourceRepository { final DioClient dioClient; + final Client ferryClient; - SourceRepository(this.dioClient); + SourceRepository(this.dioClient, this.ferryClient); - Future?> getSourceList({CancelToken? cancelToken}) async => - (await dioClient.get, Source>( - SourceUrl.sourceList, - decoder: (e) => - e is Map ? Source.fromJson(e) : Source(), - cancelToken: cancelToken, - )) - .data; + Stream?> getSourceList({CancelToken? cancelToken}) => + (ferryClient.fetch( + SourceQuery.getSourceList(), + (data) => data.sources.nodes.asList(), + )); + + Future fetchSourceManga({ + required String sourceId, + required SourceType sourceType, + required int page, + String? query, + List? filters, + }) => + ferryClient + .fetch( + SourceQuery.fetchSourceManga( + sourceId, + sourceType, + query, + filters, + page, + ), + (data) => data.fetchSourceManga, + ) + .first; Future getMangaList({ required String sourceId, @@ -40,11 +61,10 @@ class SourceRepository { List>? filter, CancelToken? cancelToken, }) async { - if (sourceType != SourceType.filter) { + if (sourceType != SourceType.SEARCH) { return (await dioClient.get( SourceUrl.getMangaList(sourceId, sourceType.name, pageNum), - decoder: (e) => - e is Map ? MangaPage.fromJson(e) : null, + decoder: (e) => null, //TODO: Implement decoder cancelToken: cancelToken, )) .data; @@ -58,48 +78,29 @@ class SourceRepository { "searchTerm": query ?? "", "filter": [...?filter], }, - decoder: (e) => - e is Map ? MangaPage.fromJson(e) : null, + decoder: (e) => null, cancelToken: cancelToken, )) .data; } } - Future?> getFilterList({ - required String sourceId, - CancelToken? cancelToken, - }) async => - (await dioClient.get, Filter>( - SourceUrl.filters(sourceId), - decoder: (e) => - e is Map ? Filter.fromJson(e) : Filter(), - cancelToken: cancelToken, - )) - .data; + Stream getSource(String sourceId) => ferryClient.fetch( + SourceQuery.getSourceById(sourceId), (data) => data.source); - Future getSource( - {required String sourceId, CancelToken? cancelToken}) async => - (await dioClient.get( - SourceUrl.withId(sourceId), - decoder: (e) => - e is Map ? Source.fromJson(e) : Source(), - cancelToken: cancelToken, - )) - .data; + Stream?> getSourcePreference(String sourceId) => + ferryClient.fetch(SourceQuery.getSourcePreferenceById(sourceId), + (data) => data.source.preferences); - Future?> getPreferenceList({ - required String sourceId, - CancelToken? cancelToken, - }) async => - (await dioClient.get, SourcePreference>( - SourceUrl.preferences(sourceId), - decoder: (e) => e is Map - ? SourcePreference.fromJson(e) - : SourcePreference(), - cancelToken: cancelToken, - )) - .data; + Stream?> getSourceFilter(String sourceId) => + ferryClient.fetch(SourceQuery.getSourceFilterById(sourceId), + (data) => data.source.filters); + + Future updateSourcePreferenceById( + String sourceId, SourcePreferenceChange change) => + ferryClient + .fetch(SourceQuery.updateSourcePreferences(sourceId, change)) + .first; Future updatePreferenceList({ required String sourceId, @@ -115,5 +116,5 @@ class SourceRepository { } @riverpod -SourceRepository sourceRepository(ref) => - SourceRepository(ref.watch(dioClientKeyProvider)); +SourceRepository sourceRepository(ref) => SourceRepository( + ref.watch(dioClientKeyProvider), ref.watch(ferryClientProvider)); diff --git a/lib/src/features/browse_center/data/source_repository/source_repository.g.dart b/lib/src/features/browse_center/data/source_repository/source_repository.g.dart index dcda92c6..d4be7a0b 100644 --- a/lib/src/features/browse_center/data/source_repository/source_repository.g.dart +++ b/lib/src/features/browse_center/data/source_repository/source_repository.g.dart @@ -6,7 +6,7 @@ part of 'source_repository.dart'; // RiverpodGenerator // ************************************************************************** -String _$sourceRepositoryHash() => r'4d2ee52c078c89e88a9d8e8b70cc40cff251994e'; +String _$sourceRepositoryHash() => r'4042414ca5878fbf846d64dccdb90801b6c63f43'; /// See also [sourceRepository]. @ProviderFor(sourceRepository) @@ -20,6 +20,8 @@ final sourceRepositoryProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef SourceRepositoryRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/browse_center/domain/extension/extension_model.dart b/lib/src/features/browse_center/domain/extension/extension_model.dart index 7ecf60bb..43c6618a 100644 --- a/lib/src/features/browse_center/domain/extension/extension_model.dart +++ b/lib/src/features/browse_center/domain/extension/extension_model.dart @@ -4,34 +4,12 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; - import '../../../../utils/freezed_converters/language_json_converter.dart'; import '../language/language_model.dart'; +import 'graphql/__generated__/extension_fragment.data.gql.dart'; -part 'extension_model.freezed.dart'; -part 'extension_model.g.dart'; - -@freezed -class Extension with _$Extension { - factory Extension({ - String? apkName, - bool? hasUpdate, - String? iconUrl, - bool? installed, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson, - ) - Language? lang, - String? name, - bool? obsolete, - String? pkgName, - int? versionCode, - String? versionName, - }) = _Extension; +typedef Extension = GExtensionFragment; - factory Extension.fromJson(Map json) => - _$ExtensionFromJson(json); +extension ExtensionExtensions on GExtensionFragment { + Language? get language => LanguageJsonConverter.fromJson(lang); } diff --git a/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart b/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart deleted file mode 100644 index 4317427d..00000000 --- a/lib/src/features/browse_center/domain/extension/extension_model.freezed.dart +++ /dev/null @@ -1,409 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'extension_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -Extension _$ExtensionFromJson(Map json) { - return _Extension.fromJson(json); -} - -/// @nodoc -mixin _$Extension { - String? get apkName => throw _privateConstructorUsedError; - bool? get hasUpdate => throw _privateConstructorUsedError; - String? get iconUrl => throw _privateConstructorUsedError; - bool? get installed => throw _privateConstructorUsedError; - bool? get isNsfw => throw _privateConstructorUsedError; - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - bool? get obsolete => throw _privateConstructorUsedError; - String? get pkgName => throw _privateConstructorUsedError; - int? get versionCode => throw _privateConstructorUsedError; - String? get versionName => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $ExtensionCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ExtensionCopyWith<$Res> { - factory $ExtensionCopyWith(Extension value, $Res Function(Extension) then) = - _$ExtensionCopyWithImpl<$Res, Extension>; - @useResult - $Res call( - {String? apkName, - bool? hasUpdate, - String? iconUrl, - bool? installed, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? obsolete, - String? pkgName, - int? versionCode, - String? versionName}); - - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class _$ExtensionCopyWithImpl<$Res, $Val extends Extension> - implements $ExtensionCopyWith<$Res> { - _$ExtensionCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? apkName = freezed, - Object? hasUpdate = freezed, - Object? iconUrl = freezed, - Object? installed = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? obsolete = freezed, - Object? pkgName = freezed, - Object? versionCode = freezed, - Object? versionName = freezed, - }) { - return _then(_value.copyWith( - apkName: freezed == apkName - ? _value.apkName - : apkName // ignore: cast_nullable_to_non_nullable - as String?, - hasUpdate: freezed == hasUpdate - ? _value.hasUpdate - : hasUpdate // ignore: cast_nullable_to_non_nullable - as bool?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - installed: freezed == installed - ? _value.installed - : installed // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - obsolete: freezed == obsolete - ? _value.obsolete - : obsolete // ignore: cast_nullable_to_non_nullable - as bool?, - pkgName: freezed == pkgName - ? _value.pkgName - : pkgName // ignore: cast_nullable_to_non_nullable - as String?, - versionCode: freezed == versionCode - ? _value.versionCode - : versionCode // ignore: cast_nullable_to_non_nullable - as int?, - versionName: freezed == versionName - ? _value.versionName - : versionName // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $LanguageCopyWith<$Res>? get lang { - if (_value.lang == null) { - return null; - } - - return $LanguageCopyWith<$Res>(_value.lang!, (value) { - return _then(_value.copyWith(lang: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$ExtensionImplCopyWith<$Res> - implements $ExtensionCopyWith<$Res> { - factory _$$ExtensionImplCopyWith( - _$ExtensionImpl value, $Res Function(_$ExtensionImpl) then) = - __$$ExtensionImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? apkName, - bool? hasUpdate, - String? iconUrl, - bool? installed, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? obsolete, - String? pkgName, - int? versionCode, - String? versionName}); - - @override - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class __$$ExtensionImplCopyWithImpl<$Res> - extends _$ExtensionCopyWithImpl<$Res, _$ExtensionImpl> - implements _$$ExtensionImplCopyWith<$Res> { - __$$ExtensionImplCopyWithImpl( - _$ExtensionImpl _value, $Res Function(_$ExtensionImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? apkName = freezed, - Object? hasUpdate = freezed, - Object? iconUrl = freezed, - Object? installed = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? obsolete = freezed, - Object? pkgName = freezed, - Object? versionCode = freezed, - Object? versionName = freezed, - }) { - return _then(_$ExtensionImpl( - apkName: freezed == apkName - ? _value.apkName - : apkName // ignore: cast_nullable_to_non_nullable - as String?, - hasUpdate: freezed == hasUpdate - ? _value.hasUpdate - : hasUpdate // ignore: cast_nullable_to_non_nullable - as bool?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - installed: freezed == installed - ? _value.installed - : installed // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - obsolete: freezed == obsolete - ? _value.obsolete - : obsolete // ignore: cast_nullable_to_non_nullable - as bool?, - pkgName: freezed == pkgName - ? _value.pkgName - : pkgName // ignore: cast_nullable_to_non_nullable - as String?, - versionCode: freezed == versionCode - ? _value.versionCode - : versionCode // ignore: cast_nullable_to_non_nullable - as int?, - versionName: freezed == versionName - ? _value.versionName - : versionName // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$ExtensionImpl implements _Extension { - _$ExtensionImpl( - {this.apkName, - this.hasUpdate, - this.iconUrl, - this.installed, - this.isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - this.lang, - this.name, - this.obsolete, - this.pkgName, - this.versionCode, - this.versionName}); - - factory _$ExtensionImpl.fromJson(Map json) => - _$$ExtensionImplFromJson(json); - - @override - final String? apkName; - @override - final bool? hasUpdate; - @override - final String? iconUrl; - @override - final bool? installed; - @override - final bool? isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang; - @override - final String? name; - @override - final bool? obsolete; - @override - final String? pkgName; - @override - final int? versionCode; - @override - final String? versionName; - - @override - String toString() { - return 'Extension(apkName: $apkName, hasUpdate: $hasUpdate, iconUrl: $iconUrl, installed: $installed, isNsfw: $isNsfw, lang: $lang, name: $name, obsolete: $obsolete, pkgName: $pkgName, versionCode: $versionCode, versionName: $versionName)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ExtensionImpl && - (identical(other.apkName, apkName) || other.apkName == apkName) && - (identical(other.hasUpdate, hasUpdate) || - other.hasUpdate == hasUpdate) && - (identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl) && - (identical(other.installed, installed) || - other.installed == installed) && - (identical(other.isNsfw, isNsfw) || other.isNsfw == isNsfw) && - (identical(other.lang, lang) || other.lang == lang) && - (identical(other.name, name) || other.name == name) && - (identical(other.obsolete, obsolete) || - other.obsolete == obsolete) && - (identical(other.pkgName, pkgName) || other.pkgName == pkgName) && - (identical(other.versionCode, versionCode) || - other.versionCode == versionCode) && - (identical(other.versionName, versionName) || - other.versionName == versionName)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - apkName, - hasUpdate, - iconUrl, - installed, - isNsfw, - lang, - name, - obsolete, - pkgName, - versionCode, - versionName); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$ExtensionImplCopyWith<_$ExtensionImpl> get copyWith => - __$$ExtensionImplCopyWithImpl<_$ExtensionImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ExtensionImplToJson( - this, - ); - } -} - -abstract class _Extension implements Extension { - factory _Extension( - {final String? apkName, - final bool? hasUpdate, - final String? iconUrl, - final bool? installed, - final bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang, - final String? name, - final bool? obsolete, - final String? pkgName, - final int? versionCode, - final String? versionName}) = _$ExtensionImpl; - - factory _Extension.fromJson(Map json) = - _$ExtensionImpl.fromJson; - - @override - String? get apkName; - @override - bool? get hasUpdate; - @override - String? get iconUrl; - @override - bool? get installed; - @override - bool? get isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang; - @override - String? get name; - @override - bool? get obsolete; - @override - String? get pkgName; - @override - int? get versionCode; - @override - String? get versionName; - @override - @JsonKey(ignore: true) - _$$ExtensionImplCopyWith<_$ExtensionImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/extension/extension_model.g.dart b/lib/src/features/browse_center/domain/extension/extension_model.g.dart deleted file mode 100644 index 1ca8db5b..00000000 --- a/lib/src/features/browse_center/domain/extension/extension_model.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'extension_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ExtensionImpl _$$ExtensionImplFromJson(Map json) => - _$ExtensionImpl( - apkName: json['apkName'] as String?, - hasUpdate: json['hasUpdate'] as bool?, - iconUrl: json['iconUrl'] as String?, - installed: json['installed'] as bool?, - isNsfw: json['isNsfw'] as bool?, - lang: LanguageJsonConverter.fromJson(json['lang'] as String?), - name: json['name'] as String?, - obsolete: json['obsolete'] as bool?, - pkgName: json['pkgName'] as String?, - versionCode: json['versionCode'] as int?, - versionName: json['versionName'] as String?, - ); - -Map _$$ExtensionImplToJson(_$ExtensionImpl instance) => - { - 'apkName': instance.apkName, - 'hasUpdate': instance.hasUpdate, - 'iconUrl': instance.iconUrl, - 'installed': instance.installed, - 'isNsfw': instance.isNsfw, - 'lang': LanguageJsonConverter.toJson(instance.lang), - 'name': instance.name, - 'obsolete': instance.obsolete, - 'pkgName': instance.pkgName, - 'versionCode': instance.versionCode, - 'versionName': instance.versionName, - }; diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.ast.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.ast.gql.dart new file mode 100644 index 00000000..9b9465cb --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.ast.gql.dart @@ -0,0 +1,102 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ExtensionFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ExtensionFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'apkName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'hasUpdate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'iconUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isInstalled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isNsfw'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isObsolete'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lang'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pkgName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'repo'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'versionCode'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'versionName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ExtensionFragment]); diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart new file mode 100644 index 00000000..1fa9829d --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart @@ -0,0 +1,83 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'extension_fragment.data.gql.g.dart'; + +abstract class GExtensionFragment { + String get G__typename; + String get apkName; + bool get hasUpdate; + String get iconUrl; + bool get isInstalled; + bool get isNsfw; + bool get isObsolete; + String get lang; + String get name; + String get pkgName; + String? get repo; + int get versionCode; + String get versionName; + Map toJson(); +} + +abstract class GExtensionFragmentData + implements + Built, + GExtensionFragment { + GExtensionFragmentData._(); + + factory GExtensionFragmentData( + [void Function(GExtensionFragmentDataBuilder b) updates]) = + _$GExtensionFragmentData; + + static void _initializeBuilder(GExtensionFragmentDataBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get apkName; + @override + bool get hasUpdate; + @override + String get iconUrl; + @override + bool get isInstalled; + @override + bool get isNsfw; + @override + bool get isObsolete; + @override + String get lang; + @override + String get name; + @override + String get pkgName; + @override + String? get repo; + @override + int get versionCode; + @override + String get versionName; + static Serializer get serializer => + _$gExtensionFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GExtensionFragmentData.serializer, + this, + ) as Map); + + static GExtensionFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.g.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.g.dart new file mode 100644 index 00000000..b9aae3ee --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.g.dart @@ -0,0 +1,413 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'extension_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gExtensionFragmentDataSerializer = + new _$GExtensionFragmentDataSerializer(); + +class _$GExtensionFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFragmentData, + _$GExtensionFragmentData + ]; + @override + final String wireName = 'GExtensionFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'apkName', + serializers.serialize(object.apkName, + specifiedType: const FullType(String)), + 'hasUpdate', + serializers.serialize(object.hasUpdate, + specifiedType: const FullType(bool)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'isInstalled', + serializers.serialize(object.isInstalled, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'isObsolete', + serializers.serialize(object.isObsolete, + specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + 'versionCode', + serializers.serialize(object.versionCode, + specifiedType: const FullType(int)), + 'versionName', + serializers.serialize(object.versionName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GExtensionFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'apkName': + result.apkName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'hasUpdate': + result.hasUpdate = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'isInstalled': + result.isInstalled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isObsolete': + result.isObsolete = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'versionCode': + result.versionCode = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'versionName': + result.versionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GExtensionFragmentData extends GExtensionFragmentData { + @override + final String G__typename; + @override + final String apkName; + @override + final bool hasUpdate; + @override + final String iconUrl; + @override + final bool isInstalled; + @override + final bool isNsfw; + @override + final bool isObsolete; + @override + final String lang; + @override + final String name; + @override + final String pkgName; + @override + final String? repo; + @override + final int versionCode; + @override + final String versionName; + + factory _$GExtensionFragmentData( + [void Function(GExtensionFragmentDataBuilder)? updates]) => + (new GExtensionFragmentDataBuilder()..update(updates))._build(); + + _$GExtensionFragmentData._( + {required this.G__typename, + required this.apkName, + required this.hasUpdate, + required this.iconUrl, + required this.isInstalled, + required this.isNsfw, + required this.isObsolete, + required this.lang, + required this.name, + required this.pkgName, + this.repo, + required this.versionCode, + required this.versionName}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GExtensionFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + apkName, r'GExtensionFragmentData', 'apkName'); + BuiltValueNullFieldError.checkNotNull( + hasUpdate, r'GExtensionFragmentData', 'hasUpdate'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GExtensionFragmentData', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + isInstalled, r'GExtensionFragmentData', 'isInstalled'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GExtensionFragmentData', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + isObsolete, r'GExtensionFragmentData', 'isObsolete'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GExtensionFragmentData', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GExtensionFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GExtensionFragmentData', 'pkgName'); + BuiltValueNullFieldError.checkNotNull( + versionCode, r'GExtensionFragmentData', 'versionCode'); + BuiltValueNullFieldError.checkNotNull( + versionName, r'GExtensionFragmentData', 'versionName'); + } + + @override + GExtensionFragmentData rebuild( + void Function(GExtensionFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFragmentDataBuilder toBuilder() => + new GExtensionFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFragmentData && + G__typename == other.G__typename && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionFragmentData') + ..add('G__typename', G__typename) + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GExtensionFragmentDataBuilder + implements Builder { + _$GExtensionFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _apkName; + String? get apkName => _$this._apkName; + set apkName(String? apkName) => _$this._apkName = apkName; + + bool? _hasUpdate; + bool? get hasUpdate => _$this._hasUpdate; + set hasUpdate(bool? hasUpdate) => _$this._hasUpdate = hasUpdate; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + bool? _isInstalled; + bool? get isInstalled => _$this._isInstalled; + set isInstalled(bool? isInstalled) => _$this._isInstalled = isInstalled; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + bool? _isObsolete; + bool? get isObsolete => _$this._isObsolete; + set isObsolete(bool? isObsolete) => _$this._isObsolete = isObsolete; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + int? _versionCode; + int? get versionCode => _$this._versionCode; + set versionCode(int? versionCode) => _$this._versionCode = versionCode; + + String? _versionName; + String? get versionName => _$this._versionName; + set versionName(String? versionName) => _$this._versionName = versionName; + + GExtensionFragmentDataBuilder() { + GExtensionFragmentData._initializeBuilder(this); + } + + GExtensionFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _apkName = $v.apkName; + _hasUpdate = $v.hasUpdate; + _iconUrl = $v.iconUrl; + _isInstalled = $v.isInstalled; + _isNsfw = $v.isNsfw; + _isObsolete = $v.isObsolete; + _lang = $v.lang; + _name = $v.name; + _pkgName = $v.pkgName; + _repo = $v.repo; + _versionCode = $v.versionCode; + _versionName = $v.versionName; + _$v = null; + } + return this; + } + + @override + void replace(GExtensionFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFragmentData; + } + + @override + void update(void Function(GExtensionFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFragmentData build() => _build(); + + _$GExtensionFragmentData _build() { + final _$result = _$v ?? + new _$GExtensionFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GExtensionFragmentData', 'G__typename'), + apkName: BuiltValueNullFieldError.checkNotNull( + apkName, r'GExtensionFragmentData', 'apkName'), + hasUpdate: BuiltValueNullFieldError.checkNotNull( + hasUpdate, r'GExtensionFragmentData', 'hasUpdate'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GExtensionFragmentData', 'iconUrl'), + isInstalled: BuiltValueNullFieldError.checkNotNull( + isInstalled, r'GExtensionFragmentData', 'isInstalled'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GExtensionFragmentData', 'isNsfw'), + isObsolete: BuiltValueNullFieldError.checkNotNull( + isObsolete, r'GExtensionFragmentData', 'isObsolete'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GExtensionFragmentData', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GExtensionFragmentData', 'name'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GExtensionFragmentData', 'pkgName'), + repo: repo, + versionCode: BuiltValueNullFieldError.checkNotNull( + versionCode, r'GExtensionFragmentData', 'versionCode'), + versionName: BuiltValueNullFieldError.checkNotNull( + versionName, r'GExtensionFragmentData', 'versionName'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.req.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.req.gql.dart new file mode 100644 index 00000000..0d085a41 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'extension_fragment.req.gql.g.dart'; + +abstract class GExtensionFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GExtensionFragmentData, + _i3.GExtensionFragmentVars> { + GExtensionFragmentReq._(); + + factory GExtensionFragmentReq( + [void Function(GExtensionFragmentReqBuilder b) updates]) = + _$GExtensionFragmentReq; + + static void _initializeBuilder(GExtensionFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ExtensionFragment'; + + @override + _i3.GExtensionFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GExtensionFragmentData? parseData(Map json) => + _i2.GExtensionFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GExtensionFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gExtensionFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GExtensionFragmentReq.serializer, + this, + ) as Map); + + static GExtensionFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GExtensionFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.req.gql.g.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.req.gql.g.dart new file mode 100644 index 00000000..d60d9103 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.req.gql.g.dart @@ -0,0 +1,237 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'extension_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gExtensionFragmentReqSerializer = + new _$GExtensionFragmentReqSerializer(); + +class _$GExtensionFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFragmentReq, + _$GExtensionFragmentReq + ]; + @override + final String wireName = 'GExtensionFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GExtensionFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GExtensionFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GExtensionFragmentVars))! + as _i3.GExtensionFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GExtensionFragmentReq extends GExtensionFragmentReq { + @override + final _i3.GExtensionFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GExtensionFragmentReq( + [void Function(GExtensionFragmentReqBuilder)? updates]) => + (new GExtensionFragmentReqBuilder()..update(updates))._build(); + + _$GExtensionFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GExtensionFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GExtensionFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GExtensionFragmentReq', 'idFields'); + } + + @override + GExtensionFragmentReq rebuild( + void Function(GExtensionFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFragmentReqBuilder toBuilder() => + new GExtensionFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GExtensionFragmentReqBuilder + implements Builder { + _$GExtensionFragmentReq? _$v; + + _i3.GExtensionFragmentVarsBuilder? _vars; + _i3.GExtensionFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GExtensionFragmentVarsBuilder(); + set vars(_i3.GExtensionFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GExtensionFragmentReqBuilder() { + GExtensionFragmentReq._initializeBuilder(this); + } + + GExtensionFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GExtensionFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFragmentReq; + } + + @override + void update(void Function(GExtensionFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFragmentReq build() => _build(); + + _$GExtensionFragmentReq _build() { + _$GExtensionFragmentReq _$result; + try { + _$result = _$v ?? + new _$GExtensionFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GExtensionFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GExtensionFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GExtensionFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.dart new file mode 100644 index 00000000..88163723 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'extension_fragment.var.gql.g.dart'; + +abstract class GExtensionFragmentVars + implements Built { + GExtensionFragmentVars._(); + + factory GExtensionFragmentVars( + [void Function(GExtensionFragmentVarsBuilder b) updates]) = + _$GExtensionFragmentVars; + + static Serializer get serializer => + _$gExtensionFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GExtensionFragmentVars.serializer, + this, + ) as Map); + + static GExtensionFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.g.dart b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.g.dart new file mode 100644 index 00000000..5ad4430e --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'extension_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gExtensionFragmentVarsSerializer = + new _$GExtensionFragmentVarsSerializer(); + +class _$GExtensionFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFragmentVars, + _$GExtensionFragmentVars + ]; + @override + final String wireName = 'GExtensionFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GExtensionFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GExtensionFragmentVarsBuilder().build(); + } +} + +class _$GExtensionFragmentVars extends GExtensionFragmentVars { + factory _$GExtensionFragmentVars( + [void Function(GExtensionFragmentVarsBuilder)? updates]) => + (new GExtensionFragmentVarsBuilder()..update(updates))._build(); + + _$GExtensionFragmentVars._() : super._(); + + @override + GExtensionFragmentVars rebuild( + void Function(GExtensionFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFragmentVarsBuilder toBuilder() => + new GExtensionFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFragmentVars; + } + + @override + int get hashCode { + return 82269504; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GExtensionFragmentVars').toString(); + } +} + +class GExtensionFragmentVarsBuilder + implements Builder { + _$GExtensionFragmentVars? _$v; + + GExtensionFragmentVarsBuilder(); + + @override + void replace(GExtensionFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFragmentVars; + } + + @override + void update(void Function(GExtensionFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFragmentVars build() => _build(); + + _$GExtensionFragmentVars _build() { + final _$result = _$v ?? new _$GExtensionFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/extension/graphql/extension_fragment.graphql b/lib/src/features/browse_center/domain/extension/graphql/extension_fragment.graphql new file mode 100644 index 00000000..a0759067 --- /dev/null +++ b/lib/src/features/browse_center/domain/extension/graphql/extension_fragment.graphql @@ -0,0 +1,15 @@ + +fragment ExtensionFragment on ExtensionType { + apkName + hasUpdate + iconUrl + isInstalled + isNsfw + isObsolete + lang + name + pkgName + repo + versionCode + versionName +} diff --git a/lib/src/features/browse_center/domain/filter/filter_model.dart b/lib/src/features/browse_center/domain/filter/filter_model.dart index 5000cd38..382316ba 100644 --- a/lib/src/features/browse_center/domain/filter/filter_model.dart +++ b/lib/src/features/browse_center/domain/filter/filter_model.dart @@ -4,64 +4,55 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'dart:convert'; +import '../../../../graphql/__generated__/schema.schema.gql.dart'; +import '../../data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.dart'; -import 'package:freezed_annotation/freezed_annotation.dart'; +typedef Filter = GFilterFragment; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../filter_state/filter_state_model.dart'; +typedef FilterHeader = GPrimitiveFilterFragment__asHeaderFilter; -part 'filter_model.freezed.dart'; -part 'filter_model.g.dart'; +typedef FilterSeparator = GPrimitiveFilterFragment__asSeparatorFilter; -@freezed -class Filter with _$Filter { - factory Filter({ - String? type, - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - FilterState? filterState, - }) = _Filter; +typedef FilterText = GPrimitiveFilterFragment__asTextFilter; - factory Filter.fromJson(Map json) => _$FilterFromJson(json); +typedef FilterCheckBox = GPrimitiveFilterFragment__asCheckBoxFilter; - static Map filterFromJson( - Map json, String str) { - final filter = json['filter']; - return { - 'type': json['type'], - if (filter is Map) ...filter, - }; - } +typedef FilterTriState = GPrimitiveFilterFragment__asTriStateFilter; + +typedef FilterSort = GPrimitiveFilterFragment__asSortFilter; + +typedef FilterSelect = GPrimitiveFilterFragment__asSelectFilter; + +typedef FilterGroup = GFilterFragment__asGroupFilter; + +typedef TriState = GTriState; + +typedef FilterChange = GFilterChangeInputBuilder; - static List> filtersToJson(List filters) { - final jsonFilter = >[]; - for (int i = 0; i < filters.length; i++) { - final map = Filter.customFilterToJson(filters[i], i); - if (map != null) jsonFilter.addAll(map); +typedef SortStateChange = GSortSelectionInputBuilder; + +typedef SortState = GPrimitiveFilterFragment__asSortFilter_sortState; + +extension TriStateExtension on GTriState { + bool? get toBool { + // static const GTriState IGNORE = _$gTriStateIGNORE; + + // static const GTriState INCLUDE = _$gTriStateINCLUDE; + + // static const GTriState EXCLUDE = _$gTriStateEXCLUDE; + if (this == GTriState.IGNORE) { + return null; + } else if (this == GTriState.INCLUDE) { + return true; + } else if (this == GTriState.EXCLUDE) { + return false; } - return jsonFilter; + throw Exception("State Not Found"); } - static List>? customFilterToJson( - Filter filter, int position) { - return switch (filter.filterState) { - FilterGroup( - state: List? state, - ) => - [ - for (int i = 0; i < (state?.length).getValueOnNullOrNegative(); i++) - { - "position": position, - "state": json.encode(customFilterToJson(state![i], i)?.first), - }, - ], - null => null, - _ => [ - { - "position": position, - "state": json.encode(filter.filterState?.toJson()["state"]) - } - ], - }; - } + static GTriState fromBool(bool? value) => switch (value) { + true => GTriState.INCLUDE, + false => GTriState.EXCLUDE, + null => GTriState.IGNORE, + }; } diff --git a/lib/src/features/browse_center/domain/filter/filter_model.freezed.dart b/lib/src/features/browse_center/domain/filter/filter_model.freezed.dart deleted file mode 100644 index 3a18d33b..00000000 --- a/lib/src/features/browse_center/domain/filter/filter_model.freezed.dart +++ /dev/null @@ -1,196 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'filter_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -Filter _$FilterFromJson(Map json) { - return _Filter.fromJson(json); -} - -/// @nodoc -mixin _$Filter { - String? get type => throw _privateConstructorUsedError; - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - FilterState? get filterState => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $FilterCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $FilterCopyWith<$Res> { - factory $FilterCopyWith(Filter value, $Res Function(Filter) then) = - _$FilterCopyWithImpl<$Res, Filter>; - @useResult - $Res call( - {String? type, - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - FilterState? filterState}); - - $FilterStateCopyWith<$Res>? get filterState; -} - -/// @nodoc -class _$FilterCopyWithImpl<$Res, $Val extends Filter> - implements $FilterCopyWith<$Res> { - _$FilterCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? filterState = freezed, - }) { - return _then(_value.copyWith( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as String?, - filterState: freezed == filterState - ? _value.filterState - : filterState // ignore: cast_nullable_to_non_nullable - as FilterState?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $FilterStateCopyWith<$Res>? get filterState { - if (_value.filterState == null) { - return null; - } - - return $FilterStateCopyWith<$Res>(_value.filterState!, (value) { - return _then(_value.copyWith(filterState: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$FilterImplCopyWith<$Res> implements $FilterCopyWith<$Res> { - factory _$$FilterImplCopyWith( - _$FilterImpl value, $Res Function(_$FilterImpl) then) = - __$$FilterImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? type, - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - FilterState? filterState}); - - @override - $FilterStateCopyWith<$Res>? get filterState; -} - -/// @nodoc -class __$$FilterImplCopyWithImpl<$Res> - extends _$FilterCopyWithImpl<$Res, _$FilterImpl> - implements _$$FilterImplCopyWith<$Res> { - __$$FilterImplCopyWithImpl( - _$FilterImpl _value, $Res Function(_$FilterImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? filterState = freezed, - }) { - return _then(_$FilterImpl( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as String?, - filterState: freezed == filterState - ? _value.filterState - : filterState // ignore: cast_nullable_to_non_nullable - as FilterState?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterImpl implements _Filter { - _$FilterImpl( - {this.type, - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - this.filterState}); - - factory _$FilterImpl.fromJson(Map json) => - _$$FilterImplFromJson(json); - - @override - final String? type; - @override - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - final FilterState? filterState; - - @override - String toString() { - return 'Filter(type: $type, filterState: $filterState)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterImpl && - (identical(other.type, type) || other.type == type) && - (identical(other.filterState, filterState) || - other.filterState == filterState)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, type, filterState); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterImplCopyWith<_$FilterImpl> get copyWith => - __$$FilterImplCopyWithImpl<_$FilterImpl>(this, _$identity); - - @override - Map toJson() { - return _$$FilterImplToJson( - this, - ); - } -} - -abstract class _Filter implements Filter { - factory _Filter( - {final String? type, - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - final FilterState? filterState}) = _$FilterImpl; - - factory _Filter.fromJson(Map json) = _$FilterImpl.fromJson; - - @override - String? get type; - @override - @JsonKey(readValue: Filter.filterFromJson, name: 'filter') - FilterState? get filterState; - @override - @JsonKey(ignore: true) - _$$FilterImplCopyWith<_$FilterImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/filter/filter_model.g.dart b/lib/src/features/browse_center/domain/filter/filter_model.g.dart deleted file mode 100644 index 3038506f..00000000 --- a/lib/src/features/browse_center/domain/filter/filter_model.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'filter_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$FilterImpl _$$FilterImplFromJson(Map json) => _$FilterImpl( - type: json['type'] as String?, - filterState: Filter.filterFromJson(json, 'filter') == null - ? null - : FilterState.fromJson( - Filter.filterFromJson(json, 'filter') as Map), - ); - -Map _$$FilterImplToJson(_$FilterImpl instance) => - { - 'type': instance.type, - 'filter': instance.filterState?.toJson(), - }; diff --git a/lib/src/features/browse_center/domain/filter_state/filter_state_model.dart b/lib/src/features/browse_center/domain/filter_state/filter_state_model.dart deleted file mode 100644 index 9e8fc7fa..00000000 --- a/lib/src/features/browse_center/domain/filter_state/filter_state_model.dart +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../filter/filter_model.dart'; - -part 'filter_state_model.freezed.dart'; -part 'filter_state_model.g.dart'; - -@Freezed( - unionKey: 'type', - unionValueCase: FreezedUnionCase.pascal, - fallbackUnion: 'separator', -) -sealed class FilterState with _$FilterState { - const factory FilterState.header({int? state, String? name}) = FilterHeader; - - const factory FilterState.separator({int? state, String? name}) = - FilterSeparator; - - const factory FilterState.text({String? state, String? name}) = FilterText; - - const factory FilterState.checkBox({bool? state, String? name}) = - FilterCheckBox; - - const factory FilterState.triState({int? state, String? name}) = - FilterTriState; - - const factory FilterState.sort({ - SortState? state, - String? name, - List? values, - }) = FilterSort; - - const factory FilterState.select({ - int? state, - String? name, - List? displayValues, - }) = FilterSelect; - - const factory FilterState.group({ - List? state, - String? name, - }) = FilterGroup; - - factory FilterState.fromJson(Map json) => - _$FilterStateFromJson(json); -} - -@freezed -class SortState with _$SortState { - factory SortState({ - int? index, - bool? ascending, - }) = _SortState; - - factory SortState.fromJson(Map json) => - _$SortStateFromJson(json); -} - -@freezed -class SelectValues with _$SelectValues { - factory SelectValues({ - String? first, - String? second, - }) = _SelectValues; - - factory SelectValues.fromJson(Map json) => - _$SelectValuesFromJson(json); -} diff --git a/lib/src/features/browse_center/domain/filter_state/filter_state_model.freezed.dart b/lib/src/features/browse_center/domain/filter_state/filter_state_model.freezed.dart deleted file mode 100644 index 76957d02..00000000 --- a/lib/src/features/browse_center/domain/filter_state/filter_state_model.freezed.dart +++ /dev/null @@ -1,2222 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'filter_state_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -FilterState _$FilterStateFromJson(Map json) { - switch (json['type']) { - case 'Header': - return FilterHeader.fromJson(json); - case 'Text': - return FilterText.fromJson(json); - case 'CheckBox': - return FilterCheckBox.fromJson(json); - case 'TriState': - return FilterTriState.fromJson(json); - case 'Sort': - return FilterSort.fromJson(json); - case 'Select': - return FilterSelect.fromJson(json); - case 'Group': - return FilterGroup.fromJson(json); - - default: - return FilterSeparator.fromJson(json); - } -} - -/// @nodoc -mixin _$FilterState { - Object? get state => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $FilterStateCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $FilterStateCopyWith<$Res> { - factory $FilterStateCopyWith( - FilterState value, $Res Function(FilterState) then) = - _$FilterStateCopyWithImpl<$Res, FilterState>; - @useResult - $Res call({String? name}); -} - -/// @nodoc -class _$FilterStateCopyWithImpl<$Res, $Val extends FilterState> - implements $FilterStateCopyWith<$Res> { - _$FilterStateCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = freezed, - }) { - return _then(_value.copyWith( - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$FilterHeaderImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterHeaderImplCopyWith( - _$FilterHeaderImpl value, $Res Function(_$FilterHeaderImpl) then) = - __$$FilterHeaderImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? state, String? name}); -} - -/// @nodoc -class __$$FilterHeaderImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterHeaderImpl> - implements _$$FilterHeaderImplCopyWith<$Res> { - __$$FilterHeaderImplCopyWithImpl( - _$FilterHeaderImpl _value, $Res Function(_$FilterHeaderImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - }) { - return _then(_$FilterHeaderImpl( - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterHeaderImpl implements FilterHeader { - const _$FilterHeaderImpl({this.state, this.name, final String? $type}) - : $type = $type ?? 'Header'; - - factory _$FilterHeaderImpl.fromJson(Map json) => - _$$FilterHeaderImplFromJson(json); - - @override - final int? state; - @override - final String? name; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.header(state: $state, name: $name)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterHeaderImpl && - (identical(other.state, state) || other.state == state) && - (identical(other.name, name) || other.name == name)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, state, name); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterHeaderImplCopyWith<_$FilterHeaderImpl> get copyWith => - __$$FilterHeaderImplCopyWithImpl<_$FilterHeaderImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return header(state, name); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return header?.call(state, name); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (header != null) { - return header(state, name); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return header(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return header?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (header != null) { - return header(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterHeaderImplToJson( - this, - ); - } -} - -abstract class FilterHeader implements FilterState { - const factory FilterHeader({final int? state, final String? name}) = - _$FilterHeaderImpl; - - factory FilterHeader.fromJson(Map json) = - _$FilterHeaderImpl.fromJson; - - @override - int? get state; - @override - String? get name; - @override - @JsonKey(ignore: true) - _$$FilterHeaderImplCopyWith<_$FilterHeaderImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$FilterSeparatorImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterSeparatorImplCopyWith(_$FilterSeparatorImpl value, - $Res Function(_$FilterSeparatorImpl) then) = - __$$FilterSeparatorImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? state, String? name}); -} - -/// @nodoc -class __$$FilterSeparatorImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterSeparatorImpl> - implements _$$FilterSeparatorImplCopyWith<$Res> { - __$$FilterSeparatorImplCopyWithImpl( - _$FilterSeparatorImpl _value, $Res Function(_$FilterSeparatorImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - }) { - return _then(_$FilterSeparatorImpl( - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterSeparatorImpl implements FilterSeparator { - const _$FilterSeparatorImpl({this.state, this.name, final String? $type}) - : $type = $type ?? 'Separator'; - - factory _$FilterSeparatorImpl.fromJson(Map json) => - _$$FilterSeparatorImplFromJson(json); - - @override - final int? state; - @override - final String? name; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.separator(state: $state, name: $name)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterSeparatorImpl && - (identical(other.state, state) || other.state == state) && - (identical(other.name, name) || other.name == name)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, state, name); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterSeparatorImplCopyWith<_$FilterSeparatorImpl> get copyWith => - __$$FilterSeparatorImplCopyWithImpl<_$FilterSeparatorImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return separator(state, name); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return separator?.call(state, name); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (separator != null) { - return separator(state, name); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return separator(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return separator?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (separator != null) { - return separator(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterSeparatorImplToJson( - this, - ); - } -} - -abstract class FilterSeparator implements FilterState { - const factory FilterSeparator({final int? state, final String? name}) = - _$FilterSeparatorImpl; - - factory FilterSeparator.fromJson(Map json) = - _$FilterSeparatorImpl.fromJson; - - @override - int? get state; - @override - String? get name; - @override - @JsonKey(ignore: true) - _$$FilterSeparatorImplCopyWith<_$FilterSeparatorImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$FilterTextImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterTextImplCopyWith( - _$FilterTextImpl value, $Res Function(_$FilterTextImpl) then) = - __$$FilterTextImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? state, String? name}); -} - -/// @nodoc -class __$$FilterTextImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterTextImpl> - implements _$$FilterTextImplCopyWith<$Res> { - __$$FilterTextImplCopyWithImpl( - _$FilterTextImpl _value, $Res Function(_$FilterTextImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - }) { - return _then(_$FilterTextImpl( - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as String?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterTextImpl implements FilterText { - const _$FilterTextImpl({this.state, this.name, final String? $type}) - : $type = $type ?? 'Text'; - - factory _$FilterTextImpl.fromJson(Map json) => - _$$FilterTextImplFromJson(json); - - @override - final String? state; - @override - final String? name; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.text(state: $state, name: $name)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterTextImpl && - (identical(other.state, state) || other.state == state) && - (identical(other.name, name) || other.name == name)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, state, name); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterTextImplCopyWith<_$FilterTextImpl> get copyWith => - __$$FilterTextImplCopyWithImpl<_$FilterTextImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return text(state, name); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return text?.call(state, name); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (text != null) { - return text(state, name); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return text(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return text?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (text != null) { - return text(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterTextImplToJson( - this, - ); - } -} - -abstract class FilterText implements FilterState { - const factory FilterText({final String? state, final String? name}) = - _$FilterTextImpl; - - factory FilterText.fromJson(Map json) = - _$FilterTextImpl.fromJson; - - @override - String? get state; - @override - String? get name; - @override - @JsonKey(ignore: true) - _$$FilterTextImplCopyWith<_$FilterTextImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$FilterCheckBoxImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterCheckBoxImplCopyWith(_$FilterCheckBoxImpl value, - $Res Function(_$FilterCheckBoxImpl) then) = - __$$FilterCheckBoxImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({bool? state, String? name}); -} - -/// @nodoc -class __$$FilterCheckBoxImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterCheckBoxImpl> - implements _$$FilterCheckBoxImplCopyWith<$Res> { - __$$FilterCheckBoxImplCopyWithImpl( - _$FilterCheckBoxImpl _value, $Res Function(_$FilterCheckBoxImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - }) { - return _then(_$FilterCheckBoxImpl( - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as bool?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterCheckBoxImpl implements FilterCheckBox { - const _$FilterCheckBoxImpl({this.state, this.name, final String? $type}) - : $type = $type ?? 'CheckBox'; - - factory _$FilterCheckBoxImpl.fromJson(Map json) => - _$$FilterCheckBoxImplFromJson(json); - - @override - final bool? state; - @override - final String? name; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.checkBox(state: $state, name: $name)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterCheckBoxImpl && - (identical(other.state, state) || other.state == state) && - (identical(other.name, name) || other.name == name)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, state, name); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterCheckBoxImplCopyWith<_$FilterCheckBoxImpl> get copyWith => - __$$FilterCheckBoxImplCopyWithImpl<_$FilterCheckBoxImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return checkBox(state, name); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return checkBox?.call(state, name); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (checkBox != null) { - return checkBox(state, name); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return checkBox(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return checkBox?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (checkBox != null) { - return checkBox(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterCheckBoxImplToJson( - this, - ); - } -} - -abstract class FilterCheckBox implements FilterState { - const factory FilterCheckBox({final bool? state, final String? name}) = - _$FilterCheckBoxImpl; - - factory FilterCheckBox.fromJson(Map json) = - _$FilterCheckBoxImpl.fromJson; - - @override - bool? get state; - @override - String? get name; - @override - @JsonKey(ignore: true) - _$$FilterCheckBoxImplCopyWith<_$FilterCheckBoxImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$FilterTriStateImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterTriStateImplCopyWith(_$FilterTriStateImpl value, - $Res Function(_$FilterTriStateImpl) then) = - __$$FilterTriStateImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? state, String? name}); -} - -/// @nodoc -class __$$FilterTriStateImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterTriStateImpl> - implements _$$FilterTriStateImplCopyWith<$Res> { - __$$FilterTriStateImplCopyWithImpl( - _$FilterTriStateImpl _value, $Res Function(_$FilterTriStateImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - }) { - return _then(_$FilterTriStateImpl( - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterTriStateImpl implements FilterTriState { - const _$FilterTriStateImpl({this.state, this.name, final String? $type}) - : $type = $type ?? 'TriState'; - - factory _$FilterTriStateImpl.fromJson(Map json) => - _$$FilterTriStateImplFromJson(json); - - @override - final int? state; - @override - final String? name; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.triState(state: $state, name: $name)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterTriStateImpl && - (identical(other.state, state) || other.state == state) && - (identical(other.name, name) || other.name == name)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, state, name); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterTriStateImplCopyWith<_$FilterTriStateImpl> get copyWith => - __$$FilterTriStateImplCopyWithImpl<_$FilterTriStateImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return triState(state, name); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return triState?.call(state, name); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (triState != null) { - return triState(state, name); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return triState(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return triState?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (triState != null) { - return triState(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterTriStateImplToJson( - this, - ); - } -} - -abstract class FilterTriState implements FilterState { - const factory FilterTriState({final int? state, final String? name}) = - _$FilterTriStateImpl; - - factory FilterTriState.fromJson(Map json) = - _$FilterTriStateImpl.fromJson; - - @override - int? get state; - @override - String? get name; - @override - @JsonKey(ignore: true) - _$$FilterTriStateImplCopyWith<_$FilterTriStateImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$FilterSortImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterSortImplCopyWith( - _$FilterSortImpl value, $Res Function(_$FilterSortImpl) then) = - __$$FilterSortImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({SortState? state, String? name, List? values}); - - $SortStateCopyWith<$Res>? get state; -} - -/// @nodoc -class __$$FilterSortImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterSortImpl> - implements _$$FilterSortImplCopyWith<$Res> { - __$$FilterSortImplCopyWithImpl( - _$FilterSortImpl _value, $Res Function(_$FilterSortImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - Object? values = freezed, - }) { - return _then(_$FilterSortImpl( - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as SortState?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - values: freezed == values - ? _value._values - : values // ignore: cast_nullable_to_non_nullable - as List?, - )); - } - - @override - @pragma('vm:prefer-inline') - $SortStateCopyWith<$Res>? get state { - if (_value.state == null) { - return null; - } - - return $SortStateCopyWith<$Res>(_value.state!, (value) { - return _then(_value.copyWith(state: value)); - }); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterSortImpl implements FilterSort { - const _$FilterSortImpl( - {this.state, this.name, final List? values, final String? $type}) - : _values = values, - $type = $type ?? 'Sort'; - - factory _$FilterSortImpl.fromJson(Map json) => - _$$FilterSortImplFromJson(json); - - @override - final SortState? state; - @override - final String? name; - final List? _values; - @override - List? get values { - final value = _values; - if (value == null) return null; - if (_values is EqualUnmodifiableListView) return _values; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.sort(state: $state, name: $name, values: $values)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterSortImpl && - (identical(other.state, state) || other.state == state) && - (identical(other.name, name) || other.name == name) && - const DeepCollectionEquality().equals(other._values, _values)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, state, name, const DeepCollectionEquality().hash(_values)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterSortImplCopyWith<_$FilterSortImpl> get copyWith => - __$$FilterSortImplCopyWithImpl<_$FilterSortImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return sort(state, name, values); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return sort?.call(state, name, values); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (sort != null) { - return sort(state, name, values); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return sort(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return sort?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (sort != null) { - return sort(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterSortImplToJson( - this, - ); - } -} - -abstract class FilterSort implements FilterState { - const factory FilterSort( - {final SortState? state, - final String? name, - final List? values}) = _$FilterSortImpl; - - factory FilterSort.fromJson(Map json) = - _$FilterSortImpl.fromJson; - - @override - SortState? get state; - @override - String? get name; - List? get values; - @override - @JsonKey(ignore: true) - _$$FilterSortImplCopyWith<_$FilterSortImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$FilterSelectImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterSelectImplCopyWith( - _$FilterSelectImpl value, $Res Function(_$FilterSelectImpl) then) = - __$$FilterSelectImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? state, String? name, List? displayValues}); -} - -/// @nodoc -class __$$FilterSelectImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterSelectImpl> - implements _$$FilterSelectImplCopyWith<$Res> { - __$$FilterSelectImplCopyWithImpl( - _$FilterSelectImpl _value, $Res Function(_$FilterSelectImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - Object? displayValues = freezed, - }) { - return _then(_$FilterSelectImpl( - state: freezed == state - ? _value.state - : state // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - displayValues: freezed == displayValues - ? _value._displayValues - : displayValues // ignore: cast_nullable_to_non_nullable - as List?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterSelectImpl implements FilterSelect { - const _$FilterSelectImpl( - {this.state, - this.name, - final List? displayValues, - final String? $type}) - : _displayValues = displayValues, - $type = $type ?? 'Select'; - - factory _$FilterSelectImpl.fromJson(Map json) => - _$$FilterSelectImplFromJson(json); - - @override - final int? state; - @override - final String? name; - final List? _displayValues; - @override - List? get displayValues { - final value = _displayValues; - if (value == null) return null; - if (_displayValues is EqualUnmodifiableListView) return _displayValues; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.select(state: $state, name: $name, displayValues: $displayValues)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterSelectImpl && - (identical(other.state, state) || other.state == state) && - (identical(other.name, name) || other.name == name) && - const DeepCollectionEquality() - .equals(other._displayValues, _displayValues)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, state, name, - const DeepCollectionEquality().hash(_displayValues)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterSelectImplCopyWith<_$FilterSelectImpl> get copyWith => - __$$FilterSelectImplCopyWithImpl<_$FilterSelectImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return select(state, name, displayValues); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return select?.call(state, name, displayValues); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (select != null) { - return select(state, name, displayValues); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return select(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return select?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (select != null) { - return select(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterSelectImplToJson( - this, - ); - } -} - -abstract class FilterSelect implements FilterState { - const factory FilterSelect( - {final int? state, - final String? name, - final List? displayValues}) = _$FilterSelectImpl; - - factory FilterSelect.fromJson(Map json) = - _$FilterSelectImpl.fromJson; - - @override - int? get state; - @override - String? get name; - List? get displayValues; - @override - @JsonKey(ignore: true) - _$$FilterSelectImplCopyWith<_$FilterSelectImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$FilterGroupImplCopyWith<$Res> - implements $FilterStateCopyWith<$Res> { - factory _$$FilterGroupImplCopyWith( - _$FilterGroupImpl value, $Res Function(_$FilterGroupImpl) then) = - __$$FilterGroupImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List? state, String? name}); -} - -/// @nodoc -class __$$FilterGroupImplCopyWithImpl<$Res> - extends _$FilterStateCopyWithImpl<$Res, _$FilterGroupImpl> - implements _$$FilterGroupImplCopyWith<$Res> { - __$$FilterGroupImplCopyWithImpl( - _$FilterGroupImpl _value, $Res Function(_$FilterGroupImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? state = freezed, - Object? name = freezed, - }) { - return _then(_$FilterGroupImpl( - state: freezed == state - ? _value._state - : state // ignore: cast_nullable_to_non_nullable - as List?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FilterGroupImpl implements FilterGroup { - const _$FilterGroupImpl( - {final List? state, this.name, final String? $type}) - : _state = state, - $type = $type ?? 'Group'; - - factory _$FilterGroupImpl.fromJson(Map json) => - _$$FilterGroupImplFromJson(json); - - final List? _state; - @override - List? get state { - final value = _state; - if (value == null) return null; - if (_state is EqualUnmodifiableListView) return _state; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - final String? name; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'FilterState.group(state: $state, name: $name)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FilterGroupImpl && - const DeepCollectionEquality().equals(other._state, _state) && - (identical(other.name, name) || other.name == name)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, const DeepCollectionEquality().hash(_state), name); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FilterGroupImplCopyWith<_$FilterGroupImpl> get copyWith => - __$$FilterGroupImplCopyWithImpl<_$FilterGroupImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(int? state, String? name) header, - required TResult Function(int? state, String? name) separator, - required TResult Function(String? state, String? name) text, - required TResult Function(bool? state, String? name) checkBox, - required TResult Function(int? state, String? name) triState, - required TResult Function( - SortState? state, String? name, List? values) - sort, - required TResult Function( - int? state, String? name, List? displayValues) - select, - required TResult Function(List? state, String? name) group, - }) { - return group(state, name); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(int? state, String? name)? header, - TResult? Function(int? state, String? name)? separator, - TResult? Function(String? state, String? name)? text, - TResult? Function(bool? state, String? name)? checkBox, - TResult? Function(int? state, String? name)? triState, - TResult? Function(SortState? state, String? name, List? values)? - sort, - TResult? Function(int? state, String? name, List? displayValues)? - select, - TResult? Function(List? state, String? name)? group, - }) { - return group?.call(state, name); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(int? state, String? name)? header, - TResult Function(int? state, String? name)? separator, - TResult Function(String? state, String? name)? text, - TResult Function(bool? state, String? name)? checkBox, - TResult Function(int? state, String? name)? triState, - TResult Function(SortState? state, String? name, List? values)? - sort, - TResult Function(int? state, String? name, List? displayValues)? - select, - TResult Function(List? state, String? name)? group, - required TResult orElse(), - }) { - if (group != null) { - return group(state, name); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(FilterHeader value) header, - required TResult Function(FilterSeparator value) separator, - required TResult Function(FilterText value) text, - required TResult Function(FilterCheckBox value) checkBox, - required TResult Function(FilterTriState value) triState, - required TResult Function(FilterSort value) sort, - required TResult Function(FilterSelect value) select, - required TResult Function(FilterGroup value) group, - }) { - return group(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(FilterHeader value)? header, - TResult? Function(FilterSeparator value)? separator, - TResult? Function(FilterText value)? text, - TResult? Function(FilterCheckBox value)? checkBox, - TResult? Function(FilterTriState value)? triState, - TResult? Function(FilterSort value)? sort, - TResult? Function(FilterSelect value)? select, - TResult? Function(FilterGroup value)? group, - }) { - return group?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(FilterHeader value)? header, - TResult Function(FilterSeparator value)? separator, - TResult Function(FilterText value)? text, - TResult Function(FilterCheckBox value)? checkBox, - TResult Function(FilterTriState value)? triState, - TResult Function(FilterSort value)? sort, - TResult Function(FilterSelect value)? select, - TResult Function(FilterGroup value)? group, - required TResult orElse(), - }) { - if (group != null) { - return group(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FilterGroupImplToJson( - this, - ); - } -} - -abstract class FilterGroup implements FilterState { - const factory FilterGroup({final List? state, final String? name}) = - _$FilterGroupImpl; - - factory FilterGroup.fromJson(Map json) = - _$FilterGroupImpl.fromJson; - - @override - List? get state; - @override - String? get name; - @override - @JsonKey(ignore: true) - _$$FilterGroupImplCopyWith<_$FilterGroupImpl> get copyWith => - throw _privateConstructorUsedError; -} - -SortState _$SortStateFromJson(Map json) { - return _SortState.fromJson(json); -} - -/// @nodoc -mixin _$SortState { - int? get index => throw _privateConstructorUsedError; - bool? get ascending => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $SortStateCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SortStateCopyWith<$Res> { - factory $SortStateCopyWith(SortState value, $Res Function(SortState) then) = - _$SortStateCopyWithImpl<$Res, SortState>; - @useResult - $Res call({int? index, bool? ascending}); -} - -/// @nodoc -class _$SortStateCopyWithImpl<$Res, $Val extends SortState> - implements $SortStateCopyWith<$Res> { - _$SortStateCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? index = freezed, - Object? ascending = freezed, - }) { - return _then(_value.copyWith( - index: freezed == index - ? _value.index - : index // ignore: cast_nullable_to_non_nullable - as int?, - ascending: freezed == ascending - ? _value.ascending - : ascending // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SortStateImplCopyWith<$Res> - implements $SortStateCopyWith<$Res> { - factory _$$SortStateImplCopyWith( - _$SortStateImpl value, $Res Function(_$SortStateImpl) then) = - __$$SortStateImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({int? index, bool? ascending}); -} - -/// @nodoc -class __$$SortStateImplCopyWithImpl<$Res> - extends _$SortStateCopyWithImpl<$Res, _$SortStateImpl> - implements _$$SortStateImplCopyWith<$Res> { - __$$SortStateImplCopyWithImpl( - _$SortStateImpl _value, $Res Function(_$SortStateImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? index = freezed, - Object? ascending = freezed, - }) { - return _then(_$SortStateImpl( - index: freezed == index - ? _value.index - : index // ignore: cast_nullable_to_non_nullable - as int?, - ascending: freezed == ascending - ? _value.ascending - : ascending // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$SortStateImpl implements _SortState { - _$SortStateImpl({this.index, this.ascending}); - - factory _$SortStateImpl.fromJson(Map json) => - _$$SortStateImplFromJson(json); - - @override - final int? index; - @override - final bool? ascending; - - @override - String toString() { - return 'SortState(index: $index, ascending: $ascending)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SortStateImpl && - (identical(other.index, index) || other.index == index) && - (identical(other.ascending, ascending) || - other.ascending == ascending)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, index, ascending); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$SortStateImplCopyWith<_$SortStateImpl> get copyWith => - __$$SortStateImplCopyWithImpl<_$SortStateImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SortStateImplToJson( - this, - ); - } -} - -abstract class _SortState implements SortState { - factory _SortState({final int? index, final bool? ascending}) = - _$SortStateImpl; - - factory _SortState.fromJson(Map json) = - _$SortStateImpl.fromJson; - - @override - int? get index; - @override - bool? get ascending; - @override - @JsonKey(ignore: true) - _$$SortStateImplCopyWith<_$SortStateImpl> get copyWith => - throw _privateConstructorUsedError; -} - -SelectValues _$SelectValuesFromJson(Map json) { - return _SelectValues.fromJson(json); -} - -/// @nodoc -mixin _$SelectValues { - String? get first => throw _privateConstructorUsedError; - String? get second => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $SelectValuesCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SelectValuesCopyWith<$Res> { - factory $SelectValuesCopyWith( - SelectValues value, $Res Function(SelectValues) then) = - _$SelectValuesCopyWithImpl<$Res, SelectValues>; - @useResult - $Res call({String? first, String? second}); -} - -/// @nodoc -class _$SelectValuesCopyWithImpl<$Res, $Val extends SelectValues> - implements $SelectValuesCopyWith<$Res> { - _$SelectValuesCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? first = freezed, - Object? second = freezed, - }) { - return _then(_value.copyWith( - first: freezed == first - ? _value.first - : first // ignore: cast_nullable_to_non_nullable - as String?, - second: freezed == second - ? _value.second - : second // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$SelectValuesImplCopyWith<$Res> - implements $SelectValuesCopyWith<$Res> { - factory _$$SelectValuesImplCopyWith( - _$SelectValuesImpl value, $Res Function(_$SelectValuesImpl) then) = - __$$SelectValuesImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? first, String? second}); -} - -/// @nodoc -class __$$SelectValuesImplCopyWithImpl<$Res> - extends _$SelectValuesCopyWithImpl<$Res, _$SelectValuesImpl> - implements _$$SelectValuesImplCopyWith<$Res> { - __$$SelectValuesImplCopyWithImpl( - _$SelectValuesImpl _value, $Res Function(_$SelectValuesImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? first = freezed, - Object? second = freezed, - }) { - return _then(_$SelectValuesImpl( - first: freezed == first - ? _value.first - : first // ignore: cast_nullable_to_non_nullable - as String?, - second: freezed == second - ? _value.second - : second // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$SelectValuesImpl implements _SelectValues { - _$SelectValuesImpl({this.first, this.second}); - - factory _$SelectValuesImpl.fromJson(Map json) => - _$$SelectValuesImplFromJson(json); - - @override - final String? first; - @override - final String? second; - - @override - String toString() { - return 'SelectValues(first: $first, second: $second)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SelectValuesImpl && - (identical(other.first, first) || other.first == first) && - (identical(other.second, second) || other.second == second)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, first, second); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$SelectValuesImplCopyWith<_$SelectValuesImpl> get copyWith => - __$$SelectValuesImplCopyWithImpl<_$SelectValuesImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SelectValuesImplToJson( - this, - ); - } -} - -abstract class _SelectValues implements SelectValues { - factory _SelectValues({final String? first, final String? second}) = - _$SelectValuesImpl; - - factory _SelectValues.fromJson(Map json) = - _$SelectValuesImpl.fromJson; - - @override - String? get first; - @override - String? get second; - @override - @JsonKey(ignore: true) - _$$SelectValuesImplCopyWith<_$SelectValuesImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/filter_state/filter_state_model.g.dart b/lib/src/features/browse_center/domain/filter_state/filter_state_model.g.dart deleted file mode 100644 index 4787aa43..00000000 --- a/lib/src/features/browse_center/domain/filter_state/filter_state_model.g.dart +++ /dev/null @@ -1,158 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'filter_state_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$FilterHeaderImpl _$$FilterHeaderImplFromJson(Map json) => - _$FilterHeaderImpl( - state: json['state'] as int?, - name: json['name'] as String?, - $type: json['type'] as String?, - ); - -Map _$$FilterHeaderImplToJson(_$FilterHeaderImpl instance) => - { - 'state': instance.state, - 'name': instance.name, - 'type': instance.$type, - }; - -_$FilterSeparatorImpl _$$FilterSeparatorImplFromJson( - Map json) => - _$FilterSeparatorImpl( - state: json['state'] as int?, - name: json['name'] as String?, - $type: json['type'] as String?, - ); - -Map _$$FilterSeparatorImplToJson( - _$FilterSeparatorImpl instance) => - { - 'state': instance.state, - 'name': instance.name, - 'type': instance.$type, - }; - -_$FilterTextImpl _$$FilterTextImplFromJson(Map json) => - _$FilterTextImpl( - state: json['state'] as String?, - name: json['name'] as String?, - $type: json['type'] as String?, - ); - -Map _$$FilterTextImplToJson(_$FilterTextImpl instance) => - { - 'state': instance.state, - 'name': instance.name, - 'type': instance.$type, - }; - -_$FilterCheckBoxImpl _$$FilterCheckBoxImplFromJson(Map json) => - _$FilterCheckBoxImpl( - state: json['state'] as bool?, - name: json['name'] as String?, - $type: json['type'] as String?, - ); - -Map _$$FilterCheckBoxImplToJson( - _$FilterCheckBoxImpl instance) => - { - 'state': instance.state, - 'name': instance.name, - 'type': instance.$type, - }; - -_$FilterTriStateImpl _$$FilterTriStateImplFromJson(Map json) => - _$FilterTriStateImpl( - state: json['state'] as int?, - name: json['name'] as String?, - $type: json['type'] as String?, - ); - -Map _$$FilterTriStateImplToJson( - _$FilterTriStateImpl instance) => - { - 'state': instance.state, - 'name': instance.name, - 'type': instance.$type, - }; - -_$FilterSortImpl _$$FilterSortImplFromJson(Map json) => - _$FilterSortImpl( - state: json['state'] == null - ? null - : SortState.fromJson(json['state'] as Map), - name: json['name'] as String?, - values: - (json['values'] as List?)?.map((e) => e as String).toList(), - $type: json['type'] as String?, - ); - -Map _$$FilterSortImplToJson(_$FilterSortImpl instance) => - { - 'state': instance.state?.toJson(), - 'name': instance.name, - 'values': instance.values, - 'type': instance.$type, - }; - -_$FilterSelectImpl _$$FilterSelectImplFromJson(Map json) => - _$FilterSelectImpl( - state: json['state'] as int?, - name: json['name'] as String?, - displayValues: (json['displayValues'] as List?) - ?.map((e) => e as String) - .toList(), - $type: json['type'] as String?, - ); - -Map _$$FilterSelectImplToJson(_$FilterSelectImpl instance) => - { - 'state': instance.state, - 'name': instance.name, - 'displayValues': instance.displayValues, - 'type': instance.$type, - }; - -_$FilterGroupImpl _$$FilterGroupImplFromJson(Map json) => - _$FilterGroupImpl( - state: (json['state'] as List?) - ?.map((e) => Filter.fromJson(e as Map)) - .toList(), - name: json['name'] as String?, - $type: json['type'] as String?, - ); - -Map _$$FilterGroupImplToJson(_$FilterGroupImpl instance) => - { - 'state': instance.state?.map((e) => e.toJson()).toList(), - 'name': instance.name, - 'type': instance.$type, - }; - -_$SortStateImpl _$$SortStateImplFromJson(Map json) => - _$SortStateImpl( - index: json['index'] as int?, - ascending: json['ascending'] as bool?, - ); - -Map _$$SortStateImplToJson(_$SortStateImpl instance) => - { - 'index': instance.index, - 'ascending': instance.ascending, - }; - -_$SelectValuesImpl _$$SelectValuesImplFromJson(Map json) => - _$SelectValuesImpl( - first: json['first'] as String?, - second: json['second'] as String?, - ); - -Map _$$SelectValuesImplToJson(_$SelectValuesImpl instance) => - { - 'first': instance.first, - 'second': instance.second, - }; diff --git a/lib/src/features/browse_center/domain/language/language_model.freezed.dart b/lib/src/features/browse_center/domain/language/language_model.freezed.dart index 55da1d48..ae926151 100644 --- a/lib/src/features/browse_center/domain/language/language_model.freezed.dart +++ b/lib/src/features/browse_center/domain/language/language_model.freezed.dart @@ -12,7 +12,7 @@ part of 'language_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); Language _$LanguageFromJson(Map json) { return _Language.fromJson(json); @@ -24,8 +24,12 @@ mixin _$Language { String? get name => throw _privateConstructorUsedError; String? get nativeName => throw _privateConstructorUsedError; + /// Serializes this Language to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of Language + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $LanguageCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -48,6 +52,8 @@ class _$LanguageCopyWithImpl<$Res, $Val extends Language> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Language + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -91,6 +97,8 @@ class __$$LanguageImplCopyWithImpl<$Res> _$LanguageImpl _value, $Res Function(_$LanguageImpl) _then) : super(_value, _then); + /// Create a copy of Language + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -146,11 +154,13 @@ class _$LanguageImpl extends _Language { other.nativeName == nativeName)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, code, name, nativeName); - @JsonKey(ignore: true) + /// Create a copy of Language + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$LanguageImplCopyWith<_$LanguageImpl> get copyWith => @@ -180,8 +190,11 @@ abstract class _Language extends Language { String? get name; @override String? get nativeName; + + /// Create a copy of Language + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$LanguageImplCopyWith<_$LanguageImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.ast.gql.dart b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.ast.gql.dart new file mode 100644 index 00000000..80a411ae --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.ast.gql.dart @@ -0,0 +1,48 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.ast.gql.dart' + as _i2; + +const SourceMangaPage = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SourceMangaPage'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaPayload'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'mangas'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'MangaFragment'), + directives: [], + ) + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ + SourceMangaPage, + _i2.MangaFragment, + _i3.ChapterFragment, + _i4.SourceFragment, +]); diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.dart b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.dart new file mode 100644 index 00000000..f4127377 --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.dart @@ -0,0 +1,1080 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i5; + +part 'manga_page_fragment.data.gql.g.dart'; + +abstract class GSourceMangaPage { + String get G__typename; + bool get hasNextPage; + BuiltList get mangas; + Map toJson(); +} + +abstract class GSourceMangaPage_mangas implements _i1.GMangaFragment { + @override + String get G__typename; + @override + _i2.GLongString? get age; + @override + String? get artist; + @override + String? get author; + @override + _i2.GLongString? get chaptersAge; + @override + _i2.GLongString? get chaptersLastFetchedAt; + @override + String? get description; + @override + int get downloadCount; + @override + BuiltList get genre; + @override + int get id; + @override + bool get inLibrary; + @override + _i2.GLongString get inLibraryAt; + @override + bool get initialized; + @override + _i2.GLongString? get lastFetchedAt; + @override + GSourceMangaPage_mangas_lastReadChapter? get lastReadChapter; + @override + GSourceMangaPage_mangas_latestFetchedChapter? get latestFetchedChapter; + @override + GSourceMangaPage_mangas_latestReadChapter? get latestReadChapter; + @override + GSourceMangaPage_mangas_latestUploadedChapter? get latestUploadedChapter; + @override + BuiltList get meta; + @override + String? get realUrl; + @override + GSourceMangaPage_mangas_source? get source; + @override + _i2.GLongString get sourceId; + @override + _i2.GMangaStatus get status; + @override + String? get thumbnailUrl; + @override + _i2.GLongString? get thumbnailUrlLastFetched; + @override + String get title; + @override + int get unreadCount; + @override + _i2.GUpdateStrategy get updateStrategy; + @override + String get url; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_lastReadChapter + implements _i1.GMangaFragment_lastReadChapter, _i3.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_lastReadChapter_meta + implements + _i1.GMangaFragment_lastReadChapter_meta, + _i3.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_latestFetchedChapter + implements _i1.GMangaFragment_latestFetchedChapter, _i3.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_latestFetchedChapter_meta + implements + _i1.GMangaFragment_latestFetchedChapter_meta, + _i3.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_latestReadChapter + implements _i1.GMangaFragment_latestReadChapter, _i3.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_latestReadChapter_meta + implements + _i1.GMangaFragment_latestReadChapter_meta, + _i3.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_latestUploadedChapter + implements _i1.GMangaFragment_latestUploadedChapter, _i3.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_latestUploadedChapter_meta + implements + _i1.GMangaFragment_latestUploadedChapter_meta, + _i3.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_meta implements _i1.GMangaFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_source + implements _i1.GMangaFragment_source, _i4.GSourceFragment { + @override + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i2.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GSourceMangaPage_mangas_source_extension get extension; + @override + Map toJson(); +} + +abstract class GSourceMangaPage_mangas_source_extension + implements + _i1.GMangaFragment_source_extension, + _i4.GSourceFragment_extension { + @override + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + @override + Map toJson(); +} + +abstract class GSourceMangaPageData + implements + Built, + GSourceMangaPage { + GSourceMangaPageData._(); + + factory GSourceMangaPageData( + [void Function(GSourceMangaPageDataBuilder b) updates]) = + _$GSourceMangaPageData; + + static void _initializeBuilder(GSourceMangaPageDataBuilder b) => + b..G__typename = 'FetchSourceMangaPayload'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get hasNextPage; + @override + BuiltList get mangas; + static Serializer get serializer => + _$gSourceMangaPageDataSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData.serializer, + this, + ) as Map); + + static GSourceMangaPageData? fromJson(Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas + implements + Built, + GSourceMangaPage_mangas, + _i1.GMangaFragment { + GSourceMangaPageData_mangas._(); + + factory GSourceMangaPageData_mangas( + [void Function(GSourceMangaPageData_mangasBuilder b) updates]) = + _$GSourceMangaPageData_mangas; + + static void _initializeBuilder(GSourceMangaPageData_mangasBuilder b) => + b..G__typename = 'MangaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i2.GLongString? get age; + @override + String? get artist; + @override + String? get author; + @override + _i2.GLongString? get chaptersAge; + @override + _i2.GLongString? get chaptersLastFetchedAt; + @override + String? get description; + @override + int get downloadCount; + @override + BuiltList get genre; + @override + int get id; + @override + bool get inLibrary; + @override + _i2.GLongString get inLibraryAt; + @override + bool get initialized; + @override + _i2.GLongString? get lastFetchedAt; + @override + GSourceMangaPageData_mangas_lastReadChapter? get lastReadChapter; + @override + GSourceMangaPageData_mangas_latestFetchedChapter? get latestFetchedChapter; + @override + GSourceMangaPageData_mangas_latestReadChapter? get latestReadChapter; + @override + GSourceMangaPageData_mangas_latestUploadedChapter? get latestUploadedChapter; + @override + BuiltList get meta; + @override + String? get realUrl; + @override + GSourceMangaPageData_mangas_source? get source; + @override + _i2.GLongString get sourceId; + @override + _i2.GMangaStatus get status; + @override + String? get thumbnailUrl; + @override + _i2.GLongString? get thumbnailUrlLastFetched; + @override + String get title; + @override + int get unreadCount; + @override + _i2.GUpdateStrategy get updateStrategy; + @override + String get url; + static Serializer get serializer => + _$gSourceMangaPageDataMangasSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas? fromJson(Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_lastReadChapter + implements + Built, + GSourceMangaPage_mangas_lastReadChapter, + _i1.GMangaFragment_lastReadChapter, + _i3.GChapterFragment { + GSourceMangaPageData_mangas_lastReadChapter._(); + + factory GSourceMangaPageData_mangas_lastReadChapter( + [void Function(GSourceMangaPageData_mangas_lastReadChapterBuilder b) + updates]) = _$GSourceMangaPageData_mangas_lastReadChapter; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_lastReadChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer + get serializer => _$gSourceMangaPageDataMangasLastReadChapterSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_lastReadChapter.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_lastReadChapter? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_lastReadChapter.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_lastReadChapter_meta + implements + Built, + GSourceMangaPage_mangas_lastReadChapter_meta, + _i1.GMangaFragment_lastReadChapter_meta, + _i3.GChapterFragment_meta { + GSourceMangaPageData_mangas_lastReadChapter_meta._(); + + factory GSourceMangaPageData_mangas_lastReadChapter_meta( + [void Function(GSourceMangaPageData_mangas_lastReadChapter_metaBuilder b) + updates]) = _$GSourceMangaPageData_mangas_lastReadChapter_meta; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_lastReadChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => + _$gSourceMangaPageDataMangasLastReadChapterMetaSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_lastReadChapter_meta.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_lastReadChapter_meta? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_lastReadChapter_meta.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_latestFetchedChapter + implements + Built, + GSourceMangaPage_mangas_latestFetchedChapter, + _i1.GMangaFragment_latestFetchedChapter, + _i3.GChapterFragment { + GSourceMangaPageData_mangas_latestFetchedChapter._(); + + factory GSourceMangaPageData_mangas_latestFetchedChapter( + [void Function(GSourceMangaPageData_mangas_latestFetchedChapterBuilder b) + updates]) = _$GSourceMangaPageData_mangas_latestFetchedChapter; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_latestFetchedChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer + get serializer => + _$gSourceMangaPageDataMangasLatestFetchedChapterSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_latestFetchedChapter.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_latestFetchedChapter? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_latestFetchedChapter.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_latestFetchedChapter_meta + implements + Built, + GSourceMangaPage_mangas_latestFetchedChapter_meta, + _i1.GMangaFragment_latestFetchedChapter_meta, + _i3.GChapterFragment_meta { + GSourceMangaPageData_mangas_latestFetchedChapter_meta._(); + + factory GSourceMangaPageData_mangas_latestFetchedChapter_meta( + [void Function( + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder b) + updates]) = _$GSourceMangaPageData_mangas_latestFetchedChapter_meta; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => + _$gSourceMangaPageDataMangasLatestFetchedChapterMetaSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_latestFetchedChapter_meta.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_latestFetchedChapter_meta? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_latestFetchedChapter_meta.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_latestReadChapter + implements + Built, + GSourceMangaPage_mangas_latestReadChapter, + _i1.GMangaFragment_latestReadChapter, + _i3.GChapterFragment { + GSourceMangaPageData_mangas_latestReadChapter._(); + + factory GSourceMangaPageData_mangas_latestReadChapter( + [void Function(GSourceMangaPageData_mangas_latestReadChapterBuilder b) + updates]) = _$GSourceMangaPageData_mangas_latestReadChapter; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_latestReadChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer + get serializer => _$gSourceMangaPageDataMangasLatestReadChapterSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_latestReadChapter.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_latestReadChapter? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_latestReadChapter.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_latestReadChapter_meta + implements + Built, + GSourceMangaPage_mangas_latestReadChapter_meta, + _i1.GMangaFragment_latestReadChapter_meta, + _i3.GChapterFragment_meta { + GSourceMangaPageData_mangas_latestReadChapter_meta._(); + + factory GSourceMangaPageData_mangas_latestReadChapter_meta( + [void Function( + GSourceMangaPageData_mangas_latestReadChapter_metaBuilder b) + updates]) = _$GSourceMangaPageData_mangas_latestReadChapter_meta; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_latestReadChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => + _$gSourceMangaPageDataMangasLatestReadChapterMetaSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_latestReadChapter_meta.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_latestReadChapter_meta? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_latestReadChapter_meta.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_latestUploadedChapter + implements + Built, + GSourceMangaPage_mangas_latestUploadedChapter, + _i1.GMangaFragment_latestUploadedChapter, + _i3.GChapterFragment { + GSourceMangaPageData_mangas_latestUploadedChapter._(); + + factory GSourceMangaPageData_mangas_latestUploadedChapter( + [void Function(GSourceMangaPageData_mangas_latestUploadedChapterBuilder b) + updates]) = _$GSourceMangaPageData_mangas_latestUploadedChapter; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_latestUploadedChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i2.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i2.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i2.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer + get serializer => + _$gSourceMangaPageDataMangasLatestUploadedChapterSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_latestUploadedChapter.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_latestUploadedChapter? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_latestUploadedChapter.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_latestUploadedChapter_meta + implements + Built, + GSourceMangaPage_mangas_latestUploadedChapter_meta, + _i1.GMangaFragment_latestUploadedChapter_meta, + _i3.GChapterFragment_meta { + GSourceMangaPageData_mangas_latestUploadedChapter_meta._(); + + factory GSourceMangaPageData_mangas_latestUploadedChapter_meta( + [void Function( + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder b) + updates]) = _$GSourceMangaPageData_mangas_latestUploadedChapter_meta; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => + _$gSourceMangaPageDataMangasLatestUploadedChapterMetaSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_latestUploadedChapter_meta.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_latestUploadedChapter_meta? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_latestUploadedChapter_meta.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_meta + implements + Built, + GSourceMangaPage_mangas_meta, + _i1.GMangaFragment_meta { + GSourceMangaPageData_mangas_meta._(); + + factory GSourceMangaPageData_mangas_meta( + [void Function(GSourceMangaPageData_mangas_metaBuilder b) updates]) = + _$GSourceMangaPageData_mangas_meta; + + static void _initializeBuilder(GSourceMangaPageData_mangas_metaBuilder b) => + b..G__typename = 'MangaMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gSourceMangaPageDataMangasMetaSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_meta.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_meta? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_meta.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_source + implements + Built, + GSourceMangaPage_mangas_source, + _i1.GMangaFragment_source, + _i4.GSourceFragment { + GSourceMangaPageData_mangas_source._(); + + factory GSourceMangaPageData_mangas_source( + [void Function(GSourceMangaPageData_mangas_sourceBuilder b) + updates]) = _$GSourceMangaPageData_mangas_source; + + static void _initializeBuilder(GSourceMangaPageData_mangas_sourceBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i2.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GSourceMangaPageData_mangas_source_extension get extension; + static Serializer get serializer => + _$gSourceMangaPageDataMangasSourceSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_source.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_source? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_source.serializer, + json, + ); +} + +abstract class GSourceMangaPageData_mangas_source_extension + implements + Built, + GSourceMangaPage_mangas_source_extension, + _i1.GMangaFragment_source_extension, + _i4.GSourceFragment_extension { + GSourceMangaPageData_mangas_source_extension._(); + + factory GSourceMangaPageData_mangas_source_extension( + [void Function(GSourceMangaPageData_mangas_source_extensionBuilder b) + updates]) = _$GSourceMangaPageData_mangas_source_extension; + + static void _initializeBuilder( + GSourceMangaPageData_mangas_source_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer + get serializer => _$gSourceMangaPageDataMangasSourceExtensionSerializer; + + @override + Map toJson() => (_i5.serializers.serializeWith( + GSourceMangaPageData_mangas_source_extension.serializer, + this, + ) as Map); + + static GSourceMangaPageData_mangas_source_extension? fromJson( + Map json) => + _i5.serializers.deserializeWith( + GSourceMangaPageData_mangas_source_extension.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.g.dart b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.g.dart new file mode 100644 index 00000000..41555a07 --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.g.dart @@ -0,0 +1,4978 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'manga_page_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceMangaPageDataSerializer = + new _$GSourceMangaPageDataSerializer(); +Serializer _$gSourceMangaPageDataMangasSerializer = + new _$GSourceMangaPageData_mangasSerializer(); +Serializer + _$gSourceMangaPageDataMangasLastReadChapterSerializer = + new _$GSourceMangaPageData_mangas_lastReadChapterSerializer(); +Serializer + _$gSourceMangaPageDataMangasLastReadChapterMetaSerializer = + new _$GSourceMangaPageData_mangas_lastReadChapter_metaSerializer(); +Serializer + _$gSourceMangaPageDataMangasLatestFetchedChapterSerializer = + new _$GSourceMangaPageData_mangas_latestFetchedChapterSerializer(); +Serializer + _$gSourceMangaPageDataMangasLatestFetchedChapterMetaSerializer = + new _$GSourceMangaPageData_mangas_latestFetchedChapter_metaSerializer(); +Serializer + _$gSourceMangaPageDataMangasLatestReadChapterSerializer = + new _$GSourceMangaPageData_mangas_latestReadChapterSerializer(); +Serializer + _$gSourceMangaPageDataMangasLatestReadChapterMetaSerializer = + new _$GSourceMangaPageData_mangas_latestReadChapter_metaSerializer(); +Serializer + _$gSourceMangaPageDataMangasLatestUploadedChapterSerializer = + new _$GSourceMangaPageData_mangas_latestUploadedChapterSerializer(); +Serializer + _$gSourceMangaPageDataMangasLatestUploadedChapterMetaSerializer = + new _$GSourceMangaPageData_mangas_latestUploadedChapter_metaSerializer(); +Serializer + _$gSourceMangaPageDataMangasMetaSerializer = + new _$GSourceMangaPageData_mangas_metaSerializer(); +Serializer + _$gSourceMangaPageDataMangasSourceSerializer = + new _$GSourceMangaPageData_mangas_sourceSerializer(); +Serializer + _$gSourceMangaPageDataMangasSourceExtensionSerializer = + new _$GSourceMangaPageData_mangas_source_extensionSerializer(); + +class _$GSourceMangaPageDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData, + _$GSourceMangaPageData + ]; + @override + final String wireName = 'GSourceMangaPageData'; + + @override + Iterable serialize( + Serializers serializers, GSourceMangaPageData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'hasNextPage', + serializers.serialize(object.hasNextPage, + specifiedType: const FullType(bool)), + 'mangas', + serializers.serialize(object.mangas, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceMangaPageData_mangas)])), + ]; + + return result; + } + + @override + GSourceMangaPageData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'hasNextPage': + result.hasNextPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'mangas': + result.mangas.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourceMangaPageData_mangas) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangasSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas, + _$GSourceMangaPageData_mangas + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas'; + + @override + Iterable serialize( + Serializers serializers, GSourceMangaPageData_mangas object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'downloadCount', + serializers.serialize(object.downloadCount, + specifiedType: const FullType(int)), + 'genre', + serializers.serialize(object.genre, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'inLibrary', + serializers.serialize(object.inLibrary, + specifiedType: const FullType(bool)), + 'inLibraryAt', + serializers.serialize(object.inLibraryAt, + specifiedType: const FullType(_i2.GLongString)), + 'initialized', + serializers.serialize(object.initialized, + specifiedType: const FullType(bool)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, + const [const FullType(GSourceMangaPageData_mangas_meta)])), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(_i2.GLongString)), + 'status', + serializers.serialize(object.status, + specifiedType: const FullType(_i2.GMangaStatus)), + 'title', + serializers.serialize(object.title, + specifiedType: const FullType(String)), + 'unreadCount', + serializers.serialize(object.unreadCount, + specifiedType: const FullType(int)), + 'updateStrategy', + serializers.serialize(object.updateStrategy, + specifiedType: const FullType(_i2.GUpdateStrategy)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.age; + if (value != null) { + result + ..add('age') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GLongString))); + } + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.chaptersAge; + if (value != null) { + result + ..add('chaptersAge') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GLongString))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GLongString))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GLongString))); + } + value = object.lastReadChapter; + if (value != null) { + result + ..add('lastReadChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GSourceMangaPageData_mangas_lastReadChapter))); + } + value = object.latestFetchedChapter; + if (value != null) { + result + ..add('latestFetchedChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GSourceMangaPageData_mangas_latestFetchedChapter))); + } + value = object.latestReadChapter; + if (value != null) { + result + ..add('latestReadChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GSourceMangaPageData_mangas_latestReadChapter))); + } + value = object.latestUploadedChapter; + if (value != null) { + result + ..add('latestUploadedChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType( + GSourceMangaPageData_mangas_latestUploadedChapter))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.source; + if (value != null) { + result + ..add('source') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSourceMangaPageData_mangas_source))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.thumbnailUrlLastFetched; + if (value != null) { + result + ..add('thumbnailUrlLastFetched') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GLongString))); + } + return result; + } + + @override + GSourceMangaPageData_mangas deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageData_mangasBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'age': + result.age.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'artist': + result.artist = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'author': + result.author = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'chaptersAge': + result.chaptersAge.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'downloadCount': + result.downloadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'initialized': + result.initialized = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'lastReadChapter': + result.lastReadChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GSourceMangaPageData_mangas_lastReadChapter))! + as GSourceMangaPageData_mangas_lastReadChapter); + break; + case 'latestFetchedChapter': + result.latestFetchedChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GSourceMangaPageData_mangas_latestFetchedChapter))! + as GSourceMangaPageData_mangas_latestFetchedChapter); + break; + case 'latestReadChapter': + result.latestReadChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GSourceMangaPageData_mangas_latestReadChapter))! + as GSourceMangaPageData_mangas_latestReadChapter); + break; + case 'latestUploadedChapter': + result.latestUploadedChapter.replace(serializers.deserialize(value, + specifiedType: const FullType( + GSourceMangaPageData_mangas_latestUploadedChapter))! + as GSourceMangaPageData_mangas_latestUploadedChapter); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourceMangaPageData_mangas_meta) + ]))! as BuiltList); + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: + const FullType(GSourceMangaPageData_mangas_source))! + as GSourceMangaPageData_mangas_source); + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(_i2.GMangaStatus))! + as _i2.GMangaStatus; + break; + case 'thumbnailUrl': + result.thumbnailUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'thumbnailUrlLastFetched': + result.thumbnailUrlLastFetched.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'unreadCount': + result.unreadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'updateStrategy': + result.updateStrategy = serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateStrategy))! + as _i2.GUpdateStrategy; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_lastReadChapterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_lastReadChapter, + _$GSourceMangaPageData_mangas_lastReadChapter + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_lastReadChapter'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_lastReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i2.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i2.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i2.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourceMangaPageData_mangas_lastReadChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceMangaPageData_mangas_lastReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageData_mangas_lastReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourceMangaPageData_mangas_lastReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_lastReadChapter_metaSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_lastReadChapter_meta, + _$GSourceMangaPageData_mangas_lastReadChapter_meta + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_lastReadChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_lastReadChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceMangaPageData_mangas_lastReadChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourceMangaPageData_mangas_lastReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_latestFetchedChapterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_latestFetchedChapter, + _$GSourceMangaPageData_mangas_latestFetchedChapter + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_latestFetchedChapter'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_latestFetchedChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i2.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i2.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i2.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GSourceMangaPageData_mangas_latestFetchedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceMangaPageData_mangas_latestFetchedChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourceMangaPageData_mangas_latestFetchedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GSourceMangaPageData_mangas_latestFetchedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_latestFetchedChapter_metaSerializer + implements + StructuredSerializer< + GSourceMangaPageData_mangas_latestFetchedChapter_meta> { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_latestFetchedChapter_meta, + _$GSourceMangaPageData_mangas_latestFetchedChapter_meta + ]; + @override + final String wireName = + 'GSourceMangaPageData_mangas_latestFetchedChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_latestFetchedChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceMangaPageData_mangas_latestFetchedChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_latestReadChapterSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_latestReadChapter, + _$GSourceMangaPageData_mangas_latestReadChapter + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_latestReadChapter'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_latestReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i2.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i2.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i2.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GSourceMangaPageData_mangas_latestReadChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceMangaPageData_mangas_latestReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageData_mangas_latestReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GSourceMangaPageData_mangas_latestReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_latestReadChapter_metaSerializer + implements + StructuredSerializer< + GSourceMangaPageData_mangas_latestReadChapter_meta> { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_latestReadChapter_meta, + _$GSourceMangaPageData_mangas_latestReadChapter_meta + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_latestReadChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_latestReadChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceMangaPageData_mangas_latestReadChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourceMangaPageData_mangas_latestReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_latestUploadedChapterSerializer + implements + StructuredSerializer< + GSourceMangaPageData_mangas_latestUploadedChapter> { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_latestUploadedChapter, + _$GSourceMangaPageData_mangas_latestUploadedChapter + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_latestUploadedChapter'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_latestUploadedChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i2.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i2.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i2.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GSourceMangaPageData_mangas_latestUploadedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceMangaPageData_mangas_latestUploadedChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourceMangaPageData_mangas_latestUploadedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GSourceMangaPageData_mangas_latestUploadedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_latestUploadedChapter_metaSerializer + implements + StructuredSerializer< + GSourceMangaPageData_mangas_latestUploadedChapter_meta> { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_latestUploadedChapter_meta, + _$GSourceMangaPageData_mangas_latestUploadedChapter_meta + ]; + @override + final String wireName = + 'GSourceMangaPageData_mangas_latestUploadedChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_latestUploadedChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceMangaPageData_mangas_latestUploadedChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_meta, + _$GSourceMangaPageData_mangas_meta + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_meta'; + + @override + Iterable serialize( + Serializers serializers, GSourceMangaPageData_mangas_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceMangaPageData_mangas_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageData_mangas_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_sourceSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_source, + _$GSourceMangaPageData_mangas_source + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_source'; + + @override + Iterable serialize( + Serializers serializers, GSourceMangaPageData_mangas_source object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i2.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: + const FullType(GSourceMangaPageData_mangas_source_extension)), + ]; + + return result; + } + + @override + GSourceMangaPageData_mangas_source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageData_mangas_sourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GLongString))! + as _i2.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: const FullType( + GSourceMangaPageData_mangas_source_extension))! + as GSourceMangaPageData_mangas_source_extension); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData_mangas_source_extensionSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageData_mangas_source_extension, + _$GSourceMangaPageData_mangas_source_extension + ]; + @override + final String wireName = 'GSourceMangaPageData_mangas_source_extension'; + + @override + Iterable serialize(Serializers serializers, + GSourceMangaPageData_mangas_source_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceMangaPageData_mangas_source_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageData_mangas_source_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageData extends GSourceMangaPageData { + @override + final String G__typename; + @override + final bool hasNextPage; + @override + final BuiltList mangas; + + factory _$GSourceMangaPageData( + [void Function(GSourceMangaPageDataBuilder)? updates]) => + (new GSourceMangaPageDataBuilder()..update(updates))._build(); + + _$GSourceMangaPageData._( + {required this.G__typename, + required this.hasNextPage, + required this.mangas}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceMangaPageData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GSourceMangaPageData', 'hasNextPage'); + BuiltValueNullFieldError.checkNotNull( + mangas, r'GSourceMangaPageData', 'mangas'); + } + + @override + GSourceMangaPageData rebuild( + void Function(GSourceMangaPageDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageDataBuilder toBuilder() => + new GSourceMangaPageDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData && + G__typename == other.G__typename && + hasNextPage == other.hasNextPage && + mangas == other.mangas; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, hasNextPage.hashCode); + _$hash = $jc(_$hash, mangas.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceMangaPageData') + ..add('G__typename', G__typename) + ..add('hasNextPage', hasNextPage) + ..add('mangas', mangas)) + .toString(); + } +} + +class GSourceMangaPageDataBuilder + implements Builder { + _$GSourceMangaPageData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _hasNextPage; + bool? get hasNextPage => _$this._hasNextPage; + set hasNextPage(bool? hasNextPage) => _$this._hasNextPage = hasNextPage; + + ListBuilder? _mangas; + ListBuilder get mangas => + _$this._mangas ??= new ListBuilder(); + set mangas(ListBuilder? mangas) => + _$this._mangas = mangas; + + GSourceMangaPageDataBuilder() { + GSourceMangaPageData._initializeBuilder(this); + } + + GSourceMangaPageDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _hasNextPage = $v.hasNextPage; + _mangas = $v.mangas.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData; + } + + @override + void update(void Function(GSourceMangaPageDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData build() => _build(); + + _$GSourceMangaPageData _build() { + _$GSourceMangaPageData _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceMangaPageData', 'G__typename'), + hasNextPage: BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GSourceMangaPageData', 'hasNextPage'), + mangas: mangas.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'mangas'; + mangas.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas extends GSourceMangaPageData_mangas { + @override + final String G__typename; + @override + final _i2.GLongString? age; + @override + final String? artist; + @override + final String? author; + @override + final _i2.GLongString? chaptersAge; + @override + final _i2.GLongString? chaptersLastFetchedAt; + @override + final String? description; + @override + final int downloadCount; + @override + final BuiltList genre; + @override + final int id; + @override + final bool inLibrary; + @override + final _i2.GLongString inLibraryAt; + @override + final bool initialized; + @override + final _i2.GLongString? lastFetchedAt; + @override + final GSourceMangaPageData_mangas_lastReadChapter? lastReadChapter; + @override + final GSourceMangaPageData_mangas_latestFetchedChapter? latestFetchedChapter; + @override + final GSourceMangaPageData_mangas_latestReadChapter? latestReadChapter; + @override + final GSourceMangaPageData_mangas_latestUploadedChapter? + latestUploadedChapter; + @override + final BuiltList meta; + @override + final String? realUrl; + @override + final GSourceMangaPageData_mangas_source? source; + @override + final _i2.GLongString sourceId; + @override + final _i2.GMangaStatus status; + @override + final String? thumbnailUrl; + @override + final _i2.GLongString? thumbnailUrlLastFetched; + @override + final String title; + @override + final int unreadCount; + @override + final _i2.GUpdateStrategy updateStrategy; + @override + final String url; + + factory _$GSourceMangaPageData_mangas( + [void Function(GSourceMangaPageData_mangasBuilder)? updates]) => + (new GSourceMangaPageData_mangasBuilder()..update(updates))._build(); + + _$GSourceMangaPageData_mangas._( + {required this.G__typename, + this.age, + this.artist, + this.author, + this.chaptersAge, + this.chaptersLastFetchedAt, + this.description, + required this.downloadCount, + required this.genre, + required this.id, + required this.inLibrary, + required this.inLibraryAt, + required this.initialized, + this.lastFetchedAt, + this.lastReadChapter, + this.latestFetchedChapter, + this.latestReadChapter, + this.latestUploadedChapter, + required this.meta, + this.realUrl, + this.source, + required this.sourceId, + required this.status, + this.thumbnailUrl, + this.thumbnailUrlLastFetched, + required this.title, + required this.unreadCount, + required this.updateStrategy, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceMangaPageData_mangas', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + downloadCount, r'GSourceMangaPageData_mangas', 'downloadCount'); + BuiltValueNullFieldError.checkNotNull( + genre, r'GSourceMangaPageData_mangas', 'genre'); + BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas', 'id'); + BuiltValueNullFieldError.checkNotNull( + inLibrary, r'GSourceMangaPageData_mangas', 'inLibrary'); + BuiltValueNullFieldError.checkNotNull( + inLibraryAt, r'GSourceMangaPageData_mangas', 'inLibraryAt'); + BuiltValueNullFieldError.checkNotNull( + initialized, r'GSourceMangaPageData_mangas', 'initialized'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GSourceMangaPageData_mangas', 'meta'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GSourceMangaPageData_mangas', 'sourceId'); + BuiltValueNullFieldError.checkNotNull( + status, r'GSourceMangaPageData_mangas', 'status'); + BuiltValueNullFieldError.checkNotNull( + title, r'GSourceMangaPageData_mangas', 'title'); + BuiltValueNullFieldError.checkNotNull( + unreadCount, r'GSourceMangaPageData_mangas', 'unreadCount'); + BuiltValueNullFieldError.checkNotNull( + updateStrategy, r'GSourceMangaPageData_mangas', 'updateStrategy'); + BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas', 'url'); + } + + @override + GSourceMangaPageData_mangas rebuild( + void Function(GSourceMangaPageData_mangasBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangasBuilder toBuilder() => + new GSourceMangaPageData_mangasBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas && + G__typename == other.G__typename && + age == other.age && + artist == other.artist && + author == other.author && + chaptersAge == other.chaptersAge && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + downloadCount == other.downloadCount && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + lastReadChapter == other.lastReadChapter && + latestFetchedChapter == other.latestFetchedChapter && + latestReadChapter == other.latestReadChapter && + latestUploadedChapter == other.latestUploadedChapter && + meta == other.meta && + realUrl == other.realUrl && + source == other.source && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + thumbnailUrlLastFetched == other.thumbnailUrlLastFetched && + title == other.title && + unreadCount == other.unreadCount && + updateStrategy == other.updateStrategy && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, age.hashCode); + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, chaptersAge.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, downloadCount.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, lastReadChapter.hashCode); + _$hash = $jc(_$hash, latestFetchedChapter.hashCode); + _$hash = $jc(_$hash, latestReadChapter.hashCode); + _$hash = $jc(_$hash, latestUploadedChapter.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, thumbnailUrlLastFetched.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, unreadCount.hashCode); + _$hash = $jc(_$hash, updateStrategy.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceMangaPageData_mangas') + ..add('G__typename', G__typename) + ..add('age', age) + ..add('artist', artist) + ..add('author', author) + ..add('chaptersAge', chaptersAge) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('downloadCount', downloadCount) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('lastReadChapter', lastReadChapter) + ..add('latestFetchedChapter', latestFetchedChapter) + ..add('latestReadChapter', latestReadChapter) + ..add('latestUploadedChapter', latestUploadedChapter) + ..add('meta', meta) + ..add('realUrl', realUrl) + ..add('source', source) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('thumbnailUrlLastFetched', thumbnailUrlLastFetched) + ..add('title', title) + ..add('unreadCount', unreadCount) + ..add('updateStrategy', updateStrategy) + ..add('url', url)) + .toString(); + } +} + +class GSourceMangaPageData_mangasBuilder + implements + Builder { + _$GSourceMangaPageData_mangas? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i2.GLongStringBuilder? _age; + _i2.GLongStringBuilder get age => + _$this._age ??= new _i2.GLongStringBuilder(); + set age(_i2.GLongStringBuilder? age) => _$this._age = age; + + String? _artist; + String? get artist => _$this._artist; + set artist(String? artist) => _$this._artist = artist; + + String? _author; + String? get author => _$this._author; + set author(String? author) => _$this._author = author; + + _i2.GLongStringBuilder? _chaptersAge; + _i2.GLongStringBuilder get chaptersAge => + _$this._chaptersAge ??= new _i2.GLongStringBuilder(); + set chaptersAge(_i2.GLongStringBuilder? chaptersAge) => + _$this._chaptersAge = chaptersAge; + + _i2.GLongStringBuilder? _chaptersLastFetchedAt; + _i2.GLongStringBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new _i2.GLongStringBuilder(); + set chaptersLastFetchedAt(_i2.GLongStringBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + int? _downloadCount; + int? get downloadCount => _$this._downloadCount; + set downloadCount(int? downloadCount) => + _$this._downloadCount = downloadCount; + + ListBuilder? _genre; + ListBuilder get genre => _$this._genre ??= new ListBuilder(); + set genre(ListBuilder? genre) => _$this._genre = genre; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + _i2.GLongStringBuilder? _inLibraryAt; + _i2.GLongStringBuilder get inLibraryAt => + _$this._inLibraryAt ??= new _i2.GLongStringBuilder(); + set inLibraryAt(_i2.GLongStringBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + bool? _initialized; + bool? get initialized => _$this._initialized; + set initialized(bool? initialized) => _$this._initialized = initialized; + + _i2.GLongStringBuilder? _lastFetchedAt; + _i2.GLongStringBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new _i2.GLongStringBuilder(); + set lastFetchedAt(_i2.GLongStringBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + GSourceMangaPageData_mangas_lastReadChapterBuilder? _lastReadChapter; + GSourceMangaPageData_mangas_lastReadChapterBuilder get lastReadChapter => + _$this._lastReadChapter ??= + new GSourceMangaPageData_mangas_lastReadChapterBuilder(); + set lastReadChapter( + GSourceMangaPageData_mangas_lastReadChapterBuilder? + lastReadChapter) => + _$this._lastReadChapter = lastReadChapter; + + GSourceMangaPageData_mangas_latestFetchedChapterBuilder? + _latestFetchedChapter; + GSourceMangaPageData_mangas_latestFetchedChapterBuilder + get latestFetchedChapter => _$this._latestFetchedChapter ??= + new GSourceMangaPageData_mangas_latestFetchedChapterBuilder(); + set latestFetchedChapter( + GSourceMangaPageData_mangas_latestFetchedChapterBuilder? + latestFetchedChapter) => + _$this._latestFetchedChapter = latestFetchedChapter; + + GSourceMangaPageData_mangas_latestReadChapterBuilder? _latestReadChapter; + GSourceMangaPageData_mangas_latestReadChapterBuilder get latestReadChapter => + _$this._latestReadChapter ??= + new GSourceMangaPageData_mangas_latestReadChapterBuilder(); + set latestReadChapter( + GSourceMangaPageData_mangas_latestReadChapterBuilder? + latestReadChapter) => + _$this._latestReadChapter = latestReadChapter; + + GSourceMangaPageData_mangas_latestUploadedChapterBuilder? + _latestUploadedChapter; + GSourceMangaPageData_mangas_latestUploadedChapterBuilder + get latestUploadedChapter => _$this._latestUploadedChapter ??= + new GSourceMangaPageData_mangas_latestUploadedChapterBuilder(); + set latestUploadedChapter( + GSourceMangaPageData_mangas_latestUploadedChapterBuilder? + latestUploadedChapter) => + _$this._latestUploadedChapter = latestUploadedChapter; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + GSourceMangaPageData_mangas_sourceBuilder? _source; + GSourceMangaPageData_mangas_sourceBuilder get source => + _$this._source ??= new GSourceMangaPageData_mangas_sourceBuilder(); + set source(GSourceMangaPageData_mangas_sourceBuilder? source) => + _$this._source = source; + + _i2.GLongStringBuilder? _sourceId; + _i2.GLongStringBuilder get sourceId => + _$this._sourceId ??= new _i2.GLongStringBuilder(); + set sourceId(_i2.GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + _i2.GMangaStatus? _status; + _i2.GMangaStatus? get status => _$this._status; + set status(_i2.GMangaStatus? status) => _$this._status = status; + + String? _thumbnailUrl; + String? get thumbnailUrl => _$this._thumbnailUrl; + set thumbnailUrl(String? thumbnailUrl) => _$this._thumbnailUrl = thumbnailUrl; + + _i2.GLongStringBuilder? _thumbnailUrlLastFetched; + _i2.GLongStringBuilder get thumbnailUrlLastFetched => + _$this._thumbnailUrlLastFetched ??= new _i2.GLongStringBuilder(); + set thumbnailUrlLastFetched( + _i2.GLongStringBuilder? thumbnailUrlLastFetched) => + _$this._thumbnailUrlLastFetched = thumbnailUrlLastFetched; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + int? _unreadCount; + int? get unreadCount => _$this._unreadCount; + set unreadCount(int? unreadCount) => _$this._unreadCount = unreadCount; + + _i2.GUpdateStrategy? _updateStrategy; + _i2.GUpdateStrategy? get updateStrategy => _$this._updateStrategy; + set updateStrategy(_i2.GUpdateStrategy? updateStrategy) => + _$this._updateStrategy = updateStrategy; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GSourceMangaPageData_mangasBuilder() { + GSourceMangaPageData_mangas._initializeBuilder(this); + } + + GSourceMangaPageData_mangasBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _age = $v.age?.toBuilder(); + _artist = $v.artist; + _author = $v.author; + _chaptersAge = $v.chaptersAge?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description; + _downloadCount = $v.downloadCount; + _genre = $v.genre.toBuilder(); + _id = $v.id; + _inLibrary = $v.inLibrary; + _inLibraryAt = $v.inLibraryAt.toBuilder(); + _initialized = $v.initialized; + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _lastReadChapter = $v.lastReadChapter?.toBuilder(); + _latestFetchedChapter = $v.latestFetchedChapter?.toBuilder(); + _latestReadChapter = $v.latestReadChapter?.toBuilder(); + _latestUploadedChapter = $v.latestUploadedChapter?.toBuilder(); + _meta = $v.meta.toBuilder(); + _realUrl = $v.realUrl; + _source = $v.source?.toBuilder(); + _sourceId = $v.sourceId.toBuilder(); + _status = $v.status; + _thumbnailUrl = $v.thumbnailUrl; + _thumbnailUrlLastFetched = $v.thumbnailUrlLastFetched?.toBuilder(); + _title = $v.title; + _unreadCount = $v.unreadCount; + _updateStrategy = $v.updateStrategy; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas; + } + + @override + void update(void Function(GSourceMangaPageData_mangasBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas build() => _build(); + + _$GSourceMangaPageData_mangas _build() { + _$GSourceMangaPageData_mangas _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageData_mangas._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceMangaPageData_mangas', 'G__typename'), + age: _age?.build(), + artist: artist, + author: author, + chaptersAge: _chaptersAge?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: description, + downloadCount: BuiltValueNullFieldError.checkNotNull( + downloadCount, r'GSourceMangaPageData_mangas', 'downloadCount'), + genre: genre.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas', 'id'), + inLibrary: BuiltValueNullFieldError.checkNotNull( + inLibrary, r'GSourceMangaPageData_mangas', 'inLibrary'), + inLibraryAt: inLibraryAt.build(), + initialized: BuiltValueNullFieldError.checkNotNull( + initialized, r'GSourceMangaPageData_mangas', 'initialized'), + lastFetchedAt: _lastFetchedAt?.build(), + lastReadChapter: _lastReadChapter?.build(), + latestFetchedChapter: _latestFetchedChapter?.build(), + latestReadChapter: _latestReadChapter?.build(), + latestUploadedChapter: _latestUploadedChapter?.build(), + meta: meta.build(), + realUrl: realUrl, + source: _source?.build(), + sourceId: sourceId.build(), + status: BuiltValueNullFieldError.checkNotNull( + status, r'GSourceMangaPageData_mangas', 'status'), + thumbnailUrl: thumbnailUrl, + thumbnailUrlLastFetched: _thumbnailUrlLastFetched?.build(), + title: BuiltValueNullFieldError.checkNotNull( + title, r'GSourceMangaPageData_mangas', 'title'), + unreadCount: BuiltValueNullFieldError.checkNotNull( + unreadCount, r'GSourceMangaPageData_mangas', 'unreadCount'), + updateStrategy: BuiltValueNullFieldError.checkNotNull( + updateStrategy, + r'GSourceMangaPageData_mangas', + 'updateStrategy'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas', 'url'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'age'; + _age?.build(); + + _$failedField = 'chaptersAge'; + _chaptersAge?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + + _$failedField = 'genre'; + genre.build(); + + _$failedField = 'inLibraryAt'; + inLibraryAt.build(); + + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + _$failedField = 'lastReadChapter'; + _lastReadChapter?.build(); + _$failedField = 'latestFetchedChapter'; + _latestFetchedChapter?.build(); + _$failedField = 'latestReadChapter'; + _latestReadChapter?.build(); + _$failedField = 'latestUploadedChapter'; + _latestUploadedChapter?.build(); + _$failedField = 'meta'; + meta.build(); + + _$failedField = 'source'; + _source?.build(); + _$failedField = 'sourceId'; + sourceId.build(); + + _$failedField = 'thumbnailUrlLastFetched'; + _thumbnailUrlLastFetched?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageData_mangas', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_lastReadChapter + extends GSourceMangaPageData_mangas_lastReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i2.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i2.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i2.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GSourceMangaPageData_mangas_lastReadChapter( + [void Function(GSourceMangaPageData_mangas_lastReadChapterBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_lastReadChapterBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_lastReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_lastReadChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GSourceMangaPageData_mangas_lastReadChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GSourceMangaPageData_mangas_lastReadChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_lastReadChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GSourceMangaPageData_mangas_lastReadChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GSourceMangaPageData_mangas_lastReadChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GSourceMangaPageData_mangas_lastReadChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GSourceMangaPageData_mangas_lastReadChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull(lastReadAt, + r'GSourceMangaPageData_mangas_lastReadChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GSourceMangaPageData_mangas_lastReadChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_lastReadChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GSourceMangaPageData_mangas_lastReadChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GSourceMangaPageData_mangas_lastReadChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull(uploadDate, + r'GSourceMangaPageData_mangas_lastReadChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas_lastReadChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GSourceMangaPageData_mangas_lastReadChapter', 'meta'); + } + + @override + GSourceMangaPageData_mangas_lastReadChapter rebuild( + void Function(GSourceMangaPageData_mangas_lastReadChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_lastReadChapterBuilder toBuilder() => + new GSourceMangaPageData_mangas_lastReadChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_lastReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_lastReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_lastReadChapterBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_lastReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i2.GLongStringBuilder? _fetchedAt; + _i2.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i2.GLongStringBuilder(); + set fetchedAt(_i2.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i2.GLongStringBuilder? _lastReadAt; + _i2.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i2.GLongStringBuilder(); + set lastReadAt(_i2.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i2.GLongStringBuilder? _uploadDate; + _i2.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i2.GLongStringBuilder(); + set uploadDate(_i2.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta( + ListBuilder? + meta) => + _$this._meta = meta; + + GSourceMangaPageData_mangas_lastReadChapterBuilder() { + GSourceMangaPageData_mangas_lastReadChapter._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_lastReadChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_lastReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_lastReadChapter; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_lastReadChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_lastReadChapter build() => _build(); + + _$GSourceMangaPageData_mangas_lastReadChapter _build() { + _$GSourceMangaPageData_mangas_lastReadChapter _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageData_mangas_lastReadChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_lastReadChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GSourceMangaPageData_mangas_lastReadChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_lastReadChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GSourceMangaPageData_mangas_lastReadChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GSourceMangaPageData_mangas_lastReadChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull(isRead, + r'GSourceMangaPageData_mangas_lastReadChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GSourceMangaPageData_mangas_lastReadChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, + r'GSourceMangaPageData_mangas_lastReadChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_lastReadChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, + r'GSourceMangaPageData_mangas_lastReadChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GSourceMangaPageData_mangas_lastReadChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas_lastReadChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageData_mangas_lastReadChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_lastReadChapter_meta + extends GSourceMangaPageData_mangas_lastReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GSourceMangaPageData_mangas_lastReadChapter_meta( + [void Function( + GSourceMangaPageData_mangas_lastReadChapter_metaBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_lastReadChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_lastReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_lastReadChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMangaPageData_mangas_lastReadChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMangaPageData_mangas_lastReadChapter_meta', 'value'); + } + + @override + GSourceMangaPageData_mangas_lastReadChapter_meta rebuild( + void Function(GSourceMangaPageData_mangas_lastReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_lastReadChapter_metaBuilder toBuilder() => + new GSourceMangaPageData_mangas_lastReadChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_lastReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_lastReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_lastReadChapter_metaBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_lastReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GSourceMangaPageData_mangas_lastReadChapter_metaBuilder() { + GSourceMangaPageData_mangas_lastReadChapter_meta._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_lastReadChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_lastReadChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_lastReadChapter_meta; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_lastReadChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_lastReadChapter_meta build() => _build(); + + _$GSourceMangaPageData_mangas_lastReadChapter_meta _build() { + final _$result = _$v ?? + new _$GSourceMangaPageData_mangas_lastReadChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_lastReadChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMangaPageData_mangas_lastReadChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull(value, + r'GSourceMangaPageData_mangas_lastReadChapter_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_latestFetchedChapter + extends GSourceMangaPageData_mangas_latestFetchedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i2.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i2.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i2.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GSourceMangaPageData_mangas_latestFetchedChapter( + [void Function( + GSourceMangaPageData_mangas_latestFetchedChapterBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_latestFetchedChapterBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_latestFetchedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull(fetchedAt, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_latestFetchedChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GSourceMangaPageData_mangas_latestFetchedChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull(lastReadAt, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull(mangaId, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_latestFetchedChapter', 'name'); + BuiltValueNullFieldError.checkNotNull(pageCount, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull(uploadDate, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas_latestFetchedChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GSourceMangaPageData_mangas_latestFetchedChapter', 'meta'); + } + + @override + GSourceMangaPageData_mangas_latestFetchedChapter rebuild( + void Function(GSourceMangaPageData_mangas_latestFetchedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_latestFetchedChapterBuilder toBuilder() => + new GSourceMangaPageData_mangas_latestFetchedChapterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_latestFetchedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_latestFetchedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_latestFetchedChapterBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_latestFetchedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i2.GLongStringBuilder? _fetchedAt; + _i2.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i2.GLongStringBuilder(); + set fetchedAt(_i2.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i2.GLongStringBuilder? _lastReadAt; + _i2.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i2.GLongStringBuilder(); + set lastReadAt(_i2.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i2.GLongStringBuilder? _uploadDate; + _i2.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i2.GLongStringBuilder(); + set uploadDate(_i2.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder< + GSourceMangaPageData_mangas_latestFetchedChapter_meta> get meta => _$this + ._meta ??= + new ListBuilder(); + set meta( + ListBuilder? + meta) => + _$this._meta = meta; + + GSourceMangaPageData_mangas_latestFetchedChapterBuilder() { + GSourceMangaPageData_mangas_latestFetchedChapter._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_latestFetchedChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_latestFetchedChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_latestFetchedChapter; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_latestFetchedChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_latestFetchedChapter build() => _build(); + + _$GSourceMangaPageData_mangas_latestFetchedChapter _build() { + _$GSourceMangaPageData_mangas_latestFetchedChapter _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageData_mangas_latestFetchedChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestFetchedChapter', + 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GSourceMangaPageData_mangas_latestFetchedChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_latestFetchedChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GSourceMangaPageData_mangas_latestFetchedChapter', + 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GSourceMangaPageData_mangas_latestFetchedChapter', + 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull(isRead, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GSourceMangaPageData_mangas_latestFetchedChapter', + 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GSourceMangaPageData_mangas_latestFetchedChapter', + 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GSourceMangaPageData_mangas_latestFetchedChapter', + 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull(url, + r'GSourceMangaPageData_mangas_latestFetchedChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageData_mangas_latestFetchedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_latestFetchedChapter_meta + extends GSourceMangaPageData_mangas_latestFetchedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GSourceMangaPageData_mangas_latestFetchedChapter_meta( + [void Function( + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_latestFetchedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestFetchedChapter_meta', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMangaPageData_mangas_latestFetchedChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull(value, + r'GSourceMangaPageData_mangas_latestFetchedChapter_meta', 'value'); + } + + @override + GSourceMangaPageData_mangas_latestFetchedChapter_meta rebuild( + void Function( + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder toBuilder() => + new GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_latestFetchedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_latestFetchedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_latestFetchedChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder() { + GSourceMangaPageData_mangas_latestFetchedChapter_meta._initializeBuilder( + this); + } + + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_latestFetchedChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_latestFetchedChapter_meta; + } + + @override + void update( + void Function( + GSourceMangaPageData_mangas_latestFetchedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_latestFetchedChapter_meta build() => _build(); + + _$GSourceMangaPageData_mangas_latestFetchedChapter_meta _build() { + final _$result = _$v ?? + new _$GSourceMangaPageData_mangas_latestFetchedChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestFetchedChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull(key, + r'GSourceMangaPageData_mangas_latestFetchedChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'GSourceMangaPageData_mangas_latestFetchedChapter_meta', + 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_latestReadChapter + extends GSourceMangaPageData_mangas_latestReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i2.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i2.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i2.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GSourceMangaPageData_mangas_latestReadChapter( + [void Function(GSourceMangaPageData_mangas_latestReadChapterBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_latestReadChapterBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_latestReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_latestReadChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GSourceMangaPageData_mangas_latestReadChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull(fetchedAt, + r'GSourceMangaPageData_mangas_latestReadChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_latestReadChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GSourceMangaPageData_mangas_latestReadChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GSourceMangaPageData_mangas_latestReadChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GSourceMangaPageData_mangas_latestReadChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GSourceMangaPageData_mangas_latestReadChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull(lastReadAt, + r'GSourceMangaPageData_mangas_latestReadChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GSourceMangaPageData_mangas_latestReadChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_latestReadChapter', 'name'); + BuiltValueNullFieldError.checkNotNull(pageCount, + r'GSourceMangaPageData_mangas_latestReadChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GSourceMangaPageData_mangas_latestReadChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull(uploadDate, + r'GSourceMangaPageData_mangas_latestReadChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas_latestReadChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GSourceMangaPageData_mangas_latestReadChapter', 'meta'); + } + + @override + GSourceMangaPageData_mangas_latestReadChapter rebuild( + void Function(GSourceMangaPageData_mangas_latestReadChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_latestReadChapterBuilder toBuilder() => + new GSourceMangaPageData_mangas_latestReadChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_latestReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_latestReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_latestReadChapterBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_latestReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i2.GLongStringBuilder? _fetchedAt; + _i2.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i2.GLongStringBuilder(); + set fetchedAt(_i2.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i2.GLongStringBuilder? _lastReadAt; + _i2.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i2.GLongStringBuilder(); + set lastReadAt(_i2.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i2.GLongStringBuilder? _uploadDate; + _i2.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i2.GLongStringBuilder(); + set uploadDate(_i2.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta( + ListBuilder? + meta) => + _$this._meta = meta; + + GSourceMangaPageData_mangas_latestReadChapterBuilder() { + GSourceMangaPageData_mangas_latestReadChapter._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_latestReadChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_latestReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_latestReadChapter; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_latestReadChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_latestReadChapter build() => _build(); + + _$GSourceMangaPageData_mangas_latestReadChapter _build() { + _$GSourceMangaPageData_mangas_latestReadChapter _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageData_mangas_latestReadChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestReadChapter', + 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GSourceMangaPageData_mangas_latestReadChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_latestReadChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GSourceMangaPageData_mangas_latestReadChapter', + 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GSourceMangaPageData_mangas_latestReadChapter', + 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull(isRead, + r'GSourceMangaPageData_mangas_latestReadChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GSourceMangaPageData_mangas_latestReadChapter', + 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, + r'GSourceMangaPageData_mangas_latestReadChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_latestReadChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, + r'GSourceMangaPageData_mangas_latestReadChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GSourceMangaPageData_mangas_latestReadChapter', + 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas_latestReadChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageData_mangas_latestReadChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_latestReadChapter_meta + extends GSourceMangaPageData_mangas_latestReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GSourceMangaPageData_mangas_latestReadChapter_meta( + [void Function( + GSourceMangaPageData_mangas_latestReadChapter_metaBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_latestReadChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_latestReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_latestReadChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMangaPageData_mangas_latestReadChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMangaPageData_mangas_latestReadChapter_meta', 'value'); + } + + @override + GSourceMangaPageData_mangas_latestReadChapter_meta rebuild( + void Function( + GSourceMangaPageData_mangas_latestReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_latestReadChapter_metaBuilder toBuilder() => + new GSourceMangaPageData_mangas_latestReadChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_latestReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_latestReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_latestReadChapter_metaBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_latestReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GSourceMangaPageData_mangas_latestReadChapter_metaBuilder() { + GSourceMangaPageData_mangas_latestReadChapter_meta._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_latestReadChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_latestReadChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_latestReadChapter_meta; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_latestReadChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_latestReadChapter_meta build() => _build(); + + _$GSourceMangaPageData_mangas_latestReadChapter_meta _build() { + final _$result = _$v ?? + new _$GSourceMangaPageData_mangas_latestReadChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestReadChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull(key, + r'GSourceMangaPageData_mangas_latestReadChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull(value, + r'GSourceMangaPageData_mangas_latestReadChapter_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_latestUploadedChapter + extends GSourceMangaPageData_mangas_latestUploadedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i2.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i2.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i2.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GSourceMangaPageData_mangas_latestUploadedChapter( + [void Function( + GSourceMangaPageData_mangas_latestUploadedChapterBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_latestUploadedChapterBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_latestUploadedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull(fetchedAt, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_latestUploadedChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GSourceMangaPageData_mangas_latestUploadedChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull(lastReadAt, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull(mangaId, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_latestUploadedChapter', 'name'); + BuiltValueNullFieldError.checkNotNull(pageCount, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull(uploadDate, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GSourceMangaPageData_mangas_latestUploadedChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GSourceMangaPageData_mangas_latestUploadedChapter', 'meta'); + } + + @override + GSourceMangaPageData_mangas_latestUploadedChapter rebuild( + void Function( + GSourceMangaPageData_mangas_latestUploadedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_latestUploadedChapterBuilder toBuilder() => + new GSourceMangaPageData_mangas_latestUploadedChapterBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_latestUploadedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_latestUploadedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_latestUploadedChapterBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_latestUploadedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i2.GLongStringBuilder? _fetchedAt; + _i2.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i2.GLongStringBuilder(); + set fetchedAt(_i2.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i2.GLongStringBuilder? _lastReadAt; + _i2.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i2.GLongStringBuilder(); + set lastReadAt(_i2.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i2.GLongStringBuilder? _uploadDate; + _i2.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i2.GLongStringBuilder(); + set uploadDate(_i2.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder< + GSourceMangaPageData_mangas_latestUploadedChapter_meta> get meta => _$this + ._meta ??= + new ListBuilder(); + set meta( + ListBuilder? + meta) => + _$this._meta = meta; + + GSourceMangaPageData_mangas_latestUploadedChapterBuilder() { + GSourceMangaPageData_mangas_latestUploadedChapter._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_latestUploadedChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_latestUploadedChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_latestUploadedChapter; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_latestUploadedChapterBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_latestUploadedChapter build() => _build(); + + _$GSourceMangaPageData_mangas_latestUploadedChapter _build() { + _$GSourceMangaPageData_mangas_latestUploadedChapter _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageData_mangas_latestUploadedChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_latestUploadedChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull(isRead, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, + r'GSourceMangaPageData_mangas_latestUploadedChapter', + 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull(url, + r'GSourceMangaPageData_mangas_latestUploadedChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageData_mangas_latestUploadedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_latestUploadedChapter_meta + extends GSourceMangaPageData_mangas_latestUploadedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GSourceMangaPageData_mangas_latestUploadedChapter_meta( + [void Function( + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_latestUploadedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestUploadedChapter_meta', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMangaPageData_mangas_latestUploadedChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull(value, + r'GSourceMangaPageData_mangas_latestUploadedChapter_meta', 'value'); + } + + @override + GSourceMangaPageData_mangas_latestUploadedChapter_meta rebuild( + void Function( + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder toBuilder() => + new GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_latestUploadedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_latestUploadedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_latestUploadedChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder() { + GSourceMangaPageData_mangas_latestUploadedChapter_meta._initializeBuilder( + this); + } + + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_latestUploadedChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_latestUploadedChapter_meta; + } + + @override + void update( + void Function( + GSourceMangaPageData_mangas_latestUploadedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_latestUploadedChapter_meta build() => _build(); + + _$GSourceMangaPageData_mangas_latestUploadedChapter_meta _build() { + final _$result = _$v ?? + new _$GSourceMangaPageData_mangas_latestUploadedChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GSourceMangaPageData_mangas_latestUploadedChapter_meta', + 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull(key, + r'GSourceMangaPageData_mangas_latestUploadedChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'GSourceMangaPageData_mangas_latestUploadedChapter_meta', + 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_meta + extends GSourceMangaPageData_mangas_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GSourceMangaPageData_mangas_meta( + [void Function(GSourceMangaPageData_mangas_metaBuilder)? updates]) => + (new GSourceMangaPageData_mangas_metaBuilder()..update(updates))._build(); + + _$GSourceMangaPageData_mangas_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceMangaPageData_mangas_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMangaPageData_mangas_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMangaPageData_mangas_meta', 'value'); + } + + @override + GSourceMangaPageData_mangas_meta rebuild( + void Function(GSourceMangaPageData_mangas_metaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_metaBuilder toBuilder() => + new GSourceMangaPageData_mangas_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceMangaPageData_mangas_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_metaBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GSourceMangaPageData_mangas_metaBuilder() { + GSourceMangaPageData_mangas_meta._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_meta; + } + + @override + void update(void Function(GSourceMangaPageData_mangas_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_meta build() => _build(); + + _$GSourceMangaPageData_mangas_meta _build() { + final _$result = _$v ?? + new _$GSourceMangaPageData_mangas_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceMangaPageData_mangas_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMangaPageData_mangas_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMangaPageData_mangas_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_source + extends GSourceMangaPageData_mangas_source { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i2.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GSourceMangaPageData_mangas_source_extension extension; + + factory _$GSourceMangaPageData_mangas_source( + [void Function(GSourceMangaPageData_mangas_sourceBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_sourceBuilder()..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_source._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceMangaPageData_mangas_source', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceMangaPageData_mangas_source', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceMangaPageData_mangas_source', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + id, r'GSourceMangaPageData_mangas_source', 'id'); + BuiltValueNullFieldError.checkNotNull(isConfigurable, + r'GSourceMangaPageData_mangas_source', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceMangaPageData_mangas_source', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceMangaPageData_mangas_source', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_source', 'name'); + BuiltValueNullFieldError.checkNotNull(supportsLatest, + r'GSourceMangaPageData_mangas_source', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GSourceMangaPageData_mangas_source', 'extension'); + } + + @override + GSourceMangaPageData_mangas_source rebuild( + void Function(GSourceMangaPageData_mangas_sourceBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_sourceBuilder toBuilder() => + new GSourceMangaPageData_mangas_sourceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_source && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceMangaPageData_mangas_source') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_sourceBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_source? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i2.GLongStringBuilder? _id; + _i2.GLongStringBuilder get id => _$this._id ??= new _i2.GLongStringBuilder(); + set id(_i2.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GSourceMangaPageData_mangas_source_extensionBuilder? _extension; + GSourceMangaPageData_mangas_source_extensionBuilder get extension => + _$this._extension ??= + new GSourceMangaPageData_mangas_source_extensionBuilder(); + set extension( + GSourceMangaPageData_mangas_source_extensionBuilder? extension) => + _$this._extension = extension; + + GSourceMangaPageData_mangas_sourceBuilder() { + GSourceMangaPageData_mangas_source._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_sourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_source; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_sourceBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_source build() => _build(); + + _$GSourceMangaPageData_mangas_source _build() { + _$GSourceMangaPageData_mangas_source _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageData_mangas_source._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_source', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull(displayName, + r'GSourceMangaPageData_mangas_source', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceMangaPageData_mangas_source', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, + r'GSourceMangaPageData_mangas_source', + 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceMangaPageData_mangas_source', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceMangaPageData_mangas_source', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GSourceMangaPageData_mangas_source', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, + r'GSourceMangaPageData_mangas_source', + 'supportsLatest'), + extension: extension.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageData_mangas_source', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMangaPageData_mangas_source_extension + extends GSourceMangaPageData_mangas_source_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GSourceMangaPageData_mangas_source_extension( + [void Function(GSourceMangaPageData_mangas_source_extensionBuilder)? + updates]) => + (new GSourceMangaPageData_mangas_source_extensionBuilder() + ..update(updates)) + ._build(); + + _$GSourceMangaPageData_mangas_source_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_source_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceMangaPageData_mangas_source_extension', 'pkgName'); + } + + @override + GSourceMangaPageData_mangas_source_extension rebuild( + void Function(GSourceMangaPageData_mangas_source_extensionBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageData_mangas_source_extensionBuilder toBuilder() => + new GSourceMangaPageData_mangas_source_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageData_mangas_source_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GSourceMangaPageData_mangas_source_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GSourceMangaPageData_mangas_source_extensionBuilder + implements + Builder { + _$GSourceMangaPageData_mangas_source_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GSourceMangaPageData_mangas_source_extensionBuilder() { + GSourceMangaPageData_mangas_source_extension._initializeBuilder(this); + } + + GSourceMangaPageData_mangas_source_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageData_mangas_source_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageData_mangas_source_extension; + } + + @override + void update( + void Function(GSourceMangaPageData_mangas_source_extensionBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageData_mangas_source_extension build() => _build(); + + _$GSourceMangaPageData_mangas_source_extension _build() { + final _$result = _$v ?? + new _$GSourceMangaPageData_mangas_source_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GSourceMangaPageData_mangas_source_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull(pkgName, + r'GSourceMangaPageData_mangas_source_extension', 'pkgName'), + repo: repo, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.req.gql.dart b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.req.gql.dart new file mode 100644 index 00000000..a03b354a --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'manga_page_fragment.req.gql.g.dart'; + +abstract class GSourceMangaPageReq + implements + Built, + _i1 + .FragmentRequest<_i2.GSourceMangaPageData, _i3.GSourceMangaPageVars> { + GSourceMangaPageReq._(); + + factory GSourceMangaPageReq( + [void Function(GSourceMangaPageReqBuilder b) updates]) = + _$GSourceMangaPageReq; + + static void _initializeBuilder(GSourceMangaPageReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'SourceMangaPage'; + + @override + _i3.GSourceMangaPageVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSourceMangaPageData? parseData(Map json) => + _i2.GSourceMangaPageData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourceMangaPageData data) => + data.toJson(); + + static Serializer get serializer => + _$gSourceMangaPageReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourceMangaPageReq.serializer, + this, + ) as Map); + + static GSourceMangaPageReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourceMangaPageReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.req.gql.g.dart b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.req.gql.g.dart new file mode 100644 index 00000000..fb7e18bc --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.req.gql.g.dart @@ -0,0 +1,236 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'manga_page_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceMangaPageReqSerializer = + new _$GSourceMangaPageReqSerializer(); + +class _$GSourceMangaPageReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageReq, + _$GSourceMangaPageReq + ]; + @override + final String wireName = 'GSourceMangaPageReq'; + + @override + Iterable serialize( + Serializers serializers, GSourceMangaPageReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourceMangaPageVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceMangaPageReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMangaPageReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSourceMangaPageVars))! + as _i3.GSourceMangaPageVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSourceMangaPageReq extends GSourceMangaPageReq { + @override + final _i3.GSourceMangaPageVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSourceMangaPageReq( + [void Function(GSourceMangaPageReqBuilder)? updates]) => + (new GSourceMangaPageReqBuilder()..update(updates))._build(); + + _$GSourceMangaPageReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GSourceMangaPageReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSourceMangaPageReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourceMangaPageReq', 'idFields'); + } + + @override + GSourceMangaPageReq rebuild( + void Function(GSourceMangaPageReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageReqBuilder toBuilder() => + new GSourceMangaPageReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceMangaPageReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSourceMangaPageReqBuilder + implements Builder { + _$GSourceMangaPageReq? _$v; + + _i3.GSourceMangaPageVarsBuilder? _vars; + _i3.GSourceMangaPageVarsBuilder get vars => + _$this._vars ??= new _i3.GSourceMangaPageVarsBuilder(); + set vars(_i3.GSourceMangaPageVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSourceMangaPageReqBuilder() { + GSourceMangaPageReq._initializeBuilder(this); + } + + GSourceMangaPageReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMangaPageReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageReq; + } + + @override + void update(void Function(GSourceMangaPageReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageReq build() => _build(); + + _$GSourceMangaPageReq _build() { + _$GSourceMangaPageReq _$result; + try { + _$result = _$v ?? + new _$GSourceMangaPageReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSourceMangaPageReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourceMangaPageReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMangaPageReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.dart b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.dart new file mode 100644 index 00000000..6956a2f4 --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'manga_page_fragment.var.gql.g.dart'; + +abstract class GSourceMangaPageVars + implements Built { + GSourceMangaPageVars._(); + + factory GSourceMangaPageVars( + [void Function(GSourceMangaPageVarsBuilder b) updates]) = + _$GSourceMangaPageVars; + + static Serializer get serializer => + _$gSourceMangaPageVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceMangaPageVars.serializer, + this, + ) as Map); + + static GSourceMangaPageVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceMangaPageVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.g.dart b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.g.dart new file mode 100644 index 00000000..3b1d1767 --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'manga_page_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceMangaPageVarsSerializer = + new _$GSourceMangaPageVarsSerializer(); + +class _$GSourceMangaPageVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMangaPageVars, + _$GSourceMangaPageVars + ]; + @override + final String wireName = 'GSourceMangaPageVars'; + + @override + Iterable serialize( + Serializers serializers, GSourceMangaPageVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSourceMangaPageVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSourceMangaPageVarsBuilder().build(); + } +} + +class _$GSourceMangaPageVars extends GSourceMangaPageVars { + factory _$GSourceMangaPageVars( + [void Function(GSourceMangaPageVarsBuilder)? updates]) => + (new GSourceMangaPageVarsBuilder()..update(updates))._build(); + + _$GSourceMangaPageVars._() : super._(); + + @override + GSourceMangaPageVars rebuild( + void Function(GSourceMangaPageVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMangaPageVarsBuilder toBuilder() => + new GSourceMangaPageVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMangaPageVars; + } + + @override + int get hashCode { + return 208445912; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSourceMangaPageVars').toString(); + } +} + +class GSourceMangaPageVarsBuilder + implements Builder { + _$GSourceMangaPageVars? _$v; + + GSourceMangaPageVarsBuilder(); + + @override + void replace(GSourceMangaPageVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMangaPageVars; + } + + @override + void update(void Function(GSourceMangaPageVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMangaPageVars build() => _build(); + + _$GSourceMangaPageVars _build() { + final _$result = _$v ?? new _$GSourceMangaPageVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/manga_page/graphql/manga_page_fragment.graphql b/lib/src/features/browse_center/domain/manga_page/graphql/manga_page_fragment.graphql new file mode 100644 index 00000000..246568a5 --- /dev/null +++ b/lib/src/features/browse_center/domain/manga_page/graphql/manga_page_fragment.graphql @@ -0,0 +1,8 @@ +# import '/src/features/manga_book/domain/manga/graphql/manga_fragment.graphql' + +fragment SourceMangaPage on FetchSourceMangaPayload { + hasNextPage + mangas { + ...MangaFragment + } +} diff --git a/lib/src/features/browse_center/domain/manga_page/manga_page.dart b/lib/src/features/browse_center/domain/manga_page/manga_page.dart index 4208e249..968e6f54 100644 --- a/lib/src/features/browse_center/domain/manga_page/manga_page.dart +++ b/lib/src/features/browse_center/domain/manga_page/manga_page.dart @@ -4,20 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; +import 'graphql/__generated__/manga_page_fragment.data.gql.dart'; -import '../../../manga_book/domain/manga/manga_model.dart'; - -part 'manga_page.freezed.dart'; -part 'manga_page.g.dart'; - -@freezed -class MangaPage with _$MangaPage { - factory MangaPage({ - List? mangaList, - bool? hasNextPage, - }) = _MangaPage; - - factory MangaPage.fromJson(Map json) => - _$MangaPageFromJson(json); -} +typedef MangaPage = GSourceMangaPage; diff --git a/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart b/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart deleted file mode 100644 index 59654d82..00000000 --- a/lib/src/features/browse_center/domain/manga_page/manga_page.freezed.dart +++ /dev/null @@ -1,179 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'manga_page.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -MangaPage _$MangaPageFromJson(Map json) { - return _MangaPage.fromJson(json); -} - -/// @nodoc -mixin _$MangaPage { - List? get mangaList => throw _privateConstructorUsedError; - bool? get hasNextPage => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $MangaPageCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MangaPageCopyWith<$Res> { - factory $MangaPageCopyWith(MangaPage value, $Res Function(MangaPage) then) = - _$MangaPageCopyWithImpl<$Res, MangaPage>; - @useResult - $Res call({List? mangaList, bool? hasNextPage}); -} - -/// @nodoc -class _$MangaPageCopyWithImpl<$Res, $Val extends MangaPage> - implements $MangaPageCopyWith<$Res> { - _$MangaPageCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? mangaList = freezed, - Object? hasNextPage = freezed, - }) { - return _then(_value.copyWith( - mangaList: freezed == mangaList - ? _value.mangaList - : mangaList // ignore: cast_nullable_to_non_nullable - as List?, - hasNextPage: freezed == hasNextPage - ? _value.hasNextPage - : hasNextPage // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$MangaPageImplCopyWith<$Res> - implements $MangaPageCopyWith<$Res> { - factory _$$MangaPageImplCopyWith( - _$MangaPageImpl value, $Res Function(_$MangaPageImpl) then) = - __$$MangaPageImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({List? mangaList, bool? hasNextPage}); -} - -/// @nodoc -class __$$MangaPageImplCopyWithImpl<$Res> - extends _$MangaPageCopyWithImpl<$Res, _$MangaPageImpl> - implements _$$MangaPageImplCopyWith<$Res> { - __$$MangaPageImplCopyWithImpl( - _$MangaPageImpl _value, $Res Function(_$MangaPageImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? mangaList = freezed, - Object? hasNextPage = freezed, - }) { - return _then(_$MangaPageImpl( - mangaList: freezed == mangaList - ? _value._mangaList - : mangaList // ignore: cast_nullable_to_non_nullable - as List?, - hasNextPage: freezed == hasNextPage - ? _value.hasNextPage - : hasNextPage // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$MangaPageImpl implements _MangaPage { - _$MangaPageImpl({final List? mangaList, this.hasNextPage}) - : _mangaList = mangaList; - - factory _$MangaPageImpl.fromJson(Map json) => - _$$MangaPageImplFromJson(json); - - final List? _mangaList; - @override - List? get mangaList { - final value = _mangaList; - if (value == null) return null; - if (_mangaList is EqualUnmodifiableListView) return _mangaList; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - final bool? hasNextPage; - - @override - String toString() { - return 'MangaPage(mangaList: $mangaList, hasNextPage: $hasNextPage)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MangaPageImpl && - const DeepCollectionEquality() - .equals(other._mangaList, _mangaList) && - (identical(other.hasNextPage, hasNextPage) || - other.hasNextPage == hasNextPage)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, - const DeepCollectionEquality().hash(_mangaList), hasNextPage); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$MangaPageImplCopyWith<_$MangaPageImpl> get copyWith => - __$$MangaPageImplCopyWithImpl<_$MangaPageImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MangaPageImplToJson( - this, - ); - } -} - -abstract class _MangaPage implements MangaPage { - factory _MangaPage({final List? mangaList, final bool? hasNextPage}) = - _$MangaPageImpl; - - factory _MangaPage.fromJson(Map json) = - _$MangaPageImpl.fromJson; - - @override - List? get mangaList; - @override - bool? get hasNextPage; - @override - @JsonKey(ignore: true) - _$$MangaPageImplCopyWith<_$MangaPageImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/manga_page/manga_page.g.dart b/lib/src/features/browse_center/domain/manga_page/manga_page.g.dart deleted file mode 100644 index 50f73aeb..00000000 --- a/lib/src/features/browse_center/domain/manga_page/manga_page.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'manga_page.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$MangaPageImpl _$$MangaPageImplFromJson(Map json) => - _$MangaPageImpl( - mangaList: (json['mangaList'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - hasNextPage: json['hasNextPage'] as bool?, - ); - -Map _$$MangaPageImplToJson(_$MangaPageImpl instance) => - { - 'mangaList': instance.mangaList?.map((e) => e.toJson()).toList(), - 'hasNextPage': instance.hasNextPage, - }; diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart new file mode 100644 index 00000000..f023d3a3 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart @@ -0,0 +1,96 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const SourceFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SourceFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'displayName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'iconUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isConfigurable'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isNsfw'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lang'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'supportsLatest'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'extension'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'pkgName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'repo'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [SourceFragment]); diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart new file mode 100644 index 00000000..ed178105 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart @@ -0,0 +1,120 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'source_fragment.data.gql.g.dart'; + +abstract class GSourceFragment { + String get G__typename; + String get displayName; + String get iconUrl; + _i1.GLongString get id; + bool get isConfigurable; + bool get isNsfw; + String get lang; + String get name; + bool get supportsLatest; + GSourceFragment_extension get extension; + Map toJson(); +} + +abstract class GSourceFragment_extension { + String get G__typename; + String get pkgName; + String? get repo; + Map toJson(); +} + +abstract class GSourceFragmentData + implements + Built, + GSourceFragment { + GSourceFragmentData._(); + + factory GSourceFragmentData( + [void Function(GSourceFragmentDataBuilder b) updates]) = + _$GSourceFragmentData; + + static void _initializeBuilder(GSourceFragmentDataBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GSourceFragmentData_extension get extension; + static Serializer get serializer => + _$gSourceFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourceFragmentData.serializer, + this, + ) as Map); + + static GSourceFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourceFragmentData.serializer, + json, + ); +} + +abstract class GSourceFragmentData_extension + implements + Built, + GSourceFragment_extension { + GSourceFragmentData_extension._(); + + factory GSourceFragmentData_extension( + [void Function(GSourceFragmentData_extensionBuilder b) updates]) = + _$GSourceFragmentData_extension; + + static void _initializeBuilder(GSourceFragmentData_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer get serializer => + _$gSourceFragmentDataExtensionSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GSourceFragmentData_extension.serializer, + this, + ) as Map); + + static GSourceFragmentData_extension? fromJson(Map json) => + _i2.serializers.deserializeWith( + GSourceFragmentData_extension.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.g.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.g.dart new file mode 100644 index 00000000..a8e3b09c --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.g.dart @@ -0,0 +1,550 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFragmentDataSerializer = + new _$GSourceFragmentDataSerializer(); +Serializer + _$gSourceFragmentDataExtensionSerializer = + new _$GSourceFragmentData_extensionSerializer(); + +class _$GSourceFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFragmentData, + _$GSourceFragmentData + ]; + @override + final String wireName = 'GSourceFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType(GSourceFragmentData_extension)), + ]; + + return result; + } + + @override + GSourceFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceFragmentData_extension))! + as GSourceFragmentData_extension); + break; + } + } + + return result.build(); + } +} + +class _$GSourceFragmentData_extensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFragmentData_extension, + _$GSourceFragmentData_extension + ]; + @override + final String wireName = 'GSourceFragmentData_extension'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentData_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceFragmentData_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFragmentData_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFragmentData extends GSourceFragmentData { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i1.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GSourceFragmentData_extension extension; + + factory _$GSourceFragmentData( + [void Function(GSourceFragmentDataBuilder)? updates]) => + (new GSourceFragmentDataBuilder()..update(updates))._build(); + + _$GSourceFragmentData._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceFragmentData', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceFragmentData', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull(id, r'GSourceFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GSourceFragmentData', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceFragmentData', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull(lang, r'GSourceFragmentData', 'lang'); + BuiltValueNullFieldError.checkNotNull(name, r'GSourceFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GSourceFragmentData', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GSourceFragmentData', 'extension'); + } + + @override + GSourceFragmentData rebuild( + void Function(GSourceFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentDataBuilder toBuilder() => + new GSourceFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentData && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFragmentData') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GSourceFragmentDataBuilder + implements Builder { + _$GSourceFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GSourceFragmentData_extensionBuilder? _extension; + GSourceFragmentData_extensionBuilder get extension => + _$this._extension ??= new GSourceFragmentData_extensionBuilder(); + set extension(GSourceFragmentData_extensionBuilder? extension) => + _$this._extension = extension; + + GSourceFragmentDataBuilder() { + GSourceFragmentData._initializeBuilder(this); + } + + GSourceFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentData; + } + + @override + void update(void Function(GSourceFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentData build() => _build(); + + _$GSourceFragmentData _build() { + _$GSourceFragmentData _$result; + try { + _$result = _$v ?? + new _$GSourceFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, r'GSourceFragmentData', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GSourceFragmentData', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GSourceFragmentData', 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GSourceFragmentData', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GSourceFragmentData', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GSourceFragmentData', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GSourceFragmentData', 'supportsLatest'), + extension: extension.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceFragmentData_extension extends GSourceFragmentData_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GSourceFragmentData_extension( + [void Function(GSourceFragmentData_extensionBuilder)? updates]) => + (new GSourceFragmentData_extensionBuilder()..update(updates))._build(); + + _$GSourceFragmentData_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceFragmentData_extension', 'pkgName'); + } + + @override + GSourceFragmentData_extension rebuild( + void Function(GSourceFragmentData_extensionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentData_extensionBuilder toBuilder() => + new GSourceFragmentData_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentData_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFragmentData_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GSourceFragmentData_extensionBuilder + implements + Builder { + _$GSourceFragmentData_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GSourceFragmentData_extensionBuilder() { + GSourceFragmentData_extension._initializeBuilder(this); + } + + GSourceFragmentData_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GSourceFragmentData_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentData_extension; + } + + @override + void update(void Function(GSourceFragmentData_extensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentData_extension build() => _build(); + + _$GSourceFragmentData_extension _build() { + final _$result = _$v ?? + new _$GSourceFragmentData_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSourceFragmentData_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GSourceFragmentData_extension', 'pkgName'), + repo: repo, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.req.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.req.gql.dart new file mode 100644 index 00000000..91263134 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.req.gql.dart @@ -0,0 +1,66 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'source_fragment.req.gql.g.dart'; + +abstract class GSourceFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GSourceFragmentData, _i3.GSourceFragmentVars> { + GSourceFragmentReq._(); + + factory GSourceFragmentReq( + [void Function(GSourceFragmentReqBuilder b) updates]) = + _$GSourceFragmentReq; + + static void _initializeBuilder(GSourceFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'SourceFragment'; + + @override + _i3.GSourceFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSourceFragmentData? parseData(Map json) => + _i2.GSourceFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSourceFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gSourceFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSourceFragmentReq.serializer, + this, + ) as Map); + + static GSourceFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSourceFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.req.gql.g.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.req.gql.g.dart new file mode 100644 index 00000000..3bf99e2a --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.req.gql.g.dart @@ -0,0 +1,233 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFragmentReqSerializer = + new _$GSourceFragmentReqSerializer(); + +class _$GSourceFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceFragmentReq, _$GSourceFragmentReq]; + @override + final String wireName = 'GSourceFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSourceFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSourceFragmentVars))! + as _i3.GSourceFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFragmentReq extends GSourceFragmentReq { + @override + final _i3.GSourceFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSourceFragmentReq( + [void Function(GSourceFragmentReqBuilder)? updates]) => + (new GSourceFragmentReqBuilder()..update(updates))._build(); + + _$GSourceFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GSourceFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSourceFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourceFragmentReq', 'idFields'); + } + + @override + GSourceFragmentReq rebuild( + void Function(GSourceFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentReqBuilder toBuilder() => + new GSourceFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSourceFragmentReqBuilder + implements Builder { + _$GSourceFragmentReq? _$v; + + _i3.GSourceFragmentVarsBuilder? _vars; + _i3.GSourceFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSourceFragmentVarsBuilder(); + set vars(_i3.GSourceFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSourceFragmentReqBuilder() { + GSourceFragmentReq._initializeBuilder(this); + } + + GSourceFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSourceFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentReq; + } + + @override + void update(void Function(GSourceFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentReq build() => _build(); + + _$GSourceFragmentReq _build() { + _$GSourceFragmentReq _$result; + try { + _$result = _$v ?? + new _$GSourceFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSourceFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSourceFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.dart new file mode 100644 index 00000000..ea0d074b --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'source_fragment.var.gql.g.dart'; + +abstract class GSourceFragmentVars + implements Built { + GSourceFragmentVars._(); + + factory GSourceFragmentVars( + [void Function(GSourceFragmentVarsBuilder b) updates]) = + _$GSourceFragmentVars; + + static Serializer get serializer => + _$gSourceFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceFragmentVars.serializer, + this, + ) as Map); + + static GSourceFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.g.dart b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.g.dart new file mode 100644 index 00000000..9b0d85f4 --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'source_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSourceFragmentVarsSerializer = + new _$GSourceFragmentVarsSerializer(); + +class _$GSourceFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceFragmentVars, + _$GSourceFragmentVars + ]; + @override + final String wireName = 'GSourceFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GSourceFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSourceFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSourceFragmentVarsBuilder().build(); + } +} + +class _$GSourceFragmentVars extends GSourceFragmentVars { + factory _$GSourceFragmentVars( + [void Function(GSourceFragmentVarsBuilder)? updates]) => + (new GSourceFragmentVarsBuilder()..update(updates))._build(); + + _$GSourceFragmentVars._() : super._(); + + @override + GSourceFragmentVars rebuild( + void Function(GSourceFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFragmentVarsBuilder toBuilder() => + new GSourceFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFragmentVars; + } + + @override + int get hashCode { + return 955668713; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSourceFragmentVars').toString(); + } +} + +class GSourceFragmentVarsBuilder + implements Builder { + _$GSourceFragmentVars? _$v; + + GSourceFragmentVarsBuilder(); + + @override + void replace(GSourceFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFragmentVars; + } + + @override + void update(void Function(GSourceFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFragmentVars build() => _build(); + + _$GSourceFragmentVars _build() { + final _$result = _$v ?? new _$GSourceFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/browse_center/domain/source/graphql/source_fragment.graphql b/lib/src/features/browse_center/domain/source/graphql/source_fragment.graphql new file mode 100644 index 00000000..b8a53ffd --- /dev/null +++ b/lib/src/features/browse_center/domain/source/graphql/source_fragment.graphql @@ -0,0 +1,14 @@ +fragment SourceFragment on SourceType { + displayName + iconUrl + id + isConfigurable + isNsfw + lang + name + supportsLatest + extension { + pkgName + repo + } +} diff --git a/lib/src/features/browse_center/domain/source/source_model.dart b/lib/src/features/browse_center/domain/source/source_model.dart index d2b6af80..111d446e 100644 --- a/lib/src/features/browse_center/domain/source/source_model.dart +++ b/lib/src/features/browse_center/domain/source/source_model.dart @@ -4,30 +4,41 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; +import 'package:flutter/material.dart'; +import '../../../../graphql/__generated__/schema.schema.gql.dart'; +import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/freezed_converters/language_json_converter.dart'; import '../language/language_model.dart'; +import 'graphql/__generated__/source_fragment.data.gql.dart'; -part 'source_model.freezed.dart'; -part 'source_model.g.dart'; - -@freezed -class Source with _$Source { - factory Source({ - String? displayName, - String? iconUrl, - String? id, - bool? isConfigurable, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson, - ) - Language? lang, - String? name, - bool? supportsLatest, - }) = _Source; - - factory Source.fromJson(Map json) => _$SourceFromJson(json); +typedef Source = GSourceFragment; + +typedef SourceType = GFetchSourceMangaType; + +extension SourceExtensions on GSourceFragment { + Language? get language => LanguageJsonConverter.fromJson(lang); +} + +extension SourceMangaTypeExtension on GFetchSourceMangaType { + IconData get icon => switch (this) { + GFetchSourceMangaType.LATEST => Icons.new_releases_outlined, + GFetchSourceMangaType.POPULAR => Icons.favorite_border_rounded, + GFetchSourceMangaType.SEARCH => Icons.filter_list_outlined, + GFetchSourceMangaType() => throw UnimplementedError(), + }; + + IconData get selectedIcon => switch (this) { + GFetchSourceMangaType.LATEST => Icons.new_releases_rounded, + GFetchSourceMangaType.POPULAR => Icons.favorite_rounded, + GFetchSourceMangaType.SEARCH => Icons.filter_list_rounded, + GFetchSourceMangaType() => throw UnimplementedError(), + }; + + String toLocale(BuildContext context) => switch (this) { + GFetchSourceMangaType.LATEST => context.l10n.sourceTypeLatest, + GFetchSourceMangaType.POPULAR => context.l10n.sourceTypePopular, + GFetchSourceMangaType.SEARCH => context.l10n.sourceTypeFilter, + GFetchSourceMangaType() => throw UnimplementedError(), + }; } diff --git a/lib/src/features/browse_center/domain/source/source_model.freezed.dart b/lib/src/features/browse_center/domain/source/source_model.freezed.dart deleted file mode 100644 index 5276f0dc..00000000 --- a/lib/src/features/browse_center/domain/source/source_model.freezed.dart +++ /dev/null @@ -1,333 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'source_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -Source _$SourceFromJson(Map json) { - return _Source.fromJson(json); -} - -/// @nodoc -mixin _$Source { - String? get displayName => throw _privateConstructorUsedError; - String? get iconUrl => throw _privateConstructorUsedError; - String? get id => throw _privateConstructorUsedError; - bool? get isConfigurable => throw _privateConstructorUsedError; - bool? get isNsfw => throw _privateConstructorUsedError; - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - bool? get supportsLatest => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $SourceCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SourceCopyWith<$Res> { - factory $SourceCopyWith(Source value, $Res Function(Source) then) = - _$SourceCopyWithImpl<$Res, Source>; - @useResult - $Res call( - {String? displayName, - String? iconUrl, - String? id, - bool? isConfigurable, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? supportsLatest}); - - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class _$SourceCopyWithImpl<$Res, $Val extends Source> - implements $SourceCopyWith<$Res> { - _$SourceCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? displayName = freezed, - Object? iconUrl = freezed, - Object? id = freezed, - Object? isConfigurable = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? supportsLatest = freezed, - }) { - return _then(_value.copyWith( - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as String?, - isConfigurable: freezed == isConfigurable - ? _value.isConfigurable - : isConfigurable // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - supportsLatest: freezed == supportsLatest - ? _value.supportsLatest - : supportsLatest // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $LanguageCopyWith<$Res>? get lang { - if (_value.lang == null) { - return null; - } - - return $LanguageCopyWith<$Res>(_value.lang!, (value) { - return _then(_value.copyWith(lang: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$SourceImplCopyWith<$Res> implements $SourceCopyWith<$Res> { - factory _$$SourceImplCopyWith( - _$SourceImpl value, $Res Function(_$SourceImpl) then) = - __$$SourceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? displayName, - String? iconUrl, - String? id, - bool? isConfigurable, - bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? lang, - String? name, - bool? supportsLatest}); - - @override - $LanguageCopyWith<$Res>? get lang; -} - -/// @nodoc -class __$$SourceImplCopyWithImpl<$Res> - extends _$SourceCopyWithImpl<$Res, _$SourceImpl> - implements _$$SourceImplCopyWith<$Res> { - __$$SourceImplCopyWithImpl( - _$SourceImpl _value, $Res Function(_$SourceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? displayName = freezed, - Object? iconUrl = freezed, - Object? id = freezed, - Object? isConfigurable = freezed, - Object? isNsfw = freezed, - Object? lang = freezed, - Object? name = freezed, - Object? supportsLatest = freezed, - }) { - return _then(_$SourceImpl( - displayName: freezed == displayName - ? _value.displayName - : displayName // ignore: cast_nullable_to_non_nullable - as String?, - iconUrl: freezed == iconUrl - ? _value.iconUrl - : iconUrl // ignore: cast_nullable_to_non_nullable - as String?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as String?, - isConfigurable: freezed == isConfigurable - ? _value.isConfigurable - : isConfigurable // ignore: cast_nullable_to_non_nullable - as bool?, - isNsfw: freezed == isNsfw - ? _value.isNsfw - : isNsfw // ignore: cast_nullable_to_non_nullable - as bool?, - lang: freezed == lang - ? _value.lang - : lang // ignore: cast_nullable_to_non_nullable - as Language?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - supportsLatest: freezed == supportsLatest - ? _value.supportsLatest - : supportsLatest // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$SourceImpl implements _Source { - _$SourceImpl( - {this.displayName, - this.iconUrl, - this.id, - this.isConfigurable, - this.isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - this.lang, - this.name, - this.supportsLatest}); - - factory _$SourceImpl.fromJson(Map json) => - _$$SourceImplFromJson(json); - - @override - final String? displayName; - @override - final String? iconUrl; - @override - final String? id; - @override - final bool? isConfigurable; - @override - final bool? isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang; - @override - final String? name; - @override - final bool? supportsLatest; - - @override - String toString() { - return 'Source(displayName: $displayName, iconUrl: $iconUrl, id: $id, isConfigurable: $isConfigurable, isNsfw: $isNsfw, lang: $lang, name: $name, supportsLatest: $supportsLatest)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SourceImpl && - (identical(other.displayName, displayName) || - other.displayName == displayName) && - (identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl) && - (identical(other.id, id) || other.id == id) && - (identical(other.isConfigurable, isConfigurable) || - other.isConfigurable == isConfigurable) && - (identical(other.isNsfw, isNsfw) || other.isNsfw == isNsfw) && - (identical(other.lang, lang) || other.lang == lang) && - (identical(other.name, name) || other.name == name) && - (identical(other.supportsLatest, supportsLatest) || - other.supportsLatest == supportsLatest)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, displayName, iconUrl, id, - isConfigurable, isNsfw, lang, name, supportsLatest); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$SourceImplCopyWith<_$SourceImpl> get copyWith => - __$$SourceImplCopyWithImpl<_$SourceImpl>(this, _$identity); - - @override - Map toJson() { - return _$$SourceImplToJson( - this, - ); - } -} - -abstract class _Source implements Source { - factory _Source( - {final String? displayName, - final String? iconUrl, - final String? id, - final bool? isConfigurable, - final bool? isNsfw, - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - final Language? lang, - final String? name, - final bool? supportsLatest}) = _$SourceImpl; - - factory _Source.fromJson(Map json) = _$SourceImpl.fromJson; - - @override - String? get displayName; - @override - String? get iconUrl; - @override - String? get id; - @override - bool? get isConfigurable; - @override - bool? get isNsfw; - @override - @JsonKey( - fromJson: LanguageJsonConverter.fromJson, - toJson: LanguageJsonConverter.toJson) - Language? get lang; - @override - String? get name; - @override - bool? get supportsLatest; - @override - @JsonKey(ignore: true) - _$$SourceImplCopyWith<_$SourceImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/source/source_model.g.dart b/lib/src/features/browse_center/domain/source/source_model.g.dart deleted file mode 100644 index fe5d0f73..00000000 --- a/lib/src/features/browse_center/domain/source/source_model.g.dart +++ /dev/null @@ -1,30 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'source_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SourceImpl _$$SourceImplFromJson(Map json) => _$SourceImpl( - displayName: json['displayName'] as String?, - iconUrl: json['iconUrl'] as String?, - id: json['id'] as String?, - isConfigurable: json['isConfigurable'] as bool?, - isNsfw: json['isNsfw'] as bool?, - lang: LanguageJsonConverter.fromJson(json['lang'] as String?), - name: json['name'] as String?, - supportsLatest: json['supportsLatest'] as bool?, - ); - -Map _$$SourceImplToJson(_$SourceImpl instance) => - { - 'displayName': instance.displayName, - 'iconUrl': instance.iconUrl, - 'id': instance.id, - 'isConfigurable': instance.isConfigurable, - 'isNsfw': instance.isNsfw, - 'lang': LanguageJsonConverter.toJson(instance.lang), - 'name': instance.name, - 'supportsLatest': instance.supportsLatest, - }; diff --git a/lib/src/features/browse_center/domain/source_preference/source_preference.dart b/lib/src/features/browse_center/domain/source_preference/source_preference.dart index 43f385c1..ffde3eec 100644 --- a/lib/src/features/browse_center/domain/source_preference/source_preference.dart +++ b/lib/src/features/browse_center/domain/source_preference/source_preference.dart @@ -4,44 +4,24 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../source_preference_prop/source_preference_prop.dart'; - -part 'source_preference.freezed.dart'; -part 'source_preference.g.dart'; - -@freezed -class SourcePreference with _$SourcePreference { - factory SourcePreference({ - String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? sourcePreferenceProp, - }) = _SourcePreference; - - factory SourcePreference.fromJson(Map json) => - _$SourcePreferenceFromJson(json); - - static Map propsFromJson( - Map json, String str) { - final props = json['props']; - final type = json['type']; - if (type == 'MultiSelectListPreference' || type == 'ListPreference') { - final entries = props['entries']; - final entryValues = props['entryValues']; - if (entries != null && - entries is List && - entryValues != null && - entryValues is List) { - props['entries'] = Map.fromIterables( - entryValues.map((e) => e.toString()), - entries.map((e) => e.toString()), - ); - } - } - return { - 'type': json['type'], - if (props is Map) ...props, - }; - } -} +import '../../../../graphql/__generated__/schema.schema.gql.dart'; +import '../../data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.dart'; + +typedef SourcePreference = GSourcePreferenceByIdData_source_preferences; + +typedef CheckBoxPreference + = GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference; + +typedef SwitchPreferenceCompat + = GSourcePreferenceByIdData_source_preferences__asSwitchPreference; + +typedef ListPreference + = GSourcePreferenceByIdData_source_preferences__asListPreference; + +typedef MultiSelectListPreference + = GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference; + +typedef EditTextPreference + = GSourcePreferenceByIdData_source_preferences__asEditTextPreference; + +typedef SourcePreferenceChange = GSourcePreferenceChangeInputBuilder; diff --git a/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart b/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart deleted file mode 100644 index addd3ec1..00000000 --- a/lib/src/features/browse_center/domain/source_preference/source_preference.freezed.dart +++ /dev/null @@ -1,204 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'source_preference.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -SourcePreference _$SourcePreferenceFromJson(Map json) { - return _SourcePreference.fromJson(json); -} - -/// @nodoc -mixin _$SourcePreference { - String? get type => throw _privateConstructorUsedError; - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? get sourcePreferenceProp => - throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $SourcePreferenceCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SourcePreferenceCopyWith<$Res> { - factory $SourcePreferenceCopyWith( - SourcePreference value, $Res Function(SourcePreference) then) = - _$SourcePreferenceCopyWithImpl<$Res, SourcePreference>; - @useResult - $Res call( - {String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? sourcePreferenceProp}); - - $SourcePreferencePropCopyWith<$Res>? get sourcePreferenceProp; -} - -/// @nodoc -class _$SourcePreferenceCopyWithImpl<$Res, $Val extends SourcePreference> - implements $SourcePreferenceCopyWith<$Res> { - _$SourcePreferenceCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sourcePreferenceProp = freezed, - }) { - return _then(_value.copyWith( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as String?, - sourcePreferenceProp: freezed == sourcePreferenceProp - ? _value.sourcePreferenceProp - : sourcePreferenceProp // ignore: cast_nullable_to_non_nullable - as SourcePreferenceProp?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $SourcePreferencePropCopyWith<$Res>? get sourcePreferenceProp { - if (_value.sourcePreferenceProp == null) { - return null; - } - - return $SourcePreferencePropCopyWith<$Res>(_value.sourcePreferenceProp!, - (value) { - return _then(_value.copyWith(sourcePreferenceProp: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$SourcePreferenceImplCopyWith<$Res> - implements $SourcePreferenceCopyWith<$Res> { - factory _$$SourcePreferenceImplCopyWith(_$SourcePreferenceImpl value, - $Res Function(_$SourcePreferenceImpl) then) = - __$$SourcePreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? sourcePreferenceProp}); - - @override - $SourcePreferencePropCopyWith<$Res>? get sourcePreferenceProp; -} - -/// @nodoc -class __$$SourcePreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferenceCopyWithImpl<$Res, _$SourcePreferenceImpl> - implements _$$SourcePreferenceImplCopyWith<$Res> { - __$$SourcePreferenceImplCopyWithImpl(_$SourcePreferenceImpl _value, - $Res Function(_$SourcePreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? type = freezed, - Object? sourcePreferenceProp = freezed, - }) { - return _then(_$SourcePreferenceImpl( - type: freezed == type - ? _value.type - : type // ignore: cast_nullable_to_non_nullable - as String?, - sourcePreferenceProp: freezed == sourcePreferenceProp - ? _value.sourcePreferenceProp - : sourcePreferenceProp // ignore: cast_nullable_to_non_nullable - as SourcePreferenceProp?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$SourcePreferenceImpl implements _SourcePreference { - _$SourcePreferenceImpl( - {this.type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - this.sourcePreferenceProp}); - - factory _$SourcePreferenceImpl.fromJson(Map json) => - _$$SourcePreferenceImplFromJson(json); - - @override - final String? type; - @override - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - final SourcePreferenceProp? sourcePreferenceProp; - - @override - String toString() { - return 'SourcePreference(type: $type, sourcePreferenceProp: $sourcePreferenceProp)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SourcePreferenceImpl && - (identical(other.type, type) || other.type == type) && - (identical(other.sourcePreferenceProp, sourcePreferenceProp) || - other.sourcePreferenceProp == sourcePreferenceProp)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, type, sourcePreferenceProp); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$SourcePreferenceImplCopyWith<_$SourcePreferenceImpl> get copyWith => - __$$SourcePreferenceImplCopyWithImpl<_$SourcePreferenceImpl>( - this, _$identity); - - @override - Map toJson() { - return _$$SourcePreferenceImplToJson( - this, - ); - } -} - -abstract class _SourcePreference implements SourcePreference { - factory _SourcePreference( - {final String? type, - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - final SourcePreferenceProp? sourcePreferenceProp}) = - _$SourcePreferenceImpl; - - factory _SourcePreference.fromJson(Map json) = - _$SourcePreferenceImpl.fromJson; - - @override - String? get type; - @override - @JsonKey(readValue: SourcePreference.propsFromJson, name: 'props') - SourcePreferenceProp? get sourcePreferenceProp; - @override - @JsonKey(ignore: true) - _$$SourcePreferenceImplCopyWith<_$SourcePreferenceImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/source_preference/source_preference.g.dart b/lib/src/features/browse_center/domain/source_preference/source_preference.g.dart deleted file mode 100644 index 1428f386..00000000 --- a/lib/src/features/browse_center/domain/source_preference/source_preference.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'source_preference.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$SourcePreferenceImpl _$$SourcePreferenceImplFromJson( - Map json) => - _$SourcePreferenceImpl( - type: json['type'] as String?, - sourcePreferenceProp: - SourcePreference.propsFromJson(json, 'props') == null - ? null - : SourcePreferenceProp.fromJson( - SourcePreference.propsFromJson(json, 'props') - as Map), - ); - -Map _$$SourcePreferenceImplToJson( - _$SourcePreferenceImpl instance) => - { - 'type': instance.type, - 'props': instance.sourcePreferenceProp?.toJson(), - }; diff --git a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.dart b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.dart deleted file mode 100644 index 24094424..00000000 --- a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.dart +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) 2023 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:freezed_annotation/freezed_annotation.dart'; - -part 'source_preference_prop.freezed.dart'; -part 'source_preference_prop.g.dart'; - -@Freezed( - unionKey: 'type', - unionValueCase: FreezedUnionCase.pascal, - fallbackUnion: 'fallback', -) -sealed class SourcePreferenceProp with _$SourcePreferenceProp { - const factory SourcePreferenceProp.fallback({ - String? key, - dynamic currentValue, - }) = Fallback; - - const factory SourcePreferenceProp.checkBoxPreference({ - String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType, - }) = CheckBoxPreference; - - const factory SourcePreferenceProp.switchPreferenceCompat({ - String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType, - }) = SwitchPreferenceCompat; - - const factory SourcePreferenceProp.listPreference({ - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries, - }) = ListPreference; - - const factory SourcePreferenceProp.multiSelectListPreference({ - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries, - }) = MultiSelectListPreference; - - const factory SourcePreferenceProp.editTextPreference({ - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text, - }) = EditTextPreference; - - factory SourcePreferenceProp.fromJson(Map json) => - _$SourcePreferencePropFromJson(json); -} diff --git a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart deleted file mode 100644 index 3a0c109c..00000000 --- a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.freezed.dart +++ /dev/null @@ -1,2374 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'source_preference_prop.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -SourcePreferenceProp _$SourcePreferencePropFromJson(Map json) { - switch (json['type']) { - case 'CheckBoxPreference': - return CheckBoxPreference.fromJson(json); - case 'SwitchPreferenceCompat': - return SwitchPreferenceCompat.fromJson(json); - case 'ListPreference': - return ListPreference.fromJson(json); - case 'MultiSelectListPreference': - return MultiSelectListPreference.fromJson(json); - case 'EditTextPreference': - return EditTextPreference.fromJson(json); - - default: - return Fallback.fromJson(json); - } -} - -/// @nodoc -mixin _$SourcePreferenceProp { - String? get key => throw _privateConstructorUsedError; - dynamic get currentValue => throw _privateConstructorUsedError; - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) => - throw _privateConstructorUsedError; - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) => - throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $SourcePreferencePropCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $SourcePreferencePropCopyWith<$Res> { - factory $SourcePreferencePropCopyWith(SourcePreferenceProp value, - $Res Function(SourcePreferenceProp) then) = - _$SourcePreferencePropCopyWithImpl<$Res, SourcePreferenceProp>; - @useResult - $Res call({String? key}); -} - -/// @nodoc -class _$SourcePreferencePropCopyWithImpl<$Res, - $Val extends SourcePreferenceProp> - implements $SourcePreferencePropCopyWith<$Res> { - _$SourcePreferencePropCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - }) { - return _then(_value.copyWith( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$FallbackImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$FallbackImplCopyWith( - _$FallbackImpl value, $Res Function(_$FallbackImpl) then) = - __$$FallbackImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({String? key, dynamic currentValue}); -} - -/// @nodoc -class __$$FallbackImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$FallbackImpl> - implements _$$FallbackImplCopyWith<$Res> { - __$$FallbackImplCopyWithImpl( - _$FallbackImpl _value, $Res Function(_$FallbackImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? currentValue = freezed, - }) { - return _then(_$FallbackImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as dynamic, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$FallbackImpl implements Fallback { - const _$FallbackImpl({this.key, this.currentValue, final String? $type}) - : $type = $type ?? 'Fallback'; - - factory _$FallbackImpl.fromJson(Map json) => - _$$FallbackImplFromJson(json); - - @override - final String? key; - @override - final dynamic currentValue; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.fallback(key: $key, currentValue: $currentValue)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$FallbackImpl && - (identical(other.key, key) || other.key == key) && - const DeepCollectionEquality() - .equals(other.currentValue, currentValue)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, key, const DeepCollectionEquality().hash(currentValue)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$FallbackImplCopyWith<_$FallbackImpl> get copyWith => - __$$FallbackImplCopyWithImpl<_$FallbackImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return fallback(key, currentValue); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return fallback?.call(key, currentValue); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (fallback != null) { - return fallback(key, currentValue); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return fallback(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return fallback?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (fallback != null) { - return fallback(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$FallbackImplToJson( - this, - ); - } -} - -abstract class Fallback implements SourcePreferenceProp { - const factory Fallback({final String? key, final dynamic currentValue}) = - _$FallbackImpl; - - factory Fallback.fromJson(Map json) = - _$FallbackImpl.fromJson; - - @override - String? get key; - @override - dynamic get currentValue; - @override - @JsonKey(ignore: true) - _$$FallbackImplCopyWith<_$FallbackImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$CheckBoxPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$CheckBoxPreferenceImplCopyWith(_$CheckBoxPreferenceImpl value, - $Res Function(_$CheckBoxPreferenceImpl) then) = - __$$CheckBoxPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType}); -} - -/// @nodoc -class __$$CheckBoxPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$CheckBoxPreferenceImpl> - implements _$$CheckBoxPreferenceImplCopyWith<$Res> { - __$$CheckBoxPreferenceImplCopyWithImpl(_$CheckBoxPreferenceImpl _value, - $Res Function(_$CheckBoxPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - }) { - return _then(_$CheckBoxPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as bool?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as bool?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$CheckBoxPreferenceImpl implements CheckBoxPreference { - const _$CheckBoxPreferenceImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - final String? $type}) - : $type = $type ?? 'CheckBoxPreference'; - - factory _$CheckBoxPreferenceImpl.fromJson(Map json) => - _$$CheckBoxPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final bool? defaultValue; - @override - final bool? currentValue; - @override - final String? defaultValueType; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.checkBoxPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CheckBoxPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, key, title, summary, - defaultValue, currentValue, defaultValueType); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$CheckBoxPreferenceImplCopyWith<_$CheckBoxPreferenceImpl> get copyWith => - __$$CheckBoxPreferenceImplCopyWithImpl<_$CheckBoxPreferenceImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return checkBoxPreference( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return checkBoxPreference?.call( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (checkBoxPreference != null) { - return checkBoxPreference( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return checkBoxPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return checkBoxPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (checkBoxPreference != null) { - return checkBoxPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$CheckBoxPreferenceImplToJson( - this, - ); - } -} - -abstract class CheckBoxPreference implements SourcePreferenceProp { - const factory CheckBoxPreference( - {final String? key, - final String? title, - final String? summary, - final bool? defaultValue, - final bool? currentValue, - final String? defaultValueType}) = _$CheckBoxPreferenceImpl; - - factory CheckBoxPreference.fromJson(Map json) = - _$CheckBoxPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - bool? get defaultValue; - @override - bool? get currentValue; - String? get defaultValueType; - @override - @JsonKey(ignore: true) - _$$CheckBoxPreferenceImplCopyWith<_$CheckBoxPreferenceImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$SwitchPreferenceCompatImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$SwitchPreferenceCompatImplCopyWith( - _$SwitchPreferenceCompatImpl value, - $Res Function(_$SwitchPreferenceCompatImpl) then) = - __$$SwitchPreferenceCompatImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - bool? defaultValue, - bool? currentValue, - String? defaultValueType}); -} - -/// @nodoc -class __$$SwitchPreferenceCompatImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, - _$SwitchPreferenceCompatImpl> - implements _$$SwitchPreferenceCompatImplCopyWith<$Res> { - __$$SwitchPreferenceCompatImplCopyWithImpl( - _$SwitchPreferenceCompatImpl _value, - $Res Function(_$SwitchPreferenceCompatImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - }) { - return _then(_$SwitchPreferenceCompatImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as bool?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as bool?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$SwitchPreferenceCompatImpl implements SwitchPreferenceCompat { - const _$SwitchPreferenceCompatImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - final String? $type}) - : $type = $type ?? 'SwitchPreferenceCompat'; - - factory _$SwitchPreferenceCompatImpl.fromJson(Map json) => - _$$SwitchPreferenceCompatImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final bool? defaultValue; - @override - final bool? currentValue; - @override - final String? defaultValueType; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.switchPreferenceCompat(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$SwitchPreferenceCompatImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash(runtimeType, key, title, summary, - defaultValue, currentValue, defaultValueType); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$SwitchPreferenceCompatImplCopyWith<_$SwitchPreferenceCompatImpl> - get copyWith => __$$SwitchPreferenceCompatImplCopyWithImpl< - _$SwitchPreferenceCompatImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return switchPreferenceCompat( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return switchPreferenceCompat?.call( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (switchPreferenceCompat != null) { - return switchPreferenceCompat( - key, title, summary, defaultValue, currentValue, defaultValueType); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return switchPreferenceCompat(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return switchPreferenceCompat?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (switchPreferenceCompat != null) { - return switchPreferenceCompat(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$SwitchPreferenceCompatImplToJson( - this, - ); - } -} - -abstract class SwitchPreferenceCompat implements SourcePreferenceProp { - const factory SwitchPreferenceCompat( - {final String? key, - final String? title, - final String? summary, - final bool? defaultValue, - final bool? currentValue, - final String? defaultValueType}) = _$SwitchPreferenceCompatImpl; - - factory SwitchPreferenceCompat.fromJson(Map json) = - _$SwitchPreferenceCompatImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - bool? get defaultValue; - @override - bool? get currentValue; - String? get defaultValueType; - @override - @JsonKey(ignore: true) - _$$SwitchPreferenceCompatImplCopyWith<_$SwitchPreferenceCompatImpl> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$ListPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$ListPreferenceImplCopyWith(_$ListPreferenceImpl value, - $Res Function(_$ListPreferenceImpl) then) = - __$$ListPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries}); -} - -/// @nodoc -class __$$ListPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$ListPreferenceImpl> - implements _$$ListPreferenceImplCopyWith<$Res> { - __$$ListPreferenceImplCopyWithImpl( - _$ListPreferenceImpl _value, $Res Function(_$ListPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - Object? entries = freezed, - }) { - return _then(_$ListPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as String?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as String?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - entries: freezed == entries - ? _value._entries - : entries // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$ListPreferenceImpl implements ListPreference { - const _$ListPreferenceImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - final Map? entries, - final String? $type}) - : _entries = entries, - $type = $type ?? 'ListPreference'; - - factory _$ListPreferenceImpl.fromJson(Map json) => - _$$ListPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final String? defaultValue; - @override - final String? currentValue; - @override - final String? defaultValueType; - final Map? _entries; - @override - Map? get entries { - final value = _entries; - if (value == null) return null; - if (_entries is EqualUnmodifiableMapView) return _entries; - // ignore: implicit_dynamic_type - return EqualUnmodifiableMapView(value); - } - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.listPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, entries: $entries)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ListPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType) && - const DeepCollectionEquality().equals(other._entries, _entries)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - key, - title, - summary, - defaultValue, - currentValue, - defaultValueType, - const DeepCollectionEquality().hash(_entries)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$ListPreferenceImplCopyWith<_$ListPreferenceImpl> get copyWith => - __$$ListPreferenceImplCopyWithImpl<_$ListPreferenceImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return listPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return listPreference?.call(key, title, summary, defaultValue, currentValue, - defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (listPreference != null) { - return listPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, entries); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return listPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return listPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (listPreference != null) { - return listPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$ListPreferenceImplToJson( - this, - ); - } -} - -abstract class ListPreference implements SourcePreferenceProp { - const factory ListPreference( - {final String? key, - final String? title, - final String? summary, - final String? defaultValue, - final String? currentValue, - final String? defaultValueType, - final Map? entries}) = _$ListPreferenceImpl; - - factory ListPreference.fromJson(Map json) = - _$ListPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - String? get defaultValue; - @override - String? get currentValue; - String? get defaultValueType; - Map? get entries; - @override - @JsonKey(ignore: true) - _$$ListPreferenceImplCopyWith<_$ListPreferenceImpl> get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$MultiSelectListPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$MultiSelectListPreferenceImplCopyWith( - _$MultiSelectListPreferenceImpl value, - $Res Function(_$MultiSelectListPreferenceImpl) then) = - __$$MultiSelectListPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries}); -} - -/// @nodoc -class __$$MultiSelectListPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, - _$MultiSelectListPreferenceImpl> - implements _$$MultiSelectListPreferenceImplCopyWith<$Res> { - __$$MultiSelectListPreferenceImplCopyWithImpl( - _$MultiSelectListPreferenceImpl _value, - $Res Function(_$MultiSelectListPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - Object? entries = freezed, - }) { - return _then(_$MultiSelectListPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value._defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as List?, - currentValue: freezed == currentValue - ? _value._currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as List?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - entries: freezed == entries - ? _value._entries - : entries // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$MultiSelectListPreferenceImpl implements MultiSelectListPreference { - const _$MultiSelectListPreferenceImpl( - {this.key, - this.title, - this.summary, - final List? defaultValue, - final List? currentValue, - this.defaultValueType, - final Map? entries, - final String? $type}) - : _defaultValue = defaultValue, - _currentValue = currentValue, - _entries = entries, - $type = $type ?? 'MultiSelectListPreference'; - - factory _$MultiSelectListPreferenceImpl.fromJson(Map json) => - _$$MultiSelectListPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - final List? _defaultValue; - @override - List? get defaultValue { - final value = _defaultValue; - if (value == null) return null; - if (_defaultValue is EqualUnmodifiableListView) return _defaultValue; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - final List? _currentValue; - @override - List? get currentValue { - final value = _currentValue; - if (value == null) return null; - if (_currentValue is EqualUnmodifiableListView) return _currentValue; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - final String? defaultValueType; - final Map? _entries; - @override - Map? get entries { - final value = _entries; - if (value == null) return null; - if (_entries is EqualUnmodifiableMapView) return _entries; - // ignore: implicit_dynamic_type - return EqualUnmodifiableMapView(value); - } - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.multiSelectListPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, entries: $entries)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MultiSelectListPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - const DeepCollectionEquality() - .equals(other._defaultValue, _defaultValue) && - const DeepCollectionEquality() - .equals(other._currentValue, _currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType) && - const DeepCollectionEquality().equals(other._entries, _entries)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - key, - title, - summary, - const DeepCollectionEquality().hash(_defaultValue), - const DeepCollectionEquality().hash(_currentValue), - defaultValueType, - const DeepCollectionEquality().hash(_entries)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$MultiSelectListPreferenceImplCopyWith<_$MultiSelectListPreferenceImpl> - get copyWith => __$$MultiSelectListPreferenceImplCopyWithImpl< - _$MultiSelectListPreferenceImpl>(this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return multiSelectListPreference(key, title, summary, defaultValue, - currentValue, defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return multiSelectListPreference?.call(key, title, summary, defaultValue, - currentValue, defaultValueType, entries); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (multiSelectListPreference != null) { - return multiSelectListPreference(key, title, summary, defaultValue, - currentValue, defaultValueType, entries); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return multiSelectListPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return multiSelectListPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (multiSelectListPreference != null) { - return multiSelectListPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$MultiSelectListPreferenceImplToJson( - this, - ); - } -} - -abstract class MultiSelectListPreference implements SourcePreferenceProp { - const factory MultiSelectListPreference( - {final String? key, - final String? title, - final String? summary, - final List? defaultValue, - final List? currentValue, - final String? defaultValueType, - final Map? entries}) = _$MultiSelectListPreferenceImpl; - - factory MultiSelectListPreference.fromJson(Map json) = - _$MultiSelectListPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - List? get defaultValue; - @override - List? get currentValue; - String? get defaultValueType; - Map? get entries; - @override - @JsonKey(ignore: true) - _$$MultiSelectListPreferenceImplCopyWith<_$MultiSelectListPreferenceImpl> - get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class _$$EditTextPreferenceImplCopyWith<$Res> - implements $SourcePreferencePropCopyWith<$Res> { - factory _$$EditTextPreferenceImplCopyWith(_$EditTextPreferenceImpl value, - $Res Function(_$EditTextPreferenceImpl) then) = - __$$EditTextPreferenceImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text}); -} - -/// @nodoc -class __$$EditTextPreferenceImplCopyWithImpl<$Res> - extends _$SourcePreferencePropCopyWithImpl<$Res, _$EditTextPreferenceImpl> - implements _$$EditTextPreferenceImplCopyWith<$Res> { - __$$EditTextPreferenceImplCopyWithImpl(_$EditTextPreferenceImpl _value, - $Res Function(_$EditTextPreferenceImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? key = freezed, - Object? title = freezed, - Object? summary = freezed, - Object? defaultValue = freezed, - Object? currentValue = freezed, - Object? defaultValueType = freezed, - Object? dialogTitle = freezed, - Object? dialogMessage = freezed, - Object? text = freezed, - }) { - return _then(_$EditTextPreferenceImpl( - key: freezed == key - ? _value.key - : key // ignore: cast_nullable_to_non_nullable - as String?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - summary: freezed == summary - ? _value.summary - : summary // ignore: cast_nullable_to_non_nullable - as String?, - defaultValue: freezed == defaultValue - ? _value.defaultValue - : defaultValue // ignore: cast_nullable_to_non_nullable - as String?, - currentValue: freezed == currentValue - ? _value.currentValue - : currentValue // ignore: cast_nullable_to_non_nullable - as String?, - defaultValueType: freezed == defaultValueType - ? _value.defaultValueType - : defaultValueType // ignore: cast_nullable_to_non_nullable - as String?, - dialogTitle: freezed == dialogTitle - ? _value.dialogTitle - : dialogTitle // ignore: cast_nullable_to_non_nullable - as String?, - dialogMessage: freezed == dialogMessage - ? _value.dialogMessage - : dialogMessage // ignore: cast_nullable_to_non_nullable - as String?, - text: freezed == text - ? _value.text - : text // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$EditTextPreferenceImpl implements EditTextPreference { - const _$EditTextPreferenceImpl( - {this.key, - this.title, - this.summary, - this.defaultValue, - this.currentValue, - this.defaultValueType, - this.dialogTitle, - this.dialogMessage, - this.text, - final String? $type}) - : $type = $type ?? 'EditTextPreference'; - - factory _$EditTextPreferenceImpl.fromJson(Map json) => - _$$EditTextPreferenceImplFromJson(json); - - @override - final String? key; - @override - final String? title; - @override - final String? summary; - @override - final String? defaultValue; - @override - final String? currentValue; - @override - final String? defaultValueType; - @override - final String? dialogTitle; - @override - final String? dialogMessage; - @override - final String? text; - - @JsonKey(name: 'type') - final String $type; - - @override - String toString() { - return 'SourcePreferenceProp.editTextPreference(key: $key, title: $title, summary: $summary, defaultValue: $defaultValue, currentValue: $currentValue, defaultValueType: $defaultValueType, dialogTitle: $dialogTitle, dialogMessage: $dialogMessage, text: $text)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$EditTextPreferenceImpl && - (identical(other.key, key) || other.key == key) && - (identical(other.title, title) || other.title == title) && - (identical(other.summary, summary) || other.summary == summary) && - (identical(other.defaultValue, defaultValue) || - other.defaultValue == defaultValue) && - (identical(other.currentValue, currentValue) || - other.currentValue == currentValue) && - (identical(other.defaultValueType, defaultValueType) || - other.defaultValueType == defaultValueType) && - (identical(other.dialogTitle, dialogTitle) || - other.dialogTitle == dialogTitle) && - (identical(other.dialogMessage, dialogMessage) || - other.dialogMessage == dialogMessage) && - (identical(other.text, text) || other.text == text)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - key, - title, - summary, - defaultValue, - currentValue, - defaultValueType, - dialogTitle, - dialogMessage, - text); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$EditTextPreferenceImplCopyWith<_$EditTextPreferenceImpl> get copyWith => - __$$EditTextPreferenceImplCopyWithImpl<_$EditTextPreferenceImpl>( - this, _$identity); - - @override - @optionalTypeArgs - TResult when({ - required TResult Function(String? key, dynamic currentValue) fallback, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - checkBoxPreference, - required TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType) - switchPreferenceCompat, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries) - listPreference, - required TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries) - multiSelectListPreference, - required TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text) - editTextPreference, - }) { - return editTextPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, dialogTitle, dialogMessage, text); - } - - @override - @optionalTypeArgs - TResult? whenOrNull({ - TResult? Function(String? key, dynamic currentValue)? fallback, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult? Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult? Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult? Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - }) { - return editTextPreference?.call(key, title, summary, defaultValue, - currentValue, defaultValueType, dialogTitle, dialogMessage, text); - } - - @override - @optionalTypeArgs - TResult maybeWhen({ - TResult Function(String? key, dynamic currentValue)? fallback, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - checkBoxPreference, - TResult Function(String? key, String? title, String? summary, - bool? defaultValue, bool? currentValue, String? defaultValueType)? - switchPreferenceCompat, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - Map? entries)? - listPreference, - TResult Function( - String? key, - String? title, - String? summary, - List? defaultValue, - List? currentValue, - String? defaultValueType, - Map? entries)? - multiSelectListPreference, - TResult Function( - String? key, - String? title, - String? summary, - String? defaultValue, - String? currentValue, - String? defaultValueType, - String? dialogTitle, - String? dialogMessage, - String? text)? - editTextPreference, - required TResult orElse(), - }) { - if (editTextPreference != null) { - return editTextPreference(key, title, summary, defaultValue, currentValue, - defaultValueType, dialogTitle, dialogMessage, text); - } - return orElse(); - } - - @override - @optionalTypeArgs - TResult map({ - required TResult Function(Fallback value) fallback, - required TResult Function(CheckBoxPreference value) checkBoxPreference, - required TResult Function(SwitchPreferenceCompat value) - switchPreferenceCompat, - required TResult Function(ListPreference value) listPreference, - required TResult Function(MultiSelectListPreference value) - multiSelectListPreference, - required TResult Function(EditTextPreference value) editTextPreference, - }) { - return editTextPreference(this); - } - - @override - @optionalTypeArgs - TResult? mapOrNull({ - TResult? Function(Fallback value)? fallback, - TResult? Function(CheckBoxPreference value)? checkBoxPreference, - TResult? Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult? Function(ListPreference value)? listPreference, - TResult? Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult? Function(EditTextPreference value)? editTextPreference, - }) { - return editTextPreference?.call(this); - } - - @override - @optionalTypeArgs - TResult maybeMap({ - TResult Function(Fallback value)? fallback, - TResult Function(CheckBoxPreference value)? checkBoxPreference, - TResult Function(SwitchPreferenceCompat value)? switchPreferenceCompat, - TResult Function(ListPreference value)? listPreference, - TResult Function(MultiSelectListPreference value)? - multiSelectListPreference, - TResult Function(EditTextPreference value)? editTextPreference, - required TResult orElse(), - }) { - if (editTextPreference != null) { - return editTextPreference(this); - } - return orElse(); - } - - @override - Map toJson() { - return _$$EditTextPreferenceImplToJson( - this, - ); - } -} - -abstract class EditTextPreference implements SourcePreferenceProp { - const factory EditTextPreference( - {final String? key, - final String? title, - final String? summary, - final String? defaultValue, - final String? currentValue, - final String? defaultValueType, - final String? dialogTitle, - final String? dialogMessage, - final String? text}) = _$EditTextPreferenceImpl; - - factory EditTextPreference.fromJson(Map json) = - _$EditTextPreferenceImpl.fromJson; - - @override - String? get key; - String? get title; - String? get summary; - String? get defaultValue; - @override - String? get currentValue; - String? get defaultValueType; - String? get dialogTitle; - String? get dialogMessage; - String? get text; - @override - @JsonKey(ignore: true) - _$$EditTextPreferenceImplCopyWith<_$EditTextPreferenceImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.g.dart b/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.g.dart deleted file mode 100644 index 57edc9f8..00000000 --- a/lib/src/features/browse_center/domain/source_preference_prop/source_preference_prop.g.dart +++ /dev/null @@ -1,158 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'source_preference_prop.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$FallbackImpl _$$FallbackImplFromJson(Map json) => - _$FallbackImpl( - key: json['key'] as String?, - currentValue: json['currentValue'], - $type: json['type'] as String?, - ); - -Map _$$FallbackImplToJson(_$FallbackImpl instance) => - { - 'key': instance.key, - 'currentValue': instance.currentValue, - 'type': instance.$type, - }; - -_$CheckBoxPreferenceImpl _$$CheckBoxPreferenceImplFromJson( - Map json) => - _$CheckBoxPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as bool?, - currentValue: json['currentValue'] as bool?, - defaultValueType: json['defaultValueType'] as String?, - $type: json['type'] as String?, - ); - -Map _$$CheckBoxPreferenceImplToJson( - _$CheckBoxPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'type': instance.$type, - }; - -_$SwitchPreferenceCompatImpl _$$SwitchPreferenceCompatImplFromJson( - Map json) => - _$SwitchPreferenceCompatImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as bool?, - currentValue: json['currentValue'] as bool?, - defaultValueType: json['defaultValueType'] as String?, - $type: json['type'] as String?, - ); - -Map _$$SwitchPreferenceCompatImplToJson( - _$SwitchPreferenceCompatImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'type': instance.$type, - }; - -_$ListPreferenceImpl _$$ListPreferenceImplFromJson(Map json) => - _$ListPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as String?, - currentValue: json['currentValue'] as String?, - defaultValueType: json['defaultValueType'] as String?, - entries: (json['entries'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ), - $type: json['type'] as String?, - ); - -Map _$$ListPreferenceImplToJson( - _$ListPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'entries': instance.entries, - 'type': instance.$type, - }; - -_$MultiSelectListPreferenceImpl _$$MultiSelectListPreferenceImplFromJson( - Map json) => - _$MultiSelectListPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: (json['defaultValue'] as List?) - ?.map((e) => e as String) - .toList(), - currentValue: (json['currentValue'] as List?) - ?.map((e) => e as String) - .toList(), - defaultValueType: json['defaultValueType'] as String?, - entries: (json['entries'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ), - $type: json['type'] as String?, - ); - -Map _$$MultiSelectListPreferenceImplToJson( - _$MultiSelectListPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'entries': instance.entries, - 'type': instance.$type, - }; - -_$EditTextPreferenceImpl _$$EditTextPreferenceImplFromJson( - Map json) => - _$EditTextPreferenceImpl( - key: json['key'] as String?, - title: json['title'] as String?, - summary: json['summary'] as String?, - defaultValue: json['defaultValue'] as String?, - currentValue: json['currentValue'] as String?, - defaultValueType: json['defaultValueType'] as String?, - dialogTitle: json['dialogTitle'] as String?, - dialogMessage: json['dialogMessage'] as String?, - text: json['text'] as String?, - $type: json['type'] as String?, - ); - -Map _$$EditTextPreferenceImplToJson( - _$EditTextPreferenceImpl instance) => - { - 'key': instance.key, - 'title': instance.title, - 'summary': instance.summary, - 'defaultValue': instance.defaultValue, - 'currentValue': instance.currentValue, - 'defaultValueType': instance.defaultValueType, - 'dialogTitle': instance.dialogTitle, - 'dialogMessage': instance.dialogMessage, - 'text': instance.text, - 'type': instance.$type, - }; diff --git a/lib/src/features/browse_center/presentation/browse/browse_screen.dart b/lib/src/features/browse_center/presentation/browse/browse_screen.dart index 596c01e5..441b985f 100644 --- a/lib/src/features/browse_center/presentation/browse/browse_screen.dart +++ b/lib/src/features/browse_center/presentation/browse/browse_screen.dart @@ -13,24 +13,45 @@ import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../widgets/search_field.dart'; import '../extension/controller/extension_controller.dart'; -import '../extension/extension_screen.dart'; import '../extension/widgets/extension_language_filter_dialog.dart'; import '../extension/widgets/install_extension_file.dart'; -import '../source/source_screen.dart'; import '../source/widgets/source_language_filter.dart'; class BrowseScreen extends HookConsumerWidget { - const BrowseScreen({super.key}); + const BrowseScreen({ + super.key, + required this.currentIndex, + required this.onDestinationSelected, + required this.children, + }); + final int currentIndex; + final ValueChanged onDestinationSelected; + final List children; @override Widget build(BuildContext context, WidgetRef ref) { - final tabController = useTabController(initialLength: 2); + final tabController = + useTabController(initialLength: 2, initialIndex: currentIndex); + + useEffect(() { + if (currentIndex != tabController.index) { + tabController.animateTo(currentIndex); + } + return null; + }, [currentIndex]); + + useEffect(() { + if (currentIndex != tabController.index) { + Future.microtask(() => onDestinationSelected(tabController.index)); + } + return null; + }, [tabController.index]); useListenable(tabController); - final key = useMemoized(() => GlobalKey()); + final showSearch = useState(false); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.browse), + title: Text(context.l10n.browse), centerTitle: true, actions: [ IconButton( @@ -63,8 +84,8 @@ class BrowseScreen extends HookConsumerWidget { isScrollable: context.isTablet, controller: tabController, tabs: [ - Tab(text: context.l10n!.sources), - Tab(text: context.l10n!.extensions), + Tab(text: context.l10n.sources), + Tab(text: context.l10n.extensions), ], ), if (showSearch.value) @@ -93,14 +114,7 @@ class BrowseScreen extends HookConsumerWidget { ), ), ), - body: TabBarView( - key: key, - controller: tabController, - children: const [ - SourceScreen(), - ExtensionScreen(), - ], - ), + body: TabBarView(controller: tabController, children: children), ); } } diff --git a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart index 0ad37af5..830fcc43 100644 --- a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart +++ b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.dart @@ -4,7 +4,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../constants/db_keys.dart'; @@ -18,25 +18,22 @@ import '../../../domain/extension/extension_model.dart'; part 'extension_controller.g.dart'; @riverpod -Future?> extension(ExtensionRef ref) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = await ref - .watch(extensionRepositoryProvider) - .getExtensionList(cancelToken: token); +Stream?> extension(Ref ref) { + final result = + ref.watch(extensionRepositoryProvider).getExtensionListStream(); ref.keepAlive(); return result; } @riverpod -AsyncValue>> extensionMap(ExtensionMapRef ref) { +AsyncValue>> extensionMap(Ref ref) { final extensionMap = >{}; final extensionListData = ref.watch(extensionProvider); final extensionList = [...?extensionListData.valueOrNull]; final showNsfw = ref.watch(showNSFWProvider).ifNull(true); for (final e in extensionList) { if (!showNsfw && (e.isNsfw.ifNull())) continue; - if (e.installed.ifNull()) { + if (e.isInstalled.ifNull()) { if (e.hasUpdate.ifNull()) { extensionMap.update( "update", @@ -52,7 +49,7 @@ AsyncValue>> extensionMap(ExtensionMapRef ref) { } } else { extensionMap.update( - e.lang?.code?.toLowerCase() ?? "other", + e.language?.code?.toLowerCase() ?? "other", (value) => [...value, e], ifAbsent: () => [e], ); @@ -62,7 +59,7 @@ AsyncValue>> extensionMap(ExtensionMapRef ref) { } @riverpod -List extensionFilterLangList(ExtensionFilterLangListRef ref) { +List extensionFilterLangList(Ref ref) { final extensionMap = {...?ref.watch(extensionMapProvider).valueOrNull}; extensionMap.remove("installed"); extensionMap.remove("update"); @@ -77,8 +74,7 @@ class ExtensionLanguageFilter extends _$ExtensionLanguageFilter } @riverpod -AsyncValue>> extensionMapFiltered( - ExtensionMapFilteredRef ref) { +AsyncValue>> extensionMapFiltered(Ref ref) { final extensionMapFiltered = >{}; final extensionMapData = ref.watch(extensionMapProvider); final extensionMap = {...?extensionMapData.valueOrNull}; @@ -91,7 +87,7 @@ AsyncValue>> extensionMapFiltered( @riverpod AsyncValue>> extensionMapFilteredAndQueried( - ExtensionMapFilteredAndQueriedRef ref, + Ref ref, ) { final extensionMapData = ref.watch(extensionMapFilteredProvider); final extensionMap = {...?extensionMapData.valueOrNull}; diff --git a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart index 9d1ca6bf..060d85d1 100644 --- a/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart +++ b/lib/src/features/browse_center/presentation/extension/controller/extension_controller.g.dart @@ -6,11 +6,11 @@ part of 'extension_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$extensionHash() => r'7f4a60c97e38a62db718b504d572bd031b5b845d'; +String _$extensionHash() => r'18cdce42c4d4d3a2d435d4571ba6210909cd3aab'; /// See also [extension]. @ProviderFor(extension) -final extensionProvider = AutoDisposeFutureProvider?>.internal( +final extensionProvider = AutoDisposeStreamProvider?>.internal( extension, name: r'extensionProvider', debugGetCreateSourceHash: @@ -19,8 +19,10 @@ final extensionProvider = AutoDisposeFutureProvider?>.internal( allTransitiveDependencies: null, ); -typedef ExtensionRef = AutoDisposeFutureProviderRef?>; -String _$extensionMapHash() => r'868e56067ad0639e41874adcffa4e97c49617f6c'; +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef ExtensionRef = AutoDisposeStreamProviderRef?>; +String _$extensionMapHash() => r'05bd80c8a16e503efc3000ca2612a75bf2cfc35e'; /// See also [extensionMap]. @ProviderFor(extensionMap) @@ -34,10 +36,12 @@ final extensionMapProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef ExtensionMapRef = AutoDisposeProviderRef>>>; String _$extensionFilterLangListHash() => - r'9b321188e52c96aa6f900d0bd671217e19d36832'; + r'fcff9c0fa1a456138f7f5ae122503dd12c2bac1d'; /// See also [extensionFilterLangList]. @ProviderFor(extensionFilterLangList) @@ -52,9 +56,11 @@ final extensionFilterLangListProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef ExtensionFilterLangListRef = AutoDisposeProviderRef>; String _$extensionMapFilteredHash() => - r'bcfe4ed3d11f2987273f35b672a3a27d9156fe77'; + r'372ccefe11b8e35396b9d1c176519bf09fd8f6eb'; /// See also [extensionMapFiltered]. @ProviderFor(extensionMapFiltered) @@ -69,10 +75,12 @@ final extensionMapFilteredProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef ExtensionMapFilteredRef = AutoDisposeProviderRef>>>; String _$extensionMapFilteredAndQueriedHash() => - r'211f3d7c994d5a1c7d9f4b1aba3437162cc69521'; + r'c6a5f6bc23fb701aa0b2a48f08d1f7de5a0798cd'; /// See also [extensionMapFilteredAndQueried]. @ProviderFor(extensionMapFilteredAndQueried) @@ -87,6 +95,8 @@ final extensionMapFilteredAndQueriedProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef ExtensionMapFilteredAndQueriedRef = AutoDisposeProviderRef>>>; String _$extensionLanguageFilterHash() => @@ -123,4 +133,4 @@ final extensionQueryProvider = typedef _$ExtensionQuery = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/browse_center/presentation/extension/extension_screen.dart b/lib/src/features/browse_center/presentation/extension/extension_screen.dart index e0a3c7cd..448692a1 100644 --- a/lib/src/features/browse_center/presentation/extension/extension_screen.dart +++ b/lib/src/features/browse_center/presentation/extension/extension_screen.dart @@ -64,10 +64,13 @@ class ExtensionScreen extends HookConsumerWidget { }, []); useEffect(() { - extensionMapData.showToastOnError( - ref.read(toastProvider(context)), - withMicrotask: true, - ); + final toast = ref.read(toastProvider); + if (toast != null) { + extensionMapData.showToastOnError( + toast, + withMicrotask: true, + ); + } return; }, [extensionMapData.valueOrNull]); @@ -78,10 +81,10 @@ class ExtensionScreen extends HookConsumerWidget { update.isBlank && all.isBlank) ? Emoticons( - text: context.l10n!.extensionListEmpty, + title: context.l10n.extensionListEmpty, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ) : RefreshIndicator( diff --git a/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart b/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart index b5aa2f4c..5462692d 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/extension_language_filter_dialog.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/language_list.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/language/language_model.dart'; import '../controller/extension_controller.dart'; @@ -21,7 +21,7 @@ class ExtensionLanguageFilterDialog extends ConsumerWidget { final languageCodes = ref.watch(extensionFilterLangListProvider); final enabledLanguages = ref.watch(extensionLanguageFilterProvider); return AlertDialog( - title: Text(context.l10n!.languages), + title: Text(context.l10n.languages), content: SizedBox( height: context.heightScale(scale: .5), width: context.widthScale(scale: context.isSmallTablet ? .5 : .8), @@ -61,7 +61,7 @@ class ExtensionLanguageFilterDialog extends ConsumerWidget { }, ), ), - actions: [PopButton(popText: context.l10n!.close)], + actions: [PopButton(popText: context.l10n.close)], ); } } diff --git a/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart b/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart index d6ba02d2..9a7a9749 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/extension_list_tile.dart @@ -11,6 +11,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../utils/misc/app_utils.dart'; import '../../../../../utils/misc/toast/toast.dart'; import '../../../../../widgets/server_image.dart'; import '../../../data/extension_repository/extension_repository.dart'; @@ -36,31 +37,29 @@ class ExtensionListTile extends HookConsumerWidget { leading: ClipRRect( borderRadius: KBorderRadius.r8.radius, child: ServerImageWithCpi( - url: extension.iconUrl ?? "", + url: extension.iconUrl, outerSize: const Size.square(48), innerSize: const Size.square(24), isLoading: isLoading.value, ), ), title: Text( - extension.name ?? "", + extension.name, overflow: TextOverflow.ellipsis, ), subtitle: Text.rich( TextSpan( - text: (extension.lang) != null - ? "${extension.lang?.displayName} " - : null, + text: "${extension.language?.displayName} ", style: const TextStyle(fontWeight: FontWeight.bold), children: [ if (extension.versionName.isNotBlank) TextSpan( - text: "${extension.versionName ?? ""} ", + text: "${extension.versionName} ", style: const TextStyle(fontWeight: FontWeight.normal), ), if (extension.isNsfw.ifNull()) TextSpan( - text: context.l10n!.nsfw18, + text: context.l10n.nsfw18, style: const TextStyle( fontWeight: FontWeight.w400, color: Colors.redAccent, @@ -98,41 +97,39 @@ class ExtensionListTileTailing extends StatelessWidget { @override Widget build(BuildContext context) { - if (extension.obsolete.ifNull()) { + if (extension.isObsolete.ifNull()) { return OutlinedButton( - onPressed: extension.installed.ifNull() - ? () => repository.uninstallExtension(extension.pkgName!) + onPressed: extension.isInstalled.ifNull() + ? () => repository.uninstallExtension(extension.pkgName) : null, child: Text( - context.l10n!.obsolete, + context.l10n.obsolete, style: const TextStyle(color: Colors.redAccent), ), ); } else { - if (extension.installed.ifNull()) { + if (extension.isInstalled.ifNull()) { return TextButton( onPressed: (!isLoading.value) ? () async { try { isLoading.value = (true); - final result = (await AsyncValue.guard( + await AppUtils.guard( () async { if (extension.pkgName.isBlank) { - throw context.l10n!.errorExtension; + throw context.l10n.errorExtension; } if (extension.hasUpdate.ifNull()) { - await repository.updateExtension(extension.pkgName!); + await repository.updateExtension(extension.pkgName); } else { await repository - .uninstallExtension(extension.pkgName!); + .uninstallExtension(extension.pkgName); } await refresh(); }, - )); - if (context.mounted) { - result.showToastOnError(ref.read(toastProvider(context))); - } + ref.read(toastProvider), + ); isLoading.value = (false); } catch (e) { // @@ -142,11 +139,11 @@ class ExtensionListTileTailing extends StatelessWidget { child: Text( extension.hasUpdate.ifNull() ? isLoading.value - ? context.l10n!.updating - : context.l10n!.update + ? context.l10n.updating + : context.l10n.update : isLoading.value - ? context.l10n!.uninstalling - : context.l10n!.uninstall, + ? context.l10n.uninstalling + : context.l10n.uninstall, ), ); } else { @@ -155,13 +152,13 @@ class ExtensionListTileTailing extends StatelessWidget { ? () async { try { isLoading.value = (true); - final result = await AsyncValue.guard(() async { + await AppUtils.guard(() async { if (extension.pkgName.isBlank) { - throw context.l10n!.errorExtension; + throw context.l10n.errorExtension; } - await repository.installExtension(extension.pkgName!); - if ((extension.lang?.code).isNotBlank) { - final code = extension.lang!.code!; + await repository.installExtension(extension.pkgName); + if ((extension.language?.code).isNotBlank) { + final code = extension.language!.code!; final enabledLanguages = ref.read(sourceLanguageFilterProvider); if (enabledLanguages.isNotBlank && @@ -174,12 +171,7 @@ class ExtensionListTileTailing extends StatelessWidget { } } await refresh(); - }); - if (context.mounted) { - result.showToastOnError( - ref.read(toastProvider(context)), - ); - } + }, ref.read(toastProvider)); isLoading.value = (false); } catch (e) { // @@ -187,7 +179,7 @@ class ExtensionListTileTailing extends StatelessWidget { } : null, child: Text( - isLoading.value ? context.l10n!.installing : context.l10n!.install, + isLoading.value ? context.l10n.installing : context.l10n.install, ), ); } diff --git a/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart b/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart index 37be67f5..dad33af3 100644 --- a/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart +++ b/lib/src/features/browse_center/presentation/extension/widgets/install_extension_file.dart @@ -9,6 +9,7 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../utils/misc/app_utils.dart'; import '../../../../../utils/misc/toast/toast.dart'; import '../../../data/extension_repository/extension_repository.dart'; import '../controller/extension_controller.dart'; @@ -17,26 +18,27 @@ class InstallExtensionFile extends ConsumerWidget { const InstallExtensionFile({super.key}); void extensionFilePicker(WidgetRef ref, BuildContext context) async { - final toast = ref.read(toastProvider(context)); + final toast = ref.read(toastProvider); final file = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: ['apk'], ); if ((file?.files).isNotBlank) { if (context.mounted) { - toast.show(context.l10n!.installingExtension); + toast?.show(context.l10n.installingExtension); } } - AsyncValue.guard(() => ref - .read(extensionRepositoryProvider) - .installExtensionFile(context, file: file?.files.single)).then( - (result) => result.whenOrNull( - error: (error, stackTrace) => result.showToastOnError(toast), - data: (data) { - ref.invalidate(extensionProvider); - toast.instantShow(context.l10n!.extensionInstalled); - }, - ), + AppUtils.guard( + () async { + await ref + .read(extensionRepositoryProvider) + .installExtensionFile(context, file: file?.files.single); + ref.invalidate(extensionProvider); + if (context.mounted) { + toast?.show(context.l10n.extensionInstalled, instantShow: true); + } + }, + toast, ); } diff --git a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart index cfebd0e4..ff61c5cb 100644 --- a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart +++ b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.dart @@ -4,9 +4,9 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../../../constants/enum.dart'; import '../../../../../global_providers/global_providers.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../manga_book/domain/manga/manga_model.dart'; @@ -23,24 +23,23 @@ typedef QuickSearchResults = ({ @riverpod Future> sourceQuickSearchMangaList( - SourceQuickSearchMangaListRef ref, + Ref ref, String sourceId, { String? query, }) async { final rateLimiterQueue = ref.watch(rateLimitQueueProvider(query)); final mangaPage = await rateLimiterQueue - .add(() => ref.watch(sourceRepositoryProvider).getMangaList( - pageNum: 1, + .add(() => ref.watch(sourceRepositoryProvider).fetchSourceManga( + page: 1, sourceId: sourceId, - sourceType: SourceType.filter, + sourceType: SourceType.SEARCH, query: query, )); - return [...?(mangaPage?.mangaList)]; + return [...?(mangaPage?.mangas)]; } @riverpod -AsyncValue> quickSearchResults( - QuickSearchResultsRef ref, +AsyncValue> quickSearchResults(Ref ref, {String? query}) { final sourceMapData = ref.watch(sourceMapFilteredProvider); @@ -51,9 +50,9 @@ AsyncValue> quickSearchResults( ); final List sourceMangaListPairList = []; for (Source source in sourceList) { - if (source.id.isNotBlank) { + if (source.id.value.isNotBlank) { final mangaList = ref.watch( - sourceQuickSearchMangaListProvider(source.id!, query: query), + sourceQuickSearchMangaListProvider(source.id.value, query: query), ); sourceMangaListPairList.add((mangaList: mangaList, source: source)); } diff --git a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart index 9b60cb31..64aaf4cc 100644 --- a/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart +++ b/lib/src/features/browse_center/presentation/global_search/controller/source_quick_search_controller.g.dart @@ -7,7 +7,7 @@ part of 'source_quick_search_controller.dart'; // ************************************************************************** String _$sourceQuickSearchMangaListHash() => - r'5bdff0092cc32d1ced8fa590a4146cfdba0d108f'; + r'180dfbcc447d1caa59f8f82ee23038f486e632f0'; /// Copied from Dart SDK class _SystemHash { @@ -157,6 +157,8 @@ class SourceQuickSearchMangaListProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin SourceQuickSearchMangaListRef on AutoDisposeFutureProviderRef> { /// The parameter `sourceId` of this provider. @@ -179,7 +181,7 @@ class _SourceQuickSearchMangaListProviderElement } String _$quickSearchResultsHash() => - r'95c8745e42306378a3b8981adb88d6d40679966e'; + r'afb320774f7c45d1dd0050807fc61f21c8dafa5d'; /// See also [quickSearchResults]. @ProviderFor(quickSearchResults) @@ -299,6 +301,8 @@ class QuickSearchResultsProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin QuickSearchResultsRef on AutoDisposeProviderRef>> { /// The parameter `query` of this provider. @@ -314,4 +318,4 @@ class _QuickSearchResultsProviderElement String? get query => (origin as QuickSearchResultsProvider).query; } // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart b/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart index 21fc477a..0f1a1633 100644 --- a/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart +++ b/lib/src/features/browse_center/presentation/global_search/global_search_screen.dart @@ -26,7 +26,7 @@ class GlobalSearchScreen extends HookConsumerWidget { ref.watch(quickSearchResultsProvider(query: query.value)); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.globalSearch), + title: Text(context.l10n.globalSearch), bottom: PreferredSize( preferredSize: kCalculateAppBarBottomSize([true]), child: Column( @@ -46,23 +46,19 @@ class GlobalSearchScreen extends HookConsumerWidget { context, (data) => data.isBlank ? Emoticons( - text: context.l10n!.noSourcesFound, + title: context.l10n.noSourcesFound, button: TextButton( onPressed: () => ref.invalidate(sourceListProvider), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ) : ListView.builder( itemBuilder: (context, index) { - if (data[index].source.id == null) { - return const SizedBox.shrink(); - } else { - return SourceShortSearch( - source: data[index].source, - mangaList: data[index].mangaList, - query: query.value, - ); - } + return SourceShortSearch( + source: data[index].source, + mangaList: data[index].mangaList, + query: query.value, + ); }, itemCount: data.length, ), diff --git a/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart b/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart index 701745be..13e842df 100644 --- a/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart +++ b/lib/src/features/browse_center/presentation/global_search/widgets/source_short_search.dart @@ -8,8 +8,6 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; -import '../../../../../constants/enum.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/manga_cover/grid/manga_cover_grid_tile.dart'; @@ -34,11 +32,11 @@ class SourceShortSearch extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ ListTile( - title: Text(source.displayName ?? source.name ?? ""), + title: Text(source.displayName), trailing: const Icon(Icons.arrow_forward_rounded), - onTap: () => SourceMangaRoute( - sourceId: source.id!, - sourceType: SourceType.filter, + onTap: () => SourceTypeRoute( + sourceId: source.id.value, + sourceType: SourceType.SEARCH.name, query: query, ).push(context), ), @@ -47,7 +45,7 @@ class SourceShortSearch extends StatelessWidget { (data) => data.isEmpty ? Padding( padding: KEdgeInsets.h16v4.size, - child: Text(context.l10n!.noResultFound), + child: Text(context.l10n.noResultFound), ) : SingleChildScrollView( scrollDirection: Axis.horizontal, @@ -60,9 +58,8 @@ class SourceShortSearch extends StatelessWidget { child: MangaCoverGridTile( manga: i, showDarkOverlay: i.inLibrary.ifNull(), - onPressed: i.id != null - ? () => MangaRoute(mangaId: i.id!).push(context) - : null, + onPressed: () => + MangaRoute(mangaId: i.id).push(context), ), ), ], diff --git a/lib/src/features/browse_center/presentation/source/controller/source_controller.dart b/lib/src/features/browse_center/presentation/source/controller/source_controller.dart index 7bae8734..1dca8ce2 100644 --- a/lib/src/features/browse_center/presentation/source/controller/source_controller.dart +++ b/lib/src/features/browse_center/presentation/source/controller/source_controller.dart @@ -4,7 +4,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../constants/db_keys.dart'; @@ -16,28 +16,21 @@ import '../../../domain/source/source_model.dart'; part 'source_controller.g.dart'; @riverpod -Future?> sourceList(SourceListRef ref) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = await ref - .watch(sourceRepositoryProvider) - .getSourceList(cancelToken: token); - ref.keepAlive(); - return result; -} +Stream?> sourceList(Ref ref) => + ref.watch(sourceRepositoryProvider).getSourceList(); @riverpod -AsyncValue>> sourceMap(SourceMapRef ref) { +AsyncValue>> sourceMap(Ref ref) { final sourceMap = >{}; final sourceListData = ref.watch(sourceListProvider); final sourceLastUsed = ref.watch(sourceLastUsedProvider); for (final e in [...?sourceListData.valueOrNull]) { sourceMap.update( - e.lang?.code ?? "other", + e.language?.code ?? "other", (value) => [...value, e], ifAbsent: () => [e], ); - if (e.id == sourceLastUsed) sourceMap["lastUsed"] = [e]; + if (e.id.value == sourceLastUsed) sourceMap["lastUsed"] = [e]; } return sourceListData.copyWithData((e) => sourceMap); } @@ -69,8 +62,7 @@ class SourceFilterLangMap extends _$SourceFilterLangMap { } @riverpod -AsyncValue>?> sourceMapFiltered( - SourceMapFilteredRef ref) { +AsyncValue>?> sourceMapFiltered(Ref ref) { final sourceMapFiltered = >{}; final sourceMapData = ref.watch(sourceMapProvider); final sourceMap = {...?sourceMapData.valueOrNull}; @@ -82,7 +74,7 @@ AsyncValue>?> sourceMapFiltered( } @riverpod -List? sourceQuery(SourceQueryRef ref, {String? query}) { +List? sourceQuery(Ref ref, {String? query}) { final sourceMap = {...?ref.watch(sourceMapFilteredProvider).valueOrNull} ..remove('lastUsed'); if (query.isNotBlank) { diff --git a/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart b/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart index 2bb86ee7..8f4df007 100644 --- a/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart +++ b/lib/src/features/browse_center/presentation/source/controller/source_controller.g.dart @@ -6,11 +6,11 @@ part of 'source_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$sourceListHash() => r'80d37bd602ce3e229ac64c39743cee84d94fd1f9'; +String _$sourceListHash() => r'3de5f4afc9cf7ce846e5f1b2a15df1f1965bc3f2'; /// See also [sourceList]. @ProviderFor(sourceList) -final sourceListProvider = AutoDisposeFutureProvider?>.internal( +final sourceListProvider = AutoDisposeStreamProvider?>.internal( sourceList, name: r'sourceListProvider', debugGetCreateSourceHash: @@ -19,8 +19,10 @@ final sourceListProvider = AutoDisposeFutureProvider?>.internal( allTransitiveDependencies: null, ); -typedef SourceListRef = AutoDisposeFutureProviderRef?>; -String _$sourceMapHash() => r'13682cd8c100d4d7ef007793b2c5ab9f97bad438'; +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SourceListRef = AutoDisposeStreamProviderRef?>; +String _$sourceMapHash() => r'ba9f44522c74fab750999c2258f1208a48cebb85'; /// See also [sourceMap]. @ProviderFor(sourceMap) @@ -34,9 +36,11 @@ final sourceMapProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef SourceMapRef = AutoDisposeProviderRef>>>; -String _$sourceMapFilteredHash() => r'0154413eb0639738378258287e318c3fa3e92ecc'; +String _$sourceMapFilteredHash() => r'cb476151661aa7f8e69d79f2a05432d0283b3917'; /// See also [sourceMapFiltered]. @ProviderFor(sourceMapFiltered) @@ -51,9 +55,11 @@ final sourceMapFilteredProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef SourceMapFilteredRef = AutoDisposeProviderRef>?>>; -String _$sourceQueryHash() => r'4e0ea33fcbc3640e4cc3ecbdf15c75923384ed69'; +String _$sourceQueryHash() => r'0925ecbd15d5daff75544abe307f929ea109a4ea'; /// Copied from Dart SDK class _SystemHash { @@ -189,6 +195,8 @@ class SourceQueryProvider extends AutoDisposeProvider?> { } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin SourceQueryRef on AutoDisposeProviderRef?> { /// The parameter `query` of this provider. String? get query; @@ -253,4 +261,4 @@ final sourceLastUsedProvider = typedef _$SourceLastUsed = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/browse_center/presentation/source/source_screen.dart b/lib/src/features/browse_center/presentation/source/source_screen.dart index 69f239a3..15cc1530 100644 --- a/lib/src/features/browse_center/presentation/source/source_screen.dart +++ b/lib/src/features/browse_center/presentation/source/source_screen.dart @@ -9,7 +9,6 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/language_list.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/misc/toast/toast.dart'; import '../../../../widgets/emoticons.dart'; @@ -36,7 +35,7 @@ class SourceScreen extends HookConsumerWidget { useEffect(() { sourceMapData.showToastOnError( - ref.read(toastProvider(context)), + ref.read(toastProvider), withMicrotask: true, ); return; @@ -47,10 +46,10 @@ class SourceScreen extends HookConsumerWidget { (data) { if ((sourceMap.isEmpty && localSource.isBlank && lastUsed.isBlank)) { return Emoticons( - text: context.l10n!.noSourcesFound, + title: context.l10n.noSourcesFound, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } diff --git a/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart b/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart index 1401f3a6..2492ae6f 100644 --- a/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart +++ b/lib/src/features/browse_center/presentation/source/widgets/source_language_filter.dart @@ -11,7 +11,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/language_list.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/language/language_model.dart'; import '../controller/source_controller.dart'; @@ -34,7 +34,7 @@ class SourceLanguageFilter extends HookConsumerWidget { }, []); return AlertDialog( - title: Text(context.l10n!.languages), + title: Text(context.l10n.languages), content: SizedBox( height: context.heightScale(scale: .5), width: context.widthScale(scale: context.isSmallTablet ? .5 : .8), @@ -61,7 +61,7 @@ class SourceLanguageFilter extends HookConsumerWidget { }, ), ), - actions: [PopButton(popText: context.l10n!.close)], + actions: [PopButton(popText: context.l10n.close)], ); } } diff --git a/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart b/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart index e456952b..2b518260 100644 --- a/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart +++ b/lib/src/features/browse_center/presentation/source/widgets/source_list_tile.dart @@ -8,8 +8,6 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; -import '../../../../../constants/enum.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/server_image.dart'; @@ -25,34 +23,35 @@ class SourceListTile extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return ListTile( onTap: (() async { - if (source.id == null) return; - ref.read(sourceLastUsedProvider.notifier).update(source.id); - SourceMangaRoute( - sourceId: source.id!, - sourceType: SourceType.popular, - ).push(context); + ref.read(sourceLastUsedProvider.notifier).update(source.id.value); + SourceTypeRoute( + sourceId: source.id.value, + sourceType: SourceType.POPULAR.name, + ).go(context); }), leading: ClipRRect( borderRadius: KBorderRadius.r8.radius, child: ServerImage( - imageUrl: source.iconUrl ?? "", + imageUrl: source.iconUrl, size: const Size.square(48), ), ), - title: Text(source.name ?? ""), - subtitle: (source.lang?.displayName).isNotBlank - ? Text(source.lang?.displayName ?? "") + title: Text(source.name), + subtitle: (source.language?.displayName).isNotBlank + ? Text(source.language?.displayName ?? "") : null, trailing: (source.supportsLatest.ifNull()) ? TextButton( onPressed: () async { - ref.read(sourceLastUsedProvider.notifier).update(source.id); - SourceMangaRoute( - sourceId: source.id!, - sourceType: SourceType.latest, - ).push(context); + ref + .read(sourceLastUsedProvider.notifier) + .update(source.id.value); + SourceTypeRoute( + sourceId: source.id.value, + sourceType: SourceType.LATEST.name, + ).go(context); }, - child: Text(context.l10n!.latest), + child: Text(context.l10n.latest), ) : null, ); diff --git a/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.dart b/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.dart index af1d1682..b3c2b766 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.dart @@ -4,13 +4,12 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; -import 'package:freezed_annotation/freezed_annotation.dart'; +import 'package:built_collection/built_collection.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../constants/db_keys.dart'; import '../../../../../constants/enum.dart'; -import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/mixin/shared_preferences_client_mixin.dart'; import '../../../data/source_repository/source_repository.dart'; import '../../../domain/filter/filter_model.dart'; @@ -19,59 +18,13 @@ import '../../../domain/source/source_model.dart'; part 'source_manga_controller.g.dart'; @riverpod -FutureOr source(SourceRef ref, String sourceId) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = await ref - .watch(sourceRepositoryProvider) - .getSource(sourceId: sourceId, cancelToken: token); - ref.keepAlive(); - return result; -} +Stream source(Ref ref, String sourceId) => + ref.watch(sourceRepositoryProvider).getSource(sourceId); @riverpod -Future?> baseSourceMangaFilterList( - BaseSourceMangaFilterListRef ref, - String sourceId, -) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = await ref - .watch(sourceRepositoryProvider) - .getFilterList(sourceId: sourceId); - ref.keepAlive(); - return result; -} - -@riverpod -class SourceMangaFilterList extends _$SourceMangaFilterList { - @override - AsyncValue?> build(String sourceId, {List? filter}) { - final networkFilter = - ref.watch(baseSourceMangaFilterListProvider(sourceId)); - return filter != null ? AsyncData(filter) : networkFilter; - } - - void updateFilter(List? filter) => - state = state.copyWithData((p0) => filter); - - Future reset() async => - ref.invalidate(baseSourceMangaFilterListProvider(sourceId)); - - List> get getAppliedFilter { - final baseFilters = Filter.filtersToJson( - ref.read(baseSourceMangaFilterListProvider(sourceId)).valueOrNull ?? [], - ); - final currentFilters = Filter.filtersToJson(state.valueOrNull ?? []); - if (baseFilters.length != currentFilters.length) return currentFilters; - const equality = DeepCollectionEquality(); - return [ - for (int i = 0; i < baseFilters.length; i++) - if (!equality.equals(currentFilters[i], baseFilters[i])) - currentFilters[i], - ]; - } -} +Future?> baseSourceMangaFilterList( + Ref ref, String sourceId) => + ref.read(sourceRepositoryProvider).getSourceFilter(sourceId).first; @riverpod class SourceDisplayMode extends _$SourceDisplayMode diff --git a/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.g.dart b/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.g.dart index 90c8d408..728ac675 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.g.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/controller/source_manga_controller.g.dart @@ -6,7 +6,7 @@ part of 'source_manga_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$sourceHash() => r'02ebbe306c0a96174aa221c8e90e9f2c96f398ee'; +String _$sourceHash() => r'ba0522b8852d946a8af5b73f9bdc6abfffa9b070'; /// Copied from Dart SDK class _SystemHash { @@ -72,7 +72,7 @@ class SourceFamily extends Family> { } /// See also [source]. -class SourceProvider extends AutoDisposeFutureProvider { +class SourceProvider extends AutoDisposeStreamProvider { /// See also [source]. SourceProvider( String sourceId, @@ -106,7 +106,7 @@ class SourceProvider extends AutoDisposeFutureProvider { @override Override overrideWith( - FutureOr Function(SourceRef provider) create, + Stream Function(SourceRef provider) create, ) { return ProviderOverride( origin: this, @@ -123,7 +123,7 @@ class SourceProvider extends AutoDisposeFutureProvider { } @override - AutoDisposeFutureProviderElement createElement() { + AutoDisposeStreamProviderElement createElement() { return _SourceProviderElement(this); } @@ -141,12 +141,14 @@ class SourceProvider extends AutoDisposeFutureProvider { } } -mixin SourceRef on AutoDisposeFutureProviderRef { +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +mixin SourceRef on AutoDisposeStreamProviderRef { /// The parameter `sourceId` of this provider. String get sourceId; } -class _SourceProviderElement extends AutoDisposeFutureProviderElement +class _SourceProviderElement extends AutoDisposeStreamProviderElement with SourceRef { _SourceProviderElement(super.provider); @@ -155,7 +157,7 @@ class _SourceProviderElement extends AutoDisposeFutureProviderElement } String _$baseSourceMangaFilterListHash() => - r'21b6028eb4e3ea54f9708d2faf1c73f21129721e'; + r'3c388358917ac0729529b91f0b2afa80b3378762'; /// See also [baseSourceMangaFilterList]. @ProviderFor(baseSourceMangaFilterList) @@ -163,7 +165,7 @@ const baseSourceMangaFilterListProvider = BaseSourceMangaFilterListFamily(); /// See also [baseSourceMangaFilterList]. class BaseSourceMangaFilterListFamily - extends Family?>> { + extends Family?>> { /// See also [baseSourceMangaFilterList]. const BaseSourceMangaFilterListFamily(); @@ -202,7 +204,7 @@ class BaseSourceMangaFilterListFamily /// See also [baseSourceMangaFilterList]. class BaseSourceMangaFilterListProvider - extends AutoDisposeFutureProvider?> { + extends AutoDisposeFutureProvider?> { /// See also [baseSourceMangaFilterList]. BaseSourceMangaFilterListProvider( String sourceId, @@ -237,7 +239,7 @@ class BaseSourceMangaFilterListProvider @override Override overrideWith( - FutureOr?> Function(BaseSourceMangaFilterListRef provider) + FutureOr?> Function(BaseSourceMangaFilterListRef provider) create, ) { return ProviderOverride( @@ -255,7 +257,7 @@ class BaseSourceMangaFilterListProvider } @override - AutoDisposeFutureProviderElement?> createElement() { + AutoDisposeFutureProviderElement?> createElement() { return _BaseSourceMangaFilterListProviderElement(this); } @@ -274,14 +276,16 @@ class BaseSourceMangaFilterListProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin BaseSourceMangaFilterListRef - on AutoDisposeFutureProviderRef?> { + on AutoDisposeFutureProviderRef?> { /// The parameter `sourceId` of this provider. String get sourceId; } class _BaseSourceMangaFilterListProviderElement - extends AutoDisposeFutureProviderElement?> + extends AutoDisposeFutureProviderElement?> with BaseSourceMangaFilterListRef { _BaseSourceMangaFilterListProviderElement(super.provider); @@ -289,175 +293,6 @@ class _BaseSourceMangaFilterListProviderElement String get sourceId => (origin as BaseSourceMangaFilterListProvider).sourceId; } -String _$sourceMangaFilterListHash() => - r'8a73132c795c270e84df2fe1f325301b4e955c45'; - -abstract class _$SourceMangaFilterList - extends BuildlessAutoDisposeNotifier?>> { - late final String sourceId; - late final List? filter; - - AsyncValue?> build( - String sourceId, { - List? filter, - }); -} - -/// See also [SourceMangaFilterList]. -@ProviderFor(SourceMangaFilterList) -const sourceMangaFilterListProvider = SourceMangaFilterListFamily(); - -/// See also [SourceMangaFilterList]. -class SourceMangaFilterListFamily extends Family?>> { - /// See also [SourceMangaFilterList]. - const SourceMangaFilterListFamily(); - - /// See also [SourceMangaFilterList]. - SourceMangaFilterListProvider call( - String sourceId, { - List? filter, - }) { - return SourceMangaFilterListProvider( - sourceId, - filter: filter, - ); - } - - @override - SourceMangaFilterListProvider getProviderOverride( - covariant SourceMangaFilterListProvider provider, - ) { - return call( - provider.sourceId, - filter: provider.filter, - ); - } - - static const Iterable? _dependencies = null; - - @override - Iterable? get dependencies => _dependencies; - - static const Iterable? _allTransitiveDependencies = null; - - @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; - - @override - String? get name => r'sourceMangaFilterListProvider'; -} - -/// See also [SourceMangaFilterList]. -class SourceMangaFilterListProvider extends AutoDisposeNotifierProviderImpl< - SourceMangaFilterList, AsyncValue?>> { - /// See also [SourceMangaFilterList]. - SourceMangaFilterListProvider( - String sourceId, { - List? filter, - }) : this._internal( - () => SourceMangaFilterList() - ..sourceId = sourceId - ..filter = filter, - from: sourceMangaFilterListProvider, - name: r'sourceMangaFilterListProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$sourceMangaFilterListHash, - dependencies: SourceMangaFilterListFamily._dependencies, - allTransitiveDependencies: - SourceMangaFilterListFamily._allTransitiveDependencies, - sourceId: sourceId, - filter: filter, - ); - - SourceMangaFilterListProvider._internal( - super._createNotifier, { - required super.name, - required super.dependencies, - required super.allTransitiveDependencies, - required super.debugGetCreateSourceHash, - required super.from, - required this.sourceId, - required this.filter, - }) : super.internal(); - - final String sourceId; - final List? filter; - - @override - AsyncValue?> runNotifierBuild( - covariant SourceMangaFilterList notifier, - ) { - return notifier.build( - sourceId, - filter: filter, - ); - } - - @override - Override overrideWith(SourceMangaFilterList Function() create) { - return ProviderOverride( - origin: this, - override: SourceMangaFilterListProvider._internal( - () => create() - ..sourceId = sourceId - ..filter = filter, - from: from, - name: null, - dependencies: null, - allTransitiveDependencies: null, - debugGetCreateSourceHash: null, - sourceId: sourceId, - filter: filter, - ), - ); - } - - @override - AutoDisposeNotifierProviderElement?>> createElement() { - return _SourceMangaFilterListProviderElement(this); - } - - @override - bool operator ==(Object other) { - return other is SourceMangaFilterListProvider && - other.sourceId == sourceId && - other.filter == filter; - } - - @override - int get hashCode { - var hash = _SystemHash.combine(0, runtimeType.hashCode); - hash = _SystemHash.combine(hash, sourceId.hashCode); - hash = _SystemHash.combine(hash, filter.hashCode); - - return _SystemHash.finish(hash); - } -} - -mixin SourceMangaFilterListRef - on AutoDisposeNotifierProviderRef?>> { - /// The parameter `sourceId` of this provider. - String get sourceId; - - /// The parameter `filter` of this provider. - List? get filter; -} - -class _SourceMangaFilterListProviderElement - extends AutoDisposeNotifierProviderElement?>> with SourceMangaFilterListRef { - _SourceMangaFilterListProviderElement(super.provider); - - @override - String get sourceId => (origin as SourceMangaFilterListProvider).sourceId; - @override - List? get filter => (origin as SourceMangaFilterListProvider).filter; -} - String _$sourceDisplayModeHash() => r'f386ba15fdc6025e0471b7ffc8066162d83ea083'; /// See also [SourceDisplayMode]. @@ -475,4 +310,4 @@ final sourceDisplayModeProvider = typedef _$SourceDisplayMode = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart b/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart index 2f5ebf1d..46944972 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart @@ -10,7 +10,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; import '../../../../constants/app_sizes.dart'; -import '../../../../constants/enum.dart'; import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/hooks/paging_controller_hook.dart'; @@ -18,6 +17,7 @@ import '../../../../widgets/search_field.dart'; import '../../../manga_book/domain/manga/manga_model.dart'; import '../../data/source_repository/source_repository.dart'; import '../../domain/filter/filter_model.dart'; +import '../../domain/source/source_model.dart'; import 'controller/source_manga_controller.dart'; import 'widgets/source_manga_display_icon_popup.dart'; import 'widgets/source_manga_display_view.dart'; @@ -30,40 +30,38 @@ class SourceMangaListScreen extends HookConsumerWidget { required this.sourceId, required this.sourceType, this.initialQuery, - this.initialFilter, }); final String sourceId; final SourceType sourceType; final String? initialQuery; - final List? initialFilter; void _fetchPage( SourceRepository repository, PagingController controller, int pageKey, { ValueNotifier? query, - List>? filter, + List? filter, }) { AsyncValue.guard( - () => repository.getMangaList( + () => repository.fetchSourceManga( sourceId: sourceId, sourceType: sourceType, - pageNum: pageKey, + page: pageKey, query: query?.value, - filter: filter, + filters: filter, ), ).then( (value) => value.whenOrNull( - data: (recentChaptersPage) { + data: (recentMangaPage) { try { - if (recentChaptersPage != null) { - if (recentChaptersPage.hasNextPage.ifNull()) { + if (recentMangaPage != null) { + if (recentMangaPage.hasNextPage.ifNull()) { controller.appendPage( - [...?recentChaptersPage.mangaList], + [...recentMangaPage.mangas], pageKey + 1, ); } else { - controller.appendLastPage([...?recentChaptersPage.mangaList]); + controller.appendLastPage([...recentMangaPage.mangas]); } } } catch (e) { @@ -75,42 +73,12 @@ class SourceMangaListScreen extends HookConsumerWidget { ); } - Widget filterWidget( - WidgetRef ref, - SourceMangaFilterListProvider provider, - List? filterList, - PagingController controller, - BuildContext context, - ) { - return filterList == null - ? const SizedBox.shrink() - : SourceMangaFilter( - initialFilters: filterList, - sourceId: sourceId, - onReset: () => ref.read(provider.notifier).reset(), - onSubmitted: (value) { - if (sourceType == SourceType.filter) { - Navigator.pop(context); - ref.read(provider.notifier).updateFilter(value); - controller.refresh(); - } else { - SourceMangaRoute( - sourceId: sourceId, - sourceType: SourceType.filter, - $extra: value, - ).pushReplacement(context); - } - }, - ); - } - @override Widget build(BuildContext context, WidgetRef ref) { - final filtersProvider = - sourceMangaFilterListProvider(sourceId, filter: initialFilter); - final sourceRepository = ref.watch(sourceRepositoryProvider); - final filterList = ref.watch(filtersProvider); + final appliedFilter = useState>([]); + final filterList = + ref.watch(baseSourceMangaFilterListProvider(sourceId)).valueOrNull; final source = ref.watch(sourceProvider(sourceId)); final query = useState(initialQuery); @@ -124,7 +92,7 @@ class SourceMangaListScreen extends HookConsumerWidget { controller, pageKey, query: query, - filter: ref.read(filtersProvider.notifier).getAppliedFilter, + filter: appliedFilter.value, ), ); return; @@ -133,7 +101,7 @@ class SourceMangaListScreen extends HookConsumerWidget { context, (data) => Scaffold( appBar: AppBar( - title: Text(data?.displayName ?? context.l10n!.source), + title: Text(data?.displayName ?? context.l10n.source), actions: [ IconButton( onPressed: () => showSearch.value = true, @@ -142,8 +110,9 @@ class SourceMangaListScreen extends HookConsumerWidget { const SourceMangaDisplayIconPopup(), if ((data?.isConfigurable).ifNull()) IconButton( - onPressed: () => - SourcePreferenceRoute(sourceId: sourceId).push(context), + onPressed: () => SourcePreferenceRoute( + sourceId: sourceId, + ).go(context), icon: const Icon(Icons.settings_rounded), ), ], @@ -154,46 +123,36 @@ class SourceMangaListScreen extends HookConsumerWidget { Row( children: [ SourceTypeSelectableChip( - value: SourceType.popular, + value: SourceType.POPULAR, groupValue: sourceType, onSelected: (val) { - if (sourceType == SourceType.popular) return; - SourceMangaRoute( + if (sourceType == SourceType.POPULAR) return; + SourceTypeRoute( sourceId: sourceId, - sourceType: SourceType.popular, - ).pushReplacement(context); + sourceType: SourceType.POPULAR.name, + ).go(context); }, ), if ((data?.supportsLatest).ifNull()) SourceTypeSelectableChip( - value: SourceType.latest, + value: SourceType.LATEST, groupValue: sourceType, onSelected: (val) { - if (sourceType == SourceType.latest) return; - SourceMangaRoute( + if (sourceType == SourceType.LATEST) return; + SourceTypeRoute( sourceId: sourceId, - sourceType: SourceType.latest, - ).pushReplacement(context); + sourceType: SourceType.LATEST.name, + ).go(context); }, ), Builder( builder: (context) => SourceTypeSelectableChip( - value: SourceType.filter, + value: SourceType.SEARCH, groupValue: sourceType, - onSelected: (val) { - context.isTablet - ? Scaffold.of(context).openEndDrawer() - : showModalBottomSheet( - context: context, - builder: (context) => filterWidget( - ref, - filtersProvider, - filterList.valueOrNull, - controller, - context, - ), - ); - }, + onSelected: (val) => SourceTypeRoute( + sourceId: sourceId, + sourceType: SourceType.SEARCH.name, + ).go(context), ), ), ], @@ -206,16 +165,16 @@ class SourceMangaListScreen extends HookConsumerWidget { initialText: query.value, onClose: () => showSearch.value = (false), onSubmitted: (val) { - if (sourceType == SourceType.filter) { + if (sourceType == SourceType.SEARCH) { query.value = (val); controller.refresh(); } else { if (val == null) return; - SourceMangaRoute( + SourceTypeRoute( sourceId: sourceId, - sourceType: SourceType.filter, + sourceType: SourceType.SEARCH.name, query: val, - ).pushReplacement(context); + ).go(context); } }, ), @@ -224,28 +183,61 @@ class SourceMangaListScreen extends HookConsumerWidget { ), ), ), - endDrawer: Drawer( - width: kDrawerWidth, - shape: const RoundedRectangleBorder(), - child: Builder( - builder: (context) => filterWidget( - ref, - filtersProvider, - filterList.valueOrNull, - controller, - context, - ), - ), - ), + endDrawer: filterList.isNotBlank + ? Drawer( + width: kDrawerWidth, + shape: const RoundedRectangleBorder(), + child: Builder( + builder: (context) => SourceMangaFilter( + filters: filterList?.toList() ?? [], + sourceId: sourceId, + onReset: () => appliedFilter.value = [], + onSubmitted: (value) { + Navigator.pop(context); + appliedFilter.value = value ?? []; + controller.refresh(); + }, + ), + ), + ) + : null, body: RefreshIndicator( onRefresh: () async => controller.refresh(), - child: SourceMangaDisplayView(controller: controller, source: data), + child: SourceMangaDisplayView( + sourceId: sourceId, + sourceType: sourceType, + controller: controller, + source: data, + ), ), + floatingActionButton: + sourceType == SourceType.SEARCH && filterList.isNotBlank + ? Builder( + builder: (context) => FloatingActionButton.extended( + onPressed: () => context.isTablet + ? Scaffold.of(context).openEndDrawer() + : showModalBottomSheet( + context: context, + builder: (context) => SourceMangaFilter( + filters: filterList?.toList() ?? [], + sourceId: sourceId, + onReset: () => appliedFilter.value = [], + onSubmitted: (value) { + Navigator.pop(context); + appliedFilter.value = value ?? []; + controller.refresh(); + }, + ), + ), + label: Text(context.l10n.filter), + ), + ) + : null, ), refresh: () => ref.refresh(sourceProvider(sourceId)), wrapper: (body) => Scaffold( appBar: AppBar( - title: Text(context.l10n!.source), + title: Text(context.l10n.source), ), body: body, ), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart index 4182c65f..3d9083b1 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/filter_to_widget.dart @@ -5,108 +5,103 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; import '../../../../../constants/app_sizes.dart'; +import '../../../../../graphql/__generated__/schema.schema.gql.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/search_field.dart'; import '../../../../../widgets/sort_list_tile.dart'; import '../../../domain/filter/filter_model.dart'; -import '../../../domain/filter_state/filter_state_model.dart'; class FilterToWidget extends StatelessWidget { const FilterToWidget({ super.key, required this.filter, + required this.currentChanges, required this.onChanged, }); final Filter filter; - final ValueChanged onChanged; - - void onChangedFilterCopyWith(T filterState) => - onChanged(filter.copyWith(filterState: filterState)); + final List currentChanges; + final ValueChanged> onChanged; @override Widget build(BuildContext context) { - FilterState? filterState = filter.filterState; - return switch (filterState) { + return switch (filter) { FilterHeader(name: String? name) => name.isNotBlank ? ListTile( - title: Text(name!), + title: Text(name), dense: true, ) : const SizedBox.shrink(), FilterSeparator() => const Divider(), FilterText( name: String? name, - state: String? state, + textState: String? state, ) => SearchField( autofocus: false, - onChanged: (val) => - onChangedFilterCopyWith(filterState.copyWith(state: val)), + onChanged: (val) => onChanged([FilterChange()..textState = val]), hintText: name, - initialText: state, + initialText: currentChanges.firstOrNull?.textState ?? state, ), FilterCheckBox( name: String? name, - state: bool? state, + checkBoxState: bool? state, ) => CheckboxListTile( - value: state.ifNull(), - title: Text(name ?? ""), + value: currentChanges.firstOrNull?.checkBoxState ?? state.ifNull(), + title: Text(name), onChanged: (value) => - onChangedFilterCopyWith(filterState.copyWith(state: value)), + onChanged([FilterChange()..checkBoxState = value]), controlAffinity: ListTileControlAffinity.leading, ), FilterTriState( name: String? name, - state: int? state, + tristate: GTriState state, ) => CheckboxListTile( - value: state.toBool, - onChanged: (value) => - onChangedFilterCopyWith(filterState.copyWith(state: value.toInt)), - title: Text(name ?? ""), + value: currentChanges.firstOrNull?.triState?.toBool ?? state.toBool, + onChanged: (value) => onChanged( + [FilterChange()..triState = TriStateExtension.fromBool(value)]), + title: Text(name), controlAffinity: ListTileControlAffinity.leading, tristate: true, ), FilterSort( - name: String? name, - state: SortState? state, - values: List? values, + name: String name, + sortState: SortState state, + displayValues: List values, ) => ExpansionTile( title: Text( - name ?? "", + name, style: context.textTheme.labelLarge, ), children: [ - for (int i = 0; - i < (values?.length).getValueOnNullOrNegative(); - i++) + for (int i = 0; i < (values.length).getValueOnNullOrNegative(); i++) SortListTile( key: ValueKey("$name-$i"), - ascending: (state?.ascending).ifNull(true), - title: Text(values != null ? values[i] : ""), - selected: i == state?.index, + ascending: (currentChanges.firstOrNull?.sortState.ascending ?? + state.ascending) + .ifNull(true), + title: Text(values[i]), + selected: i == state.index, onChanged: (value) { - if (filterState.copyWith.state == null) return; - onChangedFilterCopyWith( - filterState.copyWith.state!(ascending: value), - ); + final sortChange = SortStateChange()..ascending = value; + onChanged([FilterChange()..sortState = sortChange]); }, onSelected: () { - if (filterState.copyWith.state == null) return; - onChangedFilterCopyWith( - filterState.copyWith.state!(index: i)); + final sortChange = SortStateChange()..ascending = true; + onChanged([FilterChange()..sortState = sortChange]); }, ) ], ), FilterSelect( - name: String? name, - state: int? state, - displayValues: List? displayValues, + name: String name, + selectState: int state, + displayValues: List displayValues, ) => Row( mainAxisSize: MainAxisSize.min, @@ -114,7 +109,7 @@ class FilterToWidget extends StatelessWidget { Expanded( child: ListTile( title: Text( - name ?? "", + name, maxLines: 2, overflow: TextOverflow.ellipsis, ), @@ -125,26 +120,26 @@ class FilterToWidget extends StatelessWidget { child: Padding( padding: KEdgeInsets.h16.size, child: DropdownButton( - icon: const Icon(Icons.keyboard_arrow_down), + icon: const Icon(Icons.keyboard_arrow_down_rounded), isExpanded: true, - value: state, - hint: Text(name ?? ""), + value: currentChanges.firstOrNull?.selectState ?? state, + hint: Text(name), items: List.generate( - (displayValues?.length).getValueOnNullOrNegative(), + (displayValues.length).getValueOnNullOrNegative(), (index) => index, ) .map((e) => DropdownMenuItem( value: e, child: Text( - displayValues![e], + displayValues[e], maxLines: 2, overflow: TextOverflow.ellipsis, style: context.textTheme.bodySmall, ), )) .toList(), - onChanged: (value) => onChangedFilterCopyWith( - filterState.copyWith(state: value)), + onChanged: (value) => + onChanged([FilterChange()..selectState = value]), ), ), ), @@ -152,28 +147,83 @@ class FilterToWidget extends StatelessWidget { ], ), FilterGroup( - name: String? name, - state: List? state, + name: String name, + groupState: List state, ) => - ExpansionTile( - title: Text( - name ?? "", - style: context.textTheme.labelLarge, - ), - children: [ - for (int i = 0; i < (state?.length).getValueOnNullOrNegative(); i++) - FilterToWidget( - key: ValueKey("$name-$i"), - filter: state![i], - onChanged: (groupFilter) => onChangedFilterCopyWith( - filterState.copyWith( - state: [...state]..replaceRange(i, i + 1, [groupFilter]), - ), - ), - ), - ], + FilterGroupWidget( + name: name, + filters: state, + currentChanges: currentChanges, + onChanged: onChanged, ), - null => const SizedBox.shrink(), + Filter() => throw UnimplementedError(), }; } } + +class FilterGroupWidget extends HookWidget { + const FilterGroupWidget({ + super.key, + required this.name, + required this.filters, + required this.currentChanges, + required this.onChanged, + }); + + final String name; + final List filters; + final List currentChanges; + final ValueChanged> onChanged; + + void onChangedWrapper(Map> filterChangeMap) { + final filterChanges = filterChangeMap.values.fold( + [], + (prev, curr) { + prev.addAll(curr); + return prev; + }, + ); + onChanged(filterChanges + .map((groupFilter) => FilterChange()..groupChange = groupFilter) + .toList()); + } + + @override + Widget build(BuildContext context) { + final filterChangeMap = useState>>({}); + + useEffect(() { + Map> changeMap = {}; + for (var change in currentChanges) { + if (change.groupChange.position != null) continue; + changeMap[change.groupChange.position!] = [ + ...?changeMap[change.groupChange.position!], + change.groupChange, + ]; + } + filterChangeMap.value = changeMap; + return null; + }, [currentChanges]); + + return ExpansionTile( + title: Text(name, style: context.textTheme.labelLarge), + children: [ + for (int index = 0; index < filters.length; index++) + FilterToWidget( + key: ValueKey("$name-$index"), + filter: filters[index], + currentChanges: filterChangeMap.value[index] ?? [], + onChanged: (groupFilter) { + for (var filter in groupFilter) { + filter.update((newFilter) => newFilter.position = index); + } + onChangedWrapper({ + ...filterChangeMap.value, + index: groupFilter, + }); + }, + ), + ], + ); + } +} diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart index 88932947..4a0fd59f 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_icon_popup.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/db_keys.dart'; import '../../../../../constants/enum.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; import '../controller/source_manga_controller.dart'; class SourceMangaDisplayIconPopup extends ConsumerWidget { @@ -27,7 +27,7 @@ class SourceMangaDisplayIconPopup extends ConsumerWidget { builder: (context) => RadioListPopup( optionList: DisplayMode.sourceDisplayList, getOptionTitle: (value) => value.toLocale(context), - title: context.l10n!.displayMode, + title: context.l10n.displayMode, value: displayMode, onChange: (enumValue) async { ref.read(sourceDisplayModeProvider.notifier).update(enumValue); diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart index 4b8fc963..f8add368 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_display_view.dart @@ -5,7 +5,6 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; - import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; @@ -23,11 +22,15 @@ class SourceMangaDisplayView extends ConsumerWidget { const SourceMangaDisplayView({ super.key, required this.controller, + required this.sourceId, + required this.sourceType, this.source, }); final PagingController controller; final Source? source; + final String sourceId; + final SourceType sourceType; @override Widget build(BuildContext context, WidgetRef ref) { final DisplayMode displayMode = ref.watch(sourceDisplayModeProvider) ?? @@ -38,22 +41,22 @@ class SourceMangaDisplayView extends ConsumerWidget { await showDialog( context: context, builder: (context) => AlertDialog( - title: item.title.isNotBlank ? Text(item.title!) : null, + title: item.title.isNotBlank ? Text(item.title) : null, content: Text( - context.l10n!.removeFromLibrary, + context.l10n.removeFromLibrary, style: context.textTheme.bodyLarge, ), actions: [ TextButton( onPressed: () => Navigator.pop(context), - child: Text(context.l10n!.cancel), + child: Text(context.l10n.cancel), ), ElevatedButton( onPressed: () async { Navigator.pop(context); removeManga = true; }, - child: Text(context.l10n!.remove), + child: Text(context.l10n.remove), ), ], ), @@ -61,16 +64,18 @@ class SourceMangaDisplayView extends ConsumerWidget { return removeManga ? await AsyncValue.guard(() => ref .read(mangaBookRepositoryProvider) - .removeMangaFromLibrary(item.id!)) + .removeMangaFromLibrary(item.id)) : null; } else { return AsyncValue.guard(() => - ref.read(mangaBookRepositoryProvider).addMangaToLibrary(item.id!)); + ref.read(mangaBookRepositoryProvider).addMangaToLibrary(item.id)); } } return switch (displayMode) { DisplayMode.grid => SourceMangaGridView( + sourceId: sourceId, + sourceType: sourceType, controller: controller, source: source, toggleFavorite: toggleFavorite, diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart index 5671298d..d59b4e7c 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_filter.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../domain/filter/filter_model.dart'; import 'filter_to_widget.dart'; @@ -16,18 +15,18 @@ import 'filter_to_widget.dart'; class SourceMangaFilter extends HookWidget { const SourceMangaFilter({ super.key, - required this.initialFilters, + required this.filters, required this.sourceId, required this.onSubmitted, required this.onReset, }); - final List initialFilters; + final List filters; final String sourceId; - final ValueChanged?> onSubmitted; + final ValueChanged?> onSubmitted; final VoidCallback onReset; @override Widget build(BuildContext context) { - final filters = useState(initialFilters); + final filterChangeMap = useState>>({}); return Scaffold( appBar: PreferredSize( preferredSize: const Size.fromHeight(kAppBarBottomHeight), @@ -38,14 +37,23 @@ class SourceMangaFilter extends HookWidget { TextButton( onPressed: () { onReset(); - filters.value = (initialFilters); + filterChangeMap.value = {}; }, - child: Text(context.l10n!.reset), + child: Text(context.l10n.reset), ), const Spacer(), FilledButton( - onPressed: () => onSubmitted(filters.value), - child: Text(context.l10n!.filter), + onPressed: () { + final filterChanges = filterChangeMap.value.values.fold( + [], + (prev, curr) { + prev.addAll(curr); + return prev; + }, + ); + onSubmitted(filterChanges); + }, + child: Text(context.l10n.filter), ), ], ), @@ -55,20 +63,24 @@ class SourceMangaFilter extends HookWidget { behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false), child: ListView.builder( itemBuilder: (context, index) { - final filter = filters.value[index]; + final Filter filter = filters[index]; return FilterToWidget( - key: ValueKey("Filter-${filter.filterState?.name}"), + key: ValueKey("Filter-${filter.G__typename}"), filter: filter, + currentChanges: filterChangeMap.value[index] ?? [], onChanged: (value) { - filters.value = ([...initialFilters]..replaceRange( - index, - index + 1, - [value], - )); + for (var filter in value) { + filter.update((newFilter) => newFilter.position = index); + } + final newFilterChangeMap = >{ + ...filterChangeMap.value, + index: value, + }; + filterChangeMap.value = newFilterChangeMap; }, ); }, - itemCount: filters.value.length, + itemCount: filters.length, ), ), ); diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart index 955e50d6..55a0a913 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_grid_view.dart @@ -9,14 +9,13 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/custom_circular_progress_indicator.dart'; import '../../../../../widgets/emoticons.dart'; import '../../../../../widgets/manga_cover/grid/manga_cover_grid_tile.dart'; import '../../../../manga_book/domain/manga/manga_model.dart'; -import '../../../../settings/presentation/appearance/widgets/grid_cover_min_width.dart'; +import '../../../../settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart'; import '../../../domain/source/source_model.dart'; class SourceMangaGridView extends ConsumerWidget { @@ -24,11 +23,15 @@ class SourceMangaGridView extends ConsumerWidget { super.key, required this.toggleFavorite, required this.controller, + required this.sourceId, + required this.sourceType, this.source, }); final Future Function(Manga) toggleFavorite; final PagingController controller; final Source? source; + final String sourceId; + final SourceType sourceType; @override Widget build(BuildContext context, WidgetRef ref) { @@ -40,35 +43,34 @@ class SourceMangaGridView extends ConsumerWidget { newPageProgressIndicatorBuilder: (context) => const CenterSorayomiShimmerIndicator(), firstPageErrorIndicatorBuilder: (context) => Emoticons( - text: controller.error.toString(), + title: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n!.noMangaFound, + title: context.l10n.noMangaFound, button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) => MangaCoverGridTile( - manga: item.copyWith(source: source), + manga: item, showDarkOverlay: item.inLibrary.ifNull(), onLongPress: () async { final value = await toggleFavorite(item); if (value == null) return; if (value is! AsyncError) { final items = [...?controller.itemList]; - items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); + //TODO: Implement copyWith + // items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); controller.itemList = items; } }, onPressed: () { - if (item.id != null) { - MangaRoute(mangaId: item.id!).push(context); - } + MangaRoute(mangaId: item.id).push(context); }, ), ), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart index 7ea9c9b3..7f7f95a7 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_manga_list_view.dart @@ -49,7 +49,7 @@ class SourceMangaListView extends ConsumerWidget { Padding( padding: KEdgeInsets.h8.size, child: Shimmer.fromColors( - baseColor: context.colorScheme.background, + baseColor: context.colorScheme.surface, highlightColor: context.theme.indicatorColor, child: Container( width: context.width * .3, @@ -65,34 +65,33 @@ class SourceMangaListView extends ConsumerWidget { ], ), firstPageErrorIndicatorBuilder: (context) => Emoticons( - text: controller.error.toString(), + title: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n!.noMangaFound, + title: context.l10n.noMangaFound, button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) => MangaCoverListTile( - manga: item.copyWith(source: source), + manga: item, onLongPress: () async { final value = await toggleFavorite(item); if (value == null) return; if (value is! AsyncError) { final items = [...?controller.itemList]; - items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); + //TODO: Implement copyWith + // items[index] = item.copyWith(inLibrary: !item.inLibrary.ifNull()); controller.itemList = items; } }, onPressed: () { - if (item.id != null) { - MangaRoute(mangaId: item.id!).push(context); - } + MangaRoute(mangaId: item.id).push(context); }, ), ), diff --git a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_type_selectable_chip.dart b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_type_selectable_chip.dart index 44a62d5a..41b11b2c 100644 --- a/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_type_selectable_chip.dart +++ b/lib/src/features/browse_center/presentation/source_manga_list/widgets/source_type_selectable_chip.dart @@ -7,8 +7,8 @@ import 'package:flutter/material.dart'; import '../../../../../constants/app_sizes.dart'; -import '../../../../../constants/enum.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../domain/source/source_model.dart'; class SourceTypeSelectableChip extends StatelessWidget { const SourceTypeSelectableChip({ @@ -34,7 +34,7 @@ class SourceTypeSelectableChip extends StatelessWidget { : Icon( selected ? value.selectedIcon : value.icon, color: context.theme.colorScheme.onSurface - .withOpacity(selected ? .5 : 1), + .withValues(alpha: selected ? .5 : 1), ), onSelected: onSelected, ), diff --git a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart index d7e674ed..17b5cf61 100644 --- a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart +++ b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.dart @@ -4,38 +4,18 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'dart:convert'; - +import 'package:built_collection/built_collection.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../data/source_repository/source_repository.dart'; import '../../../domain/source_preference/source_preference.dart'; + part 'source_preference_controller.g.dart'; @riverpod -Future?> baseSourcePreferenceList( - BaseSourcePreferenceListRef ref, +Future?> baseSourcePreferenceList( + Ref ref, String sourceId, ) => - ref.read(sourceRepositoryProvider).getPreferenceList(sourceId: sourceId); - -@riverpod -class SourcePreferenceList extends _$SourcePreferenceList { - @override - AsyncValue?> build(String sourceId) => - ref.watch(baseSourcePreferenceListProvider(sourceId)); - - void reset() => ref.invalidate(baseSourcePreferenceListProvider(sourceId)); - - void updatePreference(int index, SourcePreference preference) async { - final value = preference.sourcePreferenceProp?.currentValue; - await ref.read(sourceRepositoryProvider).updatePreferenceList( - sourceId: sourceId, - preference: { - "position": index, - "value": value is List ? jsonEncode(value) : value, - }, - ); - reset(); - } -} + ref.read(sourceRepositoryProvider).getSourcePreference(sourceId).first; diff --git a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart index bcea8004..b29508ae 100644 --- a/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart +++ b/lib/src/features/browse_center/presentation/source_preference/controller/source_preference_controller.g.dart @@ -7,7 +7,7 @@ part of 'source_preference_controller.dart'; // ************************************************************************** String _$baseSourcePreferenceListHash() => - r'5f48b999265f1507e80fbcee0caa4e8880d95a76'; + r'68e89826f9ed0d7b6b0900523e2e331a612d1bb0'; /// Copied from Dart SDK class _SystemHash { @@ -36,7 +36,7 @@ const baseSourcePreferenceListProvider = BaseSourcePreferenceListFamily(); /// See also [baseSourcePreferenceList]. class BaseSourcePreferenceListFamily - extends Family?>> { + extends Family?>> { /// See also [baseSourcePreferenceList]. const BaseSourcePreferenceListFamily(); @@ -75,7 +75,7 @@ class BaseSourcePreferenceListFamily /// See also [baseSourcePreferenceList]. class BaseSourcePreferenceListProvider - extends AutoDisposeFutureProvider?> { + extends AutoDisposeFutureProvider?> { /// See also [baseSourcePreferenceList]. BaseSourcePreferenceListProvider( String sourceId, @@ -110,7 +110,7 @@ class BaseSourcePreferenceListProvider @override Override overrideWith( - FutureOr?> Function( + FutureOr?> Function( BaseSourcePreferenceListRef provider) create, ) { @@ -129,7 +129,8 @@ class BaseSourcePreferenceListProvider } @override - AutoDisposeFutureProviderElement?> createElement() { + AutoDisposeFutureProviderElement?> + createElement() { return _BaseSourcePreferenceListProviderElement(this); } @@ -148,166 +149,21 @@ class BaseSourcePreferenceListProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin BaseSourcePreferenceListRef - on AutoDisposeFutureProviderRef?> { + on AutoDisposeFutureProviderRef?> { /// The parameter `sourceId` of this provider. String get sourceId; } class _BaseSourcePreferenceListProviderElement - extends AutoDisposeFutureProviderElement?> + extends AutoDisposeFutureProviderElement?> with BaseSourcePreferenceListRef { _BaseSourcePreferenceListProviderElement(super.provider); @override String get sourceId => (origin as BaseSourcePreferenceListProvider).sourceId; } - -String _$sourcePreferenceListHash() => - r'30c8dca8328a16872db111dcc9052178c9f3e60c'; - -abstract class _$SourcePreferenceList - extends BuildlessAutoDisposeNotifier?>> { - late final String sourceId; - - AsyncValue?> build( - String sourceId, - ); -} - -/// See also [SourcePreferenceList]. -@ProviderFor(SourcePreferenceList) -const sourcePreferenceListProvider = SourcePreferenceListFamily(); - -/// See also [SourcePreferenceList]. -class SourcePreferenceListFamily - extends Family?>> { - /// See also [SourcePreferenceList]. - const SourcePreferenceListFamily(); - - /// See also [SourcePreferenceList]. - SourcePreferenceListProvider call( - String sourceId, - ) { - return SourcePreferenceListProvider( - sourceId, - ); - } - - @override - SourcePreferenceListProvider getProviderOverride( - covariant SourcePreferenceListProvider provider, - ) { - return call( - provider.sourceId, - ); - } - - static const Iterable? _dependencies = null; - - @override - Iterable? get dependencies => _dependencies; - - static const Iterable? _allTransitiveDependencies = null; - - @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; - - @override - String? get name => r'sourcePreferenceListProvider'; -} - -/// See also [SourcePreferenceList]. -class SourcePreferenceListProvider extends AutoDisposeNotifierProviderImpl< - SourcePreferenceList, AsyncValue?>> { - /// See also [SourcePreferenceList]. - SourcePreferenceListProvider( - String sourceId, - ) : this._internal( - () => SourcePreferenceList()..sourceId = sourceId, - from: sourcePreferenceListProvider, - name: r'sourcePreferenceListProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$sourcePreferenceListHash, - dependencies: SourcePreferenceListFamily._dependencies, - allTransitiveDependencies: - SourcePreferenceListFamily._allTransitiveDependencies, - sourceId: sourceId, - ); - - SourcePreferenceListProvider._internal( - super._createNotifier, { - required super.name, - required super.dependencies, - required super.allTransitiveDependencies, - required super.debugGetCreateSourceHash, - required super.from, - required this.sourceId, - }) : super.internal(); - - final String sourceId; - - @override - AsyncValue?> runNotifierBuild( - covariant SourcePreferenceList notifier, - ) { - return notifier.build( - sourceId, - ); - } - - @override - Override overrideWith(SourcePreferenceList Function() create) { - return ProviderOverride( - origin: this, - override: SourcePreferenceListProvider._internal( - () => create()..sourceId = sourceId, - from: from, - name: null, - dependencies: null, - allTransitiveDependencies: null, - debugGetCreateSourceHash: null, - sourceId: sourceId, - ), - ); - } - - @override - AutoDisposeNotifierProviderElement?>> createElement() { - return _SourcePreferenceListProviderElement(this); - } - - @override - bool operator ==(Object other) { - return other is SourcePreferenceListProvider && other.sourceId == sourceId; - } - - @override - int get hashCode { - var hash = _SystemHash.combine(0, runtimeType.hashCode); - hash = _SystemHash.combine(hash, sourceId.hashCode); - - return _SystemHash.finish(hash); - } -} - -mixin SourcePreferenceListRef - on AutoDisposeNotifierProviderRef?>> { - /// The parameter `sourceId` of this provider. - String get sourceId; -} - -class _SourcePreferenceListProviderElement - extends AutoDisposeNotifierProviderElement?>> with SourcePreferenceListRef { - _SourcePreferenceListProviderElement(super.provider); - - @override - String get sourceId => (origin as SourcePreferenceListProvider).sourceId; -} // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart b/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart index 706539f0..55ac96fc 100644 --- a/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart +++ b/lib/src/features/browse_center/presentation/source_preference/source_preference_screen.dart @@ -8,6 +8,7 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../utils/extensions/custom_extensions.dart'; +import '../../data/source_repository/source_repository.dart'; import '../source_manga_list/controller/source_manga_controller.dart'; import 'controller/source_preference_controller.dart'; import 'widgets/source_preference_to_widget.dart'; @@ -20,7 +21,7 @@ class SourcePreferenceScreen extends HookConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { final source = ref.watch(sourceProvider(sourceId)); - final preferenceProvider = sourcePreferenceListProvider(sourceId); + final preferenceProvider = baseSourcePreferenceListProvider(sourceId); final networkPreferences = ref.watch(preferenceProvider); final preferences = networkPreferences.valueOrNull; return Scaffold( @@ -38,13 +39,15 @@ class SourcePreferenceScreen extends HookConsumerWidget { if (sourcePreference == null) return const SizedBox.shrink(); return SourcePreferenceToWidget( key: ValueKey( - "Source-preference-${sourcePreference.sourcePreferenceProp?.key}", + "Source-preference-$index", ), sourcePreference: sourcePreference, - onChanged: (value) { - ref - .read(preferenceProvider.notifier) - .updatePreference(index, value); + onChanged: (value) async { + value.position = index; + await ref + .read(sourceRepositoryProvider) + .updateSourcePreferenceById(sourceId, value); + ref.invalidate(preferenceProvider); }, ); }, diff --git a/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart b/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart index ad91066f..b527a5af 100644 --- a/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart +++ b/lib/src/features/browse_center/presentation/source_preference/widgets/source_preference_to_widget.dart @@ -4,14 +4,14 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'package:built_collection/built_collection.dart'; import 'package:flutter/material.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/multi_select_popup.dart'; -import '../../../../../widgets/radio_list_popup.dart'; -import '../../../../../widgets/text_field_popup.dart'; +import '../../../../../widgets/popup_widgets/multi_select_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/text_field_popup.dart'; import '../../../domain/source_preference/source_preference.dart'; -import '../../../domain/source_preference_prop/source_preference_prop.dart'; class SourcePreferenceToWidget extends StatelessWidget { const SourcePreferenceToWidget({ @@ -21,108 +21,109 @@ class SourcePreferenceToWidget extends StatelessWidget { }); final SourcePreference sourcePreference; - final ValueChanged onChanged; - - void onChangedPreferenceCopyWith(T prop, - [BuildContext? context]) { - onChanged(sourcePreference.copyWith(sourcePreferenceProp: prop)); - if (context != null) Navigator.pop(context); - } + final ValueChanged onChanged; @override Widget build(BuildContext context) { - SourcePreferenceProp? prop = sourcePreference.sourcePreferenceProp; + SourcePreference? prop = sourcePreference; return switch (prop) { CheckBoxPreference( - key: String? key, - title: String? title, + key: String key, + checkBoxTitle: String title, summary: String? summary, - defaultValue: bool? defaultValue, - currentValue: bool? currentValue, + checkBoxDefaultValue: bool defaultValue, + checkBoxValue: bool? currentValue, ) => CheckboxListTile( - key: Key(key ?? ""), - title: Text(title ?? ""), + key: Key(key), + title: Text(title), subtitle: summary.isNotBlank ? Text(summary!) : null, value: currentValue.ifNull(defaultValue.ifNull()), onChanged: (value) => - onChangedPreferenceCopyWith(prop.copyWith(currentValue: value)), + onChanged(SourcePreferenceChange()..checkBoxState = value), controlAffinity: ListTileControlAffinity.trailing, ), SwitchPreferenceCompat( - key: String? key, - title: String? title, + key: String key, + switchTitle: String title, summary: String? summary, - defaultValue: bool? defaultValue, - currentValue: bool? currentValue, + switchDefaultValue: bool defaultValue, + switchValue: bool? currentValue, ) => SwitchListTile( - key: Key(key ?? ""), - title: Text(title ?? ""), + key: Key(key), + title: Text(title), subtitle: summary.isNotBlank ? Text(summary!) : null, value: currentValue.ifNull(defaultValue.ifNull()), onChanged: (value) => - onChangedPreferenceCopyWith(prop.copyWith(currentValue: value)), + onChanged(SourcePreferenceChange()..switchState = value), controlAffinity: ListTileControlAffinity.trailing, ), ListPreference( - key: String? key, - title: String? title, - defaultValue: String? defaultValue, - currentValue: String? currentValue, - entries: Map? entries, + key: String key, + listTitle: String? title, + listDefaultValue: String? defaultValue, + listValue: String? currentValue, + entries: BuiltList entries, + entryValues: BuiltList entryValues, ) => ListTile( - key: Key(key ?? ""), + key: Key(key), title: Text(title ?? ""), subtitle: currentValue.isNotBlank ? Text(currentValue!) : null, onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( title: title ?? "", - optionList: entries?.keys.toList() ?? [], + optionList: entryValues.toList(), value: currentValue ?? defaultValue ?? "", - onChange: (value) => onChangedPreferenceCopyWith( - prop.copyWith(currentValue: value), context), - getOptionTitle: (entry) => entries?[entry] ?? entry, + onChange: (value) { + onChanged(SourcePreferenceChange()..listState = value); + Navigator.pop(context); + }, + getOptionTitle: (entry) => entries[entryValues.indexOf(entry)], ), ), ), MultiSelectListPreference( - key: String? key, - title: String? title, + key: String key, + multiSelectTitle: String? title, summary: String? summary, - defaultValue: List? defaultValue, - currentValue: List? currentValue, - entries: Map? entries, + multiSelectDefaultValue: BuiltList? defaultValue, + multiSelectValue: BuiltList? currentValue, + entries: BuiltList? entries, + entryValues: BuiltList entryValues, ) => ListTile( - key: Key(key ?? ""), + key: Key(key), title: Text(title ?? ""), subtitle: summary.isNotBlank ? Text(summary!) : null, onTap: () => showDialog( context: context, builder: (context) => MultiSelectPopup( title: title ?? "", - optionList: entries?.keys.toList() ?? [], - values: currentValue ?? defaultValue ?? [], - onChange: (value) => onChangedPreferenceCopyWith( - prop.copyWith(currentValue: value), context), - getOptionTitle: (entry) => entries?[entry] ?? entry, + optionList: entryValues.toList(), + values: currentValue?.toList() ?? defaultValue?.toList() ?? [], + onChange: (value) { + onChanged(SourcePreferenceChange() + ..multiSelectState = ListBuilder(value)); + Navigator.pop(context); + }, + getOptionTitle: (entry) => entries[entryValues.indexOf(entry)], ), ), ), EditTextPreference( - key: String? key, - title: String? title, + key: String key, + editTextTitle: String? title, summary: String? summary, - defaultValue: String? defaultValue, - currentValue: String? currentValue, + EditTextDefaultValue: String? defaultValue, + editTextValue: String? currentValue, dialogTitle: String? dialogTitle, dialogMessage: String? dialogMessage, ) => ListTile( - key: Key(key ?? ""), + key: Key(key), title: Text(title ?? ""), subtitle: summary.isNotBlank ? Text(summary!) : null, onTap: () => showDialog( @@ -130,13 +131,17 @@ class SourcePreferenceToWidget extends StatelessWidget { builder: (context) => TextFieldPopup( title: dialogTitle ?? title ?? "", subtitle: dialogMessage ?? summary ?? "", - onChange: (value) => onChangedPreferenceCopyWith( - prop.copyWith(currentValue: value), context), + onChange: (value) async { + onChanged(SourcePreferenceChange()..editTextState = value); + Navigator.pop(context); + }, initialValue: currentValue ?? defaultValue, ), ), ), - null || Fallback() => const SizedBox.shrink(), + // TODO: Handle this case. + SourcePreference() => throw UnimplementedError( + 'Unhandled preference type: ${prop.runtimeType}'), }; } } diff --git a/lib/src/features/library/data/category/category_repository.dart b/lib/src/features/library/data/category_repository.dart similarity index 51% rename from lib/src/features/library/data/category/category_repository.dart rename to lib/src/features/library/data/category_repository.dart index 24b4e637..a1ccdbb2 100644 --- a/lib/src/features/library/data/category/category_repository.dart +++ b/lib/src/features/library/data/category_repository.dart @@ -4,31 +4,33 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'dart:async'; + import 'package:dio/dio.dart'; +import 'package:ferry/ferry.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../../constants/endpoints.dart'; -import '../../../../global_providers/global_providers.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/storage/dio/dio_client.dart'; -import '../../../manga_book/domain/manga/manga_model.dart'; -import '../../domain/category/category_model.dart'; +import '../../../constants/endpoints.dart'; +import '../../../global_providers/global_providers.dart'; +import '../../../utils/extensions/custom_extensions.dart'; +import '../../../utils/storage/dio/dio_client.dart'; +import '../../manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart'; +import '../../manga_book/domain/manga/manga_model.dart'; +import '../domain/category/category_model.dart'; +import 'graphql/query.dart'; part 'category_repository.g.dart'; class CategoryRepository { final DioClient dioClient; + final Client ferryClient; - CategoryRepository(this.dioClient); + CategoryRepository(this.dioClient, this.ferryClient); - Future?> getCategoryList({CancelToken? cancelToken}) async => - (await dioClient.get, Category>( - CategoryUrl.category, - decoder: (e) => - e is Map ? Category.fromJson(e) : Category(), - cancelToken: cancelToken, - )) - .data; + Stream?> getCategoryList() => ferryClient.fetch( + CategoryQuery.getAllCategories(), + (data) => data.categories.nodes.asList()); Future createCategory({ required Category category, @@ -43,25 +45,21 @@ class CategoryRepository { Future editCategory({ required Category category, CancelToken? cancelToken, - }) async => - category.id != null - ? await dioClient.patch( - CategoryUrl.withId(category.id!), - data: FormData.fromMap(category.toJson().filterOutNulls), - cancelToken: cancelToken, - ) - : null; + }) => + dioClient.patch( + CategoryUrl.withId(category.id), + data: FormData.fromMap(category.toJson().filterOutNulls), + cancelToken: cancelToken, + ); Future deleteCategory({ required Category category, CancelToken? cancelToken, - }) async => - (category.id != null) - ? dioClient.delete( - CategoryUrl.withId(category.id!), - cancelToken: cancelToken, - ) - : null; + }) => + dioClient.delete( + CategoryUrl.withId(category.id), + cancelToken: cancelToken, + ); Future reorderCategory({ required int from, @@ -79,11 +77,13 @@ class CategoryRepository { }) async => (await dioClient.get, Manga>( CategoryUrl.withId(categoryId), - decoder: (e) => e is Map ? Manga.fromJson(e) : Manga(), + decoder: (e) => GMangaFragmentData(), //TODO: Implement decoder )) .data; } @riverpod -CategoryRepository categoryRepository(CategoryRepositoryRef ref) => - CategoryRepository(ref.watch(dioClientKeyProvider)); +CategoryRepository categoryRepository(Ref ref) => CategoryRepository( + ref.watch(dioClientKeyProvider), + ref.watch(ferryClientProvider), + ); diff --git a/lib/src/features/library/data/category/category_repository.g.dart b/lib/src/features/library/data/category_repository.g.dart similarity index 79% rename from lib/src/features/library/data/category/category_repository.g.dart rename to lib/src/features/library/data/category_repository.g.dart index a27a34d4..d3d06e24 100644 --- a/lib/src/features/library/data/category/category_repository.g.dart +++ b/lib/src/features/library/data/category_repository.g.dart @@ -7,7 +7,7 @@ part of 'category_repository.dart'; // ************************************************************************** String _$categoryRepositoryHash() => - r'f62ecef9ec108e4aba46068e319e118730be6d06'; + r'cf117f81f7f1f5e2f7693d70aa101f703c8f5b36'; /// See also [categoryRepository]. @ProviderFor(categoryRepository) @@ -22,6 +22,8 @@ final categoryRepositoryProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef CategoryRepositoryRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/library/data/graphql/__generated__/all_categories_query.ast.gql.dart b/lib/src/features/library/data/graphql/__generated__/all_categories_query.ast.gql.dart new file mode 100644 index 00000000..4a46bb97 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/all_categories_query.ast.gql.dart @@ -0,0 +1,124 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.ast.gql.dart' + as _i3; + +const AllCategories = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'AllCategories'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'condition')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryConditionInput'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'filter')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'first')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'offset')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'categories'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'condition'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'condition')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'filter'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'filter')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'first'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'first')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'orderBy'), + value: _i1.EnumValueNode(name: _i1.NameNode(value: 'ORDER')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'orderByType'), + value: _i1.EnumValueNode(name: _i1.NameNode(value: 'ASC')), + ), + _i1.ArgumentNode( + name: _i1.NameNode(value: 'offset'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'offset')), + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'CategoryFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'PageInfoFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + AllCategories, + _i2.CategoryFragment, + _i3.PageInfoFragment, +]); diff --git a/lib/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.dart b/lib/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.dart new file mode 100644 index 00000000..96c11053 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.dart @@ -0,0 +1,250 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.data.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'all_categories_query.data.gql.g.dart'; + +abstract class GAllCategoriesData + implements Built { + GAllCategoriesData._(); + + factory GAllCategoriesData( + [void Function(GAllCategoriesDataBuilder b) updates]) = + _$GAllCategoriesData; + + static void _initializeBuilder(GAllCategoriesDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GAllCategoriesData_categories get categories; + static Serializer get serializer => + _$gAllCategoriesDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData.serializer, + this, + ) as Map); + + static GAllCategoriesData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories + implements + Built { + GAllCategoriesData_categories._(); + + factory GAllCategoriesData_categories( + [void Function(GAllCategoriesData_categoriesBuilder b) updates]) = + _$GAllCategoriesData_categories; + + static void _initializeBuilder(GAllCategoriesData_categoriesBuilder b) => + b..G__typename = 'CategoryNodeList'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList get nodes; + GAllCategoriesData_categories_pageInfo get pageInfo; + int get totalCount; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories? fromJson(Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_nodes + implements + Built, + _i2.GCategoryFragment { + GAllCategoriesData_categories_nodes._(); + + factory GAllCategoriesData_categories_nodes( + [void Function(GAllCategoriesData_categories_nodesBuilder b) + updates]) = _$GAllCategoriesData_categories_nodes; + + static void _initializeBuilder( + GAllCategoriesData_categories_nodesBuilder b) => + b..G__typename = 'CategoryType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + @BuiltValueField(wireName: 'default') + bool get Gdefault; + @override + int get id; + @override + _i3.GIncludeOrExclude get includeInDownload; + @override + _i3.GIncludeOrExclude get includeInUpdate; + @override + String get name; + @override + int get order; + @override + GAllCategoriesData_categories_nodes_mangas get mangas; + @override + BuiltList get meta; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesNodesSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_nodes.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_nodes? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_nodes.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_nodes_mangas + implements + Built, + _i2.GCategoryFragment_mangas { + GAllCategoriesData_categories_nodes_mangas._(); + + factory GAllCategoriesData_categories_nodes_mangas( + [void Function(GAllCategoriesData_categories_nodes_mangasBuilder b) + updates]) = _$GAllCategoriesData_categories_nodes_mangas; + + static void _initializeBuilder( + GAllCategoriesData_categories_nodes_mangasBuilder b) => + b..G__typename = 'MangaNodeList'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get totalCount; + static Serializer + get serializer => _$gAllCategoriesDataCategoriesNodesMangasSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_nodes_mangas.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_nodes_mangas? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_nodes_mangas.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_nodes_meta + implements + Built, + _i2.GCategoryFragment_meta { + GAllCategoriesData_categories_nodes_meta._(); + + factory GAllCategoriesData_categories_nodes_meta( + [void Function(GAllCategoriesData_categories_nodes_metaBuilder b) + updates]) = _$GAllCategoriesData_categories_nodes_meta; + + static void _initializeBuilder( + GAllCategoriesData_categories_nodes_metaBuilder b) => + b..G__typename = 'CategoryMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesNodesMetaSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_nodes_meta.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_nodes_meta? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_nodes_meta.serializer, + json, + ); +} + +abstract class GAllCategoriesData_categories_pageInfo + implements + Built, + _i4.GPageInfoFragment { + GAllCategoriesData_categories_pageInfo._(); + + factory GAllCategoriesData_categories_pageInfo( + [void Function(GAllCategoriesData_categories_pageInfoBuilder b) + updates]) = _$GAllCategoriesData_categories_pageInfo; + + static void _initializeBuilder( + GAllCategoriesData_categories_pageInfoBuilder b) => + b..G__typename = 'PageInfo'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i3.GCursor? get endCursor; + @override + bool get hasNextPage; + @override + bool get hasPreviousPage; + @override + _i3.GCursor? get startCursor; + static Serializer get serializer => + _$gAllCategoriesDataCategoriesPageInfoSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAllCategoriesData_categories_pageInfo.serializer, + this, + ) as Map); + + static GAllCategoriesData_categories_pageInfo? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAllCategoriesData_categories_pageInfo.serializer, + json, + ); +} diff --git a/lib/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.g.dart b/lib/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.g.dart new file mode 100644 index 00000000..89019c42 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.g.dart @@ -0,0 +1,1401 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'all_categories_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAllCategoriesDataSerializer = + new _$GAllCategoriesDataSerializer(); +Serializer + _$gAllCategoriesDataCategoriesSerializer = + new _$GAllCategoriesData_categoriesSerializer(); +Serializer + _$gAllCategoriesDataCategoriesNodesSerializer = + new _$GAllCategoriesData_categories_nodesSerializer(); +Serializer + _$gAllCategoriesDataCategoriesNodesMangasSerializer = + new _$GAllCategoriesData_categories_nodes_mangasSerializer(); +Serializer + _$gAllCategoriesDataCategoriesNodesMetaSerializer = + new _$GAllCategoriesData_categories_nodes_metaSerializer(); +Serializer + _$gAllCategoriesDataCategoriesPageInfoSerializer = + new _$GAllCategoriesData_categories_pageInfoSerializer(); + +class _$GAllCategoriesDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAllCategoriesData, _$GAllCategoriesData]; + @override + final String wireName = 'GAllCategoriesData'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'categories', + serializers.serialize(object.categories, + specifiedType: const FullType(GAllCategoriesData_categories)), + ]; + + return result; + } + + @override + GAllCategoriesData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'categories': + result.categories.replace(serializers.deserialize(value, + specifiedType: const FullType(GAllCategoriesData_categories))! + as GAllCategoriesData_categories); + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categoriesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories, + _$GAllCategoriesData_categories + ]; + @override + final String wireName = 'GAllCategoriesData_categories'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'nodes', + serializers.serialize(object.nodes, + specifiedType: const FullType(BuiltList, + const [const FullType(GAllCategoriesData_categories_nodes)])), + 'pageInfo', + serializers.serialize(object.pageInfo, + specifiedType: + const FullType(GAllCategoriesData_categories_pageInfo)), + 'totalCount', + serializers.serialize(object.totalCount, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GAllCategoriesData_categories deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categoriesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'nodes': + result.nodes.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GAllCategoriesData_categories_nodes) + ]))! as BuiltList); + break; + case 'pageInfo': + result.pageInfo.replace(serializers.deserialize(value, + specifiedType: + const FullType(GAllCategoriesData_categories_pageInfo))! + as GAllCategoriesData_categories_pageInfo); + break; + case 'totalCount': + result.totalCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_nodesSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_nodes, + _$GAllCategoriesData_categories_nodes + ]; + @override + final String wireName = 'GAllCategoriesData_categories_nodes'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories_nodes object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'default', + serializers.serialize(object.Gdefault, + specifiedType: const FullType(bool)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'includeInDownload', + serializers.serialize(object.includeInDownload, + specifiedType: const FullType(_i3.GIncludeOrExclude)), + 'includeInUpdate', + serializers.serialize(object.includeInUpdate, + specifiedType: const FullType(_i3.GIncludeOrExclude)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(int)), + 'mangas', + serializers.serialize(object.mangas, + specifiedType: + const FullType(GAllCategoriesData_categories_nodes_mangas)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GAllCategoriesData_categories_nodes_meta) + ])), + ]; + + return result; + } + + @override + GAllCategoriesData_categories_nodes deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_nodesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(_i3.GIncludeOrExclude))! + as _i3.GIncludeOrExclude; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(_i3.GIncludeOrExclude))! + as _i3.GIncludeOrExclude; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'mangas': + result.mangas.replace(serializers.deserialize(value, + specifiedType: const FullType( + GAllCategoriesData_categories_nodes_mangas))! + as GAllCategoriesData_categories_nodes_mangas); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GAllCategoriesData_categories_nodes_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_nodes_mangasSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_nodes_mangas, + _$GAllCategoriesData_categories_nodes_mangas + ]; + @override + final String wireName = 'GAllCategoriesData_categories_nodes_mangas'; + + @override + Iterable serialize(Serializers serializers, + GAllCategoriesData_categories_nodes_mangas object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'totalCount', + serializers.serialize(object.totalCount, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GAllCategoriesData_categories_nodes_mangas deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_nodes_mangasBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'totalCount': + result.totalCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_nodes_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_nodes_meta, + _$GAllCategoriesData_categories_nodes_meta + ]; + @override + final String wireName = 'GAllCategoriesData_categories_nodes_meta'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories_nodes_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAllCategoriesData_categories_nodes_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_nodes_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData_categories_pageInfoSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAllCategoriesData_categories_pageInfo, + _$GAllCategoriesData_categories_pageInfo + ]; + @override + final String wireName = 'GAllCategoriesData_categories_pageInfo'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesData_categories_pageInfo object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'hasNextPage', + serializers.serialize(object.hasNextPage, + specifiedType: const FullType(bool)), + 'hasPreviousPage', + serializers.serialize(object.hasPreviousPage, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.endCursor; + if (value != null) { + result + ..add('endCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i3.GCursor))); + } + value = object.startCursor; + if (value != null) { + result + ..add('startCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i3.GCursor))); + } + return result; + } + + @override + GAllCategoriesData_categories_pageInfo deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesData_categories_pageInfoBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'endCursor': + result.endCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCursor))! as _i3.GCursor); + break; + case 'hasNextPage': + result.hasNextPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'hasPreviousPage': + result.hasPreviousPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'startCursor': + result.startCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCursor))! as _i3.GCursor); + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesData extends GAllCategoriesData { + @override + final String G__typename; + @override + final GAllCategoriesData_categories categories; + + factory _$GAllCategoriesData( + [void Function(GAllCategoriesDataBuilder)? updates]) => + (new GAllCategoriesDataBuilder()..update(updates))._build(); + + _$GAllCategoriesData._({required this.G__typename, required this.categories}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + categories, r'GAllCategoriesData', 'categories'); + } + + @override + GAllCategoriesData rebuild( + void Function(GAllCategoriesDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesDataBuilder toBuilder() => + new GAllCategoriesDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData && + G__typename == other.G__typename && + categories == other.categories; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, categories.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesData') + ..add('G__typename', G__typename) + ..add('categories', categories)) + .toString(); + } +} + +class GAllCategoriesDataBuilder + implements Builder { + _$GAllCategoriesData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GAllCategoriesData_categoriesBuilder? _categories; + GAllCategoriesData_categoriesBuilder get categories => + _$this._categories ??= new GAllCategoriesData_categoriesBuilder(); + set categories(GAllCategoriesData_categoriesBuilder? categories) => + _$this._categories = categories; + + GAllCategoriesDataBuilder() { + GAllCategoriesData._initializeBuilder(this); + } + + GAllCategoriesDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _categories = $v.categories.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData; + } + + @override + void update(void Function(GAllCategoriesDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData build() => _build(); + + _$GAllCategoriesData _build() { + _$GAllCategoriesData _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData', 'G__typename'), + categories: categories.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'categories'; + categories.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories extends GAllCategoriesData_categories { + @override + final String G__typename; + @override + final BuiltList nodes; + @override + final GAllCategoriesData_categories_pageInfo pageInfo; + @override + final int totalCount; + + factory _$GAllCategoriesData_categories( + [void Function(GAllCategoriesData_categoriesBuilder)? updates]) => + (new GAllCategoriesData_categoriesBuilder()..update(updates))._build(); + + _$GAllCategoriesData_categories._( + {required this.G__typename, + required this.nodes, + required this.pageInfo, + required this.totalCount}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + nodes, r'GAllCategoriesData_categories', 'nodes'); + BuiltValueNullFieldError.checkNotNull( + pageInfo, r'GAllCategoriesData_categories', 'pageInfo'); + BuiltValueNullFieldError.checkNotNull( + totalCount, r'GAllCategoriesData_categories', 'totalCount'); + } + + @override + GAllCategoriesData_categories rebuild( + void Function(GAllCategoriesData_categoriesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categoriesBuilder toBuilder() => + new GAllCategoriesData_categoriesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories && + G__typename == other.G__typename && + nodes == other.nodes && + pageInfo == other.pageInfo && + totalCount == other.totalCount; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, nodes.hashCode); + _$hash = $jc(_$hash, pageInfo.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesData_categories') + ..add('G__typename', G__typename) + ..add('nodes', nodes) + ..add('pageInfo', pageInfo) + ..add('totalCount', totalCount)) + .toString(); + } +} + +class GAllCategoriesData_categoriesBuilder + implements + Builder { + _$GAllCategoriesData_categories? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _nodes; + ListBuilder get nodes => + _$this._nodes ??= new ListBuilder(); + set nodes(ListBuilder? nodes) => + _$this._nodes = nodes; + + GAllCategoriesData_categories_pageInfoBuilder? _pageInfo; + GAllCategoriesData_categories_pageInfoBuilder get pageInfo => + _$this._pageInfo ??= new GAllCategoriesData_categories_pageInfoBuilder(); + set pageInfo(GAllCategoriesData_categories_pageInfoBuilder? pageInfo) => + _$this._pageInfo = pageInfo; + + int? _totalCount; + int? get totalCount => _$this._totalCount; + set totalCount(int? totalCount) => _$this._totalCount = totalCount; + + GAllCategoriesData_categoriesBuilder() { + GAllCategoriesData_categories._initializeBuilder(this); + } + + GAllCategoriesData_categoriesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _nodes = $v.nodes.toBuilder(); + _pageInfo = $v.pageInfo.toBuilder(); + _totalCount = $v.totalCount; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories; + } + + @override + void update(void Function(GAllCategoriesData_categoriesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories build() => _build(); + + _$GAllCategoriesData_categories _build() { + _$GAllCategoriesData_categories _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData_categories._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories', 'G__typename'), + nodes: nodes.build(), + pageInfo: pageInfo.build(), + totalCount: BuiltValueNullFieldError.checkNotNull( + totalCount, r'GAllCategoriesData_categories', 'totalCount'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'nodes'; + nodes.build(); + _$failedField = 'pageInfo'; + pageInfo.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData_categories', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_nodes + extends GAllCategoriesData_categories_nodes { + @override + final String G__typename; + @override + final bool Gdefault; + @override + final int id; + @override + final _i3.GIncludeOrExclude includeInDownload; + @override + final _i3.GIncludeOrExclude includeInUpdate; + @override + final String name; + @override + final int order; + @override + final GAllCategoriesData_categories_nodes_mangas mangas; + @override + final BuiltList meta; + + factory _$GAllCategoriesData_categories_nodes( + [void Function(GAllCategoriesData_categories_nodesBuilder)? + updates]) => + (new GAllCategoriesData_categories_nodesBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_nodes._( + {required this.G__typename, + required this.Gdefault, + required this.id, + required this.includeInDownload, + required this.includeInUpdate, + required this.name, + required this.order, + required this.mangas, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories_nodes', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GAllCategoriesData_categories_nodes', 'Gdefault'); + BuiltValueNullFieldError.checkNotNull( + id, r'GAllCategoriesData_categories_nodes', 'id'); + BuiltValueNullFieldError.checkNotNull(includeInDownload, + r'GAllCategoriesData_categories_nodes', 'includeInDownload'); + BuiltValueNullFieldError.checkNotNull(includeInUpdate, + r'GAllCategoriesData_categories_nodes', 'includeInUpdate'); + BuiltValueNullFieldError.checkNotNull( + name, r'GAllCategoriesData_categories_nodes', 'name'); + BuiltValueNullFieldError.checkNotNull( + order, r'GAllCategoriesData_categories_nodes', 'order'); + BuiltValueNullFieldError.checkNotNull( + mangas, r'GAllCategoriesData_categories_nodes', 'mangas'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GAllCategoriesData_categories_nodes', 'meta'); + } + + @override + GAllCategoriesData_categories_nodes rebuild( + void Function(GAllCategoriesData_categories_nodesBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_nodesBuilder toBuilder() => + new GAllCategoriesData_categories_nodesBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_nodes && + G__typename == other.G__typename && + Gdefault == other.Gdefault && + id == other.id && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name && + order == other.order && + mangas == other.mangas && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jc(_$hash, mangas.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesData_categories_nodes') + ..add('G__typename', G__typename) + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name) + ..add('order', order) + ..add('mangas', mangas) + ..add('meta', meta)) + .toString(); + } +} + +class GAllCategoriesData_categories_nodesBuilder + implements + Builder { + _$GAllCategoriesData_categories_nodes? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + _i3.GIncludeOrExclude? _includeInDownload; + _i3.GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(_i3.GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + _i3.GIncludeOrExclude? _includeInUpdate; + _i3.GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(_i3.GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GAllCategoriesData_categories_nodes_mangasBuilder? _mangas; + GAllCategoriesData_categories_nodes_mangasBuilder get mangas => + _$this._mangas ??= + new GAllCategoriesData_categories_nodes_mangasBuilder(); + set mangas(GAllCategoriesData_categories_nodes_mangasBuilder? mangas) => + _$this._mangas = mangas; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GAllCategoriesData_categories_nodesBuilder() { + GAllCategoriesData_categories_nodes._initializeBuilder(this); + } + + GAllCategoriesData_categories_nodesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _Gdefault = $v.Gdefault; + _id = $v.id; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _order = $v.order; + _mangas = $v.mangas.toBuilder(); + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_nodes other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_nodes; + } + + @override + void update( + void Function(GAllCategoriesData_categories_nodesBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_nodes build() => _build(); + + _$GAllCategoriesData_categories_nodes _build() { + _$GAllCategoriesData_categories_nodes _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData_categories_nodes._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes', 'G__typename'), + Gdefault: BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GAllCategoriesData_categories_nodes', 'Gdefault'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GAllCategoriesData_categories_nodes', 'id'), + includeInDownload: BuiltValueNullFieldError.checkNotNull( + includeInDownload, + r'GAllCategoriesData_categories_nodes', + 'includeInDownload'), + includeInUpdate: BuiltValueNullFieldError.checkNotNull( + includeInUpdate, + r'GAllCategoriesData_categories_nodes', + 'includeInUpdate'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GAllCategoriesData_categories_nodes', 'name'), + order: BuiltValueNullFieldError.checkNotNull( + order, r'GAllCategoriesData_categories_nodes', 'order'), + mangas: mangas.build(), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'mangas'; + mangas.build(); + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData_categories_nodes', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_nodes_mangas + extends GAllCategoriesData_categories_nodes_mangas { + @override + final String G__typename; + @override + final int totalCount; + + factory _$GAllCategoriesData_categories_nodes_mangas( + [void Function(GAllCategoriesData_categories_nodes_mangasBuilder)? + updates]) => + (new GAllCategoriesData_categories_nodes_mangasBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_nodes_mangas._( + {required this.G__typename, required this.totalCount}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_mangas', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(totalCount, + r'GAllCategoriesData_categories_nodes_mangas', 'totalCount'); + } + + @override + GAllCategoriesData_categories_nodes_mangas rebuild( + void Function(GAllCategoriesData_categories_nodes_mangasBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_nodes_mangasBuilder toBuilder() => + new GAllCategoriesData_categories_nodes_mangasBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_nodes_mangas && + G__typename == other.G__typename && + totalCount == other.totalCount; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GAllCategoriesData_categories_nodes_mangas') + ..add('G__typename', G__typename) + ..add('totalCount', totalCount)) + .toString(); + } +} + +class GAllCategoriesData_categories_nodes_mangasBuilder + implements + Builder { + _$GAllCategoriesData_categories_nodes_mangas? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _totalCount; + int? get totalCount => _$this._totalCount; + set totalCount(int? totalCount) => _$this._totalCount = totalCount; + + GAllCategoriesData_categories_nodes_mangasBuilder() { + GAllCategoriesData_categories_nodes_mangas._initializeBuilder(this); + } + + GAllCategoriesData_categories_nodes_mangasBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _totalCount = $v.totalCount; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_nodes_mangas other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_nodes_mangas; + } + + @override + void update( + void Function(GAllCategoriesData_categories_nodes_mangasBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_nodes_mangas build() => _build(); + + _$GAllCategoriesData_categories_nodes_mangas _build() { + final _$result = _$v ?? + new _$GAllCategoriesData_categories_nodes_mangas._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_mangas', 'G__typename'), + totalCount: BuiltValueNullFieldError.checkNotNull(totalCount, + r'GAllCategoriesData_categories_nodes_mangas', 'totalCount'), + ); + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_nodes_meta + extends GAllCategoriesData_categories_nodes_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GAllCategoriesData_categories_nodes_meta( + [void Function(GAllCategoriesData_categories_nodes_metaBuilder)? + updates]) => + (new GAllCategoriesData_categories_nodes_metaBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_nodes_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GAllCategoriesData_categories_nodes_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GAllCategoriesData_categories_nodes_meta', 'value'); + } + + @override + GAllCategoriesData_categories_nodes_meta rebuild( + void Function(GAllCategoriesData_categories_nodes_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_nodes_metaBuilder toBuilder() => + new GAllCategoriesData_categories_nodes_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_nodes_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GAllCategoriesData_categories_nodes_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GAllCategoriesData_categories_nodes_metaBuilder + implements + Builder { + _$GAllCategoriesData_categories_nodes_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GAllCategoriesData_categories_nodes_metaBuilder() { + GAllCategoriesData_categories_nodes_meta._initializeBuilder(this); + } + + GAllCategoriesData_categories_nodes_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_nodes_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_nodes_meta; + } + + @override + void update( + void Function(GAllCategoriesData_categories_nodes_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_nodes_meta build() => _build(); + + _$GAllCategoriesData_categories_nodes_meta _build() { + final _$result = _$v ?? + new _$GAllCategoriesData_categories_nodes_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_nodes_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GAllCategoriesData_categories_nodes_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GAllCategoriesData_categories_nodes_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GAllCategoriesData_categories_pageInfo + extends GAllCategoriesData_categories_pageInfo { + @override + final String G__typename; + @override + final _i3.GCursor? endCursor; + @override + final bool hasNextPage; + @override + final bool hasPreviousPage; + @override + final _i3.GCursor? startCursor; + + factory _$GAllCategoriesData_categories_pageInfo( + [void Function(GAllCategoriesData_categories_pageInfoBuilder)? + updates]) => + (new GAllCategoriesData_categories_pageInfoBuilder()..update(updates)) + ._build(); + + _$GAllCategoriesData_categories_pageInfo._( + {required this.G__typename, + this.endCursor, + required this.hasNextPage, + required this.hasPreviousPage, + this.startCursor}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAllCategoriesData_categories_pageInfo', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GAllCategoriesData_categories_pageInfo', 'hasNextPage'); + BuiltValueNullFieldError.checkNotNull(hasPreviousPage, + r'GAllCategoriesData_categories_pageInfo', 'hasPreviousPage'); + } + + @override + GAllCategoriesData_categories_pageInfo rebuild( + void Function(GAllCategoriesData_categories_pageInfoBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesData_categories_pageInfoBuilder toBuilder() => + new GAllCategoriesData_categories_pageInfoBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesData_categories_pageInfo && + G__typename == other.G__typename && + endCursor == other.endCursor && + hasNextPage == other.hasNextPage && + hasPreviousPage == other.hasPreviousPage && + startCursor == other.startCursor; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, endCursor.hashCode); + _$hash = $jc(_$hash, hasNextPage.hashCode); + _$hash = $jc(_$hash, hasPreviousPage.hashCode); + _$hash = $jc(_$hash, startCursor.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GAllCategoriesData_categories_pageInfo') + ..add('G__typename', G__typename) + ..add('endCursor', endCursor) + ..add('hasNextPage', hasNextPage) + ..add('hasPreviousPage', hasPreviousPage) + ..add('startCursor', startCursor)) + .toString(); + } +} + +class GAllCategoriesData_categories_pageInfoBuilder + implements + Builder { + _$GAllCategoriesData_categories_pageInfo? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i3.GCursorBuilder? _endCursor; + _i3.GCursorBuilder get endCursor => + _$this._endCursor ??= new _i3.GCursorBuilder(); + set endCursor(_i3.GCursorBuilder? endCursor) => _$this._endCursor = endCursor; + + bool? _hasNextPage; + bool? get hasNextPage => _$this._hasNextPage; + set hasNextPage(bool? hasNextPage) => _$this._hasNextPage = hasNextPage; + + bool? _hasPreviousPage; + bool? get hasPreviousPage => _$this._hasPreviousPage; + set hasPreviousPage(bool? hasPreviousPage) => + _$this._hasPreviousPage = hasPreviousPage; + + _i3.GCursorBuilder? _startCursor; + _i3.GCursorBuilder get startCursor => + _$this._startCursor ??= new _i3.GCursorBuilder(); + set startCursor(_i3.GCursorBuilder? startCursor) => + _$this._startCursor = startCursor; + + GAllCategoriesData_categories_pageInfoBuilder() { + GAllCategoriesData_categories_pageInfo._initializeBuilder(this); + } + + GAllCategoriesData_categories_pageInfoBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _endCursor = $v.endCursor?.toBuilder(); + _hasNextPage = $v.hasNextPage; + _hasPreviousPage = $v.hasPreviousPage; + _startCursor = $v.startCursor?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesData_categories_pageInfo other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesData_categories_pageInfo; + } + + @override + void update( + void Function(GAllCategoriesData_categories_pageInfoBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesData_categories_pageInfo build() => _build(); + + _$GAllCategoriesData_categories_pageInfo _build() { + _$GAllCategoriesData_categories_pageInfo _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesData_categories_pageInfo._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAllCategoriesData_categories_pageInfo', 'G__typename'), + endCursor: _endCursor?.build(), + hasNextPage: BuiltValueNullFieldError.checkNotNull(hasNextPage, + r'GAllCategoriesData_categories_pageInfo', 'hasNextPage'), + hasPreviousPage: BuiltValueNullFieldError.checkNotNull( + hasPreviousPage, + r'GAllCategoriesData_categories_pageInfo', + 'hasPreviousPage'), + startCursor: _startCursor?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'endCursor'; + _endCursor?.build(); + + _$failedField = 'startCursor'; + _startCursor?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesData_categories_pageInfo', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/data/graphql/__generated__/all_categories_query.req.gql.dart b/lib/src/features/library/data/graphql/__generated__/all_categories_query.req.gql.dart new file mode 100644 index 00000000..5ef6abf7 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/all_categories_query.req.gql.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/all_categories_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'all_categories_query.req.gql.g.dart'; + +abstract class GAllCategoriesReq + implements + Built, + _i1.OperationRequest<_i2.GAllCategoriesData, _i3.GAllCategoriesVars> { + GAllCategoriesReq._(); + + factory GAllCategoriesReq( + [void Function(GAllCategoriesReqBuilder b) updates]) = + _$GAllCategoriesReq; + + static void _initializeBuilder(GAllCategoriesReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'AllCategories', + ) + ..executeOnListen = true; + + @override + _i3.GAllCategoriesVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, + _i2.GAllCategoriesData?, + )? get updateResult; + @override + _i2.GAllCategoriesData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GAllCategoriesData? parseData(Map json) => + _i2.GAllCategoriesData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GAllCategoriesData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GAllCategoriesData, _i3.GAllCategoriesVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gAllCategoriesReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAllCategoriesReq.serializer, + this, + ) as Map); + + static GAllCategoriesReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GAllCategoriesReq.serializer, + json, + ); +} diff --git a/lib/src/features/library/data/graphql/__generated__/all_categories_query.req.gql.g.dart b/lib/src/features/library/data/graphql/__generated__/all_categories_query.req.gql.g.dart new file mode 100644 index 00000000..5c3852c5 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/all_categories_query.req.gql.g.dart @@ -0,0 +1,368 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'all_categories_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAllCategoriesReqSerializer = + new _$GAllCategoriesReqSerializer(); + +class _$GAllCategoriesReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAllCategoriesReq, _$GAllCategoriesReq]; + @override + final String wireName = 'GAllCategoriesReq'; + + @override + Iterable serialize(Serializers serializers, GAllCategoriesReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GAllCategoriesVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GAllCategoriesData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GAllCategoriesReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GAllCategoriesVars))! + as _i3.GAllCategoriesVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GAllCategoriesData))! + as _i2.GAllCategoriesData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesReq extends GAllCategoriesReq { + @override + final _i3.GAllCategoriesVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? updateResult; + @override + final _i2.GAllCategoriesData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GAllCategoriesReq( + [void Function(GAllCategoriesReqBuilder)? updates]) => + (new GAllCategoriesReqBuilder()..update(updates))._build(); + + _$GAllCategoriesReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GAllCategoriesReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GAllCategoriesReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAllCategoriesReq', 'executeOnListen'); + } + + @override + GAllCategoriesReq rebuild(void Function(GAllCategoriesReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesReqBuilder toBuilder() => + new GAllCategoriesReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GAllCategoriesReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GAllCategoriesReqBuilder + implements Builder { + _$GAllCategoriesReq? _$v; + + _i3.GAllCategoriesVarsBuilder? _vars; + _i3.GAllCategoriesVarsBuilder get vars => + _$this._vars ??= new _i3.GAllCategoriesVarsBuilder(); + set vars(_i3.GAllCategoriesVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? _updateResult; + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GAllCategoriesData? Function( + _i2.GAllCategoriesData?, _i2.GAllCategoriesData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GAllCategoriesDataBuilder? _optimisticResponse; + _i2.GAllCategoriesDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GAllCategoriesDataBuilder(); + set optimisticResponse(_i2.GAllCategoriesDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GAllCategoriesReqBuilder() { + GAllCategoriesReq._initializeBuilder(this); + } + + GAllCategoriesReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesReq; + } + + @override + void update(void Function(GAllCategoriesReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesReq build() => _build(); + + _$GAllCategoriesReq _build() { + _$GAllCategoriesReq _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GAllCategoriesReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GAllCategoriesReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.dart b/lib/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.dart new file mode 100644 index 00000000..4ae80a3f --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'all_categories_query.var.gql.g.dart'; + +abstract class GAllCategoriesVars + implements Built { + GAllCategoriesVars._(); + + factory GAllCategoriesVars( + [void Function(GAllCategoriesVarsBuilder b) updates]) = + _$GAllCategoriesVars; + + _i1.GCategoryConditionInput? get condition; + _i1.GCategoryFilterInput? get filter; + int? get first; + int? get offset; + static Serializer get serializer => + _$gAllCategoriesVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GAllCategoriesVars.serializer, + this, + ) as Map); + + static GAllCategoriesVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GAllCategoriesVars.serializer, + json, + ); +} diff --git a/lib/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.g.dart b/lib/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.g.dart new file mode 100644 index 00000000..3779ba72 --- /dev/null +++ b/lib/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.g.dart @@ -0,0 +1,229 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'all_categories_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gAllCategoriesVarsSerializer = + new _$GAllCategoriesVarsSerializer(); + +class _$GAllCategoriesVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GAllCategoriesVars, _$GAllCategoriesVars]; + @override + final String wireName = 'GAllCategoriesVars'; + + @override + Iterable serialize( + Serializers serializers, GAllCategoriesVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.condition; + if (value != null) { + result + ..add('condition') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCategoryConditionInput))); + } + value = object.filter; + if (value != null) { + result + ..add('filter') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCategoryFilterInput))); + } + value = object.first; + if (value != null) { + result + ..add('first') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.offset; + if (value != null) { + result + ..add('offset') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GAllCategoriesVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAllCategoriesVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'condition': + result.condition.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCategoryConditionInput))! + as _i1.GCategoryConditionInput); + break; + case 'filter': + result.filter.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCategoryFilterInput))! + as _i1.GCategoryFilterInput); + break; + case 'first': + result.first = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'offset': + result.offset = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GAllCategoriesVars extends GAllCategoriesVars { + @override + final _i1.GCategoryConditionInput? condition; + @override + final _i1.GCategoryFilterInput? filter; + @override + final int? first; + @override + final int? offset; + + factory _$GAllCategoriesVars( + [void Function(GAllCategoriesVarsBuilder)? updates]) => + (new GAllCategoriesVarsBuilder()..update(updates))._build(); + + _$GAllCategoriesVars._({this.condition, this.filter, this.first, this.offset}) + : super._(); + + @override + GAllCategoriesVars rebuild( + void Function(GAllCategoriesVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAllCategoriesVarsBuilder toBuilder() => + new GAllCategoriesVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAllCategoriesVars && + condition == other.condition && + filter == other.filter && + first == other.first && + offset == other.offset; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, condition.hashCode); + _$hash = $jc(_$hash, filter.hashCode); + _$hash = $jc(_$hash, first.hashCode); + _$hash = $jc(_$hash, offset.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAllCategoriesVars') + ..add('condition', condition) + ..add('filter', filter) + ..add('first', first) + ..add('offset', offset)) + .toString(); + } +} + +class GAllCategoriesVarsBuilder + implements Builder { + _$GAllCategoriesVars? _$v; + + _i1.GCategoryConditionInputBuilder? _condition; + _i1.GCategoryConditionInputBuilder get condition => + _$this._condition ??= new _i1.GCategoryConditionInputBuilder(); + set condition(_i1.GCategoryConditionInputBuilder? condition) => + _$this._condition = condition; + + _i1.GCategoryFilterInputBuilder? _filter; + _i1.GCategoryFilterInputBuilder get filter => + _$this._filter ??= new _i1.GCategoryFilterInputBuilder(); + set filter(_i1.GCategoryFilterInputBuilder? filter) => + _$this._filter = filter; + + int? _first; + int? get first => _$this._first; + set first(int? first) => _$this._first = first; + + int? _offset; + int? get offset => _$this._offset; + set offset(int? offset) => _$this._offset = offset; + + GAllCategoriesVarsBuilder(); + + GAllCategoriesVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _condition = $v.condition?.toBuilder(); + _filter = $v.filter?.toBuilder(); + _first = $v.first; + _offset = $v.offset; + _$v = null; + } + return this; + } + + @override + void replace(GAllCategoriesVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAllCategoriesVars; + } + + @override + void update(void Function(GAllCategoriesVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAllCategoriesVars build() => _build(); + + _$GAllCategoriesVars _build() { + _$GAllCategoriesVars _$result; + try { + _$result = _$v ?? + new _$GAllCategoriesVars._( + condition: _condition?.build(), + filter: _filter?.build(), + first: first, + offset: offset, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'condition'; + _condition?.build(); + _$failedField = 'filter'; + _filter?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAllCategoriesVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/data/graphql/all_categories_query.graphql b/lib/src/features/library/data/graphql/all_categories_query.graphql new file mode 100644 index 00000000..977ffb0b --- /dev/null +++ b/lib/src/features/library/data/graphql/all_categories_query.graphql @@ -0,0 +1,21 @@ +# import "/src/features/library/domain/category/graphql/category_fragment.graphql" +# import "/src/graphql/fragments.graphql" + +query AllCategories($condition: CategoryConditionInput, $filter: CategoryFilterInput, $first: Int, $offset: Int) { + categories( + condition: $condition + filter: $filter + first: $first + orderBy: ORDER + orderByType: ASC + offset: $offset + ) { + nodes { + ...CategoryFragment + } + pageInfo { + ...PageInfoFragment + } + totalCount + } +} diff --git a/lib/src/features/library/data/graphql/query.dart b/lib/src/features/library/data/graphql/query.dart new file mode 100644 index 00000000..7dee785b --- /dev/null +++ b/lib/src/features/library/data/graphql/query.dart @@ -0,0 +1,6 @@ +import '__generated__/all_categories_query.req.gql.dart'; + +abstract class CategoryQuery { + static GAllCategoriesReq getAllCategories() => + GAllCategoriesReq()..vars.condition; +} diff --git a/lib/src/features/library/domain/category/category_model.dart b/lib/src/features/library/domain/category/category_model.dart index 9ebb5702..9168114e 100644 --- a/lib/src/features/library/domain/category/category_model.dart +++ b/lib/src/features/library/domain/category/category_model.dart @@ -4,20 +4,24 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:freezed_annotation/freezed_annotation.dart'; +import 'graphql/__generated__/category_fragment.data.gql.dart'; -part 'category_model.freezed.dart'; -part 'category_model.g.dart'; +typedef Category = GCategoryFragment; -@freezed -class Category with _$Category { - factory Category({ - int? id, - String? name, - int? order, - @JsonKey(name: "default") bool? defaultCategory, - }) = _Category; - - factory Category.fromJson(Map json) => - _$CategoryFromJson(json); +extension CategoryConverter on GCategoryFragment { + bool get defaultCategory => Gdefault; } +// @freezed +// class Category with _$Category { +// factory Category({ +// @JsonKey(name: "default") bool? defaultCategory, +// int? id, +// IncludeOrExclude? includeInDownload, +// IncludeOrExclude? includeInUpdate, +// String? name, +// int? order, +// }) = _Category; + +// factory Category.fromJson(Map json) => +// _$CategoryFromJson(json); +// } diff --git a/lib/src/features/library/domain/category/category_model.freezed.dart b/lib/src/features/library/domain/category/category_model.freezed.dart deleted file mode 100644 index 435a96e4..00000000 --- a/lib/src/features/library/domain/category/category_model.freezed.dart +++ /dev/null @@ -1,219 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'category_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -Category _$CategoryFromJson(Map json) { - return _Category.fromJson(json); -} - -/// @nodoc -mixin _$Category { - int? get id => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - int? get order => throw _privateConstructorUsedError; - @JsonKey(name: "default") - bool? get defaultCategory => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $CategoryCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $CategoryCopyWith<$Res> { - factory $CategoryCopyWith(Category value, $Res Function(Category) then) = - _$CategoryCopyWithImpl<$Res, Category>; - @useResult - $Res call( - {int? id, - String? name, - int? order, - @JsonKey(name: "default") bool? defaultCategory}); -} - -/// @nodoc -class _$CategoryCopyWithImpl<$Res, $Val extends Category> - implements $CategoryCopyWith<$Res> { - _$CategoryCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? name = freezed, - Object? order = freezed, - Object? defaultCategory = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - order: freezed == order - ? _value.order - : order // ignore: cast_nullable_to_non_nullable - as int?, - defaultCategory: freezed == defaultCategory - ? _value.defaultCategory - : defaultCategory // ignore: cast_nullable_to_non_nullable - as bool?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$CategoryImplCopyWith<$Res> - implements $CategoryCopyWith<$Res> { - factory _$$CategoryImplCopyWith( - _$CategoryImpl value, $Res Function(_$CategoryImpl) then) = - __$$CategoryImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? id, - String? name, - int? order, - @JsonKey(name: "default") bool? defaultCategory}); -} - -/// @nodoc -class __$$CategoryImplCopyWithImpl<$Res> - extends _$CategoryCopyWithImpl<$Res, _$CategoryImpl> - implements _$$CategoryImplCopyWith<$Res> { - __$$CategoryImplCopyWithImpl( - _$CategoryImpl _value, $Res Function(_$CategoryImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? name = freezed, - Object? order = freezed, - Object? defaultCategory = freezed, - }) { - return _then(_$CategoryImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - order: freezed == order - ? _value.order - : order // ignore: cast_nullable_to_non_nullable - as int?, - defaultCategory: freezed == defaultCategory - ? _value.defaultCategory - : defaultCategory // ignore: cast_nullable_to_non_nullable - as bool?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$CategoryImpl implements _Category { - _$CategoryImpl( - {this.id, - this.name, - this.order, - @JsonKey(name: "default") this.defaultCategory}); - - factory _$CategoryImpl.fromJson(Map json) => - _$$CategoryImplFromJson(json); - - @override - final int? id; - @override - final String? name; - @override - final int? order; - @override - @JsonKey(name: "default") - final bool? defaultCategory; - - @override - String toString() { - return 'Category(id: $id, name: $name, order: $order, defaultCategory: $defaultCategory)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$CategoryImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.order, order) || other.order == order) && - (identical(other.defaultCategory, defaultCategory) || - other.defaultCategory == defaultCategory)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => - Object.hash(runtimeType, id, name, order, defaultCategory); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$CategoryImplCopyWith<_$CategoryImpl> get copyWith => - __$$CategoryImplCopyWithImpl<_$CategoryImpl>(this, _$identity); - - @override - Map toJson() { - return _$$CategoryImplToJson( - this, - ); - } -} - -abstract class _Category implements Category { - factory _Category( - {final int? id, - final String? name, - final int? order, - @JsonKey(name: "default") final bool? defaultCategory}) = _$CategoryImpl; - - factory _Category.fromJson(Map json) = - _$CategoryImpl.fromJson; - - @override - int? get id; - @override - String? get name; - @override - int? get order; - @override - @JsonKey(name: "default") - bool? get defaultCategory; - @override - @JsonKey(ignore: true) - _$$CategoryImplCopyWith<_$CategoryImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/library/domain/category/category_model.g.dart b/lib/src/features/library/domain/category/category_model.g.dart deleted file mode 100644 index c207c612..00000000 --- a/lib/src/features/library/domain/category/category_model.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'category_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$CategoryImpl _$$CategoryImplFromJson(Map json) => - _$CategoryImpl( - id: json['id'] as int?, - name: json['name'] as String?, - order: json['order'] as int?, - defaultCategory: json['default'] as bool?, - ); - -Map _$$CategoryImplToJson(_$CategoryImpl instance) => - { - 'id': instance.id, - 'name': instance.name, - 'order': instance.order, - 'default': instance.defaultCategory, - }; diff --git a/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.ast.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.ast.gql.dart new file mode 100644 index 00000000..779aa11b --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.ast.gql.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const CategoryFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'CategoryFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'default'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'includeInDownload'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'includeInUpdate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'order'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'mangas'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'meta'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'value'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [CategoryFragment]); diff --git a/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.dart new file mode 100644 index 00000000..a58aecb9 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.dart @@ -0,0 +1,159 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'category_fragment.data.gql.g.dart'; + +abstract class GCategoryFragment { + String get G__typename; + bool get Gdefault; + int get id; + _i1.GIncludeOrExclude get includeInDownload; + _i1.GIncludeOrExclude get includeInUpdate; + String get name; + int get order; + GCategoryFragment_mangas get mangas; + BuiltList get meta; + Map toJson(); +} + +abstract class GCategoryFragment_mangas { + String get G__typename; + int get totalCount; + Map toJson(); +} + +abstract class GCategoryFragment_meta { + String get G__typename; + String get key; + String get value; + Map toJson(); +} + +abstract class GCategoryFragmentData + implements + Built, + GCategoryFragment { + GCategoryFragmentData._(); + + factory GCategoryFragmentData( + [void Function(GCategoryFragmentDataBuilder b) updates]) = + _$GCategoryFragmentData; + + static void _initializeBuilder(GCategoryFragmentDataBuilder b) => + b..G__typename = 'CategoryType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + @BuiltValueField(wireName: 'default') + bool get Gdefault; + @override + int get id; + @override + _i1.GIncludeOrExclude get includeInDownload; + @override + _i1.GIncludeOrExclude get includeInUpdate; + @override + String get name; + @override + int get order; + @override + GCategoryFragmentData_mangas get mangas; + @override + BuiltList get meta; + static Serializer get serializer => + _$gCategoryFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GCategoryFragmentData.serializer, + this, + ) as Map); + + static GCategoryFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCategoryFragmentData.serializer, + json, + ); +} + +abstract class GCategoryFragmentData_mangas + implements + Built, + GCategoryFragment_mangas { + GCategoryFragmentData_mangas._(); + + factory GCategoryFragmentData_mangas( + [void Function(GCategoryFragmentData_mangasBuilder b) updates]) = + _$GCategoryFragmentData_mangas; + + static void _initializeBuilder(GCategoryFragmentData_mangasBuilder b) => + b..G__typename = 'MangaNodeList'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get totalCount; + static Serializer get serializer => + _$gCategoryFragmentDataMangasSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GCategoryFragmentData_mangas.serializer, + this, + ) as Map); + + static GCategoryFragmentData_mangas? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCategoryFragmentData_mangas.serializer, + json, + ); +} + +abstract class GCategoryFragmentData_meta + implements + Built, + GCategoryFragment_meta { + GCategoryFragmentData_meta._(); + + factory GCategoryFragmentData_meta( + [void Function(GCategoryFragmentData_metaBuilder b) updates]) = + _$GCategoryFragmentData_meta; + + static void _initializeBuilder(GCategoryFragmentData_metaBuilder b) => + b..G__typename = 'CategoryMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gCategoryFragmentDataMetaSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GCategoryFragmentData_meta.serializer, + this, + ) as Map); + + static GCategoryFragmentData_meta? fromJson(Map json) => + _i2.serializers.deserializeWith( + GCategoryFragmentData_meta.serializer, + json, + ); +} diff --git a/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.g.dart b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.g.dart new file mode 100644 index 00000000..71ab5b92 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.g.dart @@ -0,0 +1,698 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'category_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCategoryFragmentDataSerializer = + new _$GCategoryFragmentDataSerializer(); +Serializer + _$gCategoryFragmentDataMangasSerializer = + new _$GCategoryFragmentData_mangasSerializer(); +Serializer _$gCategoryFragmentDataMetaSerializer = + new _$GCategoryFragmentData_metaSerializer(); + +class _$GCategoryFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentData, + _$GCategoryFragmentData + ]; + @override + final String wireName = 'GCategoryFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'default', + serializers.serialize(object.Gdefault, + specifiedType: const FullType(bool)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'includeInDownload', + serializers.serialize(object.includeInDownload, + specifiedType: const FullType(_i1.GIncludeOrExclude)), + 'includeInUpdate', + serializers.serialize(object.includeInUpdate, + specifiedType: const FullType(_i1.GIncludeOrExclude)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'order', + serializers.serialize(object.order, specifiedType: const FullType(int)), + 'mangas', + serializers.serialize(object.mangas, + specifiedType: const FullType(GCategoryFragmentData_mangas)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFragmentData_meta)])), + ]; + + return result; + } + + @override + GCategoryFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(_i1.GIncludeOrExclude))! + as _i1.GIncludeOrExclude; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(_i1.GIncludeOrExclude))! + as _i1.GIncludeOrExclude; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'mangas': + result.mangas.replace(serializers.deserialize(value, + specifiedType: const FullType(GCategoryFragmentData_mangas))! + as GCategoryFragmentData_mangas); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GCategoryFragmentData_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentData_mangasSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentData_mangas, + _$GCategoryFragmentData_mangas + ]; + @override + final String wireName = 'GCategoryFragmentData_mangas'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentData_mangas object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'totalCount', + serializers.serialize(object.totalCount, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GCategoryFragmentData_mangas deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentData_mangasBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'totalCount': + result.totalCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentData_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentData_meta, + _$GCategoryFragmentData_meta + ]; + @override + final String wireName = 'GCategoryFragmentData_meta'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentData_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GCategoryFragmentData_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentData_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentData extends GCategoryFragmentData { + @override + final String G__typename; + @override + final bool Gdefault; + @override + final int id; + @override + final _i1.GIncludeOrExclude includeInDownload; + @override + final _i1.GIncludeOrExclude includeInUpdate; + @override + final String name; + @override + final int order; + @override + final GCategoryFragmentData_mangas mangas; + @override + final BuiltList meta; + + factory _$GCategoryFragmentData( + [void Function(GCategoryFragmentDataBuilder)? updates]) => + (new GCategoryFragmentDataBuilder()..update(updates))._build(); + + _$GCategoryFragmentData._( + {required this.G__typename, + required this.Gdefault, + required this.id, + required this.includeInDownload, + required this.includeInUpdate, + required this.name, + required this.order, + required this.mangas, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GCategoryFragmentData', 'Gdefault'); + BuiltValueNullFieldError.checkNotNull(id, r'GCategoryFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + includeInDownload, r'GCategoryFragmentData', 'includeInDownload'); + BuiltValueNullFieldError.checkNotNull( + includeInUpdate, r'GCategoryFragmentData', 'includeInUpdate'); + BuiltValueNullFieldError.checkNotNull( + name, r'GCategoryFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + order, r'GCategoryFragmentData', 'order'); + BuiltValueNullFieldError.checkNotNull( + mangas, r'GCategoryFragmentData', 'mangas'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GCategoryFragmentData', 'meta'); + } + + @override + GCategoryFragmentData rebuild( + void Function(GCategoryFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentDataBuilder toBuilder() => + new GCategoryFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentData && + G__typename == other.G__typename && + Gdefault == other.Gdefault && + id == other.id && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name && + order == other.order && + mangas == other.mangas && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jc(_$hash, mangas.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentData') + ..add('G__typename', G__typename) + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name) + ..add('order', order) + ..add('mangas', mangas) + ..add('meta', meta)) + .toString(); + } +} + +class GCategoryFragmentDataBuilder + implements Builder { + _$GCategoryFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + _i1.GIncludeOrExclude? _includeInDownload; + _i1.GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(_i1.GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + _i1.GIncludeOrExclude? _includeInUpdate; + _i1.GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(_i1.GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GCategoryFragmentData_mangasBuilder? _mangas; + GCategoryFragmentData_mangasBuilder get mangas => + _$this._mangas ??= new GCategoryFragmentData_mangasBuilder(); + set mangas(GCategoryFragmentData_mangasBuilder? mangas) => + _$this._mangas = mangas; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GCategoryFragmentDataBuilder() { + GCategoryFragmentData._initializeBuilder(this); + } + + GCategoryFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _Gdefault = $v.Gdefault; + _id = $v.id; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _order = $v.order; + _mangas = $v.mangas.toBuilder(); + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentData; + } + + @override + void update(void Function(GCategoryFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentData build() => _build(); + + _$GCategoryFragmentData _build() { + _$GCategoryFragmentData _$result; + try { + _$result = _$v ?? + new _$GCategoryFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData', 'G__typename'), + Gdefault: BuiltValueNullFieldError.checkNotNull( + Gdefault, r'GCategoryFragmentData', 'Gdefault'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GCategoryFragmentData', 'id'), + includeInDownload: BuiltValueNullFieldError.checkNotNull( + includeInDownload, + r'GCategoryFragmentData', + 'includeInDownload'), + includeInUpdate: BuiltValueNullFieldError.checkNotNull( + includeInUpdate, r'GCategoryFragmentData', 'includeInUpdate'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GCategoryFragmentData', 'name'), + order: BuiltValueNullFieldError.checkNotNull( + order, r'GCategoryFragmentData', 'order'), + mangas: mangas.build(), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'mangas'; + mangas.build(); + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCategoryFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCategoryFragmentData_mangas extends GCategoryFragmentData_mangas { + @override + final String G__typename; + @override + final int totalCount; + + factory _$GCategoryFragmentData_mangas( + [void Function(GCategoryFragmentData_mangasBuilder)? updates]) => + (new GCategoryFragmentData_mangasBuilder()..update(updates))._build(); + + _$GCategoryFragmentData_mangas._( + {required this.G__typename, required this.totalCount}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_mangas', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + totalCount, r'GCategoryFragmentData_mangas', 'totalCount'); + } + + @override + GCategoryFragmentData_mangas rebuild( + void Function(GCategoryFragmentData_mangasBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentData_mangasBuilder toBuilder() => + new GCategoryFragmentData_mangasBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentData_mangas && + G__typename == other.G__typename && + totalCount == other.totalCount; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, totalCount.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentData_mangas') + ..add('G__typename', G__typename) + ..add('totalCount', totalCount)) + .toString(); + } +} + +class GCategoryFragmentData_mangasBuilder + implements + Builder { + _$GCategoryFragmentData_mangas? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _totalCount; + int? get totalCount => _$this._totalCount; + set totalCount(int? totalCount) => _$this._totalCount = totalCount; + + GCategoryFragmentData_mangasBuilder() { + GCategoryFragmentData_mangas._initializeBuilder(this); + } + + GCategoryFragmentData_mangasBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _totalCount = $v.totalCount; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentData_mangas other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentData_mangas; + } + + @override + void update(void Function(GCategoryFragmentData_mangasBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentData_mangas build() => _build(); + + _$GCategoryFragmentData_mangas _build() { + final _$result = _$v ?? + new _$GCategoryFragmentData_mangas._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_mangas', 'G__typename'), + totalCount: BuiltValueNullFieldError.checkNotNull( + totalCount, r'GCategoryFragmentData_mangas', 'totalCount'), + ); + replace(_$result); + return _$result; + } +} + +class _$GCategoryFragmentData_meta extends GCategoryFragmentData_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GCategoryFragmentData_meta( + [void Function(GCategoryFragmentData_metaBuilder)? updates]) => + (new GCategoryFragmentData_metaBuilder()..update(updates))._build(); + + _$GCategoryFragmentData_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryFragmentData_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryFragmentData_meta', 'value'); + } + + @override + GCategoryFragmentData_meta rebuild( + void Function(GCategoryFragmentData_metaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentData_metaBuilder toBuilder() => + new GCategoryFragmentData_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentData_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentData_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GCategoryFragmentData_metaBuilder + implements + Builder { + _$GCategoryFragmentData_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GCategoryFragmentData_metaBuilder() { + GCategoryFragmentData_meta._initializeBuilder(this); + } + + GCategoryFragmentData_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentData_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentData_meta; + } + + @override + void update(void Function(GCategoryFragmentData_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentData_meta build() => _build(); + + _$GCategoryFragmentData_meta _build() { + final _$result = _$v ?? + new _$GCategoryFragmentData_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCategoryFragmentData_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryFragmentData_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryFragmentData_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.req.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.req.gql.dart new file mode 100644 index 00000000..3fe1561e --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'category_fragment.req.gql.g.dart'; + +abstract class GCategoryFragmentReq + implements + Built, + _i1 + .FragmentRequest<_i2.GCategoryFragmentData, _i3.GCategoryFragmentVars> { + GCategoryFragmentReq._(); + + factory GCategoryFragmentReq( + [void Function(GCategoryFragmentReqBuilder b) updates]) = + _$GCategoryFragmentReq; + + static void _initializeBuilder(GCategoryFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'CategoryFragment'; + + @override + _i3.GCategoryFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GCategoryFragmentData? parseData(Map json) => + _i2.GCategoryFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GCategoryFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gCategoryFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GCategoryFragmentReq.serializer, + this, + ) as Map); + + static GCategoryFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCategoryFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.req.gql.g.dart b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.req.gql.g.dart new file mode 100644 index 00000000..3815e819 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.req.gql.g.dart @@ -0,0 +1,237 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'category_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCategoryFragmentReqSerializer = + new _$GCategoryFragmentReqSerializer(); + +class _$GCategoryFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentReq, + _$GCategoryFragmentReq + ]; + @override + final String wireName = 'GCategoryFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GCategoryFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GCategoryFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCategoryFragmentVars))! + as _i3.GCategoryFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFragmentReq extends GCategoryFragmentReq { + @override + final _i3.GCategoryFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GCategoryFragmentReq( + [void Function(GCategoryFragmentReqBuilder)? updates]) => + (new GCategoryFragmentReqBuilder()..update(updates))._build(); + + _$GCategoryFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GCategoryFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GCategoryFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GCategoryFragmentReq', 'idFields'); + } + + @override + GCategoryFragmentReq rebuild( + void Function(GCategoryFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentReqBuilder toBuilder() => + new GCategoryFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GCategoryFragmentReqBuilder + implements Builder { + _$GCategoryFragmentReq? _$v; + + _i3.GCategoryFragmentVarsBuilder? _vars; + _i3.GCategoryFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GCategoryFragmentVarsBuilder(); + set vars(_i3.GCategoryFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GCategoryFragmentReqBuilder() { + GCategoryFragmentReq._initializeBuilder(this); + } + + GCategoryFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentReq; + } + + @override + void update(void Function(GCategoryFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentReq build() => _build(); + + _$GCategoryFragmentReq _build() { + _$GCategoryFragmentReq _$result; + try { + _$result = _$v ?? + new _$GCategoryFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GCategoryFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GCategoryFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCategoryFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.dart b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.dart new file mode 100644 index 00000000..d1db2a0f --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'category_fragment.var.gql.g.dart'; + +abstract class GCategoryFragmentVars + implements Built { + GCategoryFragmentVars._(); + + factory GCategoryFragmentVars( + [void Function(GCategoryFragmentVarsBuilder b) updates]) = + _$GCategoryFragmentVars; + + static Serializer get serializer => + _$gCategoryFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryFragmentVars.serializer, + this, + ) as Map); + + static GCategoryFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.g.dart b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.g.dart new file mode 100644 index 00000000..1a69af5e --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'category_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCategoryFragmentVarsSerializer = + new _$GCategoryFragmentVarsSerializer(); + +class _$GCategoryFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFragmentVars, + _$GCategoryFragmentVars + ]; + @override + final String wireName = 'GCategoryFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GCategoryFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GCategoryFragmentVarsBuilder().build(); + } +} + +class _$GCategoryFragmentVars extends GCategoryFragmentVars { + factory _$GCategoryFragmentVars( + [void Function(GCategoryFragmentVarsBuilder)? updates]) => + (new GCategoryFragmentVarsBuilder()..update(updates))._build(); + + _$GCategoryFragmentVars._() : super._(); + + @override + GCategoryFragmentVars rebuild( + void Function(GCategoryFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFragmentVarsBuilder toBuilder() => + new GCategoryFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFragmentVars; + } + + @override + int get hashCode { + return 423957543; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GCategoryFragmentVars').toString(); + } +} + +class GCategoryFragmentVarsBuilder + implements Builder { + _$GCategoryFragmentVars? _$v; + + GCategoryFragmentVarsBuilder(); + + @override + void replace(GCategoryFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFragmentVars; + } + + @override + void update(void Function(GCategoryFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFragmentVars build() => _build(); + + _$GCategoryFragmentVars _build() { + final _$result = _$v ?? new _$GCategoryFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/library/domain/category/graphql/category_fragment.graphql b/lib/src/features/library/domain/category/graphql/category_fragment.graphql new file mode 100644 index 00000000..55df1e19 --- /dev/null +++ b/lib/src/features/library/domain/category/graphql/category_fragment.graphql @@ -0,0 +1,16 @@ + +fragment CategoryFragment on CategoryType { + default + id + includeInDownload + includeInUpdate + name + order + mangas { + totalCount + } + meta { + key + value + } +} diff --git a/lib/src/features/library/presentation/category/controller/edit_category_controller.dart b/lib/src/features/library/presentation/category/controller/edit_category_controller.dart index 61fb0e74..18887ea8 100644 --- a/lib/src/features/library/presentation/category/controller/edit_category_controller.dart +++ b/lib/src/features/library/presentation/category/controller/edit_category_controller.dart @@ -4,11 +4,11 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:dio/dio.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../data/category/category_repository.dart'; +import '../../../data/category_repository.dart'; import '../../../domain/category/category_model.dart'; part 'edit_category_controller.g.dart'; @@ -16,55 +16,42 @@ part 'edit_category_controller.g.dart'; @riverpod class CategoryController extends _$CategoryController { @override - Future?> build() async => loadCategories(ref); - - Future?> loadCategories( - AutoDisposeAsyncNotifierProviderRef?> ref, - ) async { - final token = CancelToken(); - ref.onDispose(token.cancel); - final result = await ref - .watch(categoryRepositoryProvider) - .getCategoryList(cancelToken: token); - ref.keepAlive(); - return result; - } - - Future deleteCategory(Category category) async { - state = await AsyncValue.guard(() async { - await ref - .read(categoryRepositoryProvider) - .deleteCategory(category: category); - return loadCategories(ref); - }); + Stream?> build() => + ref.watch(categoryRepositoryProvider).getCategoryList(); + + Future> deleteCategory(Category category) async { + final response = await AsyncValue.guard(() => ref + .read(categoryRepositoryProvider) + .deleteCategory(category: category)); + ref.invalidateSelf(); + return response; } - Future editCategory(Category category) async { + Future> editCategory(Category category) async { final categoryRepository = ref.read(categoryRepositoryProvider); - state = await AsyncValue.guard(() async { - if (category.id == null) { - await categoryRepository.createCategory(category: category); - } else { - await categoryRepository.editCategory(category: category); - } - return loadCategories(ref); + final response = await AsyncValue.guard(() async { + return await categoryRepository.editCategory(category: category); }); + ref.invalidateSelf(); + return response; } - Future reorderCategory(int from, int to) async { - final categoryRepository = ref.read(categoryRepositoryProvider); - state = await AsyncValue.guard(() async { - await categoryRepository.reorderCategory(from: from, to: to); - return loadCategories(ref); - }); + Future> reorderCategory(int from, int to) async { + final response = await AsyncValue.guard(() => ref + .read(categoryRepositoryProvider) + .reorderCategory(from: from, to: to)); + ref.invalidateSelf(); + return response; } } @riverpod List? categoryListQuery( - CategoryListQueryRef ref, { + Ref ref, { required String query, }) { final categoryList = ref.watch(categoryControllerProvider).valueOrNull; - return categoryList?.where((element) => element.name.query(query)).toList(); + return categoryList + ?.where((element) => (element.name.query(query)).ifNull()) + .toList(); } diff --git a/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart b/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart index d2593e26..f68b5fbe 100644 --- a/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart +++ b/lib/src/features/library/presentation/category/controller/edit_category_controller.g.dart @@ -6,7 +6,7 @@ part of 'edit_category_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$categoryListQueryHash() => r'47eb6a35cc23a6d24dbe7981cff742174512b4ce'; +String _$categoryListQueryHash() => r'cef50c54315bcf176a941d3b722138953bb8e0c0'; /// Copied from Dart SDK class _SystemHash { @@ -142,6 +142,8 @@ class CategoryListQueryProvider extends AutoDisposeProvider?> { } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin CategoryListQueryRef on AutoDisposeProviderRef?> { /// The parameter `query` of this provider. String get query; @@ -157,11 +159,11 @@ class _CategoryListQueryProviderElement } String _$categoryControllerHash() => - r'03ec5d51bea1147db0139fa68edaeefdacb11f70'; + r'1a4453817f93c7384a38d27071936aaab3844b9f'; /// See also [CategoryController]. @ProviderFor(CategoryController) -final categoryControllerProvider = AutoDisposeAsyncNotifierProvider< +final categoryControllerProvider = AutoDisposeStreamNotifierProvider< CategoryController, List?>.internal( CategoryController.new, name: r'categoryControllerProvider', @@ -172,6 +174,6 @@ final categoryControllerProvider = AutoDisposeAsyncNotifierProvider< allTransitiveDependencies: null, ); -typedef _$CategoryController = AutoDisposeAsyncNotifier?>; +typedef _$CategoryController = AutoDisposeStreamNotifier?>; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/library/presentation/category/edit_category_screen.dart b/lib/src/features/library/presentation/category/edit_category_screen.dart index ccd937de..7f167a77 100644 --- a/lib/src/features/library/presentation/category/edit_category_screen.dart +++ b/lib/src/features/library/presentation/category/edit_category_screen.dart @@ -24,7 +24,7 @@ class EditCategoryScreen extends HookConsumerWidget { useEffect(() { categoryList.showToastOnError( - ref.read(toastProvider(context)), + ref.read(toastProvider), withMicrotask: true, ); return; @@ -32,7 +32,7 @@ class EditCategoryScreen extends HookConsumerWidget { return Scaffold( appBar: AppBar( - title: Text(context.l10n!.editCategory), + title: Text(context.l10n.editCategory), ), floatingActionButton: categoryList.asError?.error != null ? null @@ -43,30 +43,23 @@ class EditCategoryScreen extends HookConsumerWidget { if (data.isBlank || (data.isSingletonList && data?.firstOrNull?.id == 0)) { return Emoticons( - text: context.l10n!.noCategoriesFound, + title: context.l10n.noCategoriesFound, button: TextButton( onPressed: () => ref.refresh(categoryControllerProvider.future), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } else { - final isDefaultInCategoryList = data!.first.id == 0; return RefreshIndicator( child: ListView.builder( - itemCount: data.length, + itemCount: data!.length, itemBuilder: (context, index) { final category = data[index]; - if (category.id == 0) { - return const SizedBox.shrink(); - } else { - return CategoryTile( - key: ValueKey(category.id), - maxOrderIndex: isDefaultInCategoryList - ? data.length - 1 - : data.length, - category: category, - ); - } + return CategoryTile( + key: ValueKey(category.id), + maxOrderIndex: data.length, + category: category, + ); }, ), onRefresh: () => ref.refresh(categoryControllerProvider.future), diff --git a/lib/src/features/library/presentation/category/widgets/category_create_fab.dart b/lib/src/features/library/presentation/category/widgets/category_create_fab.dart index 56c2a1f8..1da51d8e 100644 --- a/lib/src/features/library/presentation/category/widgets/category_create_fab.dart +++ b/lib/src/features/library/presentation/category/widgets/category_create_fab.dart @@ -41,7 +41,7 @@ class CategoryCreateFab extends HookConsumerWidget { ); }, isExtended: context.isTablet && !isLoading.value, - label: Text(context.l10n!.addCategory), + label: Text(context.l10n.addCategory), icon: isLoading.value ? MiniCircularProgressIndicator(color: context.iconColor) : const Icon(Icons.add_rounded), diff --git a/lib/src/features/library/presentation/category/widgets/category_tile.dart b/lib/src/features/library/presentation/category/widgets/category_tile.dart index 665c9450..fa8bff83 100644 --- a/lib/src/features/library/presentation/category/widgets/category_tile.dart +++ b/lib/src/features/library/presentation/category/widgets/category_tile.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/category/category_model.dart'; import '../controller/edit_category_controller.dart'; import 'edit_category_dialog.dart'; @@ -35,13 +35,13 @@ class CategoryTile extends HookConsumerWidget { children: [ ListTile( leading: const Icon(Icons.label_rounded), - title: Text(category.name ?? ""), + title: Text(category.name), ), Row( children: [ IconButton( visualDensity: VisualDensity.compact, - onPressed: order <= 1 + onPressed: order <= 0 ? null : () => ref .read(categoryControllerProvider.notifier) @@ -74,30 +74,31 @@ class CategoryTile extends HookConsumerWidget { icon: const Icon(Icons.edit_rounded), color: Colors.grey, ), - IconButton( - visualDensity: VisualDensity.compact, - onPressed: () => showDialog( - context: context, - builder: (context) => AlertDialog( - title: Text(context.l10n!.deleteCategoryTitle), - content: Text(context.l10n!.deleteCategoryDescription), - actions: [ - const PopButton(), - ElevatedButton( - onPressed: () { - ref - .read(categoryControllerProvider.notifier) - .deleteCategory(category); - Navigator.pop(context); - }, - child: Text(context.l10n!.delete), - ), - ], + if (category.id != 0) + IconButton( + visualDensity: VisualDensity.compact, + onPressed: () => showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text(context.l10n.deleteCategoryTitle), + content: Text(context.l10n.deleteCategoryDescription), + actions: [ + const PopButton(), + ElevatedButton( + onPressed: () { + ref + .read(categoryControllerProvider.notifier) + .deleteCategory(category); + Navigator.pop(context); + }, + child: Text(context.l10n.delete), + ), + ], + ), ), + icon: const Icon(Icons.delete_rounded), + color: Colors.grey, ), - icon: const Icon(Icons.delete_rounded), - color: Colors.grey, - ), ], ), const Gap(8), diff --git a/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart b/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart index 2fcbd5a8..a111b169 100644 --- a/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart +++ b/lib/src/features/library/presentation/category/widgets/edit_category_dialog.dart @@ -10,8 +10,9 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/misc/toast/toast.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../domain/category/category_model.dart'; +import '../../../domain/category/graphql/__generated__/category_fragment.data.gql.dart'; class EditCategoryDialog extends HookConsumerWidget { const EditCategoryDialog({ @@ -26,10 +27,13 @@ class EditCategoryDialog extends HookConsumerWidget { String categoryName, bool defaultCategory, ) async { - return editCategory((category ?? Category()).copyWith( - name: categoryName, - defaultCategory: defaultCategory, - )); + //TODO: Implement editCategory + + // return editCategory((category ?? Category()).copyWith( + // name: categoryName, + // defaultCategory: defaultCategory, + // )); + return editCategory(GCategoryFragmentData()); } @override @@ -38,9 +42,7 @@ class EditCategoryDialog extends HookConsumerWidget { final defaultCategory = useState((category?.defaultCategory).ifNull()); return AlertDialog( title: Text( - category == null - ? context.l10n!.addCategory - : context.l10n!.editCategory, + category == null ? context.l10n.addCategory : context.l10n.editCategory, ), content: Column( mainAxisSize: MainAxisSize.min, @@ -50,8 +52,8 @@ class EditCategoryDialog extends HookConsumerWidget { autofocus: true, decoration: InputDecoration( hintText: category == null - ? context.l10n!.addCategory - : context.l10n!.editCategory, + ? context.l10n.addCategory + : context.l10n.editCategory, border: const OutlineInputBorder(), ), onSubmitted: (categoryName.text).isNotBlank @@ -73,7 +75,7 @@ class EditCategoryDialog extends HookConsumerWidget { defaultCategory.value = (value); } }, - title: Text(context.l10n!.defaultCategory), + title: Text(context.l10n.defaultCategory), ) ], ), @@ -82,15 +84,13 @@ class EditCategoryDialog extends HookConsumerWidget { ElevatedButton( onPressed: () { if ((categoryName.text).isBlank) { - ref - .read(toastProvider(context)) - .show(context.l10n!.emptyCategory); + ref.read(toastProvider)?.showError(context.l10n.emptyCategory); return; } submitEditCategory(categoryName.text, defaultCategory.value); Navigator.pop(context); }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ), ], ); diff --git a/lib/src/features/library/presentation/library/category_manga_list.dart b/lib/src/features/library/presentation/library/category_manga_list.dart index 18766a23..dfd24552 100644 --- a/lib/src/features/library/presentation/library/category_manga_list.dart +++ b/lib/src/features/library/presentation/library/category_manga_list.dart @@ -10,7 +10,6 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/app_sizes.dart'; import '../../../../constants/enum.dart'; - import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../widgets/emoticons.dart'; @@ -18,7 +17,7 @@ import '../../../../widgets/manga_cover/grid/manga_cover_grid_tile.dart'; import '../../../../widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart'; import '../../../../widgets/manga_cover/list/manga_cover_list_tile.dart'; import '../../../manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart'; -import '../../../settings/presentation/appearance/widgets/grid_cover_min_width.dart'; +import '../../../settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart'; import 'controller/library_controller.dart'; class CategoryMangaList extends HookConsumerWidget { @@ -40,10 +39,10 @@ class CategoryMangaList extends HookConsumerWidget { (data) { if (data.isBlank) { return Emoticons( - text: context.l10n!.noCategoryMangaFound, + title: context.l10n.noCategoryMangaFound, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } @@ -54,24 +53,20 @@ class CategoryMangaList extends HookConsumerWidget { itemBuilder: (context, index) => MangaCoverListTile( manga: data![index], onPressed: () { - if (data[index].id != null) { - MangaRoute( - mangaId: data[index].id!, - categoryId: categoryId, - ).push(context); - } + MangaRoute( + mangaId: data[index].id, + categoryId: categoryId, + ).push(context); }, onLongPress: () async { - if (data[index].id != null) { - await showDialog( - context: context, - builder: (context) => EditMangaCategoryDialog( - mangaId: data[index].id!, - title: data[index].title, - ), - ); - refresh(); - } + await showDialog( + context: context, + builder: (context) => EditMangaCategoryDialog( + mangaId: data[index].id, + title: data[index].title, + ), + ); + refresh(); }, showCountBadges: true, ), @@ -82,25 +77,21 @@ class CategoryMangaList extends HookConsumerWidget { itemCount: (data?.length).getValueOnNullOrNegative(), itemBuilder: (context, index) => MangaCoverGridTile( onLongPress: () async { - if (data[index].id != null) { - await showDialog( - context: context, - builder: (context) => EditMangaCategoryDialog( - mangaId: data[index].id!, - title: data[index].title, - ), - ); - refresh(); - } + await showDialog( + context: context, + builder: (context) => EditMangaCategoryDialog( + mangaId: data[index].id, + title: data[index].title, + ), + ); + refresh(); }, manga: data![index], onPressed: () { - if (data[index].id != null) { - MangaRoute( - mangaId: data[index].id!, - categoryId: categoryId, - ).push(context); - } + MangaRoute( + mangaId: data[index].id, + categoryId: categoryId, + ).push(context); }, showCountBadges: true, showDarkOverlay: false, @@ -112,24 +103,20 @@ class CategoryMangaList extends HookConsumerWidget { itemBuilder: (context, index) => MangaCoverDescriptiveListTile( manga: data![index], onPressed: () { - if (data[index].id != null) { - MangaRoute( - mangaId: data[index].id!, - categoryId: categoryId, - ).push(context); - } + MangaRoute( + mangaId: data[index].id, + categoryId: categoryId, + ).push(context); }, onLongPress: () async { - if (data[index].id != null) { - await showDialog( - context: context, - builder: (context) => EditMangaCategoryDialog( - mangaId: data[index].id!, - title: data[index].title, - ), - ); - refresh(); - } + await showDialog( + context: context, + builder: (context) => EditMangaCategoryDialog( + mangaId: data[index].id, + title: data[index].title, + ), + ); + refresh(); }, showBadges: true, ), diff --git a/lib/src/features/library/presentation/library/controller/library_controller.dart b/lib/src/features/library/presentation/library/controller/library_controller.dart index 06ba5629..39aba7a4 100644 --- a/lib/src/features/library/presentation/library/controller/library_controller.dart +++ b/lib/src/features/library/presentation/library/controller/library_controller.dart @@ -5,6 +5,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:dio/dio.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../constants/db_keys.dart'; @@ -13,14 +14,13 @@ import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/mixin/shared_preferences_client_mixin.dart'; import '../../../../../utils/mixin/state_provider_mixin.dart'; import '../../../../manga_book/domain/manga/manga_model.dart'; -import '../../../data/category/category_repository.dart'; +import '../../../data/category_repository.dart'; import '../../../domain/category/category_model.dart'; part 'library_controller.g.dart'; @riverpod -Future?> categoryMangaList( - CategoryMangaListRef ref, int categoryId) async { +Future?> categoryMangaList(Ref ref, int categoryId) async { final token = CancelToken(); ref.onDispose(token.cancel); final result = await ref @@ -65,7 +65,7 @@ class CategoryMangaListWithQueryAndFilter } if (mangaFilterCompleted != null && - (mangaFilterCompleted ^ (manga.status?.title == "COMPLETED"))) { + (mangaFilterCompleted ^ (manga.status.name == "COMPLETED"))) { return false; } @@ -79,14 +79,12 @@ class CategoryMangaListWithQueryAndFilter int applyMangaSort(Manga m1, Manga m2) { final sortDirToggle = (sortedDirection ? 1 : -1); return (switch (sortedBy) { - MangaSort.alphabetical => - (m1.title ?? "").compareTo(m2.title ?? ""), + MangaSort.alphabetical => (m1.title).compareTo(m2.title), MangaSort.unread => (m1.unreadCount.getValueOnNullOrNegative()) .compareTo(m2.unreadCount.getValueOnNullOrNegative()), - MangaSort.dateAdded => (m1.inLibraryAt.getValueOnNullOrNegative()) - .compareTo(m2.inLibraryAt.getValueOnNullOrNegative()), - MangaSort.lastRead => (m2.lastReadAt.getValueOnNullOrNegative()) - .compareTo(m1.lastReadAt.getValueOnNullOrNegative()) + MangaSort.dateAdded => + (m1.inLibraryAt.value.getValueOnNullOrNegative()) + .compareTo(m2.inLibraryAt.value.getValueOnNullOrNegative()), }) * sortDirToggle; } diff --git a/lib/src/features/library/presentation/library/controller/library_controller.g.dart b/lib/src/features/library/presentation/library/controller/library_controller.g.dart index fe3e0a41..9dcffc7c 100644 --- a/lib/src/features/library/presentation/library/controller/library_controller.g.dart +++ b/lib/src/features/library/presentation/library/controller/library_controller.g.dart @@ -6,7 +6,7 @@ part of 'library_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$categoryMangaListHash() => r'9da0d48991ecde48dd144171ef5091fd2f597ef7'; +String _$categoryMangaListHash() => r'b39038bd33423265b01c4d823a1ed2821c1f6a6d'; /// Copied from Dart SDK class _SystemHash { @@ -143,6 +143,8 @@ class CategoryMangaListProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin CategoryMangaListRef on AutoDisposeFutureProviderRef?> { /// The parameter `categoryId` of this provider. int get categoryId; @@ -175,7 +177,7 @@ final libraryDisplayCategoryProvider = typedef _$LibraryDisplayCategory = AutoDisposeNotifier; String _$categoryMangaListWithQueryAndFilterHash() => - r'f4f63df844426a1dd5f7d556caa091343d4d810a'; + r'325df91fdfcbcab813d5e439e29639612be41588'; abstract class _$CategoryMangaListWithQueryAndFilter extends BuildlessAutoDisposeNotifier?>> { @@ -309,6 +311,8 @@ class CategoryMangaListWithQueryAndFilterProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin CategoryMangaListWithQueryAndFilterRef on AutoDisposeNotifierProviderRef?>> { /// The parameter `categoryId` of this provider. @@ -443,4 +447,4 @@ final libraryDisplayModeProvider = typedef _$LibraryDisplayMode = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/library/presentation/library/library_screen.dart b/lib/src/features/library/presentation/library/library_screen.dart index 11f758a4..23abe871 100644 --- a/lib/src/features/library/presentation/library/library_screen.dart +++ b/lib/src/features/library/presentation/library/library_screen.dart @@ -22,11 +22,11 @@ import 'controller/library_controller.dart'; import 'widgets/library_manga_organizer.dart'; class LibraryScreen extends HookConsumerWidget { - const LibraryScreen({super.key, this.initialCategoryOrder}); - final int? initialCategoryOrder; + const LibraryScreen({super.key, required this.categoryId}); + final int categoryId; @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); final categoryList = ref.watch(categoryControllerProvider); final showSearch = useState(false); useEffect(() { @@ -36,116 +36,118 @@ class LibraryScreen extends HookConsumerWidget { return categoryList.showUiWhenData( context, - (data) => data.isBlank - ? Emoticons( - text: context.l10n!.noCategoriesFound, - button: TextButton( - onPressed: () => ref.refresh(categoryControllerProvider), - child: Text(context.l10n!.refresh), - ), - ) - : DefaultTabController( - length: data!.length, - initialIndex: min(initialCategoryOrder.getValueOnNullOrNegative(), - data.length - 1), - child: Scaffold( - appBar: AppBar( - title: Text(context.l10n!.library), - centerTitle: true, - bottom: PreferredSize( - preferredSize: kCalculateAppBarBottomSize( - [data.length.isGreaterThan(1), showSearch.value], - ), - child: Column( - children: [ - if (data.length.isGreaterThan(1)) - TabBar( - isScrollable: true, - tabs: data - .map((e) => Tab(text: e.name ?? "")) - .toList(), - dividerColor: Colors.transparent, + (data) { + if (data.isBlank) { + return Emoticons( + title: context.l10n.noCategoriesFound, + button: TextButton( + onPressed: () => ref.refresh(categoryControllerProvider), + child: Text(context.l10n.refresh), + ), + ); + } else { + return DefaultTabController( + length: data!.length, + initialIndex: + min(categoryId.getValueOnNullOrNegative(), data.length - 1), + child: Scaffold( + appBar: AppBar( + title: Text(context.l10n.library), + centerTitle: true, + bottom: PreferredSize( + preferredSize: kCalculateAppBarBottomSize( + [data.length.isGreaterThan(1), showSearch.value], + ), + child: Column( + children: [ + if (data.length.isGreaterThan(1)) + TabBar( + isScrollable: true, + tabs: data.map((e) => Tab(text: e.name)).toList(), + dividerColor: Colors.transparent, + ), + if (showSearch.value) + Align( + alignment: Alignment.centerRight, + child: SearchField( + initialText: ref.read(libraryQueryProvider), + onChanged: (val) => ref + .read(libraryQueryProvider.notifier) + .update(val), + onClose: () => showSearch.value = (false), ), - if (showSearch.value) - Align( - alignment: Alignment.centerRight, - child: SearchField( - initialText: ref.read(libraryQueryProvider), - onChanged: (val) => ref - .read(libraryQueryProvider.notifier) - .update(val), - onClose: () => showSearch.value = (false), + ), + ], + ), + ), + actions: [ + IconButton( + onPressed: () => showSearch.value = (true), + icon: const Icon(Icons.search_rounded), + ), + Builder( + builder: (context) => IconButton( + onPressed: () { + if (context.isTablet) { + Scaffold.of(context).openEndDrawer(); + } else { + showModalBottomSheet( + context: context, + shape: RoundedRectangleBorder( + borderRadius: KBorderRadius.rT16.radius, ), - ), - ], + clipBehavior: Clip.hardEdge, + builder: (_) => const LibraryMangaOrganizer(), + ); + } + }, + icon: const Icon(Icons.filter_list_rounded), ), ), - actions: [ - IconButton( - onPressed: () => showSearch.value = (true), - icon: const Icon(Icons.search_rounded), - ), - Builder( - builder: (context) => IconButton( - onPressed: () { - if (context.isTablet) { - Scaffold.of(context).openEndDrawer(); - } else { - showModalBottomSheet( - context: context, - shape: RoundedRectangleBorder( - borderRadius: KBorderRadius.rT16.radius, - ), - clipBehavior: Clip.hardEdge, - builder: (_) => const LibraryMangaOrganizer(), - ); - } - }, - icon: const Icon(Icons.filter_list_rounded), + Builder( + builder: (context) { + return UpdateStatusPopupMenu( + getCategory: () => data.isNotBlank + ? data[DefaultTabController.of(context).index] + : null, + ); + }, + ), + ], + ), + endDrawerEnableOpenDragGesture: false, + endDrawer: const Drawer( + width: kDrawerWidth, + shape: RoundedRectangleBorder(), + child: LibraryMangaOrganizer(), + ), + body: data.isBlank + ? Emoticons( + title: context.l10n.noCategoriesFound, + button: TextButton( + onPressed: () => + ref.refresh(categoryControllerProvider), + child: Text(context.l10n.refresh), ), - ), - Builder( - builder: (context) { - return UpdateStatusPopupMenu( - getCategory: () => data.isNotBlank - ? data[DefaultTabController.of(context).index] - : null, - ); - }, - ), - ], - ), - endDrawerEnableOpenDragGesture: false, - endDrawer: const Drawer( - width: kDrawerWidth, - shape: RoundedRectangleBorder(), - child: LibraryMangaOrganizer(), - ), - body: data.isBlank - ? Emoticons( - text: context.l10n!.noCategoriesFound, - button: TextButton( - onPressed: () => - ref.refresh(categoryControllerProvider), - child: Text(context.l10n!.refresh), - ), - ) - : Padding( - padding: KEdgeInsets.h8.size, - child: TabBarView( - children: data - .map((e) => CategoryMangaList( - categoryId: e.id.getValueOnNullOrNegative(), - )) - .toList(), - ), + ) + : Padding( + padding: KEdgeInsets.h8.size, + child: TabBarView( + children: data + .map((e) => CategoryMangaList( + categoryId: e.id.getValueOnNullOrNegative(), + )) + .toList(), ), - ), + ), ), + ); + } + }, refresh: () => ref.refresh(categoryControllerProvider), wrapper: (body) => Scaffold( appBar: AppBar( - title: Text(context.l10n!.library), + title: Text(context.l10n.library), centerTitle: true, ), body: body, diff --git a/lib/src/features/library/presentation/library/widgets/library_manga_display.dart b/lib/src/features/library/presentation/library/widgets/library_manga_display.dart index 54d87c97..4fc92268 100644 --- a/lib/src/features/library/presentation/library/widgets/library_manga_display.dart +++ b/lib/src/features/library/presentation/library/widgets/library_manga_display.dart @@ -9,11 +9,10 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/db_keys.dart'; import '../../../../../constants/enum.dart'; - import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/custom_checkbox_list_tile.dart'; import '../../../../../widgets/manga_cover/providers/manga_cover_providers.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; import '../controller/library_controller.dart'; class LibraryMangaDisplay extends ConsumerWidget { @@ -26,7 +25,7 @@ class LibraryMangaDisplay extends ConsumerWidget { children: [ ListTile( title: Text( - context.l10n!.displayMode, + context.l10n.displayMode, style: context.textTheme.labelLarge, ), dense: true, @@ -40,19 +39,19 @@ class LibraryMangaDisplay extends ConsumerWidget { ), ListTile( title: Text( - context.l10n!.badges, + context.l10n.badges, style: context.textTheme.labelLarge, ), dense: true, ), CustomCheckboxListTile( - title: context.l10n!.downloaded, + title: context.l10n.downloaded, provider: downloadedBadgeProvider, onChanged: ref.read(downloadedBadgeProvider.notifier).update, tristate: false, ), CustomCheckboxListTile( - title: context.l10n!.unread, + title: context.l10n.unread, provider: unreadBadgeProvider, onChanged: ref.read(unreadBadgeProvider.notifier).update, tristate: false, diff --git a/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart b/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart index ff5d95e0..c45b94e2 100644 --- a/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart +++ b/lib/src/features/library/presentation/library/widgets/library_manga_filter.dart @@ -19,18 +19,18 @@ class LibraryMangaFilter extends ConsumerWidget { return ListView( children: [ CustomCheckboxListTile( - title: context.l10n!.unread, + title: context.l10n.unread, provider: libraryMangaFilterUnreadProvider, onChanged: ref.read(libraryMangaFilterUnreadProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.completed, + title: context.l10n.completed, provider: libraryMangaFilterCompletedProvider, onChanged: ref.read(libraryMangaFilterCompletedProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.downloaded, + title: context.l10n.downloaded, provider: libraryMangaFilterDownloadedProvider, onChanged: ref.read(libraryMangaFilterDownloadedProvider.notifier).update, diff --git a/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart b/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart index 8515fb7e..e7b5c846 100644 --- a/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart +++ b/lib/src/features/library/presentation/library/widgets/library_manga_organizer.dart @@ -25,9 +25,9 @@ class LibraryMangaOrganizer extends StatelessWidget { child: Scaffold( appBar: TabBar( tabs: [ - Tab(text: context.l10n!.filter), - Tab(text: context.l10n!.sort), - Tab(text: context.l10n!.display), + Tab(text: context.l10n.filter), + Tab(text: context.l10n.sort), + Tab(text: context.l10n.display), ], ), body: TabBarView( diff --git a/lib/src/features/manga_book/data/downloads/downloads_repository.dart b/lib/src/features/manga_book/data/downloads/downloads_repository.dart index 40e184c4..7e3f1707 100644 --- a/lib/src/features/manga_book/data/downloads/downloads_repository.dart +++ b/lib/src/features/manga_book/data/downloads/downloads_repository.dart @@ -4,10 +4,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'dart:convert'; - import 'package:flutter/foundation.dart'; - +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:web_socket_channel/io.dart'; import 'package:web_socket_channel/web_socket_channel.dart'; @@ -63,7 +61,8 @@ class DownloadsRepository { return ( stream: channel.stream.asyncMap( (event) => compute( - (s) => Downloads.fromJson(json.decode(s)), + (s) => + Downloads(), //.fromJson(json.decode(s)),//TODO: Implement decoder event, ), ), @@ -73,7 +72,7 @@ class DownloadsRepository { } @riverpod -DownloadsRepository downloadsRepository(DownloadsRepositoryRef ref) => +DownloadsRepository downloadsRepository(Ref ref) => DownloadsRepository(ref.watch(dioClientKeyProvider)); @riverpod @@ -90,7 +89,7 @@ class DownloadsSocket extends _$DownloadsSocket { } @riverpod -Map downloadsMap(DownloadsMapRef ref) { +Map downloadsMap(Ref ref) { final downloads = ref.watch(downloadsSocketProvider); return { for (DownloadsQueue element in [...?downloads.valueOrNull?.queue]) @@ -99,22 +98,22 @@ Map downloadsMap(DownloadsMapRef ref) { } @riverpod -DownloadsQueue? downloadsFromId(DownloadsFromIdRef ref, int chapterId) => +DownloadsQueue? downloadsFromId(Ref ref, int chapterId) => ref.watch(downloadsMapProvider.select((map) => map[chapterId])); @riverpod -List downloadsChapterIds(DownloadsChapterIdsRef ref) { +List downloadsChapterIds(Ref ref) { return ref.watch(downloadsMapProvider).keys.toList(); } @riverpod -AsyncValue downloadsStatus(DownloadsStatusRef ref) { +AsyncValue downloadsStatus(Ref ref) { return ref.watch(downloadsSocketProvider .select((value) => value.copyWithData((data) => data.status))); } @riverpod -bool showDownloadsFAB(ShowDownloadsFABRef ref) { +bool showDownloadsFAB(Ref ref) { final downloads = ref.watch(downloadsSocketProvider); return (downloads.valueOrNull?.queue).isNotBlank && downloads.valueOrNull!.queue!.any( diff --git a/lib/src/features/manga_book/data/downloads/downloads_repository.g.dart b/lib/src/features/manga_book/data/downloads/downloads_repository.g.dart index 82b8c93a..07917ce3 100644 --- a/lib/src/features/manga_book/data/downloads/downloads_repository.g.dart +++ b/lib/src/features/manga_book/data/downloads/downloads_repository.g.dart @@ -7,7 +7,7 @@ part of 'downloads_repository.dart'; // ************************************************************************** String _$downloadsRepositoryHash() => - r'5863e339050a4025a026249d55ea40d25137c001'; + r'db151398723b6123577f0c7c81872408ce7bf0c3'; /// See also [downloadsRepository]. @ProviderFor(downloadsRepository) @@ -22,8 +22,10 @@ final downloadsRepositoryProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef DownloadsRepositoryRef = AutoDisposeProviderRef; -String _$downloadsMapHash() => r'069e7137bb59b01aea1cc49d4605e4b8c8a9d7fd'; +String _$downloadsMapHash() => r'bc9bbe92a95d406355180248d824649b4f551a85'; /// See also [downloadsMap]. @ProviderFor(downloadsMap) @@ -37,8 +39,10 @@ final downloadsMapProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef DownloadsMapRef = AutoDisposeProviderRef>; -String _$downloadsFromIdHash() => r'ebec2d8410a8aa34a66a72061acfe62582f955dd'; +String _$downloadsFromIdHash() => r'5e029483d68ff6340126a743236948afd2bfa216'; /// Copied from Dart SDK class _SystemHash { @@ -174,6 +178,8 @@ class DownloadsFromIdProvider extends AutoDisposeProvider { } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin DownloadsFromIdRef on AutoDisposeProviderRef { /// The parameter `chapterId` of this provider. int get chapterId; @@ -189,7 +195,7 @@ class _DownloadsFromIdProviderElement } String _$downloadsChapterIdsHash() => - r'3c490718de46a5ffd3009b398c3c61441421d958'; + r'45606c446e6925ef5a61f3a848059f6ad2b50378'; /// See also [downloadsChapterIds]. @ProviderFor(downloadsChapterIds) @@ -203,8 +209,10 @@ final downloadsChapterIdsProvider = AutoDisposeProvider>.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef DownloadsChapterIdsRef = AutoDisposeProviderRef>; -String _$downloadsStatusHash() => r'e1f120563dfc9a83a2e3459680f56168bbf21637'; +String _$downloadsStatusHash() => r'6cd2455d71c5e564608adb9517d534689d43d24f'; /// See also [downloadsStatus]. @ProviderFor(downloadsStatus) @@ -219,8 +227,10 @@ final downloadsStatusProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef DownloadsStatusRef = AutoDisposeProviderRef>; -String _$showDownloadsFABHash() => r'4c00b8fa136dc475476fed61a807a4901cc7cdb8'; +String _$showDownloadsFABHash() => r'655444c99e10f811304558c95c107aa985760ad3'; /// See also [showDownloadsFAB]. @ProviderFor(showDownloadsFAB) @@ -234,6 +244,8 @@ final showDownloadsFABProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef ShowDownloadsFABRef = AutoDisposeProviderRef; String _$downloadsSocketHash() => r'ee5f9b56575b716ba8051e1e1d2b65e8bfb222e8'; @@ -252,4 +264,4 @@ final downloadsSocketProvider = typedef _$DownloadsSocket = AutoDisposeStreamNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/manga_book/data/manga_book_repository.dart b/lib/src/features/manga_book/data/manga_book_repository.dart index c754d330..12ef6abb 100644 --- a/lib/src/features/manga_book/data/manga_book_repository.dart +++ b/lib/src/features/manga_book/data/manga_book_repository.dart @@ -5,6 +5,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:dio/dio.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../constants/endpoints.dart'; @@ -12,6 +13,7 @@ import '../../../global_providers/global_providers.dart'; import '../../../utils/extensions/custom_extensions.dart'; import '../../../utils/storage/dio/dio_client.dart'; import '../../library/domain/category/category_model.dart'; +import '../../library/domain/category/graphql/__generated__/category_fragment.data.gql.dart'; import '../domain/chapter/chapter_model.dart'; import '../domain/chapter_batch/chapter_batch_model.dart'; import '../domain/chapter_patch/chapter_put_model.dart'; @@ -40,7 +42,7 @@ class MangaBookRepository { (await dioClient.get( MangaUrl.fullWithId(mangaId), queryParameters: {"onlineFetch": onlineFetch}, - decoder: (e) => e is Map ? Manga.fromJson(e) : null, + decoder: (e) => null, cancelToken: cancelToken, )) .data; @@ -54,7 +56,7 @@ class MangaBookRepository { }) async => (await dioClient.get( MangaUrl.chapterWithIndex(mangaId, chapterIndex), - decoder: (e) => e is Map ? Chapter.fromJson(e) : null, + decoder: (e) => e.data, cancelToken: cancelToken, )) .data; @@ -91,8 +93,7 @@ class MangaBookRepository { (await dioClient.get, Chapter>( MangaUrl.chapters(mangaId), queryParameters: {"onlineFetch": onlineFetch}, - decoder: (e) => - e is Map ? Chapter.fromJson(e) : Chapter(), + decoder: (e) => e.data, cancelToken: cancelToken, )) .data; @@ -103,8 +104,7 @@ class MangaBookRepository { }) async => (await dioClient.get, Category>( MangaUrl.category(mangaId), - decoder: (e) => - e is Map ? Category.fromJson(e) : Category(), + decoder: (e) => GCategoryFragmentData(), cancelToken: cancelToken, )) .data; @@ -115,5 +115,5 @@ class MangaBookRepository { } @riverpod -MangaBookRepository mangaBookRepository(MangaBookRepositoryRef ref) => +MangaBookRepository mangaBookRepository(Ref ref) => MangaBookRepository(ref.watch(dioClientKeyProvider)); diff --git a/lib/src/features/manga_book/data/manga_book_repository.g.dart b/lib/src/features/manga_book/data/manga_book_repository.g.dart index a73bdd36..43670ec0 100644 --- a/lib/src/features/manga_book/data/manga_book_repository.g.dart +++ b/lib/src/features/manga_book/data/manga_book_repository.g.dart @@ -7,7 +7,7 @@ part of 'manga_book_repository.dart'; // ************************************************************************** String _$mangaBookRepositoryHash() => - r'fbc0619db23d43e750686649e9c371b48bb46f66'; + r'8a768d3a7174e93c78594f855ba43e02e5d9cd68'; /// See also [mangaBookRepository]. @ProviderFor(mangaBookRepository) @@ -22,6 +22,8 @@ final mangaBookRepositoryProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef MangaBookRepositoryRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/manga_book/data/updates/updates_repository.dart b/lib/src/features/manga_book/data/updates/updates_repository.dart index 7ca42d0d..80cc851c 100644 --- a/lib/src/features/manga_book/data/updates/updates_repository.dart +++ b/lib/src/features/manga_book/data/updates/updates_repository.dart @@ -4,10 +4,9 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'dart:convert'; - import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:web_socket_channel/io.dart'; import 'package:web_socket_channel/web_socket_channel.dart'; @@ -37,8 +36,7 @@ class UpdatesRepository { }) async => (await dioClient.get( UpdateUrl.recentChapters(pageNo), - decoder: (e) => - e is Map ? ChapterPage.fromJson(e) : null, + decoder: (e) => ChapterPage(), //TODO: Implement decoder cancelToken: cancelToken, )) .data; @@ -66,9 +64,7 @@ class UpdatesRepository { (await dioClient.get( UpdateUrl.summary, cancelToken: cancelToken, - decoder: (e) => e is Map - ? UpdateStatus.fromJson(e["statusMap"]) - : null, + decoder: (e) => e is Map ? UpdateStatus() : null, )) .data; @@ -85,20 +81,18 @@ class UpdatesRepository { ); return ( stream: channel.stream.asyncMap((event) => - compute( - (s) => UpdateStatus.fromJson({...?json.decode(s)["statusMap"]}), - event)), + compute((s) => UpdateStatus(), event)), closeStream: channel.sink.close, ); } } @riverpod -UpdatesRepository updatesRepository(UpdatesRepositoryRef ref) => +UpdatesRepository updatesRepository(Ref ref) => UpdatesRepository(ref.watch(dioClientKeyProvider)); @riverpod -Future updateSummary(UpdateSummaryRef ref) async { +Future updateSummary(Ref ref) async { final token = CancelToken(); ref.onDispose(token.cancel); final result = await ref diff --git a/lib/src/features/manga_book/data/updates/updates_repository.g.dart b/lib/src/features/manga_book/data/updates/updates_repository.g.dart index 4088a9bf..9a134bdc 100644 --- a/lib/src/features/manga_book/data/updates/updates_repository.g.dart +++ b/lib/src/features/manga_book/data/updates/updates_repository.g.dart @@ -6,7 +6,7 @@ part of 'updates_repository.dart'; // RiverpodGenerator // ************************************************************************** -String _$updatesRepositoryHash() => r'7137ec4e542f1b7b9e5f9d74abcc570b100530d0'; +String _$updatesRepositoryHash() => r'271b48a746e3ae29ecb4615f7f207b8ea15301aa'; /// See also [updatesRepository]. @ProviderFor(updatesRepository) @@ -21,8 +21,10 @@ final updatesRepositoryProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef UpdatesRepositoryRef = AutoDisposeProviderRef; -String _$updateSummaryHash() => r'cd04991640fe6971183b65daf9e45e9445205800'; +String _$updateSummaryHash() => r'a066bf3f698ef9b13c3aa1ce12fa326ced8688cd'; /// See also [updateSummary]. @ProviderFor(updateSummary) @@ -36,6 +38,8 @@ final updateSummaryProvider = AutoDisposeFutureProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef UpdateSummaryRef = AutoDisposeFutureProviderRef; String _$updatesSocketHash() => r'714e545daee4dc279babf3b72e9c1c5a4f8934e5'; @@ -54,4 +58,4 @@ final updatesSocketProvider = typedef _$UpdatesSocket = AutoDisposeStreamNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.dart index 4a87bae1..9635649f 100644 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.dart +++ b/lib/src/features/manga_book/domain/chapter/chapter_model.dart @@ -4,49 +4,18 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:flutter/material.dart'; -import 'package:freezed_annotation/freezed_annotation.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; +import 'graphql/__generated__/chapter_fragment.data.gql.dart'; -part 'chapter_model.freezed.dart'; -part 'chapter_model.g.dart'; - -@freezed -class Chapter with _$Chapter { - Chapter._(); - factory Chapter({ - int? id, - bool? bookmarked, - int? chapterCount, - double? chapterNumber, - bool? downloaded, - int? fetchedAt, - int? index, - int? lastPageRead, - int? lastReadAt, - int? mangaId, - String? name, - int? pageCount, - bool? read, - String? realUrl, - String? scanlator, - int? uploadDate, - String? url, - Map? meta, - }) = _Chapter; - - factory Chapter.fromJson(Map json) => - _$ChapterFromJson(json); +typedef Chapter = GChapterFragment; +extension ChapterExtension on GChapterFragment { bool query([String? query]) { return name.query(query) || index == int.tryParse(query ?? ''); } - String getDisplayName(BuildContext context) { - return name ?? - context.l10n!.chapterNumber( - chapterNumber ?? index?.toDouble() ?? 0, - ); - } + int get index => sourceOrder; + + Map get metaData => + {for (final metaItem in meta) metaItem.key: metaItem.value}; } diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart deleted file mode 100644 index 36e94f70..00000000 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.freezed.dart +++ /dev/null @@ -1,530 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'chapter_model.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -Chapter _$ChapterFromJson(Map json) { - return _Chapter.fromJson(json); -} - -/// @nodoc -mixin _$Chapter { - int? get id => throw _privateConstructorUsedError; - bool? get bookmarked => throw _privateConstructorUsedError; - int? get chapterCount => throw _privateConstructorUsedError; - double? get chapterNumber => throw _privateConstructorUsedError; - bool? get downloaded => throw _privateConstructorUsedError; - int? get fetchedAt => throw _privateConstructorUsedError; - int? get index => throw _privateConstructorUsedError; - int? get lastPageRead => throw _privateConstructorUsedError; - int? get lastReadAt => throw _privateConstructorUsedError; - int? get mangaId => throw _privateConstructorUsedError; - String? get name => throw _privateConstructorUsedError; - int? get pageCount => throw _privateConstructorUsedError; - bool? get read => throw _privateConstructorUsedError; - String? get realUrl => throw _privateConstructorUsedError; - String? get scanlator => throw _privateConstructorUsedError; - int? get uploadDate => throw _privateConstructorUsedError; - String? get url => throw _privateConstructorUsedError; - Map? get meta => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $ChapterCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $ChapterCopyWith<$Res> { - factory $ChapterCopyWith(Chapter value, $Res Function(Chapter) then) = - _$ChapterCopyWithImpl<$Res, Chapter>; - @useResult - $Res call( - {int? id, - bool? bookmarked, - int? chapterCount, - double? chapterNumber, - bool? downloaded, - int? fetchedAt, - int? index, - int? lastPageRead, - int? lastReadAt, - int? mangaId, - String? name, - int? pageCount, - bool? read, - String? realUrl, - String? scanlator, - int? uploadDate, - String? url, - Map? meta}); -} - -/// @nodoc -class _$ChapterCopyWithImpl<$Res, $Val extends Chapter> - implements $ChapterCopyWith<$Res> { - _$ChapterCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? bookmarked = freezed, - Object? chapterCount = freezed, - Object? chapterNumber = freezed, - Object? downloaded = freezed, - Object? fetchedAt = freezed, - Object? index = freezed, - Object? lastPageRead = freezed, - Object? lastReadAt = freezed, - Object? mangaId = freezed, - Object? name = freezed, - Object? pageCount = freezed, - Object? read = freezed, - Object? realUrl = freezed, - Object? scanlator = freezed, - Object? uploadDate = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_value.copyWith( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - bookmarked: freezed == bookmarked - ? _value.bookmarked - : bookmarked // ignore: cast_nullable_to_non_nullable - as bool?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterNumber: freezed == chapterNumber - ? _value.chapterNumber - : chapterNumber // ignore: cast_nullable_to_non_nullable - as double?, - downloaded: freezed == downloaded - ? _value.downloaded - : downloaded // ignore: cast_nullable_to_non_nullable - as bool?, - fetchedAt: freezed == fetchedAt - ? _value.fetchedAt - : fetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - index: freezed == index - ? _value.index - : index // ignore: cast_nullable_to_non_nullable - as int?, - lastPageRead: freezed == lastPageRead - ? _value.lastPageRead - : lastPageRead // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - mangaId: freezed == mangaId - ? _value.mangaId - : mangaId // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - pageCount: freezed == pageCount - ? _value.pageCount - : pageCount // ignore: cast_nullable_to_non_nullable - as int?, - read: freezed == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - scanlator: freezed == scanlator - ? _value.scanlator - : scanlator // ignore: cast_nullable_to_non_nullable - as String?, - uploadDate: freezed == uploadDate - ? _value.uploadDate - : uploadDate // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value.meta - : meta // ignore: cast_nullable_to_non_nullable - as Map?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$ChapterImplCopyWith<$Res> implements $ChapterCopyWith<$Res> { - factory _$$ChapterImplCopyWith( - _$ChapterImpl value, $Res Function(_$ChapterImpl) then) = - __$$ChapterImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {int? id, - bool? bookmarked, - int? chapterCount, - double? chapterNumber, - bool? downloaded, - int? fetchedAt, - int? index, - int? lastPageRead, - int? lastReadAt, - int? mangaId, - String? name, - int? pageCount, - bool? read, - String? realUrl, - String? scanlator, - int? uploadDate, - String? url, - Map? meta}); -} - -/// @nodoc -class __$$ChapterImplCopyWithImpl<$Res> - extends _$ChapterCopyWithImpl<$Res, _$ChapterImpl> - implements _$$ChapterImplCopyWith<$Res> { - __$$ChapterImplCopyWithImpl( - _$ChapterImpl _value, $Res Function(_$ChapterImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = freezed, - Object? bookmarked = freezed, - Object? chapterCount = freezed, - Object? chapterNumber = freezed, - Object? downloaded = freezed, - Object? fetchedAt = freezed, - Object? index = freezed, - Object? lastPageRead = freezed, - Object? lastReadAt = freezed, - Object? mangaId = freezed, - Object? name = freezed, - Object? pageCount = freezed, - Object? read = freezed, - Object? realUrl = freezed, - Object? scanlator = freezed, - Object? uploadDate = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_$ChapterImpl( - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - bookmarked: freezed == bookmarked - ? _value.bookmarked - : bookmarked // ignore: cast_nullable_to_non_nullable - as bool?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterNumber: freezed == chapterNumber - ? _value.chapterNumber - : chapterNumber // ignore: cast_nullable_to_non_nullable - as double?, - downloaded: freezed == downloaded - ? _value.downloaded - : downloaded // ignore: cast_nullable_to_non_nullable - as bool?, - fetchedAt: freezed == fetchedAt - ? _value.fetchedAt - : fetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - index: freezed == index - ? _value.index - : index // ignore: cast_nullable_to_non_nullable - as int?, - lastPageRead: freezed == lastPageRead - ? _value.lastPageRead - : lastPageRead // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - mangaId: freezed == mangaId - ? _value.mangaId - : mangaId // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _value.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - pageCount: freezed == pageCount - ? _value.pageCount - : pageCount // ignore: cast_nullable_to_non_nullable - as int?, - read: freezed == read - ? _value.read - : read // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - scanlator: freezed == scanlator - ? _value.scanlator - : scanlator // ignore: cast_nullable_to_non_nullable - as String?, - uploadDate: freezed == uploadDate - ? _value.uploadDate - : uploadDate // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value._meta - : meta // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$ChapterImpl extends _Chapter { - _$ChapterImpl( - {this.id, - this.bookmarked, - this.chapterCount, - this.chapterNumber, - this.downloaded, - this.fetchedAt, - this.index, - this.lastPageRead, - this.lastReadAt, - this.mangaId, - this.name, - this.pageCount, - this.read, - this.realUrl, - this.scanlator, - this.uploadDate, - this.url, - final Map? meta}) - : _meta = meta, - super._(); - - factory _$ChapterImpl.fromJson(Map json) => - _$$ChapterImplFromJson(json); - - @override - final int? id; - @override - final bool? bookmarked; - @override - final int? chapterCount; - @override - final double? chapterNumber; - @override - final bool? downloaded; - @override - final int? fetchedAt; - @override - final int? index; - @override - final int? lastPageRead; - @override - final int? lastReadAt; - @override - final int? mangaId; - @override - final String? name; - @override - final int? pageCount; - @override - final bool? read; - @override - final String? realUrl; - @override - final String? scanlator; - @override - final int? uploadDate; - @override - final String? url; - final Map? _meta; - @override - Map? get meta { - final value = _meta; - if (value == null) return null; - if (_meta is EqualUnmodifiableMapView) return _meta; - // ignore: implicit_dynamic_type - return EqualUnmodifiableMapView(value); - } - - @override - String toString() { - return 'Chapter(id: $id, bookmarked: $bookmarked, chapterCount: $chapterCount, chapterNumber: $chapterNumber, downloaded: $downloaded, fetchedAt: $fetchedAt, index: $index, lastPageRead: $lastPageRead, lastReadAt: $lastReadAt, mangaId: $mangaId, name: $name, pageCount: $pageCount, read: $read, realUrl: $realUrl, scanlator: $scanlator, uploadDate: $uploadDate, url: $url, meta: $meta)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$ChapterImpl && - (identical(other.id, id) || other.id == id) && - (identical(other.bookmarked, bookmarked) || - other.bookmarked == bookmarked) && - (identical(other.chapterCount, chapterCount) || - other.chapterCount == chapterCount) && - (identical(other.chapterNumber, chapterNumber) || - other.chapterNumber == chapterNumber) && - (identical(other.downloaded, downloaded) || - other.downloaded == downloaded) && - (identical(other.fetchedAt, fetchedAt) || - other.fetchedAt == fetchedAt) && - (identical(other.index, index) || other.index == index) && - (identical(other.lastPageRead, lastPageRead) || - other.lastPageRead == lastPageRead) && - (identical(other.lastReadAt, lastReadAt) || - other.lastReadAt == lastReadAt) && - (identical(other.mangaId, mangaId) || other.mangaId == mangaId) && - (identical(other.name, name) || other.name == name) && - (identical(other.pageCount, pageCount) || - other.pageCount == pageCount) && - (identical(other.read, read) || other.read == read) && - (identical(other.realUrl, realUrl) || other.realUrl == realUrl) && - (identical(other.scanlator, scanlator) || - other.scanlator == scanlator) && - (identical(other.uploadDate, uploadDate) || - other.uploadDate == uploadDate) && - (identical(other.url, url) || other.url == url) && - const DeepCollectionEquality().equals(other._meta, _meta)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - id, - bookmarked, - chapterCount, - chapterNumber, - downloaded, - fetchedAt, - index, - lastPageRead, - lastReadAt, - mangaId, - name, - pageCount, - read, - realUrl, - scanlator, - uploadDate, - url, - const DeepCollectionEquality().hash(_meta)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$ChapterImplCopyWith<_$ChapterImpl> get copyWith => - __$$ChapterImplCopyWithImpl<_$ChapterImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ChapterImplToJson( - this, - ); - } -} - -abstract class _Chapter extends Chapter { - factory _Chapter( - {final int? id, - final bool? bookmarked, - final int? chapterCount, - final double? chapterNumber, - final bool? downloaded, - final int? fetchedAt, - final int? index, - final int? lastPageRead, - final int? lastReadAt, - final int? mangaId, - final String? name, - final int? pageCount, - final bool? read, - final String? realUrl, - final String? scanlator, - final int? uploadDate, - final String? url, - final Map? meta}) = _$ChapterImpl; - _Chapter._() : super._(); - - factory _Chapter.fromJson(Map json) = _$ChapterImpl.fromJson; - - @override - int? get id; - @override - bool? get bookmarked; - @override - int? get chapterCount; - @override - double? get chapterNumber; - @override - bool? get downloaded; - @override - int? get fetchedAt; - @override - int? get index; - @override - int? get lastPageRead; - @override - int? get lastReadAt; - @override - int? get mangaId; - @override - String? get name; - @override - int? get pageCount; - @override - bool? get read; - @override - String? get realUrl; - @override - String? get scanlator; - @override - int? get uploadDate; - @override - String? get url; - @override - Map? get meta; - @override - @JsonKey(ignore: true) - _$$ChapterImplCopyWith<_$ChapterImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/manga_book/domain/chapter/chapter_model.g.dart b/lib/src/features/manga_book/domain/chapter/chapter_model.g.dart deleted file mode 100644 index 38b5408a..00000000 --- a/lib/src/features/manga_book/domain/chapter/chapter_model.g.dart +++ /dev/null @@ -1,53 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'chapter_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ChapterImpl _$$ChapterImplFromJson(Map json) => - _$ChapterImpl( - id: json['id'] as int?, - bookmarked: json['bookmarked'] as bool?, - chapterCount: json['chapterCount'] as int?, - chapterNumber: (json['chapterNumber'] as num?)?.toDouble(), - downloaded: json['downloaded'] as bool?, - fetchedAt: json['fetchedAt'] as int?, - index: json['index'] as int?, - lastPageRead: json['lastPageRead'] as int?, - lastReadAt: json['lastReadAt'] as int?, - mangaId: json['mangaId'] as int?, - name: json['name'] as String?, - pageCount: json['pageCount'] as int?, - read: json['read'] as bool?, - realUrl: json['realUrl'] as String?, - scanlator: json['scanlator'] as String?, - uploadDate: json['uploadDate'] as int?, - url: json['url'] as String?, - meta: (json['meta'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ), - ); - -Map _$$ChapterImplToJson(_$ChapterImpl instance) => - { - 'id': instance.id, - 'bookmarked': instance.bookmarked, - 'chapterCount': instance.chapterCount, - 'chapterNumber': instance.chapterNumber, - 'downloaded': instance.downloaded, - 'fetchedAt': instance.fetchedAt, - 'index': instance.index, - 'lastPageRead': instance.lastPageRead, - 'lastReadAt': instance.lastReadAt, - 'mangaId': instance.mangaId, - 'name': instance.name, - 'pageCount': instance.pageCount, - 'read': instance.read, - 'realUrl': instance.realUrl, - 'scanlator': instance.scanlator, - 'uploadDate': instance.uploadDate, - 'url': instance.url, - 'meta': instance.meta, - }; diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.ast.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.ast.gql.dart new file mode 100644 index 00000000..5d6a853a --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.ast.gql.dart @@ -0,0 +1,152 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ChapterFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ChapterFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'chapterNumber'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'fetchedAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isBookmarked'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isDownloaded'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'isRead'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastPageRead'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastReadAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'mangaId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'pageCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'realUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'scanlator'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'sourceOrder'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'uploadDate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'meta'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'value'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ChapterFragment]); diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart new file mode 100644 index 00000000..c154be7b --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'chapter_fragment.data.gql.g.dart'; + +abstract class GChapterFragment { + String get G__typename; + double get chapterNumber; + _i1.GLongString get fetchedAt; + int get id; + bool get isBookmarked; + bool get isDownloaded; + bool get isRead; + int get lastPageRead; + _i1.GLongString get lastReadAt; + int get mangaId; + String get name; + int get pageCount; + String? get realUrl; + String? get scanlator; + int get sourceOrder; + _i1.GLongString get uploadDate; + String get url; + BuiltList get meta; + Map toJson(); +} + +abstract class GChapterFragment_meta { + String get G__typename; + String get key; + String get value; + Map toJson(); +} + +abstract class GChapterFragmentData + implements + Built, + GChapterFragment { + GChapterFragmentData._(); + + factory GChapterFragmentData( + [void Function(GChapterFragmentDataBuilder b) updates]) = + _$GChapterFragmentData; + + static void _initializeBuilder(GChapterFragmentDataBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gChapterFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GChapterFragmentData.serializer, + this, + ) as Map); + + static GChapterFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GChapterFragmentData.serializer, + json, + ); +} + +abstract class GChapterFragmentData_meta + implements + Built, + GChapterFragment_meta { + GChapterFragmentData_meta._(); + + factory GChapterFragmentData_meta( + [void Function(GChapterFragmentData_metaBuilder b) updates]) = + _$GChapterFragmentData_meta; + + static void _initializeBuilder(GChapterFragmentData_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gChapterFragmentDataMetaSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GChapterFragmentData_meta.serializer, + this, + ) as Map); + + static GChapterFragmentData_meta? fromJson(Map json) => + _i2.serializers.deserializeWith( + GChapterFragmentData_meta.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.g.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.g.dart new file mode 100644 index 00000000..7b160092 --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.g.dart @@ -0,0 +1,735 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chapter_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gChapterFragmentDataSerializer = + new _$GChapterFragmentDataSerializer(); +Serializer _$gChapterFragmentDataMetaSerializer = + new _$GChapterFragmentData_metaSerializer(); + +class _$GChapterFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentData, + _$GChapterFragmentData + ]; + @override + final String wireName = 'GChapterFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFragmentData_meta)])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GChapterFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GChapterFragmentData_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GChapterFragmentData_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentData_meta, + _$GChapterFragmentData_meta + ]; + @override + final String wireName = 'GChapterFragmentData_meta'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentData_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GChapterFragmentData_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFragmentData_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GChapterFragmentData extends GChapterFragmentData { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GChapterFragmentData( + [void Function(GChapterFragmentDataBuilder)? updates]) => + (new GChapterFragmentDataBuilder()..update(updates))._build(); + + _$GChapterFragmentData._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GChapterFragmentData', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GChapterFragmentData', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull(id, r'GChapterFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GChapterFragmentData', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GChapterFragmentData', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GChapterFragmentData', 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GChapterFragmentData', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GChapterFragmentData', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GChapterFragmentData', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GChapterFragmentData', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GChapterFragmentData', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GChapterFragmentData', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GChapterFragmentData', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull(url, r'GChapterFragmentData', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GChapterFragmentData', 'meta'); + } + + @override + GChapterFragmentData rebuild( + void Function(GChapterFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentDataBuilder toBuilder() => + new GChapterFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentData && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFragmentData') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GChapterFragmentDataBuilder + implements Builder { + _$GChapterFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= new ListBuilder(); + set meta(ListBuilder? meta) => _$this._meta = meta; + + GChapterFragmentDataBuilder() { + GChapterFragmentData._initializeBuilder(this); + } + + GChapterFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GChapterFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentData; + } + + @override + void update(void Function(GChapterFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentData build() => _build(); + + _$GChapterFragmentData _build() { + _$GChapterFragmentData _$result; + try { + _$result = _$v ?? + new _$GChapterFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GChapterFragmentData', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GChapterFragmentData', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GChapterFragmentData', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GChapterFragmentData', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GChapterFragmentData', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GChapterFragmentData', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GChapterFragmentData', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GChapterFragmentData', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, r'GChapterFragmentData', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GChapterFragmentData', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GChapterFragmentData', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GChapterFragmentData_meta extends GChapterFragmentData_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GChapterFragmentData_meta( + [void Function(GChapterFragmentData_metaBuilder)? updates]) => + (new GChapterFragmentData_metaBuilder()..update(updates))._build(); + + _$GChapterFragmentData_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GChapterFragmentData_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GChapterFragmentData_meta', 'value'); + } + + @override + GChapterFragmentData_meta rebuild( + void Function(GChapterFragmentData_metaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentData_metaBuilder toBuilder() => + new GChapterFragmentData_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentData_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFragmentData_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GChapterFragmentData_metaBuilder + implements + Builder { + _$GChapterFragmentData_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GChapterFragmentData_metaBuilder() { + GChapterFragmentData_meta._initializeBuilder(this); + } + + GChapterFragmentData_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GChapterFragmentData_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentData_meta; + } + + @override + void update(void Function(GChapterFragmentData_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentData_meta build() => _build(); + + _$GChapterFragmentData_meta _build() { + final _$result = _$v ?? + new _$GChapterFragmentData_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GChapterFragmentData_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GChapterFragmentData_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GChapterFragmentData_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.req.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.req.gql.dart new file mode 100644 index 00000000..b06d38f6 --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'chapter_fragment.req.gql.g.dart'; + +abstract class GChapterFragmentReq + implements + Built, + _i1 + .FragmentRequest<_i2.GChapterFragmentData, _i3.GChapterFragmentVars> { + GChapterFragmentReq._(); + + factory GChapterFragmentReq( + [void Function(GChapterFragmentReqBuilder b) updates]) = + _$GChapterFragmentReq; + + static void _initializeBuilder(GChapterFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ChapterFragment'; + + @override + _i3.GChapterFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GChapterFragmentData? parseData(Map json) => + _i2.GChapterFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GChapterFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gChapterFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GChapterFragmentReq.serializer, + this, + ) as Map); + + static GChapterFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GChapterFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.req.gql.g.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.req.gql.g.dart new file mode 100644 index 00000000..6a163897 --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.req.gql.g.dart @@ -0,0 +1,236 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chapter_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gChapterFragmentReqSerializer = + new _$GChapterFragmentReqSerializer(); + +class _$GChapterFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentReq, + _$GChapterFragmentReq + ]; + @override + final String wireName = 'GChapterFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GChapterFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GChapterFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GChapterFragmentVars))! + as _i3.GChapterFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GChapterFragmentReq extends GChapterFragmentReq { + @override + final _i3.GChapterFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GChapterFragmentReq( + [void Function(GChapterFragmentReqBuilder)? updates]) => + (new GChapterFragmentReqBuilder()..update(updates))._build(); + + _$GChapterFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GChapterFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GChapterFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GChapterFragmentReq', 'idFields'); + } + + @override + GChapterFragmentReq rebuild( + void Function(GChapterFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentReqBuilder toBuilder() => + new GChapterFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GChapterFragmentReqBuilder + implements Builder { + _$GChapterFragmentReq? _$v; + + _i3.GChapterFragmentVarsBuilder? _vars; + _i3.GChapterFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GChapterFragmentVarsBuilder(); + set vars(_i3.GChapterFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GChapterFragmentReqBuilder() { + GChapterFragmentReq._initializeBuilder(this); + } + + GChapterFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GChapterFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentReq; + } + + @override + void update(void Function(GChapterFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentReq build() => _build(); + + _$GChapterFragmentReq _build() { + _$GChapterFragmentReq _$result; + try { + _$result = _$v ?? + new _$GChapterFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GChapterFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GChapterFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.dart new file mode 100644 index 00000000..9d5af35a --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'chapter_fragment.var.gql.g.dart'; + +abstract class GChapterFragmentVars + implements Built { + GChapterFragmentVars._(); + + factory GChapterFragmentVars( + [void Function(GChapterFragmentVarsBuilder b) updates]) = + _$GChapterFragmentVars; + + static Serializer get serializer => + _$gChapterFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterFragmentVars.serializer, + this, + ) as Map); + + static GChapterFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.g.dart b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.g.dart new file mode 100644 index 00000000..0f71156d --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'chapter_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gChapterFragmentVarsSerializer = + new _$GChapterFragmentVarsSerializer(); + +class _$GChapterFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFragmentVars, + _$GChapterFragmentVars + ]; + @override + final String wireName = 'GChapterFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GChapterFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GChapterFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GChapterFragmentVarsBuilder().build(); + } +} + +class _$GChapterFragmentVars extends GChapterFragmentVars { + factory _$GChapterFragmentVars( + [void Function(GChapterFragmentVarsBuilder)? updates]) => + (new GChapterFragmentVarsBuilder()..update(updates))._build(); + + _$GChapterFragmentVars._() : super._(); + + @override + GChapterFragmentVars rebuild( + void Function(GChapterFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFragmentVarsBuilder toBuilder() => + new GChapterFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFragmentVars; + } + + @override + int get hashCode { + return 349498838; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GChapterFragmentVars').toString(); + } +} + +class GChapterFragmentVarsBuilder + implements Builder { + _$GChapterFragmentVars? _$v; + + GChapterFragmentVarsBuilder(); + + @override + void replace(GChapterFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFragmentVars; + } + + @override + void update(void Function(GChapterFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFragmentVars build() => _build(); + + _$GChapterFragmentVars _build() { + final _$result = _$v ?? new _$GChapterFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/chapter/graphql/chapter_fragment.graphql b/lib/src/features/manga_book/domain/chapter/graphql/chapter_fragment.graphql new file mode 100644 index 00000000..ce8e03bb --- /dev/null +++ b/lib/src/features/manga_book/domain/chapter/graphql/chapter_fragment.graphql @@ -0,0 +1,22 @@ +fragment ChapterFragment on ChapterType { + chapterNumber + fetchedAt + id + isBookmarked + isDownloaded + isRead + lastPageRead + lastReadAt + mangaId + name + pageCount + realUrl + scanlator + sourceOrder + uploadDate + url + meta { + key + value + } +} diff --git a/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart b/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart index 75e3c1d7..fd5d60a2 100644 --- a/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.freezed.dart @@ -12,7 +12,7 @@ part of 'chapter_batch_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ChapterBatch _$ChapterBatchFromJson(Map json) { return _ChapterBatch.fromJson(json); @@ -23,8 +23,12 @@ mixin _$ChapterBatch { List? get chapterIds => throw _privateConstructorUsedError; ChapterChange? get change => throw _privateConstructorUsedError; + /// Serializes this ChapterBatch to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ChapterBatch + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ChapterBatchCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -50,6 +54,8 @@ class _$ChapterBatchCopyWithImpl<$Res, $Val extends ChapterBatch> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ChapterBatch + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -68,6 +74,8 @@ class _$ChapterBatchCopyWithImpl<$Res, $Val extends ChapterBatch> ) as $Val); } + /// Create a copy of ChapterBatch + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ChapterChangeCopyWith<$Res>? get change { @@ -103,6 +111,8 @@ class __$$ChapterBatchImplCopyWithImpl<$Res> _$ChapterBatchImpl _value, $Res Function(_$ChapterBatchImpl) _then) : super(_value, _then); + /// Create a copy of ChapterBatch + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -159,12 +169,14 @@ class _$ChapterBatchImpl implements _ChapterBatch { (identical(other.change, change) || other.change == change)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_chapterIds), change); - @JsonKey(ignore: true) + /// Create a copy of ChapterBatch + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChapterBatchImplCopyWith<_$ChapterBatchImpl> get copyWith => @@ -190,8 +202,11 @@ abstract class _ChapterBatch implements ChapterBatch { List? get chapterIds; @override ChapterChange? get change; + + /// Create a copy of ChapterBatch + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ChapterBatchImplCopyWith<_$ChapterBatchImpl> get copyWith => throw _privateConstructorUsedError; } @@ -207,8 +222,12 @@ mixin _$ChapterChange { int? get lastPageRead => throw _privateConstructorUsedError; bool? get delete => throw _privateConstructorUsedError; + /// Serializes this ChapterChange to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ChapterChange + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ChapterChangeCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -233,6 +252,8 @@ class _$ChapterChangeCopyWithImpl<$Res, $Val extends ChapterChange> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ChapterChange + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -282,6 +303,8 @@ class __$$ChapterChangeImplCopyWithImpl<$Res> _$ChapterChangeImpl _value, $Res Function(_$ChapterChangeImpl) _then) : super(_value, _then); + /// Create a copy of ChapterChange + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -347,12 +370,14 @@ class _$ChapterChangeImpl implements _ChapterChange { (identical(other.delete, delete) || other.delete == delete)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, isRead, isBookmarked, lastPageRead, delete); - @JsonKey(ignore: true) + /// Create a copy of ChapterChange + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChapterChangeImplCopyWith<_$ChapterChangeImpl> get copyWith => @@ -384,8 +409,11 @@ abstract class _ChapterChange implements ChapterChange { int? get lastPageRead; @override bool? get delete; + + /// Create a copy of ChapterChange + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ChapterChangeImplCopyWith<_$ChapterChangeImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.g.dart b/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.g.dart index 177d18b5..50723cfa 100644 --- a/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.g.dart +++ b/lib/src/features/manga_book/domain/chapter_batch/chapter_batch_model.g.dart @@ -8,8 +8,9 @@ part of 'chapter_batch_model.dart'; _$ChapterBatchImpl _$$ChapterBatchImplFromJson(Map json) => _$ChapterBatchImpl( - chapterIds: - (json['chapterIds'] as List?)?.map((e) => e as int).toList(), + chapterIds: (json['chapterIds'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), change: json['change'] == null ? null : ChapterChange.fromJson(json['change'] as Map), @@ -25,7 +26,7 @@ _$ChapterChangeImpl _$$ChapterChangeImplFromJson(Map json) => _$ChapterChangeImpl( isRead: json['isRead'] as bool?, isBookmarked: json['isBookmarked'] as bool?, - lastPageRead: json['lastPageRead'] as int?, + lastPageRead: (json['lastPageRead'] as num?)?.toInt(), delete: json['delete'] as bool?, ); diff --git a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart index 47b571a4..1732a508 100644 --- a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart +++ b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.dart @@ -10,7 +10,6 @@ import '../chapter/chapter_model.dart'; import '../manga/manga_model.dart'; part 'chapter_page_model.freezed.dart'; -part 'chapter_page_model.g.dart'; @freezed class ChapterMangaPair with _$ChapterMangaPair { @@ -18,9 +17,6 @@ class ChapterMangaPair with _$ChapterMangaPair { Chapter? chapter, Manga? manga, }) = _ChapterMangaPair; - - factory ChapterMangaPair.fromJson(Map json) => - _$ChapterMangaPairFromJson(json); } @freezed @@ -29,7 +25,4 @@ class ChapterPage with _$ChapterPage { bool? hasNextPage, List? page, }) = _ChapterPage; - - factory ChapterPage.fromJson(Map json) => - _$ChapterPageFromJson(json); } diff --git a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart index b3ae8faa..aa6319f3 100644 --- a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.freezed.dart @@ -12,19 +12,16 @@ part of 'chapter_page_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -ChapterMangaPair _$ChapterMangaPairFromJson(Map json) { - return _ChapterMangaPair.fromJson(json); -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$ChapterMangaPair { Chapter? get chapter => throw _privateConstructorUsedError; Manga? get manga => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of ChapterMangaPair + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ChapterMangaPairCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -36,9 +33,6 @@ abstract class $ChapterMangaPairCopyWith<$Res> { _$ChapterMangaPairCopyWithImpl<$Res, ChapterMangaPair>; @useResult $Res call({Chapter? chapter, Manga? manga}); - - $ChapterCopyWith<$Res>? get chapter; - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -51,6 +45,8 @@ class _$ChapterMangaPairCopyWithImpl<$Res, $Val extends ChapterMangaPair> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ChapterMangaPair + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -68,30 +64,6 @@ class _$ChapterMangaPairCopyWithImpl<$Res, $Val extends ChapterMangaPair> as Manga?, ) as $Val); } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res>? get chapter { - if (_value.chapter == null) { - return null; - } - - return $ChapterCopyWith<$Res>(_value.chapter!, (value) { - return _then(_value.copyWith(chapter: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res>? get manga { - if (_value.manga == null) { - return null; - } - - return $MangaCopyWith<$Res>(_value.manga!, (value) { - return _then(_value.copyWith(manga: value) as $Val); - }); - } } /// @nodoc @@ -103,11 +75,6 @@ abstract class _$$ChapterMangaPairImplCopyWith<$Res> @override @useResult $Res call({Chapter? chapter, Manga? manga}); - - @override - $ChapterCopyWith<$Res>? get chapter; - @override - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -118,6 +85,8 @@ class __$$ChapterMangaPairImplCopyWithImpl<$Res> $Res Function(_$ChapterMangaPairImpl) _then) : super(_value, _then); + /// Create a copy of ChapterMangaPair + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -138,13 +107,10 @@ class __$$ChapterMangaPairImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$ChapterMangaPairImpl implements _ChapterMangaPair { _$ChapterMangaPairImpl({this.chapter, this.manga}); - factory _$ChapterMangaPairImpl.fromJson(Map json) => - _$$ChapterMangaPairImplFromJson(json); - @override final Chapter? chapter; @override @@ -160,57 +126,51 @@ class _$ChapterMangaPairImpl implements _ChapterMangaPair { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChapterMangaPairImpl && - (identical(other.chapter, chapter) || other.chapter == chapter) && - (identical(other.manga, manga) || other.manga == manga)); + const DeepCollectionEquality().equals(other.chapter, chapter) && + const DeepCollectionEquality().equals(other.manga, manga)); } - @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, chapter, manga); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(chapter), + const DeepCollectionEquality().hash(manga)); - @JsonKey(ignore: true) + /// Create a copy of ChapterMangaPair + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChapterMangaPairImplCopyWith<_$ChapterMangaPairImpl> get copyWith => __$$ChapterMangaPairImplCopyWithImpl<_$ChapterMangaPairImpl>( this, _$identity); - - @override - Map toJson() { - return _$$ChapterMangaPairImplToJson( - this, - ); - } } abstract class _ChapterMangaPair implements ChapterMangaPair { factory _ChapterMangaPair({final Chapter? chapter, final Manga? manga}) = _$ChapterMangaPairImpl; - factory _ChapterMangaPair.fromJson(Map json) = - _$ChapterMangaPairImpl.fromJson; - @override Chapter? get chapter; @override Manga? get manga; + + /// Create a copy of ChapterMangaPair + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ChapterMangaPairImplCopyWith<_$ChapterMangaPairImpl> get copyWith => throw _privateConstructorUsedError; } -ChapterPage _$ChapterPageFromJson(Map json) { - return _ChapterPage.fromJson(json); -} - /// @nodoc mixin _$ChapterPage { bool? get hasNextPage => throw _privateConstructorUsedError; List? get page => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of ChapterPage + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ChapterPageCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -234,6 +194,8 @@ class _$ChapterPageCopyWithImpl<$Res, $Val extends ChapterPage> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ChapterPage + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -272,6 +234,8 @@ class __$$ChapterPageImplCopyWithImpl<$Res> _$ChapterPageImpl _value, $Res Function(_$ChapterPageImpl) _then) : super(_value, _then); + /// Create a copy of ChapterPage + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -292,14 +256,11 @@ class __$$ChapterPageImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$ChapterPageImpl implements _ChapterPage { _$ChapterPageImpl({this.hasNextPage, final List? page}) : _page = page; - factory _$ChapterPageImpl.fromJson(Map json) => - _$$ChapterPageImplFromJson(json); - @override final bool? hasNextPage; final List? _page; @@ -327,23 +288,17 @@ class _$ChapterPageImpl implements _ChapterPage { const DeepCollectionEquality().equals(other._page, _page)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, hasNextPage, const DeepCollectionEquality().hash(_page)); - @JsonKey(ignore: true) + /// Create a copy of ChapterPage + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChapterPageImplCopyWith<_$ChapterPageImpl> get copyWith => __$$ChapterPageImplCopyWithImpl<_$ChapterPageImpl>(this, _$identity); - - @override - Map toJson() { - return _$$ChapterPageImplToJson( - this, - ); - } } abstract class _ChapterPage implements ChapterPage { @@ -351,15 +306,15 @@ abstract class _ChapterPage implements ChapterPage { {final bool? hasNextPage, final List? page}) = _$ChapterPageImpl; - factory _ChapterPage.fromJson(Map json) = - _$ChapterPageImpl.fromJson; - @override bool? get hasNextPage; @override List? get page; + + /// Create a copy of ChapterPage + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ChapterPageImplCopyWith<_$ChapterPageImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.g.dart b/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.g.dart deleted file mode 100644 index cdbe439a..00000000 --- a/lib/src/features/manga_book/domain/chapter_page/chapter_page_model.g.dart +++ /dev/null @@ -1,39 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'chapter_page_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$ChapterMangaPairImpl _$$ChapterMangaPairImplFromJson( - Map json) => - _$ChapterMangaPairImpl( - chapter: json['chapter'] == null - ? null - : Chapter.fromJson(json['chapter'] as Map), - manga: json['manga'] == null - ? null - : Manga.fromJson(json['manga'] as Map), - ); - -Map _$$ChapterMangaPairImplToJson( - _$ChapterMangaPairImpl instance) => - { - 'chapter': instance.chapter?.toJson(), - 'manga': instance.manga?.toJson(), - }; - -_$ChapterPageImpl _$$ChapterPageImplFromJson(Map json) => - _$ChapterPageImpl( - hasNextPage: json['hasNextPage'] as bool?, - page: (json['page'] as List?) - ?.map((e) => ChapterMangaPair.fromJson(e as Map)) - .toList(), - ); - -Map _$$ChapterPageImplToJson(_$ChapterPageImpl instance) => - { - 'hasNextPage': instance.hasNextPage, - 'page': instance.page?.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart b/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart index 3a0ecdd8..f438ed21 100644 --- a/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart +++ b/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.freezed.dart @@ -12,7 +12,7 @@ part of 'chapter_put_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); ChapterPut _$ChapterPutFromJson(Map json) { return _ChapterPut.fromJson(json); @@ -25,8 +25,12 @@ mixin _$ChapterPut { bool? get markPrevRead => throw _privateConstructorUsedError; int? get lastPageRead => throw _privateConstructorUsedError; + /// Serializes this ChapterPut to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ChapterPut + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ChapterPutCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -51,6 +55,8 @@ class _$ChapterPutCopyWithImpl<$Res, $Val extends ChapterPut> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ChapterPut + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -100,6 +106,8 @@ class __$$ChapterPutImplCopyWithImpl<$Res> _$ChapterPutImpl _value, $Res Function(_$ChapterPutImpl) _then) : super(_value, _then); + /// Create a copy of ChapterPut + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -166,12 +174,14 @@ class _$ChapterPutImpl implements _ChapterPut { other.lastPageRead == lastPageRead)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, read, bookmarked, markPrevRead, lastPageRead); - @JsonKey(ignore: true) + /// Create a copy of ChapterPut + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChapterPutImplCopyWith<_$ChapterPutImpl> get copyWith => @@ -203,8 +213,11 @@ abstract class _ChapterPut implements ChapterPut { bool? get markPrevRead; @override int? get lastPageRead; + + /// Create a copy of ChapterPut + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ChapterPutImplCopyWith<_$ChapterPutImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.g.dart b/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.g.dart index 84e11d0c..e70c7276 100644 --- a/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.g.dart +++ b/lib/src/features/manga_book/domain/chapter_patch/chapter_put_model.g.dart @@ -11,7 +11,7 @@ _$ChapterPutImpl _$$ChapterPutImplFromJson(Map json) => read: json['read'] as bool?, bookmarked: json['bookmarked'] as bool?, markPrevRead: json['markPrevRead'] as bool?, - lastPageRead: json['lastPageRead'] as int?, + lastPageRead: (json['lastPageRead'] as num?)?.toInt(), ); Map _$$ChapterPutImplToJson(_$ChapterPutImpl instance) => diff --git a/lib/src/features/manga_book/domain/downloads/downloads_model.dart b/lib/src/features/manga_book/domain/downloads/downloads_model.dart index a5643dc8..9606c45d 100644 --- a/lib/src/features/manga_book/domain/downloads/downloads_model.dart +++ b/lib/src/features/manga_book/domain/downloads/downloads_model.dart @@ -9,7 +9,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import '../downloads_queue/downloads_queue_model.dart'; part 'downloads_model.freezed.dart'; -part 'downloads_model.g.dart'; @freezed class Downloads with _$Downloads { @@ -17,7 +16,4 @@ class Downloads with _$Downloads { List? queue, String? status, }) = _Downloads; - - factory Downloads.fromJson(Map json) => - _$DownloadsFromJson(json); } diff --git a/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart b/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart index 9daf3849..e05bcef1 100644 --- a/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart +++ b/lib/src/features/manga_book/domain/downloads/downloads_model.freezed.dart @@ -12,19 +12,16 @@ part of 'downloads_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -Downloads _$DownloadsFromJson(Map json) { - return _Downloads.fromJson(json); -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$Downloads { List? get queue => throw _privateConstructorUsedError; String? get status => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of Downloads + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $DownloadsCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -47,6 +44,8 @@ class _$DownloadsCopyWithImpl<$Res, $Val extends Downloads> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of Downloads + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -85,6 +84,8 @@ class __$$DownloadsImplCopyWithImpl<$Res> _$DownloadsImpl _value, $Res Function(_$DownloadsImpl) _then) : super(_value, _then); + /// Create a copy of Downloads + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -105,14 +106,11 @@ class __$$DownloadsImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$DownloadsImpl implements _Downloads { _$DownloadsImpl({final List? queue, this.status}) : _queue = queue; - factory _$DownloadsImpl.fromJson(Map json) => - _$$DownloadsImplFromJson(json); - final List? _queue; @override List? get queue { @@ -140,23 +138,17 @@ class _$DownloadsImpl implements _Downloads { (identical(other.status, status) || other.status == status)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_queue), status); - @JsonKey(ignore: true) + /// Create a copy of Downloads + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DownloadsImplCopyWith<_$DownloadsImpl> get copyWith => __$$DownloadsImplCopyWithImpl<_$DownloadsImpl>(this, _$identity); - - @override - Map toJson() { - return _$$DownloadsImplToJson( - this, - ); - } } abstract class _Downloads implements Downloads { @@ -164,15 +156,15 @@ abstract class _Downloads implements Downloads { {final List? queue, final String? status}) = _$DownloadsImpl; - factory _Downloads.fromJson(Map json) = - _$DownloadsImpl.fromJson; - @override List? get queue; @override String? get status; + + /// Create a copy of Downloads + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$DownloadsImplCopyWith<_$DownloadsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/manga_book/domain/downloads/downloads_model.g.dart b/lib/src/features/manga_book/domain/downloads/downloads_model.g.dart deleted file mode 100644 index d89cc904..00000000 --- a/lib/src/features/manga_book/domain/downloads/downloads_model.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'downloads_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$DownloadsImpl _$$DownloadsImplFromJson(Map json) => - _$DownloadsImpl( - queue: (json['queue'] as List?) - ?.map((e) => DownloadsQueue.fromJson(e as Map)) - .toList(), - status: json['status'] as String?, - ); - -Map _$$DownloadsImplToJson(_$DownloadsImpl instance) => - { - 'queue': instance.queue?.map((e) => e.toJson()).toList(), - 'status': instance.status, - }; diff --git a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart index b807d7d9..0e20aeb6 100644 --- a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart +++ b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.dart @@ -10,7 +10,6 @@ import '../chapter/chapter_model.dart'; import '../manga/manga_model.dart'; part 'downloads_queue_model.freezed.dart'; -part 'downloads_queue_model.g.dart'; @freezed class DownloadsQueue with _$DownloadsQueue { @@ -23,7 +22,4 @@ class DownloadsQueue with _$DownloadsQueue { String? state, int? tries, }) = _DownloadsQueue; - - factory DownloadsQueue.fromJson(Map json) => - _$DownloadsQueueFromJson(json); } diff --git a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart index b757f8bb..03902319 100644 --- a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart +++ b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.freezed.dart @@ -12,11 +12,7 @@ part of 'downloads_queue_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -DownloadsQueue _$DownloadsQueueFromJson(Map json) { - return _DownloadsQueue.fromJson(json); -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$DownloadsQueue { @@ -28,8 +24,9 @@ mixin _$DownloadsQueue { String? get state => throw _privateConstructorUsedError; int? get tries => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of DownloadsQueue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $DownloadsQueueCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -48,9 +45,6 @@ abstract class $DownloadsQueueCopyWith<$Res> { double? progress, String? state, int? tries}); - - $ChapterCopyWith<$Res>? get chapter; - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -63,6 +57,8 @@ class _$DownloadsQueueCopyWithImpl<$Res, $Val extends DownloadsQueue> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of DownloadsQueue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -105,30 +101,6 @@ class _$DownloadsQueueCopyWithImpl<$Res, $Val extends DownloadsQueue> as int?, ) as $Val); } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res>? get chapter { - if (_value.chapter == null) { - return null; - } - - return $ChapterCopyWith<$Res>(_value.chapter!, (value) { - return _then(_value.copyWith(chapter: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res>? get manga { - if (_value.manga == null) { - return null; - } - - return $MangaCopyWith<$Res>(_value.manga!, (value) { - return _then(_value.copyWith(manga: value) as $Val); - }); - } } /// @nodoc @@ -147,11 +119,6 @@ abstract class _$$DownloadsQueueImplCopyWith<$Res> double? progress, String? state, int? tries}); - - @override - $ChapterCopyWith<$Res>? get chapter; - @override - $MangaCopyWith<$Res>? get manga; } /// @nodoc @@ -162,6 +129,8 @@ class __$$DownloadsQueueImplCopyWithImpl<$Res> _$DownloadsQueueImpl _value, $Res Function(_$DownloadsQueueImpl) _then) : super(_value, _then); + /// Create a copy of DownloadsQueue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -207,7 +176,7 @@ class __$$DownloadsQueueImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$DownloadsQueueImpl implements _DownloadsQueue { _$DownloadsQueueImpl( {this.chapter, @@ -218,9 +187,6 @@ class _$DownloadsQueueImpl implements _DownloadsQueue { this.state, this.tries}); - factory _$DownloadsQueueImpl.fromJson(Map json) => - _$$DownloadsQueueImplFromJson(json); - @override final Chapter? chapter; @override @@ -246,10 +212,10 @@ class _$DownloadsQueueImpl implements _DownloadsQueue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DownloadsQueueImpl && - (identical(other.chapter, chapter) || other.chapter == chapter) && + const DeepCollectionEquality().equals(other.chapter, chapter) && (identical(other.chapterIndex, chapterIndex) || other.chapterIndex == chapterIndex) && - (identical(other.manga, manga) || other.manga == manga) && + const DeepCollectionEquality().equals(other.manga, manga) && (identical(other.mangaId, mangaId) || other.mangaId == mangaId) && (identical(other.progress, progress) || other.progress == progress) && @@ -257,24 +223,25 @@ class _$DownloadsQueueImpl implements _DownloadsQueue { (identical(other.tries, tries) || other.tries == tries)); } - @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, chapter, chapterIndex, manga, - mangaId, progress, state, tries); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(chapter), + chapterIndex, + const DeepCollectionEquality().hash(manga), + mangaId, + progress, + state, + tries); - @JsonKey(ignore: true) + /// Create a copy of DownloadsQueue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DownloadsQueueImplCopyWith<_$DownloadsQueueImpl> get copyWith => __$$DownloadsQueueImplCopyWithImpl<_$DownloadsQueueImpl>( this, _$identity); - - @override - Map toJson() { - return _$$DownloadsQueueImplToJson( - this, - ); - } } abstract class _DownloadsQueue implements DownloadsQueue { @@ -287,9 +254,6 @@ abstract class _DownloadsQueue implements DownloadsQueue { final String? state, final int? tries}) = _$DownloadsQueueImpl; - factory _DownloadsQueue.fromJson(Map json) = - _$DownloadsQueueImpl.fromJson; - @override Chapter? get chapter; @override @@ -304,8 +268,11 @@ abstract class _DownloadsQueue implements DownloadsQueue { String? get state; @override int? get tries; + + /// Create a copy of DownloadsQueue + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$DownloadsQueueImplCopyWith<_$DownloadsQueueImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.g.dart b/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.g.dart deleted file mode 100644 index 9af8224d..00000000 --- a/lib/src/features/manga_book/domain/downloads_queue/downloads_queue_model.g.dart +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'downloads_queue_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$DownloadsQueueImpl _$$DownloadsQueueImplFromJson(Map json) => - _$DownloadsQueueImpl( - chapter: json['chapter'] == null - ? null - : Chapter.fromJson(json['chapter'] as Map), - chapterIndex: json['chapterIndex'] as int?, - manga: json['manga'] == null - ? null - : Manga.fromJson(json['manga'] as Map), - mangaId: json['mangaId'] as int?, - progress: (json['progress'] as num?)?.toDouble(), - state: json['state'] as String?, - tries: json['tries'] as int?, - ); - -Map _$$DownloadsQueueImplToJson( - _$DownloadsQueueImpl instance) => - { - 'chapter': instance.chapter?.toJson(), - 'chapterIndex': instance.chapterIndex, - 'manga': instance.manga?.toJson(), - 'mangaId': instance.mangaId, - 'progress': instance.progress, - 'state': instance.state, - 'tries': instance.tries, - }; diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.ast.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.ast.gql.dart new file mode 100644 index 00000000..7144788b --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.ast.gql.dart @@ -0,0 +1,262 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.ast.gql.dart' + as _i2; + +const MangaFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'MangaFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'age'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'artist'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'author'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'chaptersAge'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'downloadCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'genre'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'inLibrary'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'inLibraryAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'initialized'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'lastReadChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'latestFetchedChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'latestReadChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'latestUploadedChapter'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ChapterFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'meta'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'key'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'value'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'realUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'source'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SourceFragment'), + directives: [], + ) + ]), + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'sourceId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'thumbnailUrlLastFetched'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'title'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'unreadCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'updateStrategy'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ + MangaFragment, + _i2.ChapterFragment, + _i3.SourceFragment, +]); diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart new file mode 100644 index 00000000..2ded2c43 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart @@ -0,0 +1,963 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i4; + +part 'manga_fragment.data.gql.g.dart'; + +abstract class GMangaFragment { + String get G__typename; + _i1.GLongString? get age; + String? get artist; + String? get author; + _i1.GLongString? get chaptersAge; + _i1.GLongString? get chaptersLastFetchedAt; + String? get description; + int get downloadCount; + BuiltList get genre; + int get id; + bool get inLibrary; + _i1.GLongString get inLibraryAt; + bool get initialized; + _i1.GLongString? get lastFetchedAt; + GMangaFragment_lastReadChapter? get lastReadChapter; + GMangaFragment_latestFetchedChapter? get latestFetchedChapter; + GMangaFragment_latestReadChapter? get latestReadChapter; + GMangaFragment_latestUploadedChapter? get latestUploadedChapter; + BuiltList get meta; + String? get realUrl; + GMangaFragment_source? get source; + _i1.GLongString get sourceId; + _i1.GMangaStatus get status; + String? get thumbnailUrl; + _i1.GLongString? get thumbnailUrlLastFetched; + String get title; + int get unreadCount; + _i1.GUpdateStrategy get updateStrategy; + String get url; + Map toJson(); +} + +abstract class GMangaFragment_lastReadChapter implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_lastReadChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestFetchedChapter + implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestFetchedChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestReadChapter + implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestReadChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestUploadedChapter + implements _i2.GChapterFragment { + @override + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + @override + Map toJson(); +} + +abstract class GMangaFragment_latestUploadedChapter_meta + implements _i2.GChapterFragment_meta { + @override + String get G__typename; + @override + String get key; + @override + String get value; + @override + Map toJson(); +} + +abstract class GMangaFragment_meta { + String get G__typename; + String get key; + String get value; + Map toJson(); +} + +abstract class GMangaFragment_source implements _i3.GSourceFragment { + @override + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GMangaFragment_source_extension get extension; + @override + Map toJson(); +} + +abstract class GMangaFragment_source_extension + implements _i3.GSourceFragment_extension { + @override + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + @override + Map toJson(); +} + +abstract class GMangaFragmentData + implements + Built, + GMangaFragment { + GMangaFragmentData._(); + + factory GMangaFragmentData( + [void Function(GMangaFragmentDataBuilder b) updates]) = + _$GMangaFragmentData; + + static void _initializeBuilder(GMangaFragmentDataBuilder b) => + b..G__typename = 'MangaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i1.GLongString? get age; + @override + String? get artist; + @override + String? get author; + @override + _i1.GLongString? get chaptersAge; + @override + _i1.GLongString? get chaptersLastFetchedAt; + @override + String? get description; + @override + int get downloadCount; + @override + BuiltList get genre; + @override + int get id; + @override + bool get inLibrary; + @override + _i1.GLongString get inLibraryAt; + @override + bool get initialized; + @override + _i1.GLongString? get lastFetchedAt; + @override + GMangaFragmentData_lastReadChapter? get lastReadChapter; + @override + GMangaFragmentData_latestFetchedChapter? get latestFetchedChapter; + @override + GMangaFragmentData_latestReadChapter? get latestReadChapter; + @override + GMangaFragmentData_latestUploadedChapter? get latestUploadedChapter; + @override + BuiltList get meta; + @override + String? get realUrl; + @override + GMangaFragmentData_source? get source; + @override + _i1.GLongString get sourceId; + @override + _i1.GMangaStatus get status; + @override + String? get thumbnailUrl; + @override + _i1.GLongString? get thumbnailUrlLastFetched; + @override + String get title; + @override + int get unreadCount; + @override + _i1.GUpdateStrategy get updateStrategy; + @override + String get url; + static Serializer get serializer => + _$gMangaFragmentDataSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData.serializer, + this, + ) as Map); + + static GMangaFragmentData? fromJson(Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData.serializer, + json, + ); +} + +abstract class GMangaFragmentData_lastReadChapter + implements + Built, + GMangaFragment_lastReadChapter, + _i2.GChapterFragment { + GMangaFragmentData_lastReadChapter._(); + + factory GMangaFragmentData_lastReadChapter( + [void Function(GMangaFragmentData_lastReadChapterBuilder b) + updates]) = _$GMangaFragmentData_lastReadChapter; + + static void _initializeBuilder(GMangaFragmentData_lastReadChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLastReadChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_lastReadChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_lastReadChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_lastReadChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_lastReadChapter_meta + implements + Built, + GMangaFragment_lastReadChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_lastReadChapter_meta._(); + + factory GMangaFragmentData_lastReadChapter_meta( + [void Function(GMangaFragmentData_lastReadChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_lastReadChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_lastReadChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gMangaFragmentDataLastReadChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_lastReadChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_lastReadChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_lastReadChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestFetchedChapter + implements + Built, + GMangaFragment_latestFetchedChapter, + _i2.GChapterFragment { + GMangaFragmentData_latestFetchedChapter._(); + + factory GMangaFragmentData_latestFetchedChapter( + [void Function(GMangaFragmentData_latestFetchedChapterBuilder b) + updates]) = _$GMangaFragmentData_latestFetchedChapter; + + static void _initializeBuilder( + GMangaFragmentData_latestFetchedChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLatestFetchedChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestFetchedChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestFetchedChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestFetchedChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestFetchedChapter_meta + implements + Built, + GMangaFragment_latestFetchedChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_latestFetchedChapter_meta._(); + + factory GMangaFragmentData_latestFetchedChapter_meta( + [void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_latestFetchedChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_latestFetchedChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => _$gMangaFragmentDataLatestFetchedChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestFetchedChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestFetchedChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestFetchedChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestReadChapter + implements + Built, + GMangaFragment_latestReadChapter, + _i2.GChapterFragment { + GMangaFragmentData_latestReadChapter._(); + + factory GMangaFragmentData_latestReadChapter( + [void Function(GMangaFragmentData_latestReadChapterBuilder b) + updates]) = _$GMangaFragmentData_latestReadChapter; + + static void _initializeBuilder( + GMangaFragmentData_latestReadChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLatestReadChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestReadChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestReadChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestReadChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestReadChapter_meta + implements + Built, + GMangaFragment_latestReadChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_latestReadChapter_meta._(); + + factory GMangaFragmentData_latestReadChapter_meta( + [void Function(GMangaFragmentData_latestReadChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_latestReadChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_latestReadChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gMangaFragmentDataLatestReadChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestReadChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestReadChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestReadChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestUploadedChapter + implements + Built, + GMangaFragment_latestUploadedChapter, + _i2.GChapterFragment { + GMangaFragmentData_latestUploadedChapter._(); + + factory GMangaFragmentData_latestUploadedChapter( + [void Function(GMangaFragmentData_latestUploadedChapterBuilder b) + updates]) = _$GMangaFragmentData_latestUploadedChapter; + + static void _initializeBuilder( + GMangaFragmentData_latestUploadedChapterBuilder b) => + b..G__typename = 'ChapterType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get chapterNumber; + @override + _i1.GLongString get fetchedAt; + @override + int get id; + @override + bool get isBookmarked; + @override + bool get isDownloaded; + @override + bool get isRead; + @override + int get lastPageRead; + @override + _i1.GLongString get lastReadAt; + @override + int get mangaId; + @override + String get name; + @override + int get pageCount; + @override + String? get realUrl; + @override + String? get scanlator; + @override + int get sourceOrder; + @override + _i1.GLongString get uploadDate; + @override + String get url; + @override + BuiltList get meta; + static Serializer get serializer => + _$gMangaFragmentDataLatestUploadedChapterSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestUploadedChapter.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestUploadedChapter? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestUploadedChapter.serializer, + json, + ); +} + +abstract class GMangaFragmentData_latestUploadedChapter_meta + implements + Built, + GMangaFragment_latestUploadedChapter_meta, + _i2.GChapterFragment_meta { + GMangaFragmentData_latestUploadedChapter_meta._(); + + factory GMangaFragmentData_latestUploadedChapter_meta( + [void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder b) + updates]) = _$GMangaFragmentData_latestUploadedChapter_meta; + + static void _initializeBuilder( + GMangaFragmentData_latestUploadedChapter_metaBuilder b) => + b..G__typename = 'ChapterMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer + get serializer => _$gMangaFragmentDataLatestUploadedChapterMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_latestUploadedChapter_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_latestUploadedChapter_meta? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_latestUploadedChapter_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_meta + implements + Built, + GMangaFragment_meta { + GMangaFragmentData_meta._(); + + factory GMangaFragmentData_meta( + [void Function(GMangaFragmentData_metaBuilder b) updates]) = + _$GMangaFragmentData_meta; + + static void _initializeBuilder(GMangaFragmentData_metaBuilder b) => + b..G__typename = 'MangaMetaType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get key; + @override + String get value; + static Serializer get serializer => + _$gMangaFragmentDataMetaSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_meta.serializer, + this, + ) as Map); + + static GMangaFragmentData_meta? fromJson(Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_meta.serializer, + json, + ); +} + +abstract class GMangaFragmentData_source + implements + Built, + GMangaFragment_source, + _i3.GSourceFragment { + GMangaFragmentData_source._(); + + factory GMangaFragmentData_source( + [void Function(GMangaFragmentData_sourceBuilder b) updates]) = + _$GMangaFragmentData_source; + + static void _initializeBuilder(GMangaFragmentData_sourceBuilder b) => + b..G__typename = 'SourceType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get displayName; + @override + String get iconUrl; + @override + _i1.GLongString get id; + @override + bool get isConfigurable; + @override + bool get isNsfw; + @override + String get lang; + @override + String get name; + @override + bool get supportsLatest; + @override + GMangaFragmentData_source_extension get extension; + static Serializer get serializer => + _$gMangaFragmentDataSourceSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_source.serializer, + this, + ) as Map); + + static GMangaFragmentData_source? fromJson(Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_source.serializer, + json, + ); +} + +abstract class GMangaFragmentData_source_extension + implements + Built, + GMangaFragment_source_extension, + _i3.GSourceFragment_extension { + GMangaFragmentData_source_extension._(); + + factory GMangaFragmentData_source_extension( + [void Function(GMangaFragmentData_source_extensionBuilder b) + updates]) = _$GMangaFragmentData_source_extension; + + static void _initializeBuilder( + GMangaFragmentData_source_extensionBuilder b) => + b..G__typename = 'ExtensionType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get pkgName; + @override + String? get repo; + static Serializer get serializer => + _$gMangaFragmentDataSourceExtensionSerializer; + + @override + Map toJson() => (_i4.serializers.serializeWith( + GMangaFragmentData_source_extension.serializer, + this, + ) as Map); + + static GMangaFragmentData_source_extension? fromJson( + Map json) => + _i4.serializers.deserializeWith( + GMangaFragmentData_source_extension.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.g.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.g.dart new file mode 100644 index 00000000..7a9750c0 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.g.dart @@ -0,0 +1,4606 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'manga_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMangaFragmentDataSerializer = + new _$GMangaFragmentDataSerializer(); +Serializer + _$gMangaFragmentDataLastReadChapterSerializer = + new _$GMangaFragmentData_lastReadChapterSerializer(); +Serializer + _$gMangaFragmentDataLastReadChapterMetaSerializer = + new _$GMangaFragmentData_lastReadChapter_metaSerializer(); +Serializer + _$gMangaFragmentDataLatestFetchedChapterSerializer = + new _$GMangaFragmentData_latestFetchedChapterSerializer(); +Serializer + _$gMangaFragmentDataLatestFetchedChapterMetaSerializer = + new _$GMangaFragmentData_latestFetchedChapter_metaSerializer(); +Serializer + _$gMangaFragmentDataLatestReadChapterSerializer = + new _$GMangaFragmentData_latestReadChapterSerializer(); +Serializer + _$gMangaFragmentDataLatestReadChapterMetaSerializer = + new _$GMangaFragmentData_latestReadChapter_metaSerializer(); +Serializer + _$gMangaFragmentDataLatestUploadedChapterSerializer = + new _$GMangaFragmentData_latestUploadedChapterSerializer(); +Serializer + _$gMangaFragmentDataLatestUploadedChapterMetaSerializer = + new _$GMangaFragmentData_latestUploadedChapter_metaSerializer(); +Serializer _$gMangaFragmentDataMetaSerializer = + new _$GMangaFragmentData_metaSerializer(); +Serializer _$gMangaFragmentDataSourceSerializer = + new _$GMangaFragmentData_sourceSerializer(); +Serializer + _$gMangaFragmentDataSourceExtensionSerializer = + new _$GMangaFragmentData_source_extensionSerializer(); + +class _$GMangaFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFragmentData, _$GMangaFragmentData]; + @override + final String wireName = 'GMangaFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'downloadCount', + serializers.serialize(object.downloadCount, + specifiedType: const FullType(int)), + 'genre', + serializers.serialize(object.genre, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'inLibrary', + serializers.serialize(object.inLibrary, + specifiedType: const FullType(bool)), + 'inLibraryAt', + serializers.serialize(object.inLibraryAt, + specifiedType: const FullType(_i1.GLongString)), + 'initialized', + serializers.serialize(object.initialized, + specifiedType: const FullType(bool)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFragmentData_meta)])), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(_i1.GLongString)), + 'status', + serializers.serialize(object.status, + specifiedType: const FullType(_i1.GMangaStatus)), + 'title', + serializers.serialize(object.title, + specifiedType: const FullType(String)), + 'unreadCount', + serializers.serialize(object.unreadCount, + specifiedType: const FullType(int)), + 'updateStrategy', + serializers.serialize(object.updateStrategy, + specifiedType: const FullType(_i1.GUpdateStrategy)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.age; + if (value != null) { + result + ..add('age') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.chaptersAge; + if (value != null) { + result + ..add('chaptersAge') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + value = object.lastReadChapter; + if (value != null) { + result + ..add('lastReadChapter') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaFragmentData_lastReadChapter))); + } + value = object.latestFetchedChapter; + if (value != null) { + result + ..add('latestFetchedChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestFetchedChapter))); + } + value = object.latestReadChapter; + if (value != null) { + result + ..add('latestReadChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestReadChapter))); + } + value = object.latestUploadedChapter; + if (value != null) { + result + ..add('latestUploadedChapter') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestUploadedChapter))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.source; + if (value != null) { + result + ..add('source') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaFragmentData_source))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.thumbnailUrlLastFetched; + if (value != null) { + result + ..add('thumbnailUrlLastFetched') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GLongString))); + } + return result; + } + + @override + GMangaFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'age': + result.age.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'artist': + result.artist = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'author': + result.author = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'chaptersAge': + result.chaptersAge.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'downloadCount': + result.downloadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'initialized': + result.initialized = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'lastReadChapter': + result.lastReadChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_lastReadChapter))! + as GMangaFragmentData_lastReadChapter); + break; + case 'latestFetchedChapter': + result.latestFetchedChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestFetchedChapter))! + as GMangaFragmentData_latestFetchedChapter); + break; + case 'latestReadChapter': + result.latestReadChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestReadChapter))! + as GMangaFragmentData_latestReadChapter); + break; + case 'latestUploadedChapter': + result.latestUploadedChapter.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_latestUploadedChapter))! + as GMangaFragmentData_latestUploadedChapter); + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_meta) + ]))! as BuiltList); + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaFragmentData_source))! + as GMangaFragmentData_source); + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(_i1.GMangaStatus))! + as _i1.GMangaStatus; + break; + case 'thumbnailUrl': + result.thumbnailUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'thumbnailUrlLastFetched': + result.thumbnailUrlLastFetched.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'unreadCount': + result.unreadCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'updateStrategy': + result.updateStrategy = serializers.deserialize(value, + specifiedType: const FullType(_i1.GUpdateStrategy))! + as _i1.GUpdateStrategy; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_lastReadChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_lastReadChapter, + _$GMangaFragmentData_lastReadChapter + ]; + @override + final String wireName = 'GMangaFragmentData_lastReadChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_lastReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, + const [const FullType(GMangaFragmentData_lastReadChapter_meta)])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_lastReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_lastReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_lastReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_lastReadChapter_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_lastReadChapter_meta, + _$GMangaFragmentData_lastReadChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_lastReadChapter_meta'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_lastReadChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_lastReadChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_lastReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestFetchedChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestFetchedChapter, + _$GMangaFragmentData_latestFetchedChapter + ]; + @override + final String wireName = 'GMangaFragmentData_latestFetchedChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestFetchedChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestFetchedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_latestFetchedChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestFetchedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestFetchedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestFetchedChapter_metaSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestFetchedChapter_meta, + _$GMangaFragmentData_latestFetchedChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_latestFetchedChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GMangaFragmentData_latestFetchedChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_latestFetchedChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestFetchedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestReadChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestReadChapter, + _$GMangaFragmentData_latestReadChapter + ]; + @override + final String wireName = 'GMangaFragmentData_latestReadChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestReadChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestReadChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_latestReadChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestReadChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestReadChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestReadChapter_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestReadChapter_meta, + _$GMangaFragmentData_latestReadChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_latestReadChapter_meta'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestReadChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_latestReadChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestReadChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestUploadedChapterSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestUploadedChapter, + _$GMangaFragmentData_latestUploadedChapter + ]; + @override + final String wireName = 'GMangaFragmentData_latestUploadedChapter'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_latestUploadedChapter object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'chapterNumber', + serializers.serialize(object.chapterNumber, + specifiedType: const FullType(double)), + 'fetchedAt', + serializers.serialize(object.fetchedAt, + specifiedType: const FullType(_i1.GLongString)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'isBookmarked', + serializers.serialize(object.isBookmarked, + specifiedType: const FullType(bool)), + 'isDownloaded', + serializers.serialize(object.isDownloaded, + specifiedType: const FullType(bool)), + 'isRead', + serializers.serialize(object.isRead, specifiedType: const FullType(bool)), + 'lastPageRead', + serializers.serialize(object.lastPageRead, + specifiedType: const FullType(int)), + 'lastReadAt', + serializers.serialize(object.lastReadAt, + specifiedType: const FullType(_i1.GLongString)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'pageCount', + serializers.serialize(object.pageCount, + specifiedType: const FullType(int)), + 'sourceOrder', + serializers.serialize(object.sourceOrder, + specifiedType: const FullType(int)), + 'uploadDate', + serializers.serialize(object.uploadDate, + specifiedType: const FullType(_i1.GLongString)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestUploadedChapter_meta) + ])), + ]; + Object? value; + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_latestUploadedChapter deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestUploadedChapterBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestUploadedChapter_meta) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_latestUploadedChapter_metaSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_latestUploadedChapter_meta, + _$GMangaFragmentData_latestUploadedChapter_meta + ]; + @override + final String wireName = 'GMangaFragmentData_latestUploadedChapter_meta'; + + @override + Iterable serialize(Serializers serializers, + GMangaFragmentData_latestUploadedChapter_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_latestUploadedChapter_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_latestUploadedChapter_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_metaSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_meta, + _$GMangaFragmentData_meta + ]; + @override + final String wireName = 'GMangaFragmentData_meta'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_meta object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaFragmentData_meta deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_metaBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_sourceSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_source, + _$GMangaFragmentData_source + ]; + @override + final String wireName = 'GMangaFragmentData_source'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_source object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'displayName', + serializers.serialize(object.displayName, + specifiedType: const FullType(String)), + 'iconUrl', + serializers.serialize(object.iconUrl, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, + specifiedType: const FullType(_i1.GLongString)), + 'isConfigurable', + serializers.serialize(object.isConfigurable, + specifiedType: const FullType(bool)), + 'isNsfw', + serializers.serialize(object.isNsfw, specifiedType: const FullType(bool)), + 'lang', + serializers.serialize(object.lang, specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + 'supportsLatest', + serializers.serialize(object.supportsLatest, + specifiedType: const FullType(bool)), + 'extension', + serializers.serialize(object.extension, + specifiedType: const FullType(GMangaFragmentData_source_extension)), + ]; + + return result; + } + + @override + GMangaFragmentData_source deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_sourceBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'displayName': + result.displayName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GLongString))! + as _i1.GLongString); + break; + case 'isConfigurable': + result.isConfigurable = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'supportsLatest': + result.supportsLatest = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extension': + result.extension.replace(serializers.deserialize(value, + specifiedType: + const FullType(GMangaFragmentData_source_extension))! + as GMangaFragmentData_source_extension); + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData_source_extensionSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaFragmentData_source_extension, + _$GMangaFragmentData_source_extension + ]; + @override + final String wireName = 'GMangaFragmentData_source_extension'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentData_source_extension object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'pkgName', + serializers.serialize(object.pkgName, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentData_source_extension deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentData_source_extensionBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentData extends GMangaFragmentData { + @override + final String G__typename; + @override + final _i1.GLongString? age; + @override + final String? artist; + @override + final String? author; + @override + final _i1.GLongString? chaptersAge; + @override + final _i1.GLongString? chaptersLastFetchedAt; + @override + final String? description; + @override + final int downloadCount; + @override + final BuiltList genre; + @override + final int id; + @override + final bool inLibrary; + @override + final _i1.GLongString inLibraryAt; + @override + final bool initialized; + @override + final _i1.GLongString? lastFetchedAt; + @override + final GMangaFragmentData_lastReadChapter? lastReadChapter; + @override + final GMangaFragmentData_latestFetchedChapter? latestFetchedChapter; + @override + final GMangaFragmentData_latestReadChapter? latestReadChapter; + @override + final GMangaFragmentData_latestUploadedChapter? latestUploadedChapter; + @override + final BuiltList meta; + @override + final String? realUrl; + @override + final GMangaFragmentData_source? source; + @override + final _i1.GLongString sourceId; + @override + final _i1.GMangaStatus status; + @override + final String? thumbnailUrl; + @override + final _i1.GLongString? thumbnailUrlLastFetched; + @override + final String title; + @override + final int unreadCount; + @override + final _i1.GUpdateStrategy updateStrategy; + @override + final String url; + + factory _$GMangaFragmentData( + [void Function(GMangaFragmentDataBuilder)? updates]) => + (new GMangaFragmentDataBuilder()..update(updates))._build(); + + _$GMangaFragmentData._( + {required this.G__typename, + this.age, + this.artist, + this.author, + this.chaptersAge, + this.chaptersLastFetchedAt, + this.description, + required this.downloadCount, + required this.genre, + required this.id, + required this.inLibrary, + required this.inLibraryAt, + required this.initialized, + this.lastFetchedAt, + this.lastReadChapter, + this.latestFetchedChapter, + this.latestReadChapter, + this.latestUploadedChapter, + required this.meta, + this.realUrl, + this.source, + required this.sourceId, + required this.status, + this.thumbnailUrl, + this.thumbnailUrlLastFetched, + required this.title, + required this.unreadCount, + required this.updateStrategy, + required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + downloadCount, r'GMangaFragmentData', 'downloadCount'); + BuiltValueNullFieldError.checkNotNull( + genre, r'GMangaFragmentData', 'genre'); + BuiltValueNullFieldError.checkNotNull(id, r'GMangaFragmentData', 'id'); + BuiltValueNullFieldError.checkNotNull( + inLibrary, r'GMangaFragmentData', 'inLibrary'); + BuiltValueNullFieldError.checkNotNull( + inLibraryAt, r'GMangaFragmentData', 'inLibraryAt'); + BuiltValueNullFieldError.checkNotNull( + initialized, r'GMangaFragmentData', 'initialized'); + BuiltValueNullFieldError.checkNotNull(meta, r'GMangaFragmentData', 'meta'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GMangaFragmentData', 'sourceId'); + BuiltValueNullFieldError.checkNotNull( + status, r'GMangaFragmentData', 'status'); + BuiltValueNullFieldError.checkNotNull( + title, r'GMangaFragmentData', 'title'); + BuiltValueNullFieldError.checkNotNull( + unreadCount, r'GMangaFragmentData', 'unreadCount'); + BuiltValueNullFieldError.checkNotNull( + updateStrategy, r'GMangaFragmentData', 'updateStrategy'); + BuiltValueNullFieldError.checkNotNull(url, r'GMangaFragmentData', 'url'); + } + + @override + GMangaFragmentData rebuild( + void Function(GMangaFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentDataBuilder toBuilder() => + new GMangaFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData && + G__typename == other.G__typename && + age == other.age && + artist == other.artist && + author == other.author && + chaptersAge == other.chaptersAge && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + downloadCount == other.downloadCount && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + lastReadChapter == other.lastReadChapter && + latestFetchedChapter == other.latestFetchedChapter && + latestReadChapter == other.latestReadChapter && + latestUploadedChapter == other.latestUploadedChapter && + meta == other.meta && + realUrl == other.realUrl && + source == other.source && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + thumbnailUrlLastFetched == other.thumbnailUrlLastFetched && + title == other.title && + unreadCount == other.unreadCount && + updateStrategy == other.updateStrategy && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, age.hashCode); + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, chaptersAge.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, downloadCount.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, lastReadChapter.hashCode); + _$hash = $jc(_$hash, latestFetchedChapter.hashCode); + _$hash = $jc(_$hash, latestReadChapter.hashCode); + _$hash = $jc(_$hash, latestUploadedChapter.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, thumbnailUrlLastFetched.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, unreadCount.hashCode); + _$hash = $jc(_$hash, updateStrategy.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData') + ..add('G__typename', G__typename) + ..add('age', age) + ..add('artist', artist) + ..add('author', author) + ..add('chaptersAge', chaptersAge) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('downloadCount', downloadCount) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('lastReadChapter', lastReadChapter) + ..add('latestFetchedChapter', latestFetchedChapter) + ..add('latestReadChapter', latestReadChapter) + ..add('latestUploadedChapter', latestUploadedChapter) + ..add('meta', meta) + ..add('realUrl', realUrl) + ..add('source', source) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('thumbnailUrlLastFetched', thumbnailUrlLastFetched) + ..add('title', title) + ..add('unreadCount', unreadCount) + ..add('updateStrategy', updateStrategy) + ..add('url', url)) + .toString(); + } +} + +class GMangaFragmentDataBuilder + implements Builder { + _$GMangaFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i1.GLongStringBuilder? _age; + _i1.GLongStringBuilder get age => + _$this._age ??= new _i1.GLongStringBuilder(); + set age(_i1.GLongStringBuilder? age) => _$this._age = age; + + String? _artist; + String? get artist => _$this._artist; + set artist(String? artist) => _$this._artist = artist; + + String? _author; + String? get author => _$this._author; + set author(String? author) => _$this._author = author; + + _i1.GLongStringBuilder? _chaptersAge; + _i1.GLongStringBuilder get chaptersAge => + _$this._chaptersAge ??= new _i1.GLongStringBuilder(); + set chaptersAge(_i1.GLongStringBuilder? chaptersAge) => + _$this._chaptersAge = chaptersAge; + + _i1.GLongStringBuilder? _chaptersLastFetchedAt; + _i1.GLongStringBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new _i1.GLongStringBuilder(); + set chaptersLastFetchedAt(_i1.GLongStringBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + int? _downloadCount; + int? get downloadCount => _$this._downloadCount; + set downloadCount(int? downloadCount) => + _$this._downloadCount = downloadCount; + + ListBuilder? _genre; + ListBuilder get genre => _$this._genre ??= new ListBuilder(); + set genre(ListBuilder? genre) => _$this._genre = genre; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + _i1.GLongStringBuilder? _inLibraryAt; + _i1.GLongStringBuilder get inLibraryAt => + _$this._inLibraryAt ??= new _i1.GLongStringBuilder(); + set inLibraryAt(_i1.GLongStringBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + bool? _initialized; + bool? get initialized => _$this._initialized; + set initialized(bool? initialized) => _$this._initialized = initialized; + + _i1.GLongStringBuilder? _lastFetchedAt; + _i1.GLongStringBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new _i1.GLongStringBuilder(); + set lastFetchedAt(_i1.GLongStringBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + GMangaFragmentData_lastReadChapterBuilder? _lastReadChapter; + GMangaFragmentData_lastReadChapterBuilder get lastReadChapter => + _$this._lastReadChapter ??= + new GMangaFragmentData_lastReadChapterBuilder(); + set lastReadChapter( + GMangaFragmentData_lastReadChapterBuilder? lastReadChapter) => + _$this._lastReadChapter = lastReadChapter; + + GMangaFragmentData_latestFetchedChapterBuilder? _latestFetchedChapter; + GMangaFragmentData_latestFetchedChapterBuilder get latestFetchedChapter => + _$this._latestFetchedChapter ??= + new GMangaFragmentData_latestFetchedChapterBuilder(); + set latestFetchedChapter( + GMangaFragmentData_latestFetchedChapterBuilder? + latestFetchedChapter) => + _$this._latestFetchedChapter = latestFetchedChapter; + + GMangaFragmentData_latestReadChapterBuilder? _latestReadChapter; + GMangaFragmentData_latestReadChapterBuilder get latestReadChapter => + _$this._latestReadChapter ??= + new GMangaFragmentData_latestReadChapterBuilder(); + set latestReadChapter( + GMangaFragmentData_latestReadChapterBuilder? latestReadChapter) => + _$this._latestReadChapter = latestReadChapter; + + GMangaFragmentData_latestUploadedChapterBuilder? _latestUploadedChapter; + GMangaFragmentData_latestUploadedChapterBuilder get latestUploadedChapter => + _$this._latestUploadedChapter ??= + new GMangaFragmentData_latestUploadedChapterBuilder(); + set latestUploadedChapter( + GMangaFragmentData_latestUploadedChapterBuilder? + latestUploadedChapter) => + _$this._latestUploadedChapter = latestUploadedChapter; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= new ListBuilder(); + set meta(ListBuilder? meta) => _$this._meta = meta; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + GMangaFragmentData_sourceBuilder? _source; + GMangaFragmentData_sourceBuilder get source => + _$this._source ??= new GMangaFragmentData_sourceBuilder(); + set source(GMangaFragmentData_sourceBuilder? source) => + _$this._source = source; + + _i1.GLongStringBuilder? _sourceId; + _i1.GLongStringBuilder get sourceId => + _$this._sourceId ??= new _i1.GLongStringBuilder(); + set sourceId(_i1.GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + _i1.GMangaStatus? _status; + _i1.GMangaStatus? get status => _$this._status; + set status(_i1.GMangaStatus? status) => _$this._status = status; + + String? _thumbnailUrl; + String? get thumbnailUrl => _$this._thumbnailUrl; + set thumbnailUrl(String? thumbnailUrl) => _$this._thumbnailUrl = thumbnailUrl; + + _i1.GLongStringBuilder? _thumbnailUrlLastFetched; + _i1.GLongStringBuilder get thumbnailUrlLastFetched => + _$this._thumbnailUrlLastFetched ??= new _i1.GLongStringBuilder(); + set thumbnailUrlLastFetched( + _i1.GLongStringBuilder? thumbnailUrlLastFetched) => + _$this._thumbnailUrlLastFetched = thumbnailUrlLastFetched; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + int? _unreadCount; + int? get unreadCount => _$this._unreadCount; + set unreadCount(int? unreadCount) => _$this._unreadCount = unreadCount; + + _i1.GUpdateStrategy? _updateStrategy; + _i1.GUpdateStrategy? get updateStrategy => _$this._updateStrategy; + set updateStrategy(_i1.GUpdateStrategy? updateStrategy) => + _$this._updateStrategy = updateStrategy; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GMangaFragmentDataBuilder() { + GMangaFragmentData._initializeBuilder(this); + } + + GMangaFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _age = $v.age?.toBuilder(); + _artist = $v.artist; + _author = $v.author; + _chaptersAge = $v.chaptersAge?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description; + _downloadCount = $v.downloadCount; + _genre = $v.genre.toBuilder(); + _id = $v.id; + _inLibrary = $v.inLibrary; + _inLibraryAt = $v.inLibraryAt.toBuilder(); + _initialized = $v.initialized; + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _lastReadChapter = $v.lastReadChapter?.toBuilder(); + _latestFetchedChapter = $v.latestFetchedChapter?.toBuilder(); + _latestReadChapter = $v.latestReadChapter?.toBuilder(); + _latestUploadedChapter = $v.latestUploadedChapter?.toBuilder(); + _meta = $v.meta.toBuilder(); + _realUrl = $v.realUrl; + _source = $v.source?.toBuilder(); + _sourceId = $v.sourceId.toBuilder(); + _status = $v.status; + _thumbnailUrl = $v.thumbnailUrl; + _thumbnailUrlLastFetched = $v.thumbnailUrlLastFetched?.toBuilder(); + _title = $v.title; + _unreadCount = $v.unreadCount; + _updateStrategy = $v.updateStrategy; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData; + } + + @override + void update(void Function(GMangaFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData build() => _build(); + + _$GMangaFragmentData _build() { + _$GMangaFragmentData _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData', 'G__typename'), + age: _age?.build(), + artist: artist, + author: author, + chaptersAge: _chaptersAge?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: description, + downloadCount: BuiltValueNullFieldError.checkNotNull( + downloadCount, r'GMangaFragmentData', 'downloadCount'), + genre: genre.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData', 'id'), + inLibrary: BuiltValueNullFieldError.checkNotNull( + inLibrary, r'GMangaFragmentData', 'inLibrary'), + inLibraryAt: inLibraryAt.build(), + initialized: BuiltValueNullFieldError.checkNotNull( + initialized, r'GMangaFragmentData', 'initialized'), + lastFetchedAt: _lastFetchedAt?.build(), + lastReadChapter: _lastReadChapter?.build(), + latestFetchedChapter: _latestFetchedChapter?.build(), + latestReadChapter: _latestReadChapter?.build(), + latestUploadedChapter: _latestUploadedChapter?.build(), + meta: meta.build(), + realUrl: realUrl, + source: _source?.build(), + sourceId: sourceId.build(), + status: BuiltValueNullFieldError.checkNotNull( + status, r'GMangaFragmentData', 'status'), + thumbnailUrl: thumbnailUrl, + thumbnailUrlLastFetched: _thumbnailUrlLastFetched?.build(), + title: BuiltValueNullFieldError.checkNotNull( + title, r'GMangaFragmentData', 'title'), + unreadCount: BuiltValueNullFieldError.checkNotNull( + unreadCount, r'GMangaFragmentData', 'unreadCount'), + updateStrategy: BuiltValueNullFieldError.checkNotNull( + updateStrategy, r'GMangaFragmentData', 'updateStrategy'), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData', 'url'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'age'; + _age?.build(); + + _$failedField = 'chaptersAge'; + _chaptersAge?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + + _$failedField = 'genre'; + genre.build(); + + _$failedField = 'inLibraryAt'; + inLibraryAt.build(); + + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + _$failedField = 'lastReadChapter'; + _lastReadChapter?.build(); + _$failedField = 'latestFetchedChapter'; + _latestFetchedChapter?.build(); + _$failedField = 'latestReadChapter'; + _latestReadChapter?.build(); + _$failedField = 'latestUploadedChapter'; + _latestUploadedChapter?.build(); + _$failedField = 'meta'; + meta.build(); + + _$failedField = 'source'; + _source?.build(); + _$failedField = 'sourceId'; + sourceId.build(); + + _$failedField = 'thumbnailUrlLastFetched'; + _thumbnailUrlLastFetched?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_lastReadChapter + extends GMangaFragmentData_lastReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_lastReadChapter( + [void Function(GMangaFragmentData_lastReadChapterBuilder)? + updates]) => + (new GMangaFragmentData_lastReadChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_lastReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_lastReadChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + chapterNumber, r'GMangaFragmentData_lastReadChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_lastReadChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_lastReadChapter', 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_lastReadChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_lastReadChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_lastReadChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_lastReadChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_lastReadChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_lastReadChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_lastReadChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_lastReadChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GMangaFragmentData_lastReadChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_lastReadChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_lastReadChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_lastReadChapter', 'meta'); + } + + @override + GMangaFragmentData_lastReadChapter rebuild( + void Function(GMangaFragmentData_lastReadChapterBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_lastReadChapterBuilder toBuilder() => + new GMangaFragmentData_lastReadChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_lastReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_lastReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_lastReadChapterBuilder + implements + Builder { + _$GMangaFragmentData_lastReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_lastReadChapterBuilder() { + GMangaFragmentData_lastReadChapter._initializeBuilder(this); + } + + GMangaFragmentData_lastReadChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_lastReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_lastReadChapter; + } + + @override + void update( + void Function(GMangaFragmentData_lastReadChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_lastReadChapter build() => _build(); + + _$GMangaFragmentData_lastReadChapter _build() { + _$GMangaFragmentData_lastReadChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_lastReadChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_lastReadChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_lastReadChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_lastReadChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_lastReadChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_lastReadChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_lastReadChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_lastReadChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_lastReadChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_lastReadChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_lastReadChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GMangaFragmentData_lastReadChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_lastReadChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_lastReadChapter', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_lastReadChapter_meta + extends GMangaFragmentData_lastReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_lastReadChapter_meta( + [void Function(GMangaFragmentData_lastReadChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_lastReadChapter_metaBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_lastReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_lastReadChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_lastReadChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_lastReadChapter_meta', 'value'); + } + + @override + GMangaFragmentData_lastReadChapter_meta rebuild( + void Function(GMangaFragmentData_lastReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_lastReadChapter_metaBuilder toBuilder() => + new GMangaFragmentData_lastReadChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_lastReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_lastReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_lastReadChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_lastReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_lastReadChapter_metaBuilder() { + GMangaFragmentData_lastReadChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_lastReadChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_lastReadChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_lastReadChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_lastReadChapter_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_lastReadChapter_meta build() => _build(); + + _$GMangaFragmentData_lastReadChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_lastReadChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_lastReadChapter_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_lastReadChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_lastReadChapter_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestFetchedChapter + extends GMangaFragmentData_latestFetchedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_latestFetchedChapter( + [void Function(GMangaFragmentData_latestFetchedChapterBuilder)? + updates]) => + (new GMangaFragmentData_latestFetchedChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestFetchedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_latestFetchedChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestFetchedChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_latestFetchedChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestFetchedChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_latestFetchedChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_latestFetchedChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestFetchedChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_latestFetchedChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_latestFetchedChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestFetchedChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestFetchedChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_latestFetchedChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GMangaFragmentData_latestFetchedChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_latestFetchedChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestFetchedChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_latestFetchedChapter', 'meta'); + } + + @override + GMangaFragmentData_latestFetchedChapter rebuild( + void Function(GMangaFragmentData_latestFetchedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestFetchedChapterBuilder toBuilder() => + new GMangaFragmentData_latestFetchedChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestFetchedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestFetchedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_latestFetchedChapterBuilder + implements + Builder { + _$GMangaFragmentData_latestFetchedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_latestFetchedChapterBuilder() { + GMangaFragmentData_latestFetchedChapter._initializeBuilder(this); + } + + GMangaFragmentData_latestFetchedChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestFetchedChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestFetchedChapter; + } + + @override + void update( + void Function(GMangaFragmentData_latestFetchedChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestFetchedChapter build() => _build(); + + _$GMangaFragmentData_latestFetchedChapter _build() { + _$GMangaFragmentData_latestFetchedChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_latestFetchedChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestFetchedChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestFetchedChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestFetchedChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_latestFetchedChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_latestFetchedChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestFetchedChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_latestFetchedChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestFetchedChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestFetchedChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, + r'GMangaFragmentData_latestFetchedChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GMangaFragmentData_latestFetchedChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestFetchedChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_latestFetchedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestFetchedChapter_meta + extends GMangaFragmentData_latestFetchedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_latestFetchedChapter_meta( + [void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_latestFetchedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GMangaFragmentData_latestFetchedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestFetchedChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestFetchedChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestFetchedChapter_meta', 'value'); + } + + @override + GMangaFragmentData_latestFetchedChapter_meta rebuild( + void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestFetchedChapter_metaBuilder toBuilder() => + new GMangaFragmentData_latestFetchedChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestFetchedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestFetchedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_latestFetchedChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_latestFetchedChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_latestFetchedChapter_metaBuilder() { + GMangaFragmentData_latestFetchedChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_latestFetchedChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestFetchedChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestFetchedChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_latestFetchedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestFetchedChapter_meta build() => _build(); + + _$GMangaFragmentData_latestFetchedChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_latestFetchedChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestFetchedChapter_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestFetchedChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestFetchedChapter_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestReadChapter + extends GMangaFragmentData_latestReadChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_latestReadChapter( + [void Function(GMangaFragmentData_latestReadChapterBuilder)? + updates]) => + (new GMangaFragmentData_latestReadChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestReadChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_latestReadChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestReadChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_latestReadChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestReadChapter', 'id'); + BuiltValueNullFieldError.checkNotNull( + isBookmarked, r'GMangaFragmentData_latestReadChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull( + isDownloaded, r'GMangaFragmentData_latestReadChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestReadChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull( + lastPageRead, r'GMangaFragmentData_latestReadChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_latestReadChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestReadChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestReadChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_latestReadChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull( + sourceOrder, r'GMangaFragmentData_latestReadChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_latestReadChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestReadChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_latestReadChapter', 'meta'); + } + + @override + GMangaFragmentData_latestReadChapter rebuild( + void Function(GMangaFragmentData_latestReadChapterBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestReadChapterBuilder toBuilder() => + new GMangaFragmentData_latestReadChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestReadChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_latestReadChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_latestReadChapterBuilder + implements + Builder { + _$GMangaFragmentData_latestReadChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_latestReadChapterBuilder() { + GMangaFragmentData_latestReadChapter._initializeBuilder(this); + } + + GMangaFragmentData_latestReadChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestReadChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestReadChapter; + } + + @override + void update( + void Function(GMangaFragmentData_latestReadChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestReadChapter build() => _build(); + + _$GMangaFragmentData_latestReadChapter _build() { + _$GMangaFragmentData_latestReadChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_latestReadChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestReadChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestReadChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestReadChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_latestReadChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_latestReadChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestReadChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_latestReadChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestReadChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestReadChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, + r'GMangaFragmentData_latestReadChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GMangaFragmentData_latestReadChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestReadChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_latestReadChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestReadChapter_meta + extends GMangaFragmentData_latestReadChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_latestReadChapter_meta( + [void Function(GMangaFragmentData_latestReadChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_latestReadChapter_metaBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestReadChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestReadChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestReadChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestReadChapter_meta', 'value'); + } + + @override + GMangaFragmentData_latestReadChapter_meta rebuild( + void Function(GMangaFragmentData_latestReadChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestReadChapter_metaBuilder toBuilder() => + new GMangaFragmentData_latestReadChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestReadChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestReadChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_latestReadChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_latestReadChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_latestReadChapter_metaBuilder() { + GMangaFragmentData_latestReadChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_latestReadChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestReadChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestReadChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_latestReadChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestReadChapter_meta build() => _build(); + + _$GMangaFragmentData_latestReadChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_latestReadChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestReadChapter_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestReadChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestReadChapter_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestUploadedChapter + extends GMangaFragmentData_latestUploadedChapter { + @override + final String G__typename; + @override + final double chapterNumber; + @override + final _i1.GLongString fetchedAt; + @override + final int id; + @override + final bool isBookmarked; + @override + final bool isDownloaded; + @override + final bool isRead; + @override + final int lastPageRead; + @override + final _i1.GLongString lastReadAt; + @override + final int mangaId; + @override + final String name; + @override + final int pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int sourceOrder; + @override + final _i1.GLongString uploadDate; + @override + final String url; + @override + final BuiltList meta; + + factory _$GMangaFragmentData_latestUploadedChapter( + [void Function(GMangaFragmentData_latestUploadedChapterBuilder)? + updates]) => + (new GMangaFragmentData_latestUploadedChapterBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_latestUploadedChapter._( + {required this.G__typename, + required this.chapterNumber, + required this.fetchedAt, + required this.id, + required this.isBookmarked, + required this.isDownloaded, + required this.isRead, + required this.lastPageRead, + required this.lastReadAt, + required this.mangaId, + required this.name, + required this.pageCount, + this.realUrl, + this.scanlator, + required this.sourceOrder, + required this.uploadDate, + required this.url, + required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestUploadedChapter', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestUploadedChapter', 'chapterNumber'); + BuiltValueNullFieldError.checkNotNull( + fetchedAt, r'GMangaFragmentData_latestUploadedChapter', 'fetchedAt'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestUploadedChapter', 'id'); + BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_latestUploadedChapter', 'isBookmarked'); + BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_latestUploadedChapter', 'isDownloaded'); + BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestUploadedChapter', 'isRead'); + BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_latestUploadedChapter', 'lastPageRead'); + BuiltValueNullFieldError.checkNotNull( + lastReadAt, r'GMangaFragmentData_latestUploadedChapter', 'lastReadAt'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaFragmentData_latestUploadedChapter', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestUploadedChapter', 'name'); + BuiltValueNullFieldError.checkNotNull( + pageCount, r'GMangaFragmentData_latestUploadedChapter', 'pageCount'); + BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GMangaFragmentData_latestUploadedChapter', 'sourceOrder'); + BuiltValueNullFieldError.checkNotNull( + uploadDate, r'GMangaFragmentData_latestUploadedChapter', 'uploadDate'); + BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestUploadedChapter', 'url'); + BuiltValueNullFieldError.checkNotNull( + meta, r'GMangaFragmentData_latestUploadedChapter', 'meta'); + } + + @override + GMangaFragmentData_latestUploadedChapter rebuild( + void Function(GMangaFragmentData_latestUploadedChapterBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestUploadedChapterBuilder toBuilder() => + new GMangaFragmentData_latestUploadedChapterBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestUploadedChapter && + G__typename == other.G__typename && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestUploadedChapter') + ..add('G__typename', G__typename) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url) + ..add('meta', meta)) + .toString(); + } +} + +class GMangaFragmentData_latestUploadedChapterBuilder + implements + Builder { + _$GMangaFragmentData_latestUploadedChapter? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + _i1.GLongStringBuilder? _fetchedAt; + _i1.GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new _i1.GLongStringBuilder(); + set fetchedAt(_i1.GLongStringBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + _i1.GLongStringBuilder? _lastReadAt; + _i1.GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new _i1.GLongStringBuilder(); + set lastReadAt(_i1.GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + _i1.GLongStringBuilder? _uploadDate; + _i1.GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new _i1.GLongStringBuilder(); + set uploadDate(_i1.GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ListBuilder? _meta; + ListBuilder get meta => + _$this._meta ??= + new ListBuilder(); + set meta(ListBuilder? meta) => + _$this._meta = meta; + + GMangaFragmentData_latestUploadedChapterBuilder() { + GMangaFragmentData_latestUploadedChapter._initializeBuilder(this); + } + + GMangaFragmentData_latestUploadedChapterBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate.toBuilder(); + _url = $v.url; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestUploadedChapter other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestUploadedChapter; + } + + @override + void update( + void Function(GMangaFragmentData_latestUploadedChapterBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestUploadedChapter build() => _build(); + + _$GMangaFragmentData_latestUploadedChapter _build() { + _$GMangaFragmentData_latestUploadedChapter _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_latestUploadedChapter._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestUploadedChapter', 'G__typename'), + chapterNumber: BuiltValueNullFieldError.checkNotNull(chapterNumber, + r'GMangaFragmentData_latestUploadedChapter', 'chapterNumber'), + fetchedAt: fetchedAt.build(), + id: BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_latestUploadedChapter', 'id'), + isBookmarked: BuiltValueNullFieldError.checkNotNull(isBookmarked, + r'GMangaFragmentData_latestUploadedChapter', 'isBookmarked'), + isDownloaded: BuiltValueNullFieldError.checkNotNull(isDownloaded, + r'GMangaFragmentData_latestUploadedChapter', 'isDownloaded'), + isRead: BuiltValueNullFieldError.checkNotNull( + isRead, r'GMangaFragmentData_latestUploadedChapter', 'isRead'), + lastPageRead: BuiltValueNullFieldError.checkNotNull(lastPageRead, + r'GMangaFragmentData_latestUploadedChapter', 'lastPageRead'), + lastReadAt: lastReadAt.build(), + mangaId: BuiltValueNullFieldError.checkNotNull(mangaId, + r'GMangaFragmentData_latestUploadedChapter', 'mangaId'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_latestUploadedChapter', 'name'), + pageCount: BuiltValueNullFieldError.checkNotNull(pageCount, + r'GMangaFragmentData_latestUploadedChapter', 'pageCount'), + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: BuiltValueNullFieldError.checkNotNull(sourceOrder, + r'GMangaFragmentData_latestUploadedChapter', 'sourceOrder'), + uploadDate: uploadDate.build(), + url: BuiltValueNullFieldError.checkNotNull( + url, r'GMangaFragmentData_latestUploadedChapter', 'url'), + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + fetchedAt.build(); + + _$failedField = 'lastReadAt'; + lastReadAt.build(); + + _$failedField = 'uploadDate'; + uploadDate.build(); + + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_latestUploadedChapter', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_latestUploadedChapter_meta + extends GMangaFragmentData_latestUploadedChapter_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_latestUploadedChapter_meta( + [void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder)? + updates]) => + (new GMangaFragmentData_latestUploadedChapter_metaBuilder() + ..update(updates)) + ._build(); + + _$GMangaFragmentData_latestUploadedChapter_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestUploadedChapter_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestUploadedChapter_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestUploadedChapter_meta', 'value'); + } + + @override + GMangaFragmentData_latestUploadedChapter_meta rebuild( + void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_latestUploadedChapter_metaBuilder toBuilder() => + new GMangaFragmentData_latestUploadedChapter_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_latestUploadedChapter_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GMangaFragmentData_latestUploadedChapter_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_latestUploadedChapter_metaBuilder + implements + Builder { + _$GMangaFragmentData_latestUploadedChapter_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_latestUploadedChapter_metaBuilder() { + GMangaFragmentData_latestUploadedChapter_meta._initializeBuilder(this); + } + + GMangaFragmentData_latestUploadedChapter_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_latestUploadedChapter_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_latestUploadedChapter_meta; + } + + @override + void update( + void Function(GMangaFragmentData_latestUploadedChapter_metaBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_latestUploadedChapter_meta build() => _build(); + + _$GMangaFragmentData_latestUploadedChapter_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_latestUploadedChapter_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_latestUploadedChapter_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_latestUploadedChapter_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_latestUploadedChapter_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_meta extends GMangaFragmentData_meta { + @override + final String G__typename; + @override + final String key; + @override + final String value; + + factory _$GMangaFragmentData_meta( + [void Function(GMangaFragmentData_metaBuilder)? updates]) => + (new GMangaFragmentData_metaBuilder()..update(updates))._build(); + + _$GMangaFragmentData_meta._( + {required this.G__typename, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_meta', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_meta', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_meta', 'value'); + } + + @override + GMangaFragmentData_meta rebuild( + void Function(GMangaFragmentData_metaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_metaBuilder toBuilder() => + new GMangaFragmentData_metaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_meta && + G__typename == other.G__typename && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_meta') + ..add('G__typename', G__typename) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMangaFragmentData_metaBuilder + implements + Builder { + _$GMangaFragmentData_meta? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaFragmentData_metaBuilder() { + GMangaFragmentData_meta._initializeBuilder(this); + } + + GMangaFragmentData_metaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_meta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_meta; + } + + @override + void update(void Function(GMangaFragmentData_metaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_meta build() => _build(); + + _$GMangaFragmentData_meta _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_meta._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_meta', 'G__typename'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaFragmentData_meta', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaFragmentData_meta', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_source extends GMangaFragmentData_source { + @override + final String G__typename; + @override + final String displayName; + @override + final String iconUrl; + @override + final _i1.GLongString id; + @override + final bool isConfigurable; + @override + final bool isNsfw; + @override + final String lang; + @override + final String name; + @override + final bool supportsLatest; + @override + final GMangaFragmentData_source_extension extension; + + factory _$GMangaFragmentData_source( + [void Function(GMangaFragmentData_sourceBuilder)? updates]) => + (new GMangaFragmentData_sourceBuilder()..update(updates))._build(); + + _$GMangaFragmentData_source._( + {required this.G__typename, + required this.displayName, + required this.iconUrl, + required this.id, + required this.isConfigurable, + required this.isNsfw, + required this.lang, + required this.name, + required this.supportsLatest, + required this.extension}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_source', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + displayName, r'GMangaFragmentData_source', 'displayName'); + BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GMangaFragmentData_source', 'iconUrl'); + BuiltValueNullFieldError.checkNotNull( + id, r'GMangaFragmentData_source', 'id'); + BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GMangaFragmentData_source', 'isConfigurable'); + BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GMangaFragmentData_source', 'isNsfw'); + BuiltValueNullFieldError.checkNotNull( + lang, r'GMangaFragmentData_source', 'lang'); + BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_source', 'name'); + BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GMangaFragmentData_source', 'supportsLatest'); + BuiltValueNullFieldError.checkNotNull( + extension, r'GMangaFragmentData_source', 'extension'); + } + + @override + GMangaFragmentData_source rebuild( + void Function(GMangaFragmentData_sourceBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_sourceBuilder toBuilder() => + new GMangaFragmentData_sourceBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_source && + G__typename == other.G__typename && + displayName == other.displayName && + iconUrl == other.iconUrl && + id == other.id && + isConfigurable == other.isConfigurable && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + supportsLatest == other.supportsLatest && + extension == other.extension; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, displayName.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isConfigurable.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, supportsLatest.hashCode); + _$hash = $jc(_$hash, extension.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_source') + ..add('G__typename', G__typename) + ..add('displayName', displayName) + ..add('iconUrl', iconUrl) + ..add('id', id) + ..add('isConfigurable', isConfigurable) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('supportsLatest', supportsLatest) + ..add('extension', extension)) + .toString(); + } +} + +class GMangaFragmentData_sourceBuilder + implements + Builder { + _$GMangaFragmentData_source? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _displayName; + String? get displayName => _$this._displayName; + set displayName(String? displayName) => _$this._displayName = displayName; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + _i1.GLongStringBuilder? _id; + _i1.GLongStringBuilder get id => _$this._id ??= new _i1.GLongStringBuilder(); + set id(_i1.GLongStringBuilder? id) => _$this._id = id; + + bool? _isConfigurable; + bool? get isConfigurable => _$this._isConfigurable; + set isConfigurable(bool? isConfigurable) => + _$this._isConfigurable = isConfigurable; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + bool? _supportsLatest; + bool? get supportsLatest => _$this._supportsLatest; + set supportsLatest(bool? supportsLatest) => + _$this._supportsLatest = supportsLatest; + + GMangaFragmentData_source_extensionBuilder? _extension; + GMangaFragmentData_source_extensionBuilder get extension => + _$this._extension ??= new GMangaFragmentData_source_extensionBuilder(); + set extension(GMangaFragmentData_source_extensionBuilder? extension) => + _$this._extension = extension; + + GMangaFragmentData_sourceBuilder() { + GMangaFragmentData_source._initializeBuilder(this); + } + + GMangaFragmentData_sourceBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _displayName = $v.displayName; + _iconUrl = $v.iconUrl; + _id = $v.id.toBuilder(); + _isConfigurable = $v.isConfigurable; + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _supportsLatest = $v.supportsLatest; + _extension = $v.extension.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_source other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_source; + } + + @override + void update(void Function(GMangaFragmentData_sourceBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_source build() => _build(); + + _$GMangaFragmentData_source _build() { + _$GMangaFragmentData_source _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentData_source._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_source', 'G__typename'), + displayName: BuiltValueNullFieldError.checkNotNull( + displayName, r'GMangaFragmentData_source', 'displayName'), + iconUrl: BuiltValueNullFieldError.checkNotNull( + iconUrl, r'GMangaFragmentData_source', 'iconUrl'), + id: id.build(), + isConfigurable: BuiltValueNullFieldError.checkNotNull( + isConfigurable, r'GMangaFragmentData_source', 'isConfigurable'), + isNsfw: BuiltValueNullFieldError.checkNotNull( + isNsfw, r'GMangaFragmentData_source', 'isNsfw'), + lang: BuiltValueNullFieldError.checkNotNull( + lang, r'GMangaFragmentData_source', 'lang'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'GMangaFragmentData_source', 'name'), + supportsLatest: BuiltValueNullFieldError.checkNotNull( + supportsLatest, r'GMangaFragmentData_source', 'supportsLatest'), + extension: extension.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + id.build(); + + _$failedField = 'extension'; + extension.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentData_source', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFragmentData_source_extension + extends GMangaFragmentData_source_extension { + @override + final String G__typename; + @override + final String pkgName; + @override + final String? repo; + + factory _$GMangaFragmentData_source_extension( + [void Function(GMangaFragmentData_source_extensionBuilder)? + updates]) => + (new GMangaFragmentData_source_extensionBuilder()..update(updates)) + ._build(); + + _$GMangaFragmentData_source_extension._( + {required this.G__typename, required this.pkgName, this.repo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMangaFragmentData_source_extension', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + pkgName, r'GMangaFragmentData_source_extension', 'pkgName'); + } + + @override + GMangaFragmentData_source_extension rebuild( + void Function(GMangaFragmentData_source_extensionBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentData_source_extensionBuilder toBuilder() => + new GMangaFragmentData_source_extensionBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentData_source_extension && + G__typename == other.G__typename && + pkgName == other.pkgName && + repo == other.repo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentData_source_extension') + ..add('G__typename', G__typename) + ..add('pkgName', pkgName) + ..add('repo', repo)) + .toString(); + } +} + +class GMangaFragmentData_source_extensionBuilder + implements + Builder { + _$GMangaFragmentData_source_extension? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + GMangaFragmentData_source_extensionBuilder() { + GMangaFragmentData_source_extension._initializeBuilder(this); + } + + GMangaFragmentData_source_extensionBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _pkgName = $v.pkgName; + _repo = $v.repo; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentData_source_extension other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentData_source_extension; + } + + @override + void update( + void Function(GMangaFragmentData_source_extensionBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentData_source_extension build() => _build(); + + _$GMangaFragmentData_source_extension _build() { + final _$result = _$v ?? + new _$GMangaFragmentData_source_extension._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GMangaFragmentData_source_extension', 'G__typename'), + pkgName: BuiltValueNullFieldError.checkNotNull( + pkgName, r'GMangaFragmentData_source_extension', 'pkgName'), + repo: repo, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.req.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.req.gql.dart new file mode 100644 index 00000000..a53ce35d --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.req.gql.dart @@ -0,0 +1,65 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'manga_fragment.req.gql.g.dart'; + +abstract class GMangaFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GMangaFragmentData, _i3.GMangaFragmentVars> { + GMangaFragmentReq._(); + + factory GMangaFragmentReq( + [void Function(GMangaFragmentReqBuilder b) updates]) = + _$GMangaFragmentReq; + + static void _initializeBuilder(GMangaFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'MangaFragment'; + + @override + _i3.GMangaFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GMangaFragmentData? parseData(Map json) => + _i2.GMangaFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GMangaFragmentData data) => data.toJson(); + + static Serializer get serializer => + _$gMangaFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GMangaFragmentReq.serializer, + this, + ) as Map); + + static GMangaFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GMangaFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.req.gql.g.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.req.gql.g.dart new file mode 100644 index 00000000..f06ba12b --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.req.gql.g.dart @@ -0,0 +1,231 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'manga_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMangaFragmentReqSerializer = + new _$GMangaFragmentReqSerializer(); + +class _$GMangaFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFragmentReq, _$GMangaFragmentReq]; + @override + final String wireName = 'GMangaFragmentReq'; + + @override + Iterable serialize(Serializers serializers, GMangaFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GMangaFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GMangaFragmentVars))! + as _i3.GMangaFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFragmentReq extends GMangaFragmentReq { + @override + final _i3.GMangaFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GMangaFragmentReq( + [void Function(GMangaFragmentReqBuilder)? updates]) => + (new GMangaFragmentReqBuilder()..update(updates))._build(); + + _$GMangaFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GMangaFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GMangaFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GMangaFragmentReq', 'idFields'); + } + + @override + GMangaFragmentReq rebuild(void Function(GMangaFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentReqBuilder toBuilder() => + new GMangaFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GMangaFragmentReqBuilder + implements Builder { + _$GMangaFragmentReq? _$v; + + _i3.GMangaFragmentVarsBuilder? _vars; + _i3.GMangaFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GMangaFragmentVarsBuilder(); + set vars(_i3.GMangaFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GMangaFragmentReqBuilder() { + GMangaFragmentReq._initializeBuilder(this); + } + + GMangaFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GMangaFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentReq; + } + + @override + void update(void Function(GMangaFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentReq build() => _build(); + + _$GMangaFragmentReq _build() { + _$GMangaFragmentReq _$result; + try { + _$result = _$v ?? + new _$GMangaFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GMangaFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GMangaFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.dart new file mode 100644 index 00000000..0568bd88 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'manga_fragment.var.gql.g.dart'; + +abstract class GMangaFragmentVars + implements Built { + GMangaFragmentVars._(); + + factory GMangaFragmentVars( + [void Function(GMangaFragmentVarsBuilder b) updates]) = + _$GMangaFragmentVars; + + static Serializer get serializer => + _$gMangaFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaFragmentVars.serializer, + this, + ) as Map); + + static GMangaFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.g.dart b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.g.dart new file mode 100644 index 00000000..10f61b41 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.g.dart @@ -0,0 +1,94 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'manga_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMangaFragmentVarsSerializer = + new _$GMangaFragmentVarsSerializer(); + +class _$GMangaFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFragmentVars, _$GMangaFragmentVars]; + @override + final String wireName = 'GMangaFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GMangaFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GMangaFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GMangaFragmentVarsBuilder().build(); + } +} + +class _$GMangaFragmentVars extends GMangaFragmentVars { + factory _$GMangaFragmentVars( + [void Function(GMangaFragmentVarsBuilder)? updates]) => + (new GMangaFragmentVarsBuilder()..update(updates))._build(); + + _$GMangaFragmentVars._() : super._(); + + @override + GMangaFragmentVars rebuild( + void Function(GMangaFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFragmentVarsBuilder toBuilder() => + new GMangaFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFragmentVars; + } + + @override + int get hashCode { + return 541620525; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GMangaFragmentVars').toString(); + } +} + +class GMangaFragmentVarsBuilder + implements Builder { + _$GMangaFragmentVars? _$v; + + GMangaFragmentVarsBuilder(); + + @override + void replace(GMangaFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFragmentVars; + } + + @override + void update(void Function(GMangaFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFragmentVars build() => _build(); + + _$GMangaFragmentVars _build() { + final _$result = _$v ?? new _$GMangaFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/manga_book/domain/manga/graphql/manga_fragment.graphql b/lib/src/features/manga_book/domain/manga/graphql/manga_fragment.graphql new file mode 100644 index 00000000..36c3ef86 --- /dev/null +++ b/lib/src/features/manga_book/domain/manga/graphql/manga_fragment.graphql @@ -0,0 +1,46 @@ +# import '/src/features/manga_book/domain/chapter/graphql/chapter_fragment.graphql' +# import '/src/features/browse_center/domain/source/graphql/source_fragment.graphql' + +fragment MangaFragment on MangaType { + age + artist + author + chaptersAge + chaptersLastFetchedAt + description + downloadCount + genre + id + inLibrary + inLibraryAt + initialized + lastFetchedAt + lastReadChapter { + ...ChapterFragment + } + latestFetchedChapter { + ...ChapterFragment + } + latestReadChapter { + ...ChapterFragment + } + latestUploadedChapter { + ...ChapterFragment + } + meta { + key + value + } + realUrl + source { + ...SourceFragment + } + sourceId + status + thumbnailUrl + thumbnailUrlLastFetched + title + unreadCount + updateStrategy + url +} diff --git a/lib/src/features/manga_book/domain/manga/manga_model.dart b/lib/src/features/manga_book/domain/manga/manga_model.dart index 83670faa..65a5c7eb 100644 --- a/lib/src/features/manga_book/domain/manga/manga_model.dart +++ b/lib/src/features/manga_book/domain/manga/manga_model.dart @@ -8,46 +8,14 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import '../../../../constants/enum.dart'; import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../browse_center/domain/source/source_model.dart'; -import '../chapter/chapter_model.dart'; +import 'graphql/__generated__/manga_fragment.data.gql.dart'; part 'manga_model.freezed.dart'; part 'manga_model.g.dart'; -@freezed -class Manga with _$Manga { - Manga._(); - factory Manga({ - String? artist, - String? author, - String? description, - int? downloadCount, - int? chapterCount, - int? lastReadAt, - Chapter? lastChapterRead, - bool? freshData, - List? genre, - bool? inLibrary, - int? id, - int? inLibraryAt, - bool? initialized, - String? realUrl, - Source? source, - String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? status, - String? thumbnailUrl, - int? thumbnailUrlLastFetched, - String? title, - int? unreadCount, - int? lastFetchedAt, - int? chaptersLastFetchedAt, - String? url, - MangaMeta? meta, - }) = _Manga; - - factory Manga.fromJson(Map json) => _$MangaFromJson(json); +typedef Manga = GMangaFragment; +extension MangaExtensions on GMangaFragment { bool genreMatches( List? mangaGenreList, List? queryGenreList) { Set? mangaSet = mangaGenreList?.map((e) => e.toLowerCase()).toSet(); @@ -59,9 +27,61 @@ class Manga with _$Manga { bool query([String? query]) { return title.query(query) || author.query(query) || - genreMatches(genre, query?.split(',')); + genreMatches(genre.toList(), query?.split(',')); } + + MangaMeta get metaData => MangaMeta.fromJson( + {for (final metaItem in meta) metaItem.key: metaItem.value}); } +// @freezed +// class Manga with _$Manga { +// Manga._(); +// factory Manga({ +// String? artist, +// String? author, +// String? description, +// int? downloadCount, +// int? chapterCount, +// int? lastReadAt, +// Chapter? lastChapterRead, +// Chapter? latestFetchedChapter, +// Chapter? latestReadChapter, +// Chapter? latestUploadedChapter, +// bool? freshData, +// List? genre, +// bool? inLibrary, +// int? id, +// int? inLibraryAt, +// bool? initialized, +// String? realUrl, +// Source? source, +// String? sourceId, +// @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) +// MangaStatus? status, +// String? thumbnailUrl, +// int? thumbnailUrlLastFetched, +// String? title, +// int? unreadCount, +// int? lastFetchedAt, +// int? chaptersLastFetchedAt, +// String? url, +// MangaMeta? meta, +// }) = _Manga; + +// bool genreMatches( +// List? mangaGenreList, List? queryGenreList) { +// Set? mangaSet = mangaGenreList?.map((e) => e.toLowerCase()).toSet(); +// Set? querySet = +// queryGenreList?.map((e) => e.toLowerCase().trim()).toSet(); +// return (mangaSet?.containsAll(querySet ?? {})).ifNull(true); +// } + +// bool query([String? query]) { +// return title.query(query) || +// author.query(query) || +// genreMatches(genre, query?.split(',')); +// } +// } @freezed class MangaMeta with _$MangaMeta { diff --git a/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart b/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart index ba360523..9469fd1a 100644 --- a/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart +++ b/lib/src/features/manga_book/domain/manga/manga_model.freezed.dart @@ -12,731 +12,7 @@ part of 'manga_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -Manga _$MangaFromJson(Map json) { - return _Manga.fromJson(json); -} - -/// @nodoc -mixin _$Manga { - String? get artist => throw _privateConstructorUsedError; - String? get author => throw _privateConstructorUsedError; - String? get description => throw _privateConstructorUsedError; - int? get downloadCount => throw _privateConstructorUsedError; - int? get chapterCount => throw _privateConstructorUsedError; - int? get lastReadAt => throw _privateConstructorUsedError; - Chapter? get lastChapterRead => throw _privateConstructorUsedError; - bool? get freshData => throw _privateConstructorUsedError; - List? get genre => throw _privateConstructorUsedError; - bool? get inLibrary => throw _privateConstructorUsedError; - int? get id => throw _privateConstructorUsedError; - int? get inLibraryAt => throw _privateConstructorUsedError; - bool? get initialized => throw _privateConstructorUsedError; - String? get realUrl => throw _privateConstructorUsedError; - Source? get source => throw _privateConstructorUsedError; - String? get sourceId => throw _privateConstructorUsedError; - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? get status => throw _privateConstructorUsedError; - String? get thumbnailUrl => throw _privateConstructorUsedError; - int? get thumbnailUrlLastFetched => throw _privateConstructorUsedError; - String? get title => throw _privateConstructorUsedError; - int? get unreadCount => throw _privateConstructorUsedError; - int? get lastFetchedAt => throw _privateConstructorUsedError; - int? get chaptersLastFetchedAt => throw _privateConstructorUsedError; - String? get url => throw _privateConstructorUsedError; - MangaMeta? get meta => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $MangaCopyWith get copyWith => throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $MangaCopyWith<$Res> { - factory $MangaCopyWith(Manga value, $Res Function(Manga) then) = - _$MangaCopyWithImpl<$Res, Manga>; - @useResult - $Res call( - {String? artist, - String? author, - String? description, - int? downloadCount, - int? chapterCount, - int? lastReadAt, - Chapter? lastChapterRead, - bool? freshData, - List? genre, - bool? inLibrary, - int? id, - int? inLibraryAt, - bool? initialized, - String? realUrl, - Source? source, - String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? status, - String? thumbnailUrl, - int? thumbnailUrlLastFetched, - String? title, - int? unreadCount, - int? lastFetchedAt, - int? chaptersLastFetchedAt, - String? url, - MangaMeta? meta}); - - $ChapterCopyWith<$Res>? get lastChapterRead; - $SourceCopyWith<$Res>? get source; - $MangaMetaCopyWith<$Res>? get meta; -} - -/// @nodoc -class _$MangaCopyWithImpl<$Res, $Val extends Manga> - implements $MangaCopyWith<$Res> { - _$MangaCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? artist = freezed, - Object? author = freezed, - Object? description = freezed, - Object? downloadCount = freezed, - Object? chapterCount = freezed, - Object? lastReadAt = freezed, - Object? lastChapterRead = freezed, - Object? freshData = freezed, - Object? genre = freezed, - Object? inLibrary = freezed, - Object? id = freezed, - Object? inLibraryAt = freezed, - Object? initialized = freezed, - Object? realUrl = freezed, - Object? source = freezed, - Object? sourceId = freezed, - Object? status = freezed, - Object? thumbnailUrl = freezed, - Object? thumbnailUrlLastFetched = freezed, - Object? title = freezed, - Object? unreadCount = freezed, - Object? lastFetchedAt = freezed, - Object? chaptersLastFetchedAt = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_value.copyWith( - artist: freezed == artist - ? _value.artist - : artist // ignore: cast_nullable_to_non_nullable - as String?, - author: freezed == author - ? _value.author - : author // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - downloadCount: freezed == downloadCount - ? _value.downloadCount - : downloadCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - lastChapterRead: freezed == lastChapterRead - ? _value.lastChapterRead - : lastChapterRead // ignore: cast_nullable_to_non_nullable - as Chapter?, - freshData: freezed == freshData - ? _value.freshData - : freshData // ignore: cast_nullable_to_non_nullable - as bool?, - genre: freezed == genre - ? _value.genre - : genre // ignore: cast_nullable_to_non_nullable - as List?, - inLibrary: freezed == inLibrary - ? _value.inLibrary - : inLibrary // ignore: cast_nullable_to_non_nullable - as bool?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - inLibraryAt: freezed == inLibraryAt - ? _value.inLibraryAt - : inLibraryAt // ignore: cast_nullable_to_non_nullable - as int?, - initialized: freezed == initialized - ? _value.initialized - : initialized // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - source: freezed == source - ? _value.source - : source // ignore: cast_nullable_to_non_nullable - as Source?, - sourceId: freezed == sourceId - ? _value.sourceId - : sourceId // ignore: cast_nullable_to_non_nullable - as String?, - status: freezed == status - ? _value.status - : status // ignore: cast_nullable_to_non_nullable - as MangaStatus?, - thumbnailUrl: freezed == thumbnailUrl - ? _value.thumbnailUrl - : thumbnailUrl // ignore: cast_nullable_to_non_nullable - as String?, - thumbnailUrlLastFetched: freezed == thumbnailUrlLastFetched - ? _value.thumbnailUrlLastFetched - : thumbnailUrlLastFetched // ignore: cast_nullable_to_non_nullable - as int?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - unreadCount: freezed == unreadCount - ? _value.unreadCount - : unreadCount // ignore: cast_nullable_to_non_nullable - as int?, - lastFetchedAt: freezed == lastFetchedAt - ? _value.lastFetchedAt - : lastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - chaptersLastFetchedAt: freezed == chaptersLastFetchedAt - ? _value.chaptersLastFetchedAt - : chaptersLastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value.meta - : meta // ignore: cast_nullable_to_non_nullable - as MangaMeta?, - ) as $Val); - } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res>? get lastChapterRead { - if (_value.lastChapterRead == null) { - return null; - } - - return $ChapterCopyWith<$Res>(_value.lastChapterRead!, (value) { - return _then(_value.copyWith(lastChapterRead: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res>? get source { - if (_value.source == null) { - return null; - } - - return $SourceCopyWith<$Res>(_value.source!, (value) { - return _then(_value.copyWith(source: value) as $Val); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaMetaCopyWith<$Res>? get meta { - if (_value.meta == null) { - return null; - } - - return $MangaMetaCopyWith<$Res>(_value.meta!, (value) { - return _then(_value.copyWith(meta: value) as $Val); - }); - } -} - -/// @nodoc -abstract class _$$MangaImplCopyWith<$Res> implements $MangaCopyWith<$Res> { - factory _$$MangaImplCopyWith( - _$MangaImpl value, $Res Function(_$MangaImpl) then) = - __$$MangaImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {String? artist, - String? author, - String? description, - int? downloadCount, - int? chapterCount, - int? lastReadAt, - Chapter? lastChapterRead, - bool? freshData, - List? genre, - bool? inLibrary, - int? id, - int? inLibraryAt, - bool? initialized, - String? realUrl, - Source? source, - String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? status, - String? thumbnailUrl, - int? thumbnailUrlLastFetched, - String? title, - int? unreadCount, - int? lastFetchedAt, - int? chaptersLastFetchedAt, - String? url, - MangaMeta? meta}); - - @override - $ChapterCopyWith<$Res>? get lastChapterRead; - @override - $SourceCopyWith<$Res>? get source; - @override - $MangaMetaCopyWith<$Res>? get meta; -} - -/// @nodoc -class __$$MangaImplCopyWithImpl<$Res> - extends _$MangaCopyWithImpl<$Res, _$MangaImpl> - implements _$$MangaImplCopyWith<$Res> { - __$$MangaImplCopyWithImpl( - _$MangaImpl _value, $Res Function(_$MangaImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? artist = freezed, - Object? author = freezed, - Object? description = freezed, - Object? downloadCount = freezed, - Object? chapterCount = freezed, - Object? lastReadAt = freezed, - Object? lastChapterRead = freezed, - Object? freshData = freezed, - Object? genre = freezed, - Object? inLibrary = freezed, - Object? id = freezed, - Object? inLibraryAt = freezed, - Object? initialized = freezed, - Object? realUrl = freezed, - Object? source = freezed, - Object? sourceId = freezed, - Object? status = freezed, - Object? thumbnailUrl = freezed, - Object? thumbnailUrlLastFetched = freezed, - Object? title = freezed, - Object? unreadCount = freezed, - Object? lastFetchedAt = freezed, - Object? chaptersLastFetchedAt = freezed, - Object? url = freezed, - Object? meta = freezed, - }) { - return _then(_$MangaImpl( - artist: freezed == artist - ? _value.artist - : artist // ignore: cast_nullable_to_non_nullable - as String?, - author: freezed == author - ? _value.author - : author // ignore: cast_nullable_to_non_nullable - as String?, - description: freezed == description - ? _value.description - : description // ignore: cast_nullable_to_non_nullable - as String?, - downloadCount: freezed == downloadCount - ? _value.downloadCount - : downloadCount // ignore: cast_nullable_to_non_nullable - as int?, - chapterCount: freezed == chapterCount - ? _value.chapterCount - : chapterCount // ignore: cast_nullable_to_non_nullable - as int?, - lastReadAt: freezed == lastReadAt - ? _value.lastReadAt - : lastReadAt // ignore: cast_nullable_to_non_nullable - as int?, - lastChapterRead: freezed == lastChapterRead - ? _value.lastChapterRead - : lastChapterRead // ignore: cast_nullable_to_non_nullable - as Chapter?, - freshData: freezed == freshData - ? _value.freshData - : freshData // ignore: cast_nullable_to_non_nullable - as bool?, - genre: freezed == genre - ? _value._genre - : genre // ignore: cast_nullable_to_non_nullable - as List?, - inLibrary: freezed == inLibrary - ? _value.inLibrary - : inLibrary // ignore: cast_nullable_to_non_nullable - as bool?, - id: freezed == id - ? _value.id - : id // ignore: cast_nullable_to_non_nullable - as int?, - inLibraryAt: freezed == inLibraryAt - ? _value.inLibraryAt - : inLibraryAt // ignore: cast_nullable_to_non_nullable - as int?, - initialized: freezed == initialized - ? _value.initialized - : initialized // ignore: cast_nullable_to_non_nullable - as bool?, - realUrl: freezed == realUrl - ? _value.realUrl - : realUrl // ignore: cast_nullable_to_non_nullable - as String?, - source: freezed == source - ? _value.source - : source // ignore: cast_nullable_to_non_nullable - as Source?, - sourceId: freezed == sourceId - ? _value.sourceId - : sourceId // ignore: cast_nullable_to_non_nullable - as String?, - status: freezed == status - ? _value.status - : status // ignore: cast_nullable_to_non_nullable - as MangaStatus?, - thumbnailUrl: freezed == thumbnailUrl - ? _value.thumbnailUrl - : thumbnailUrl // ignore: cast_nullable_to_non_nullable - as String?, - thumbnailUrlLastFetched: freezed == thumbnailUrlLastFetched - ? _value.thumbnailUrlLastFetched - : thumbnailUrlLastFetched // ignore: cast_nullable_to_non_nullable - as int?, - title: freezed == title - ? _value.title - : title // ignore: cast_nullable_to_non_nullable - as String?, - unreadCount: freezed == unreadCount - ? _value.unreadCount - : unreadCount // ignore: cast_nullable_to_non_nullable - as int?, - lastFetchedAt: freezed == lastFetchedAt - ? _value.lastFetchedAt - : lastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - chaptersLastFetchedAt: freezed == chaptersLastFetchedAt - ? _value.chaptersLastFetchedAt - : chaptersLastFetchedAt // ignore: cast_nullable_to_non_nullable - as int?, - url: freezed == url - ? _value.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - meta: freezed == meta - ? _value.meta - : meta // ignore: cast_nullable_to_non_nullable - as MangaMeta?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$MangaImpl extends _Manga { - _$MangaImpl( - {this.artist, - this.author, - this.description, - this.downloadCount, - this.chapterCount, - this.lastReadAt, - this.lastChapterRead, - this.freshData, - final List? genre, - this.inLibrary, - this.id, - this.inLibraryAt, - this.initialized, - this.realUrl, - this.source, - this.sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - this.status, - this.thumbnailUrl, - this.thumbnailUrlLastFetched, - this.title, - this.unreadCount, - this.lastFetchedAt, - this.chaptersLastFetchedAt, - this.url, - this.meta}) - : _genre = genre, - super._(); - - factory _$MangaImpl.fromJson(Map json) => - _$$MangaImplFromJson(json); - - @override - final String? artist; - @override - final String? author; - @override - final String? description; - @override - final int? downloadCount; - @override - final int? chapterCount; - @override - final int? lastReadAt; - @override - final Chapter? lastChapterRead; - @override - final bool? freshData; - final List? _genre; - @override - List? get genre { - final value = _genre; - if (value == null) return null; - if (_genre is EqualUnmodifiableListView) return _genre; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - final bool? inLibrary; - @override - final int? id; - @override - final int? inLibraryAt; - @override - final bool? initialized; - @override - final String? realUrl; - @override - final Source? source; - @override - final String? sourceId; - @override - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - final MangaStatus? status; - @override - final String? thumbnailUrl; - @override - final int? thumbnailUrlLastFetched; - @override - final String? title; - @override - final int? unreadCount; - @override - final int? lastFetchedAt; - @override - final int? chaptersLastFetchedAt; - @override - final String? url; - @override - final MangaMeta? meta; - - @override - String toString() { - return 'Manga(artist: $artist, author: $author, description: $description, downloadCount: $downloadCount, chapterCount: $chapterCount, lastReadAt: $lastReadAt, lastChapterRead: $lastChapterRead, freshData: $freshData, genre: $genre, inLibrary: $inLibrary, id: $id, inLibraryAt: $inLibraryAt, initialized: $initialized, realUrl: $realUrl, source: $source, sourceId: $sourceId, status: $status, thumbnailUrl: $thumbnailUrl, thumbnailUrlLastFetched: $thumbnailUrlLastFetched, title: $title, unreadCount: $unreadCount, lastFetchedAt: $lastFetchedAt, chaptersLastFetchedAt: $chaptersLastFetchedAt, url: $url, meta: $meta)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$MangaImpl && - (identical(other.artist, artist) || other.artist == artist) && - (identical(other.author, author) || other.author == author) && - (identical(other.description, description) || - other.description == description) && - (identical(other.downloadCount, downloadCount) || - other.downloadCount == downloadCount) && - (identical(other.chapterCount, chapterCount) || - other.chapterCount == chapterCount) && - (identical(other.lastReadAt, lastReadAt) || - other.lastReadAt == lastReadAt) && - (identical(other.lastChapterRead, lastChapterRead) || - other.lastChapterRead == lastChapterRead) && - (identical(other.freshData, freshData) || - other.freshData == freshData) && - const DeepCollectionEquality().equals(other._genre, _genre) && - (identical(other.inLibrary, inLibrary) || - other.inLibrary == inLibrary) && - (identical(other.id, id) || other.id == id) && - (identical(other.inLibraryAt, inLibraryAt) || - other.inLibraryAt == inLibraryAt) && - (identical(other.initialized, initialized) || - other.initialized == initialized) && - (identical(other.realUrl, realUrl) || other.realUrl == realUrl) && - (identical(other.source, source) || other.source == source) && - (identical(other.sourceId, sourceId) || - other.sourceId == sourceId) && - (identical(other.status, status) || other.status == status) && - (identical(other.thumbnailUrl, thumbnailUrl) || - other.thumbnailUrl == thumbnailUrl) && - (identical( - other.thumbnailUrlLastFetched, thumbnailUrlLastFetched) || - other.thumbnailUrlLastFetched == thumbnailUrlLastFetched) && - (identical(other.title, title) || other.title == title) && - (identical(other.unreadCount, unreadCount) || - other.unreadCount == unreadCount) && - (identical(other.lastFetchedAt, lastFetchedAt) || - other.lastFetchedAt == lastFetchedAt) && - (identical(other.chaptersLastFetchedAt, chaptersLastFetchedAt) || - other.chaptersLastFetchedAt == chaptersLastFetchedAt) && - (identical(other.url, url) || other.url == url) && - (identical(other.meta, meta) || other.meta == meta)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hashAll([ - runtimeType, - artist, - author, - description, - downloadCount, - chapterCount, - lastReadAt, - lastChapterRead, - freshData, - const DeepCollectionEquality().hash(_genre), - inLibrary, - id, - inLibraryAt, - initialized, - realUrl, - source, - sourceId, - status, - thumbnailUrl, - thumbnailUrlLastFetched, - title, - unreadCount, - lastFetchedAt, - chaptersLastFetchedAt, - url, - meta - ]); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$MangaImplCopyWith<_$MangaImpl> get copyWith => - __$$MangaImplCopyWithImpl<_$MangaImpl>(this, _$identity); - - @override - Map toJson() { - return _$$MangaImplToJson( - this, - ); - } -} - -abstract class _Manga extends Manga { - factory _Manga( - {final String? artist, - final String? author, - final String? description, - final int? downloadCount, - final int? chapterCount, - final int? lastReadAt, - final Chapter? lastChapterRead, - final bool? freshData, - final List? genre, - final bool? inLibrary, - final int? id, - final int? inLibraryAt, - final bool? initialized, - final String? realUrl, - final Source? source, - final String? sourceId, - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - final MangaStatus? status, - final String? thumbnailUrl, - final int? thumbnailUrlLastFetched, - final String? title, - final int? unreadCount, - final int? lastFetchedAt, - final int? chaptersLastFetchedAt, - final String? url, - final MangaMeta? meta}) = _$MangaImpl; - _Manga._() : super._(); - - factory _Manga.fromJson(Map json) = _$MangaImpl.fromJson; - - @override - String? get artist; - @override - String? get author; - @override - String? get description; - @override - int? get downloadCount; - @override - int? get chapterCount; - @override - int? get lastReadAt; - @override - Chapter? get lastChapterRead; - @override - bool? get freshData; - @override - List? get genre; - @override - bool? get inLibrary; - @override - int? get id; - @override - int? get inLibraryAt; - @override - bool? get initialized; - @override - String? get realUrl; - @override - Source? get source; - @override - String? get sourceId; - @override - @JsonKey(fromJson: MangaStatus.fromJson, toJson: MangaStatus.toJson) - MangaStatus? get status; - @override - String? get thumbnailUrl; - @override - int? get thumbnailUrlLastFetched; - @override - String? get title; - @override - int? get unreadCount; - @override - int? get lastFetchedAt; - @override - int? get chaptersLastFetchedAt; - @override - String? get url; - @override - MangaMeta? get meta; - @override - @JsonKey(ignore: true) - _$$MangaImplCopyWith<_$MangaImpl> get copyWith => - throw _privateConstructorUsedError; -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); MangaMeta _$MangaMetaFromJson(Map json) { return _MangaMeta.fromJson(json); @@ -761,8 +37,12 @@ mixin _$MangaMeta { @JsonKey(name: "flutter_scanlator") String? get scanlator => throw _privateConstructorUsedError; + /// Serializes this MangaMeta to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of MangaMeta + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $MangaMetaCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -800,6 +80,8 @@ class _$MangaMetaCopyWithImpl<$Res, $Val extends MangaMeta> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of MangaMeta + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -873,6 +155,8 @@ class __$$MangaMetaImplCopyWithImpl<$Res> _$MangaMetaImpl _value, $Res Function(_$MangaMetaImpl) _then) : super(_value, _then); + /// Create a copy of MangaMeta + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -981,7 +265,7 @@ class _$MangaMetaImpl implements _MangaMeta { other.scanlator == scanlator)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -992,7 +276,9 @@ class _$MangaMetaImpl implements _MangaMeta { readerMagnifierSize, scanlator); - @JsonKey(ignore: true) + /// Create a copy of MangaMeta + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MangaMetaImplCopyWith<_$MangaMetaImpl> get copyWith => @@ -1049,8 +335,11 @@ abstract class _MangaMeta implements MangaMeta { @override @JsonKey(name: "flutter_scanlator") String? get scanlator; + + /// Create a copy of MangaMeta + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$MangaMetaImplCopyWith<_$MangaMetaImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/manga_book/domain/manga/manga_model.g.dart b/lib/src/features/manga_book/domain/manga/manga_model.g.dart index 3be9d6e1..00f54340 100644 --- a/lib/src/features/manga_book/domain/manga/manga_model.g.dart +++ b/lib/src/features/manga_book/domain/manga/manga_model.g.dart @@ -6,70 +6,6 @@ part of 'manga_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_$MangaImpl _$$MangaImplFromJson(Map json) => _$MangaImpl( - artist: json['artist'] as String?, - author: json['author'] as String?, - description: json['description'] as String?, - downloadCount: json['downloadCount'] as int?, - chapterCount: json['chapterCount'] as int?, - lastReadAt: json['lastReadAt'] as int?, - lastChapterRead: json['lastChapterRead'] == null - ? null - : Chapter.fromJson(json['lastChapterRead'] as Map), - freshData: json['freshData'] as bool?, - genre: - (json['genre'] as List?)?.map((e) => e as String).toList(), - inLibrary: json['inLibrary'] as bool?, - id: json['id'] as int?, - inLibraryAt: json['inLibraryAt'] as int?, - initialized: json['initialized'] as bool?, - realUrl: json['realUrl'] as String?, - source: json['source'] == null - ? null - : Source.fromJson(json['source'] as Map), - sourceId: json['sourceId'] as String?, - status: MangaStatus.fromJson(json['status'] as String), - thumbnailUrl: json['thumbnailUrl'] as String?, - thumbnailUrlLastFetched: json['thumbnailUrlLastFetched'] as int?, - title: json['title'] as String?, - unreadCount: json['unreadCount'] as int?, - lastFetchedAt: json['lastFetchedAt'] as int?, - chaptersLastFetchedAt: json['chaptersLastFetchedAt'] as int?, - url: json['url'] as String?, - meta: json['meta'] == null - ? null - : MangaMeta.fromJson(json['meta'] as Map), - ); - -Map _$$MangaImplToJson(_$MangaImpl instance) => - { - 'artist': instance.artist, - 'author': instance.author, - 'description': instance.description, - 'downloadCount': instance.downloadCount, - 'chapterCount': instance.chapterCount, - 'lastReadAt': instance.lastReadAt, - 'lastChapterRead': instance.lastChapterRead?.toJson(), - 'freshData': instance.freshData, - 'genre': instance.genre, - 'inLibrary': instance.inLibrary, - 'id': instance.id, - 'inLibraryAt': instance.inLibraryAt, - 'initialized': instance.initialized, - 'realUrl': instance.realUrl, - 'source': instance.source?.toJson(), - 'sourceId': instance.sourceId, - 'status': MangaStatus.toJson(instance.status), - 'thumbnailUrl': instance.thumbnailUrl, - 'thumbnailUrlLastFetched': instance.thumbnailUrlLastFetched, - 'title': instance.title, - 'unreadCount': instance.unreadCount, - 'lastFetchedAt': instance.lastFetchedAt, - 'chaptersLastFetchedAt': instance.chaptersLastFetchedAt, - 'url': instance.url, - 'meta': instance.meta?.toJson(), - }; - _$MangaMetaImpl _$$MangaMetaImplFromJson(Map json) => _$MangaMetaImpl( invertTap: MangaMeta.fromJsonToBool( diff --git a/lib/src/features/manga_book/domain/update_status/update_status_model.dart b/lib/src/features/manga_book/domain/update_status/update_status_model.dart index bb6bc02f..9f5bbaba 100644 --- a/lib/src/features/manga_book/domain/update_status/update_status_model.dart +++ b/lib/src/features/manga_book/domain/update_status/update_status_model.dart @@ -10,7 +10,6 @@ import '../../../../utils/extensions/custom_extensions.dart'; import '../manga/manga_model.dart'; part 'update_status_model.freezed.dart'; -part 'update_status_model.g.dart'; @freezed class UpdateStatus with _$UpdateStatus { @@ -36,7 +35,4 @@ class UpdateStatus with _$UpdateStatus { bool get isUpdateChecking => (total).isGreaterThan(0) && !(isUpdateCheckCompleted); - - factory UpdateStatus.fromJson(Map json) => - _$UpdateStatusFromJson(json); } diff --git a/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart b/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart index 6146b542..92b59617 100644 --- a/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart +++ b/lib/src/features/manga_book/domain/update_status/update_status_model.freezed.dart @@ -12,11 +12,7 @@ part of 'update_status_model.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -UpdateStatus _$UpdateStatusFromJson(Map json) { - return _UpdateStatus.fromJson(json); -} + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$UpdateStatus { @@ -29,8 +25,9 @@ mixin _$UpdateStatus { @JsonKey(name: "FAILED") List? get failed => throw _privateConstructorUsedError; - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + /// Create a copy of UpdateStatus + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $UpdateStatusCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -58,6 +55,8 @@ class _$UpdateStatusCopyWithImpl<$Res, $Val extends UpdateStatus> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of UpdateStatus + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -110,6 +109,8 @@ class __$$UpdateStatusImplCopyWithImpl<$Res> _$UpdateStatusImpl _value, $Res Function(_$UpdateStatusImpl) _then) : super(_value, _then); + /// Create a copy of UpdateStatus + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -140,7 +141,7 @@ class __$$UpdateStatusImplCopyWithImpl<$Res> } /// @nodoc -@JsonSerializable() + class _$UpdateStatusImpl extends _UpdateStatus { _$UpdateStatusImpl( {@JsonKey(name: "PENDING") final List? pending, @@ -153,9 +154,6 @@ class _$UpdateStatusImpl extends _UpdateStatus { _failed = failed, super._(); - factory _$UpdateStatusImpl.fromJson(Map json) => - _$$UpdateStatusImplFromJson(json); - final List? _pending; @override @JsonKey(name: "PENDING") @@ -217,7 +215,6 @@ class _$UpdateStatusImpl extends _UpdateStatus { const DeepCollectionEquality().equals(other._failed, _failed)); } - @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, @@ -226,18 +223,13 @@ class _$UpdateStatusImpl extends _UpdateStatus { const DeepCollectionEquality().hash(_completed), const DeepCollectionEquality().hash(_failed)); - @JsonKey(ignore: true) + /// Create a copy of UpdateStatus + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UpdateStatusImplCopyWith<_$UpdateStatusImpl> get copyWith => __$$UpdateStatusImplCopyWithImpl<_$UpdateStatusImpl>(this, _$identity); - - @override - Map toJson() { - return _$$UpdateStatusImplToJson( - this, - ); - } } abstract class _UpdateStatus extends UpdateStatus { @@ -248,9 +240,6 @@ abstract class _UpdateStatus extends UpdateStatus { @JsonKey(name: "FAILED") final List? failed}) = _$UpdateStatusImpl; _UpdateStatus._() : super._(); - factory _UpdateStatus.fromJson(Map json) = - _$UpdateStatusImpl.fromJson; - @override @JsonKey(name: "PENDING") List? get pending; @@ -263,8 +252,11 @@ abstract class _UpdateStatus extends UpdateStatus { @override @JsonKey(name: "FAILED") List? get failed; + + /// Create a copy of UpdateStatus + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$UpdateStatusImplCopyWith<_$UpdateStatusImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/features/manga_book/domain/update_status/update_status_model.g.dart b/lib/src/features/manga_book/domain/update_status/update_status_model.g.dart deleted file mode 100644 index a6b2ff64..00000000 --- a/lib/src/features/manga_book/domain/update_status/update_status_model.g.dart +++ /dev/null @@ -1,31 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'update_status_model.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$UpdateStatusImpl _$$UpdateStatusImplFromJson(Map json) => - _$UpdateStatusImpl( - pending: (json['PENDING'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - running: (json['RUNNING'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - completed: (json['COMPLETE'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - failed: (json['FAILED'] as List?) - ?.map((e) => Manga.fromJson(e as Map)) - .toList(), - ); - -Map _$$UpdateStatusImplToJson(_$UpdateStatusImpl instance) => - { - 'PENDING': instance.pending?.map((e) => e.toJson()).toList(), - 'RUNNING': instance.running?.map((e) => e.toJson()).toList(), - 'COMPLETE': instance.completed?.map((e) => e.toJson()).toList(), - 'FAILED': instance.failed?.map((e) => e.toJson()).toList(), - }; diff --git a/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart b/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart index c91b146b..1c316453 100644 --- a/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart +++ b/lib/src/features/manga_book/presentation/downloads/downloads_screen.dart @@ -20,13 +20,13 @@ class DownloadsScreen extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); final downloadsChapterIds = ref.watch(downloadsChapterIdsProvider); final downloadsGlobalStatus = ref.watch(downloadsStatusProvider); final showDownloadsFAB = ref.watch(showDownloadsFABProvider); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.downloads), + title: Text(context.l10n.downloads), actions: [ if ((downloadsChapterIds).isNotBlank) IconButton( @@ -44,9 +44,9 @@ class DownloadsScreen extends ConsumerWidget { context, (data) { if (data == null) { - return Emoticons(text: context.l10n!.errorSomethingWentWrong); + return Emoticons(title: context.l10n.errorSomethingWentWrong); } else if (downloadsChapterIds.isBlank) { - return Emoticons(text: context.l10n!.noDownloads); + return Emoticons(title: context.l10n.noDownloads); } else { final downloadsCount = (downloadsChapterIds.length).getValueOnNullOrNegative(); diff --git a/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart b/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart index bd85e334..32907fc9 100644 --- a/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart +++ b/lib/src/features/manga_book/presentation/downloads/widgets/download_progress_list_tile.dart @@ -9,7 +9,6 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/misc/toast/toast.dart'; @@ -25,12 +24,12 @@ class DownloadProgressListTile extends HookConsumerWidget { required this.downloadsCount, }); final int chapterId; - final Toast toast; + final Toast? toast; final int index; final int downloadsCount; Future toggleChapterToQueue( - Toast toast, + Toast? toast, WidgetRef ref, bool addToDownload, int mangaId, @@ -168,18 +167,18 @@ class DownloadProgressListTile extends HookConsumerWidget { itemBuilder: (context) => [ if (download.state == "Error") PopupMenuItem( - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), onTap: () => toggleChapterToQueue(toast, ref, true, download.mangaId!, download.chapterIndex!), ), PopupMenuItem( - child: Text(context.l10n!.delete), + child: Text(context.l10n.delete), onTap: () => toggleChapterToQueue(toast, ref, false, download.mangaId!, download.chapterIndex!), ), if (!index.isZero) PopupMenuItem( - child: Text(context.l10n!.moveToTop), + child: Text(context.l10n.moveToTop), onTap: () => ref.read(downloadsRepositoryProvider).reorderDownload( download.mangaId!, @@ -189,7 +188,7 @@ class DownloadProgressListTile extends HookConsumerWidget { ), if (index < downloadsCount - 1) PopupMenuItem( - child: Text(context.l10n!.moveToBottom), + child: Text(context.l10n.moveToBottom), onTap: () => ref.read(downloadsRepositoryProvider).reorderDownload( download.mangaId!, diff --git a/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart b/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart index 14da638b..663117c7 100644 --- a/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart +++ b/lib/src/features/manga_book/presentation/downloads/widgets/downloads_fab.dart @@ -16,7 +16,7 @@ class DownloadsFab extends ConsumerWidget { final String status; @override Widget build(BuildContext context, WidgetRef ref) { - final toast = ref.watch(toastProvider(context)); + final toast = ref.watch(toastProvider); if (status == "Stopped" || status == "Error") { return FloatingActionButton.extended( onPressed: () async { @@ -24,9 +24,9 @@ class DownloadsFab extends ConsumerWidget { ref.read(downloadsRepositoryProvider).startDownloads)) .showToastOnError(toast); }, - label: Text(context.l10n!.resume), + label: Text(context.l10n.resume), isExtended: context.isTablet, - icon: const Icon(Icons.play_arrow), + icon: const Icon(Icons.play_arrow_rounded), ); } else { return FloatingActionButton.extended( @@ -35,7 +35,7 @@ class DownloadsFab extends ConsumerWidget { ref.read(downloadsRepositoryProvider).stopDownloads)) .showToastOnError(toast); }, - label: Text(context.l10n!.pause), + label: Text(context.l10n.pause), isExtended: context.isTablet, icon: const Icon(Icons.pause_rounded), ); diff --git a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart index 48bbe4d9..03f70dc8 100644 --- a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart +++ b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.dart @@ -5,6 +5,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:dio/dio.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../constants/db_keys.dart'; @@ -95,8 +96,7 @@ class MangaChapterList extends _$MangaChapterList { } @riverpod -Set mangaScanlatorList(MangaScanlatorListRef ref, - {required int mangaId}) { +Set mangaScanlatorList(Ref ref, {required int mangaId}) { final chapterList = ref.watch(mangaChapterListProvider(mangaId: mangaId)); final scanlatorList = {}; chapterList.whenData((data) { @@ -115,7 +115,7 @@ class MangaChapterFilterScanlator extends _$MangaChapterFilterScanlator { @override String build({required int mangaId}) { final manga = ref.watch(mangaWithIdProvider(mangaId: mangaId)); - return manga.valueOrNull?.meta?.scanlator ?? MangaMetaKeys.scanlator.key; + return manga.valueOrNull?.metaData.scanlator ?? MangaMetaKeys.scanlator.key; } void update(String? scanlator) async { @@ -133,7 +133,7 @@ class MangaChapterFilterScanlator extends _$MangaChapterFilterScanlator { @riverpod AsyncValue?> mangaChapterListWithFilter( - MangaChapterListWithFilterRef ref, { + Ref ref, { required int mangaId, }) { final chapterList = ref.watch(mangaChapterListProvider(mangaId: mangaId)); @@ -151,17 +151,17 @@ AsyncValue?> mangaChapterListWithFilter( bool applyChapterFilter(Chapter chapter) { if (chapterFilterUnread != null && - (chapterFilterUnread ^ !(chapter.read.ifNull()))) { + (chapterFilterUnread ^ !(chapter.isRead.ifNull()))) { return false; } if (chapterFilterDownloaded != null && - (chapterFilterDownloaded ^ (chapter.downloaded.ifNull()))) { + (chapterFilterDownloaded ^ (chapter.isDownloaded.ifNull()))) { return false; } if (chapterFilterBookmark != null && - (chapterFilterBookmark ^ (chapter.bookmarked.ifNull()))) { + (chapterFilterBookmark ^ (chapter.isBookmarked.ifNull()))) { return false; } @@ -175,11 +175,11 @@ AsyncValue?> mangaChapterListWithFilter( int applyChapterSort(Chapter m1, Chapter m2) { final sortDirToggle = (sortedDirection ? 1 : -1); return (switch (sortedBy) { - ChapterSort.fetchedDate => - (m1.fetchedAt ?? 0).compareTo(m2.fetchedAt ?? 0), - ChapterSort.source => (m1.index ?? 0).compareTo(m2.index ?? 0), - ChapterSort.uploadDate => - (m1.uploadDate ?? 0).compareTo(m2.uploadDate ?? 0), + ChapterSort.fetchedDate => (int.tryParse(m1.fetchedAt.value) ?? 0) + .compareTo(int.tryParse(m2.fetchedAt.value) ?? 0), + ChapterSort.source => (m1.index).compareTo(m2.index), + ChapterSort.uploadDate => (int.tryParse(m1.uploadDate.value) ?? 0) + .compareTo(int.tryParse(m2.uploadDate.value) ?? 0), }) * sortDirToggle; } @@ -191,7 +191,7 @@ AsyncValue?> mangaChapterListWithFilter( @riverpod Chapter? firstUnreadInFilteredChapterList( - FirstUnreadInFilteredChapterListRef ref, { + Ref ref, { required int mangaId, }) { final isAscSorted = ref.watch(mangaChapterSortDirectionProvider) ?? @@ -204,17 +204,17 @@ Chapter? firstUnreadInFilteredChapterList( } else { if (isAscSorted) { return filteredList - .firstWhereOrNull((element) => !element.read.ifNull(true)); + .firstWhereOrNull((element) => !element.isRead.ifNull(true)); } else { return filteredList - .lastWhereOrNull((element) => !element.read.ifNull(true)); + .lastWhereOrNull((element) => !element.isRead.ifNull(true)); } } } @riverpod ({Chapter? first, Chapter? second})? getNextAndPreviousChapters( - GetNextAndPreviousChaptersRef ref, { + Ref ref, { required int mangaId, required String chapterIndex, bool shouldAscSort = true, @@ -287,7 +287,7 @@ class MangaCategoryList extends _$MangaCategoryList { .watch(mangaBookRepositoryProvider) .getMangaCategoryList(mangaId: mangaId); return { - for (Category i in (result ?? [])) "${i.id ?? ''}": i, + for (Category i in (result ?? [])) "${i.id}": i, }; } @@ -296,7 +296,7 @@ class MangaCategoryList extends _$MangaCategoryList { .watch(mangaBookRepositoryProvider) .getMangaCategoryList(mangaId: mangaId)); state = result.copyWithData((data) => { - for (Category i in (data ?? [])) "${i.id ?? ''}": i, + for (Category i in (data ?? [])) "${i.id}": i, }); } } diff --git a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart index c1856ea0..de294230 100644 --- a/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart +++ b/lib/src/features/manga_book/presentation/manga_details/controller/manga_details_controller.g.dart @@ -7,7 +7,7 @@ part of 'manga_details_controller.dart'; // ************************************************************************** String _$mangaScanlatorListHash() => - r'de9a418bc7324f26283f6409bff10dff5b8c676d'; + r'aa65884a0f8c44453afeffc4d13548e264a0fb40'; /// Copied from Dart SDK class _SystemHash { @@ -143,6 +143,8 @@ class MangaScanlatorListProvider extends AutoDisposeProvider> { } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin MangaScanlatorListRef on AutoDisposeProviderRef> { /// The parameter `mangaId` of this provider. int get mangaId; @@ -157,7 +159,7 @@ class _MangaScanlatorListProviderElement } String _$mangaChapterListWithFilterHash() => - r'd8e95ee63920e7ee5acf15deda7b9d795ca452c9'; + r'8517b5f2aab0c77ed4c291317e2e48acf8712b9c'; /// See also [mangaChapterListWithFilter]. @ProviderFor(mangaChapterListWithFilter) @@ -276,6 +278,8 @@ class MangaChapterListWithFilterProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin MangaChapterListWithFilterRef on AutoDisposeProviderRef?>> { /// The parameter `mangaId` of this provider. @@ -292,7 +296,7 @@ class _MangaChapterListWithFilterProviderElement } String _$firstUnreadInFilteredChapterListHash() => - r'ed13a5108da7bb4f9224899075348531da8a118e'; + r'51255baa2ec913d6403ecc04af473c4b316f05ea'; /// See also [firstUnreadInFilteredChapterList]. @ProviderFor(firstUnreadInFilteredChapterList) @@ -410,6 +414,8 @@ class FirstUnreadInFilteredChapterListProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin FirstUnreadInFilteredChapterListRef on AutoDisposeProviderRef { /// The parameter `mangaId` of this provider. int get mangaId; @@ -426,7 +432,7 @@ class _FirstUnreadInFilteredChapterListProviderElement } String _$getNextAndPreviousChaptersHash() => - r'c4de0562e24cb2b3a6ead00889b2c5325d8cf7b5'; + r'06835d382e1349f2ca053721478c48fe7ae7dbc4'; /// See also [getNextAndPreviousChapters]. @ProviderFor(getNextAndPreviousChapters) @@ -569,6 +575,8 @@ class GetNextAndPreviousChaptersProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin GetNextAndPreviousChaptersRef on AutoDisposeProviderRef<({Chapter? first, Chapter? second})?> { /// The parameter `mangaId` of this provider. @@ -724,6 +732,8 @@ class MangaWithIdProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin MangaWithIdRef on AutoDisposeAsyncNotifierProviderRef { /// The parameter `mangaId` of this provider. int get mangaId; @@ -868,6 +878,8 @@ class MangaChapterListProvider extends AutoDisposeAsyncNotifierProviderImpl< } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin MangaChapterListRef on AutoDisposeAsyncNotifierProviderRef?> { /// The parameter `mangaId` of this provider. @@ -884,7 +896,7 @@ class _MangaChapterListProviderElement } String _$mangaChapterFilterScanlatorHash() => - r'4d6da76af3cbbf033f1ca5fb04ea6eb7798c5820'; + r'1e9cc2f48459bce949610737e71ad921f2d9aece'; abstract class _$MangaChapterFilterScanlator extends BuildlessAutoDisposeNotifier { @@ -1016,6 +1028,8 @@ class MangaChapterFilterScanlatorProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin MangaChapterFilterScanlatorRef on AutoDisposeNotifierProviderRef { /// The parameter `mangaId` of this provider. int get mangaId; @@ -1114,7 +1128,7 @@ final mangaChapterFilterBookmarkedProvider = ); typedef _$MangaChapterFilterBookmarked = AutoDisposeNotifier; -String _$mangaCategoryListHash() => r'3fec3a544adc138ec7fbc98ad216e1b7399d0983'; +String _$mangaCategoryListHash() => r'05985e2dadc47610c47a1e095477346d94d696fb'; abstract class _$MangaCategoryList extends BuildlessAutoDisposeAsyncNotifier?> { @@ -1245,6 +1259,8 @@ class MangaCategoryListProvider extends AutoDisposeAsyncNotifierProviderImpl< } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin MangaCategoryListRef on AutoDisposeAsyncNotifierProviderRef?> { /// The parameter `mangaId` of this provider. @@ -1260,4 +1276,4 @@ class _MangaCategoryListProviderElement int get mangaId => (origin as MangaCategoryListProvider).mangaId; } // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart b/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart index 7c0b1479..e782b606 100644 --- a/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart +++ b/lib/src/features/manga_book/presentation/manga_details/manga_details_screen.dart @@ -58,8 +58,8 @@ class MangaDetailsScreen extends HookConsumerWidget { final refresh = useCallback(([onlineFetch = false]) async { if (context.mounted && onlineFetch) { - ref.read(toastProvider(context)).show( - context.l10n!.updating, + ref.read(toastProvider)?.show( + context.l10n.updating, withMicrotask: true, ); } @@ -67,12 +67,12 @@ class MangaDetailsScreen extends HookConsumerWidget { await chapterListRefresh(onlineFetch); if (context.mounted && onlineFetch) { if (manga.hasError) { - ref.read(toastProvider(context)).showError( - context.l10n!.errorSomethingWentWrong, + ref.read(toastProvider)?.showError( + context.l10n.errorSomethingWentWrong, ); } else { - ref.read(toastProvider(context)).show( - context.l10n!.updateCompleted, + ref.read(toastProvider)?.show( + context.l10n.updateCompleted, withMicrotask: true, ); } @@ -85,7 +85,7 @@ class MangaDetailsScreen extends HookConsumerWidget { }, []); return PopScope( - onPopInvoked: (didPop) async { + onPopInvokedWithResult: (didPop, _) async { if (didPop && categoryId != null) { ref.invalidate(categoryMangaListProvider(categoryId!)); } @@ -100,7 +100,7 @@ class MangaDetailsScreen extends HookConsumerWidget { icon: const Icon(Icons.close_rounded), ), title: Text( - context.l10n!.numSelected(selectedChapters.value.length), + context.l10n.numSelected(selectedChapters.value.length), ), actions: [ IconButton( @@ -108,10 +108,8 @@ class MangaDetailsScreen extends HookConsumerWidget { final chapterList = [ ...?filteredChapterList.valueOrNull ]; - selectedChapters.value = ({ - for (Chapter i in chapterList) - if (i.id != null) i.id!: i - }); + selectedChapters.value = + ({for (Chapter i in chapterList) i.id: i}); }, icon: const Icon(Icons.select_all_rounded), ), @@ -122,9 +120,8 @@ class MangaDetailsScreen extends HookConsumerWidget { ]; selectedChapters.value = ({ for (Chapter i in chapterList) - if (i.id != null && - !selectedChapters.value.containsKey(i.id)) - i.id!: i + if (!selectedChapters.value.containsKey(i.id)) + i.id: i }); }, icon: const Icon(Icons.flip_to_back_rounded), @@ -136,7 +133,7 @@ class MangaDetailsScreen extends HookConsumerWidget { ], ) : AppBar( - title: Text(data?.title ?? context.l10n!.manga), + title: Text(data?.title ?? context.l10n.manga), actions: [ if (context.isTablet) ...[ IconButton( @@ -181,17 +178,20 @@ class MangaDetailsScreen extends HookConsumerWidget { itemBuilder: (context) => [ PopupMenuItem( onTap: () => Future.microtask( - () => showDialog( - context: context, - builder: (context) => - EditMangaCategoryDialog(mangaId: mangaId), - ), + () { + if (!context.mounted) return null; + return showDialog( + context: context, + builder: (context) => + EditMangaCategoryDialog(mangaId: mangaId), + ); + }, ), - child: Text(context.l10n!.editCategory), + child: Text(context.l10n.editCategory), ), PopupMenuItem( onTap: () => refresh(true), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ], ) @@ -213,15 +213,15 @@ class MangaDetailsScreen extends HookConsumerWidget { ? FloatingActionButton.extended( isExtended: context.isTablet, label: Text( - data?.lastChapterRead?.index != null - ? context.l10n!.resume - : context.l10n!.start, + data?.lastReadChapter?.index != null + ? context.l10n.resume + : context.l10n.start, ), icon: const Icon(Icons.play_arrow_rounded), onPressed: () { ReaderRoute( - mangaId: firstUnreadChapter.mangaId ?? mangaId, - chapterIndex: firstUnreadChapter.index ?? 0, + mangaId: firstUnreadChapter.mangaId, + chapterIndex: firstUnreadChapter.index, showReaderLayoutAnimation: true, ).push(context); }, @@ -248,17 +248,17 @@ class MangaDetailsScreen extends HookConsumerWidget { selectedChapters: selectedChapters, ) : Emoticons( - text: context.l10n!.noMangaFound, + title: context.l10n.noMangaFound, button: TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), ), refresh: refresh, wrapper: (body) => Scaffold( appBar: AppBar( - title: Text(context.l10n!.manga), + title: Text(context.l10n.manga), ), body: body, ), @@ -295,11 +295,10 @@ class MultiSelectPopupButton extends StatelessWidget { selectedChapters.value = ({ ...selectedChapters.value, for (int i = lastIndex + 1; i < maxIndex; i++) - if (chapterList[i].id != null) - chapterList[i].id!: chapterList[i] + chapterList[i].id: chapterList[i] }); }, - child: Text(context.l10n!.selectNext10), + child: Text(context.l10n.selectNext10), ), PopupMenuItem( onTap: () { @@ -307,10 +306,10 @@ class MultiSelectPopupButton extends StatelessWidget { selectedChapters.value = ({ for (Chapter i in chapterList) - if (i.id != null && !i.read.ifNull()) i.id!: i + if (!i.isRead.ifNull()) i.id: i }); }, - child: Text(context.l10n!.selectUnread), + child: Text(context.l10n.selectUnread), ), PopupMenuItem( onTap: () { @@ -326,11 +325,10 @@ class MultiSelectPopupButton extends StatelessWidget { selectedChapters.value = ({ for (int i = firstIndex; i <= lastIndex; i++) - if (chapterList[i].id != null) - chapterList[i].id!: chapterList[i] + chapterList[i].id: chapterList[i] }); }, - child: Text(context.l10n!.selectInBetween), + child: Text(context.l10n.selectInBetween), ), ], ); diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart index 7b06c310..1242a16e 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/big_screen_manga_details.dart @@ -65,7 +65,7 @@ class BigScreenMangaDetails extends ConsumerWidget { return Column( children: [ ListTile( - title: Text(context.l10n!.noOfChapters( + title: Text(context.l10n.noOfChapters( filteredChapterList?.length ?? 0, )), ), @@ -90,7 +90,7 @@ class BigScreenMangaDetails extends ConsumerWidget { toggleSelect: (Chapter val) { if ((val.id).isNull) return; selectedChapters.value = selectedChapters.value - .toggleKey(val.id!, val); + .toggleKey(val.id, val); }, ); }, @@ -101,10 +101,10 @@ class BigScreenMangaDetails extends ConsumerWidget { ); } else { return Emoticons( - text: context.l10n!.noChaptersFound, + title: context.l10n.noChaptersFound, button: TextButton( onPressed: () => onListRefresh(true), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ); } diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart index 677e9457..abe3f8c4 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/chapter_list_tile.dart @@ -39,62 +39,59 @@ class ChapterListTile extends StatelessWidget { title: Row( mainAxisSize: MainAxisSize.min, children: [ - if (chapter.bookmarked.ifNull()) ...[ + if (chapter.isBookmarked.ifNull()) ...[ Icon( - Icons.bookmark, - color: chapter.read.ifNull() ? Colors.grey : context.iconColor, + Icons.bookmark_rounded, + color: + chapter.isRead.ifNull() ? Colors.grey : context.iconColor, size: 20, ), const Gap(4), ], Expanded( child: Text( - chapter.getDisplayName(context), + chapter.name, style: TextStyle( - color: chapter.read.ifNull() ? Colors.grey : null, + color: chapter.isRead.ifNull() ? Colors.grey : null, ), overflow: TextOverflow.ellipsis, ), ), ], ), - subtitle: chapter.uploadDate != null - ? Row( - children: [ - Text( - chapter.uploadDate!.toDaysAgo(context), - style: TextStyle( - color: chapter.read.ifNull() ? Colors.grey : null, - ), + subtitle: Row( + children: [ + Text( + int.tryParse(chapter.uploadDate.value).toDaysAgo(context), + style: TextStyle( + color: chapter.isRead.ifNull() ? Colors.grey : null, + ), + ), + if (!chapter.isRead.ifNull() && + (chapter.lastPageRead).getValueOnNullOrNegative() != 0) + Text( + " • ${context.l10n.page(chapter.lastPageRead.getValueOnNullOrNegative() + 1)}", + style: const TextStyle(color: Colors.grey), + overflow: TextOverflow.ellipsis, + ), + if (chapter.scanlator.isNotBlank) + Expanded( + child: Text( + " • ${chapter.scanlator}", + style: TextStyle( + color: chapter.isRead.ifNull() ? Colors.grey : null, ), - if (!chapter.read.ifNull() && - (chapter.lastPageRead).getValueOnNullOrNegative() != 0) - Text( - " • ${context.l10n!.page(chapter.lastPageRead.getValueOnNullOrNegative() + 1)}", - style: const TextStyle(color: Colors.grey), - overflow: TextOverflow.ellipsis, - ), - if (chapter.scanlator.isNotBlank) - Expanded( - child: Text( - " • ${chapter.scanlator}", - style: TextStyle( - color: chapter.read.ifNull() ? Colors.grey : null, - ), - overflow: TextOverflow.ellipsis, - ), - ), - ], - ) - : null, - trailing: (chapter.index != null && manga.id != null) - ? DownloadStatusIcon( - updateData: updateData, - chapter: chapter, - mangaId: manga.id!, - isDownloaded: chapter.downloaded.ifNull(), - ) - : null, + overflow: TextOverflow.ellipsis, + ), + ), + ], + ), + trailing: DownloadStatusIcon( + updateData: updateData, + chapter: chapter, + mangaId: manga.id, + isDownloaded: chapter.isDownloaded.ifNull(), + ), selectedColor: context.theme.colorScheme.onSurface, selectedTileColor: context.isDarkMode ? Colors.grey.shade700 : Colors.grey.shade300, @@ -102,8 +99,8 @@ class ChapterListTile extends StatelessWidget { onTap: canTapSelect ? () => toggleSelect(chapter) : () => ReaderRoute( - mangaId: manga.id!, - chapterIndex: chapter.index!, + mangaId: manga.id, + chapterIndex: chapter.index, showReaderLayoutAnimation: true, ).push(context), onLongPress: () => toggleSelect(chapter), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart index ddd82302..be7450c3 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/edit_manga_category_dialog.dart @@ -8,10 +8,9 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/async_buttons/async_checkbox_list_tile.dart'; -import '../../../../../widgets/pop_button.dart'; +import '../../../../../widgets/popup_widgets/pop_button.dart'; import '../../../../library/domain/category/category_model.dart'; import '../../../../library/presentation/category/controller/edit_category_controller.dart'; import '../../../data/manga_book_repository.dart'; @@ -34,7 +33,7 @@ class EditMangaCategoryDialog extends HookConsumerWidget { title: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text(context.l10n!.editCategory), + Text(context.l10n.editCategory), if (title.isNotBlank) Text( title!, @@ -44,53 +43,55 @@ class EditMangaCategoryDialog extends HookConsumerWidget { ], ), contentPadding: KEdgeInsets.h8v16.size, - actions: [PopButton(popText: context.l10n!.close)], + actions: [PopButton(popText: context.l10n.close)], content: categoryList.showUiWhenData( context, - (data) => ConstrainedBox( - constraints: BoxConstraints(maxHeight: context.height * .7), - child: data.isBlank || (data.isSingletonList && data!.first.id == 0) - ? Padding( - padding: KEdgeInsets.h16.size, - child: Text(context.l10n!.noCategoriesFoundAlt), - ) - : SingleChildScrollView( - child: mangaCategoryList.showUiWhenData( - context, - (selectedCategoryList) => Column( - children: [ - for (Category category in data!) - if (category.id != 0) - AsyncCheckboxListTile( - onChanged: (value) async { - await AsyncValue.guard( - () => value.ifNull() - ? ref - .read(mangaBookRepositoryProvider) - .addMangaToCategory( - mangaId, - "${category.id!}", - ) - : ref - .read(mangaBookRepositoryProvider) - .removeMangaFromCategory( - mangaId, - "${category.id!}", - ), - ); - await ref.read(provider.notifier).refresh(); - }, - value: selectedCategoryList?.containsKey( - "${category.id}", - ) ?? - false, - title: Text(category.name ?? ""), - ), - ], + (data) { + return ConstrainedBox( + constraints: BoxConstraints(maxHeight: context.height * .7), + child: data.isBlank || (data.isSingletonList && data!.first.id == 0) + ? Padding( + padding: KEdgeInsets.h16.size, + child: Text(context.l10n.noCategoriesFoundAlt), + ) + : SingleChildScrollView( + child: mangaCategoryList.showUiWhenData( + context, + (selectedCategoryList) => Column( + children: [ + for (Category category in data!) + if (category.id != 0) + AsyncCheckboxListTile( + onChanged: (value) async { + await AsyncValue.guard( + () => value.ifNull() + ? ref + .read(mangaBookRepositoryProvider) + .addMangaToCategory( + mangaId, + "${category.id}", + ) + : ref + .read(mangaBookRepositoryProvider) + .removeMangaFromCategory( + mangaId, + "${category.id}", + ), + ); + await ref.read(provider.notifier).refresh(); + }, + value: selectedCategoryList?.containsKey( + "${category.id}", + ) ?? + false, + title: Text(category.name), + ), + ], + ), ), ), - ), - ), + ); + }, ), ); } diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart index 5547cb40..029efbd5 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_filter.dart @@ -24,18 +24,18 @@ class MangaChapterFilter extends ConsumerWidget { return ListView( children: [ CustomCheckboxListTile( - title: context.l10n!.unread, + title: context.l10n.unread, provider: mangaChapterFilterUnreadProvider, onChanged: ref.read(mangaChapterFilterUnreadProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.bookmarked, + title: context.l10n.bookmarked, provider: mangaChapterFilterBookmarkedProvider, onChanged: ref.read(mangaChapterFilterBookmarkedProvider.notifier).update, ), CustomCheckboxListTile( - title: context.l10n!.downloaded, + title: context.l10n.downloaded, provider: mangaChapterFilterDownloadedProvider, onChanged: ref.read(mangaChapterFilterDownloadedProvider.notifier).update, @@ -43,13 +43,13 @@ class MangaChapterFilter extends ConsumerWidget { if (scanlatorList.isNotBlank && scanlatorList.length > 1) ...[ ListTile( title: Text( - context.l10n!.scanlators, + context.l10n.scanlators, style: context.textTheme.labelLarge, ), dense: true, ), RadioListTile( - title: Text(context.l10n!.allScanlators), + title: Text(context.l10n.allScanlators), value: MangaMetaKeys.scanlator.key, groupValue: selectedScanlator, onChanged: (val) => ref diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart index 406c3fba..5da32b53 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_chapter_organizer.dart @@ -20,8 +20,8 @@ class MangaChapterOrganizer extends StatelessWidget { child: Scaffold( appBar: TabBar( tabs: [ - Tab(text: context.l10n!.filter), - Tab(text: context.l10n!.sort), + Tab(text: context.l10n.filter), + Tab(text: context.l10n.sort), ], ), body: TabBarView( diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart index 9b454f4d..a989c031 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/manga_description.dart @@ -10,7 +10,6 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/launch_url_in_web.dart'; @@ -59,7 +58,7 @@ class MangaDescription extends HookConsumerWidget { await refresh(); }); if (context.mounted) { - val.showToastOnError(ref.read(toastProvider(context))); + val.showToastOnError(ref.read(toastProvider)); } }, isPrimary: manga.inLibrary.ifNull(), @@ -67,8 +66,8 @@ class MangaDescription extends HookConsumerWidget { secondaryIcon: const Icon(Icons.favorite_border_outlined), secondaryStyle: TextButton.styleFrom(foregroundColor: Colors.grey), - primaryLabel: Text(context.l10n!.inLibrary), - secondaryLabel: Text(context.l10n!.addToLibrary), + primaryLabel: Text(context.l10n.inLibrary), + secondaryLabel: Text(context.l10n.addToLibrary), ), if (manga.realUrl.isNotBlank) TextButton.icon( @@ -76,12 +75,12 @@ class MangaDescription extends HookConsumerWidget { launchUrlInWeb( context, (manga.realUrl ?? ""), - ref.read(toastProvider(context)), + ref.read(toastProvider), ); }, - icon: const Icon(Icons.public), + icon: const Icon(Icons.public_rounded), style: TextButton.styleFrom(foregroundColor: Colors.grey), - label: Text(context.l10n!.webView), + label: Text(context.l10n.webView), ), ], ), @@ -102,15 +101,16 @@ class MangaDescription extends HookConsumerWidget { decoration: BoxDecoration( boxShadow: [ BoxShadow( - color: context.theme.canvasColor.withOpacity(.7), + color: + context.theme.canvasColor.withValues(alpha: .7), ), ], gradient: LinearGradient( colors: [ - context.theme.canvasColor.withOpacity(0), - context.theme.canvasColor.withOpacity(.3), - context.theme.canvasColor.withOpacity(.5), - context.theme.canvasColor.withOpacity(.6), + context.theme.canvasColor.withValues(alpha: 0), + context.theme.canvasColor.withValues(alpha: .3), + context.theme.canvasColor.withValues(alpha: .5), + context.theme.canvasColor.withValues(alpha: .6), ], begin: Alignment.topCenter, end: Alignment.bottomCenter, @@ -137,7 +137,7 @@ class MangaDescription extends HookConsumerWidget { runSpacing: 8, // alignment: WrapAlignment.spaceBetween, children: [ - ...?manga.genre?.map( + ...manga.genre.map( (e) => Chip(label: Text(e)), ) ], @@ -150,7 +150,7 @@ class MangaDescription extends HookConsumerWidget { scrollDirection: Axis.horizontal, child: Row( children: [ - ...?manga.genre?.map( + ...manga.genre.map( (e) => Padding( padding: KEdgeInsets.h4.size, child: Chip(label: Text(e)), diff --git a/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart b/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart index 6d9477c4..e409ddd0 100644 --- a/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart +++ b/lib/src/features/manga_book/presentation/manga_details/widgets/small_screen_manga_details.dart @@ -59,7 +59,7 @@ class SmallScreenMangaDetails extends ConsumerWidget { SliverToBoxAdapter( child: ListTile( title: Text( - context.l10n!.noOfChapters(filteredChapterList?.length ?? 0), + context.l10n.noOfChapters(filteredChapterList?.length ?? 0), ), ), ), @@ -80,7 +80,7 @@ class SmallScreenMangaDetails extends ConsumerWidget { toggleSelect: (Chapter val) { if ((val.id).isNull) return; selectedChapters.value = - selectedChapters.value.toggleKey(val.id!, val); + selectedChapters.value.toggleKey(val.id, val); }, ), childCount: filteredChapterList!.length, @@ -89,10 +89,10 @@ class SmallScreenMangaDetails extends ConsumerWidget { } else { return SliverToBoxAdapter( child: Emoticons( - text: context.l10n!.noChaptersFound, + title: context.l10n.noChaptersFound, button: TextButton( onPressed: () => onDescriptionRefresh(true), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), ); diff --git a/lib/src/features/manga_book/presentation/manga_thumbnail_viewer/manga_thumbnail_viewer.dart b/lib/src/features/manga_book/presentation/manga_thumbnail_viewer/manga_thumbnail_viewer.dart index 26643eda..c24a7cda 100644 --- a/lib/src/features/manga_book/presentation/manga_thumbnail_viewer/manga_thumbnail_viewer.dart +++ b/lib/src/features/manga_book/presentation/manga_thumbnail_viewer/manga_thumbnail_viewer.dart @@ -29,7 +29,7 @@ class MangaThumbnailViewer extends StatelessWidget { filter: ImageFilter.blur(sigmaX: 3.0, sigmaY: 3.0), child: Container( decoration: BoxDecoration( - color: context.colorScheme.background.withOpacity(0.1), + color: context.colorScheme.surface.withValues(alpha: 0.1), ), child: InteractiveViewer( maxScale: 4, diff --git a/lib/src/features/manga_book/presentation/reader/controller/reader_controller.dart b/lib/src/features/manga_book/presentation/reader/controller/reader_controller.dart index 68ad5ff8..d24773f8 100644 --- a/lib/src/features/manga_book/presentation/reader/controller/reader_controller.dart +++ b/lib/src/features/manga_book/presentation/reader/controller/reader_controller.dart @@ -5,6 +5,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:dio/dio.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../data/manga_book_repository.dart'; @@ -14,7 +15,7 @@ part 'reader_controller.g.dart'; @riverpod FutureOr chapter( - ChapterRef ref, { + Ref ref, { required int mangaId, required int chapterIndex, }) async { diff --git a/lib/src/features/manga_book/presentation/reader/controller/reader_controller.g.dart b/lib/src/features/manga_book/presentation/reader/controller/reader_controller.g.dart index 86454b8d..3059abbf 100644 --- a/lib/src/features/manga_book/presentation/reader/controller/reader_controller.g.dart +++ b/lib/src/features/manga_book/presentation/reader/controller/reader_controller.g.dart @@ -6,7 +6,7 @@ part of 'reader_controller.dart'; // RiverpodGenerator // ************************************************************************** -String _$chapterHash() => r'8cdfda4725491b07f03c8b51a655b22090fca811'; +String _$chapterHash() => r'c03d4bb14e3916369e4c391e4deb83863365bd55'; /// Copied from Dart SDK class _SystemHash { @@ -153,6 +153,8 @@ class ChapterProvider extends AutoDisposeFutureProvider { } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin ChapterRef on AutoDisposeFutureProviderRef { /// The parameter `mangaId` of this provider. int get mangaId; @@ -171,4 +173,4 @@ class _ChapterProviderElement extends AutoDisposeFutureProviderElement int get chapterIndex => (origin as ChapterProvider).chapterIndex; } // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/manga_book/presentation/reader/reader_screen.dart b/lib/src/features/manga_book/presentation/reader/reader_screen.dart index 3ff1a554..917fb03c 100644 --- a/lib/src/features/manga_book/presentation/reader/reader_screen.dart +++ b/lib/src/features/manga_book/presentation/reader/reader_screen.dart @@ -16,6 +16,7 @@ import '../../../../utils/extensions/custom_extensions.dart'; import '../../../settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart'; import '../../data/manga_book_repository.dart'; import '../../domain/chapter_patch/chapter_put_model.dart'; +import '../../domain/manga/manga_model.dart'; import '../manga_details/controller/manga_details_controller.dart'; import 'controller/reader_controller.dart'; import 'widgets/reader_mode/continuous_reader_mode.dart'; @@ -45,7 +46,7 @@ class ReaderScreen extends HookConsumerWidget { final updateLastRead = useCallback((int currentPage) async { final chapterValue = chapter.valueOrNull; final isReadingCompeted = chapterValue != null && - ((chapterValue.read).ifNull() || + ((chapterValue.isRead).ifNull() || (currentPage >= ((chapterValue.pageCount).getValueOnNullOrNegative() - 1))); await AsyncValue.guard( @@ -63,7 +64,7 @@ class ReaderScreen extends HookConsumerWidget { final onPageChanged = useCallback>( (int index) async { final chapterValue = chapter.valueOrNull; - if ((chapterValue?.read).ifNull() || + if ((chapterValue?.isRead).ifNull() || (chapterValue?.lastPageRead).getValueOnNullOrNegative() >= index) { return; } @@ -97,7 +98,7 @@ class ReaderScreen extends HookConsumerWidget { }, []); return PopScope( - onPopInvoked: (didPop) async { + onPopInvokedWithResult: (didPop, _) async { if (didPop) { ref.invalidate(chapterProviderWithIndex); ref.invalidate(mangaChapterListProvider(mangaId: mangaId)); @@ -114,7 +115,8 @@ class ReaderScreen extends HookConsumerWidget { context, (chapterData) { if (chapterData == null) return const SizedBox.shrink(); - return switch (data.meta?.readerMode ?? defaultReaderMode) { + return switch ( + data.metaData.readerMode ?? defaultReaderMode) { ReaderMode.singleVertical => SinglePageReaderMode( chapter: chapterData, manga: data, diff --git a/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart b/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart index 3e7af7df..05c34066 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/chapter_separator.dart @@ -31,17 +31,17 @@ class ChapterSeparator extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final nextPrevChapterPair = ref.watch( getNextAndPreviousChaptersProvider( - mangaId: manga.id!, + mangaId: manga.id, chapterIndex: "${chapter.index}", ), ); final navigationLayout = ref.watch(readerNavigationLayoutKeyProvider); - final showPrevNextButtons = - manga.meta?.readerNavigationLayout == ReaderNavigationLayout.disabled || - ((manga.meta?.readerNavigationLayout == null || - manga.meta?.readerNavigationLayout == - ReaderNavigationLayout.defaultNavigation) && - navigationLayout == ReaderNavigationLayout.disabled); + final showPrevNextButtons = manga.metaData.readerNavigationLayout == + ReaderNavigationLayout.disabled || + ((manga.metaData.readerNavigationLayout == null || + manga.metaData.readerNavigationLayout == + ReaderNavigationLayout.defaultNavigation) && + navigationLayout == ReaderNavigationLayout.disabled); return Center( child: SingleChildScrollView( child: Column( @@ -56,27 +56,26 @@ class ChapterSeparator extends ConsumerWidget { padding: KEdgeInsets.v16.size, child: FilledButton( onPressed: () => ReaderRoute( - mangaId: nextPrevChapterPair!.second!.mangaId!, - chapterIndex: nextPrevChapterPair.second!.index!, + mangaId: nextPrevChapterPair!.second!.mangaId, + chapterIndex: nextPrevChapterPair.second!.index, ).pushReplacement(context), child: Text( - context.l10n!.previousChapter( - nextPrevChapterPair?.second?.getDisplayName(context) ?? - "", + context.l10n.previousChapter( + nextPrevChapterPair?.second?.name ?? "", ), ), ), ), Text( isPreviousChapterSeparator - ? context.l10n!.start - : context.l10n!.finished, + ? context.l10n.start + : context.l10n.finished, style: context.textTheme.titleMedium ?.copyWith(fontWeight: FontWeight.bold), overflow: TextOverflow.ellipsis, ), Text( - chapter.getDisplayName(context), + chapter.name, style: context.textTheme.bodyMedium ?.copyWith(fontWeight: FontWeight.bold), overflow: TextOverflow.ellipsis, @@ -88,12 +87,12 @@ class ChapterSeparator extends ConsumerWidget { padding: KEdgeInsets.v16.size, child: FilledButton( onPressed: () => ReaderRoute( - mangaId: nextPrevChapterPair!.first!.mangaId!, - chapterIndex: nextPrevChapterPair.first!.index!, + mangaId: nextPrevChapterPair!.first!.mangaId, + chapterIndex: nextPrevChapterPair.first!.index, ).pushReplacement(context), child: Text( - context.l10n!.nextChapter( - nextPrevChapterPair?.first?.getDisplayName(context) ?? "", + context.l10n.nextChapter( + nextPrevChapterPair?.first?.name ?? "", ), ), ), diff --git a/lib/src/features/manga_book/presentation/reader/widgets/page_number_slider.dart b/lib/src/features/manga_book/presentation/reader/widgets/page_number_slider.dart index e2c16a7e..b55e5213 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/page_number_slider.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/page_number_slider.dart @@ -42,7 +42,7 @@ class PageNumberSlider extends StatelessWidget { Text("$maxValue"), ]; return Card( - color: context.theme.appBarTheme.backgroundColor?.withOpacity(.7), + color: context.theme.appBarTheme.backgroundColor?.withValues(alpha: .7), shape: RoundedRectangleBorder( borderRadius: KBorderRadius.r32.radius, ), diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart index eae9696f..fc55e3a4 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/continuous_reader_mode.dart @@ -48,7 +48,7 @@ class ContinuousReaderMode extends HookConsumerWidget { final scrollController = useMemoized(() => ItemScrollController()); final positionsListener = useMemoized(() => ItemPositionsListener.create()); final currentIndex = useState( - chapter.read.ifNull() + chapter.isRead.ifNull() ? 0 : (chapter.lastPageRead).getValueOnNullOrNegative(), ); @@ -127,7 +127,7 @@ class ContinuousReaderMode extends HookConsumerWidget { alignment: alignment, ); }, - child: AppUtils.wrapIf( + child: AppUtils.wrapOn( !kIsWeb && (Platform.isAndroid || Platform.isIOS) && isPinchToZoomEnabled @@ -136,12 +136,12 @@ class ContinuousReaderMode extends HookConsumerWidget { ScrollablePositionedList.separated( itemScrollController: scrollController, itemPositionsListener: positionsListener, - initialScrollIndex: chapter.read.ifNull() + initialScrollIndex: chapter.isRead.ifNull() ? 0 : chapter.lastPageRead.getValueOnNullOrNegative(), scrollDirection: scrollDirection, reverse: reverse, - itemCount: chapter.pageCount ?? 0, + itemCount: chapter.pageCount, minCacheExtent: scrollDirection == Axis.vertical ? context.height * 2 : context.width * 2, @@ -155,8 +155,8 @@ class ContinuousReaderMode extends HookConsumerWidget { : BoxFit.fitHeight, appendApiToUrl: true, imageUrl: MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: index, ), progressIndicatorBuilder: (_, __, downloadProgress) => Center( @@ -174,7 +174,7 @@ class ContinuousReaderMode extends HookConsumerWidget { child: child, ), ); - if (index == 0 || index == (chapter.pageCount ?? 1) - 1) { + if (index == 0 || index == chapter.pageCount - 1) { final bool reverseDirection = scrollDirection == Axis.horizontal && reverse; final separator = SizedBox( diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart index 531019ee..df915f5f 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_mode/single_page_reader_mode.dart @@ -45,7 +45,7 @@ class SinglePageReaderMode extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final cacheManager = useMemoized(() => DefaultCacheManager()); final scrollController = usePageController( - initialPage: chapter.read.ifNull() + initialPage: chapter.isRead.ifNull() ? 0 : chapter.lastPageRead.getValueOnNullOrNegative(), ); @@ -58,8 +58,8 @@ class SinglePageReaderMode extends HookConsumerWidget { cacheManager.getServerFile( ref, MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: currentPage - 1, ), ); @@ -69,8 +69,8 @@ class SinglePageReaderMode extends HookConsumerWidget { cacheManager.getServerFile( ref, MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: currentPage + 1, ), ); @@ -80,8 +80,8 @@ class SinglePageReaderMode extends HookConsumerWidget { cacheManager.getServerFile( ref, MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: currentPage + 2, ), ); @@ -126,8 +126,8 @@ class SinglePageReaderMode extends HookConsumerWidget { size: Size.fromHeight(context.height), appendApiToUrl: true, imageUrl: MangaUrl.chapterPageWithIndex( - chapterIndex: chapter.index!, - mangaId: manga.id!, + chapterIndex: chapter.index, + mangaId: manga.id, pageIndex: index, ), progressIndicatorBuilder: (context, url, downloadProgress) => @@ -135,7 +135,7 @@ class SinglePageReaderMode extends HookConsumerWidget { value: downloadProgress.progress, ), ); - return AppUtils.wrapIf( + return AppUtils.wrapOn( !kIsWeb && (Platform.isAndroid || Platform.isIOS) ? (child) => InteractiveViewer(maxScale: 5, child: child) : null, diff --git a/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart b/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart index bfd0c61c..62c1424d 100644 --- a/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart +++ b/lib/src/features/manga_book/presentation/reader/widgets/reader_wrapper.dart @@ -23,7 +23,7 @@ import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../utils/launch_url_in_web.dart'; import '../../../../../utils/misc/toast/toast.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../widgets/popup_widgets/radio_list_popup.dart'; import '../../../../settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart'; import '../../../../settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart'; import '../../../../settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart'; @@ -68,7 +68,7 @@ class ReaderWrapper extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final nextPrevChapterPair = ref.watch( getNextAndPreviousChaptersProvider( - mangaId: manga.id!, + mangaId: manga.id, chapterIndex: "${chapter.index}", ), ); @@ -90,13 +90,14 @@ class ReaderWrapper extends HookConsumerWidget { final visibility = useState(ref.read(readerInitialOverlayProvider).ifNull()); final mangaReaderPadding = - useState(manga.meta?.readerPadding ?? localMangaReaderPadding); + useState(manga.metaData.readerPadding ?? localMangaReaderPadding); final mangaReaderMagnifierSize = useState( - manga.meta?.readerMagnifierSize ?? localMangaReaderMagnifierSize, + manga.metaData.readerMagnifierSize ?? localMangaReaderMagnifierSize, ); - final mangaReaderMode = manga.meta?.readerMode ?? ReaderMode.defaultReader; - final mangaReaderNavigationLayout = manga.meta?.readerNavigationLayout ?? + final mangaReaderMode = + manga.metaData.readerMode ?? ReaderMode.defaultReader; + final mangaReaderNavigationLayout = manga.metaData.readerNavigationLayout ?? ReaderNavigationLayout.defaultNavigation; final showReaderModePopup = useCallback( @@ -106,17 +107,17 @@ class ReaderWrapper extends HookConsumerWidget { optionList: ReaderMode.values, getOptionTitle: (value) => value.toLocale(context), value: mangaReaderMode, - title: context.l10n!.readerMode, + title: context.l10n.readerMode, onChange: (enumValue) async { if (context.mounted) Navigator.pop(context); await AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerMode.key, value: enumValue.name, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), ), @@ -129,18 +130,18 @@ class ReaderWrapper extends HookConsumerWidget { builder: (context) => RadioListPopup( optionList: ReaderNavigationLayout.values, getOptionTitle: (value) => value.toLocale(context), - title: context.l10n!.readerNavigationLayout, + title: context.l10n.readerNavigationLayout, value: mangaReaderNavigationLayout, onChange: (enumValue) async { if (context.mounted) Navigator.pop(context); await AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerNavigationLayout.key, value: enumValue.name, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), ), @@ -182,13 +183,13 @@ class ReaderWrapper extends HookConsumerWidget { title: ListTile( title: (manga.title).isNotBlank ? Text( - "${manga.title}", + manga.title, overflow: TextOverflow.ellipsis, ) : null, subtitle: (chapter.name).isNotBlank ? Text( - "${chapter.name}", + chapter.name, overflow: TextOverflow.ellipsis, ) : null, @@ -202,10 +203,10 @@ class ReaderWrapper extends HookConsumerWidget { launchUrlInWeb( context, (chapter.realUrl ?? ""), - ref.read(toastProvider(context)), + ref.read(toastProvider), ); }, - icon: const Icon(Icons.public), + icon: const Icon(Icons.public_rounded), ) ], ) @@ -225,7 +226,7 @@ class ReaderWrapper extends HookConsumerWidget { ListTile( style: ListTileStyle.drawer, leading: const Icon(Icons.app_settings_alt_outlined), - title: Text(context.l10n!.readerMode), + title: Text(context.l10n.readerMode), subtitle: Text(mangaReaderMode.toLocale(context)), onTap: () { context.pop(); @@ -235,7 +236,7 @@ class ReaderWrapper extends HookConsumerWidget { ListTile( style: ListTileStyle.drawer, leading: const Icon(Icons.touch_app_rounded), - title: Text(context.l10n!.readerNavigationLayout), + title: Text(context.l10n.readerNavigationLayout), subtitle: Text(mangaReaderNavigationLayout.toLocale(context)), onTap: () { context.pop(); @@ -247,12 +248,12 @@ class ReaderWrapper extends HookConsumerWidget { onChanged: (value) { AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerPadding.key, value: value, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), AsyncReaderMagnifierSizeSlider( @@ -260,12 +261,12 @@ class ReaderWrapper extends HookConsumerWidget { onChanged: (value) { AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).patchMangaMeta( - mangaId: manga.id!, + mangaId: manga.id, key: MangaMetaKeys.readerMagnifierSize.key, value: value, ), ); - ref.invalidate(mangaWithIdProvider(mangaId: manga.id!)); + ref.invalidate(mangaWithIdProvider(mangaId: manga.id)); }, ), ], @@ -284,9 +285,9 @@ class ReaderWrapper extends HookConsumerWidget { onPressed: nextPrevChapterPair?.second != null ? () => ReaderRoute( mangaId: - nextPrevChapterPair!.second!.mangaId!, + nextPrevChapterPair!.second!.mangaId, chapterIndex: - nextPrevChapterPair.second!.index!, + nextPrevChapterPair.second!.index, toPrev: true, transVertical: scrollDirection != Axis.vertical, @@ -300,7 +301,7 @@ class ReaderWrapper extends HookConsumerWidget { Expanded( child: PageNumberSlider( currentValue: currentIndex, - maxValue: chapter.pageCount ?? 1, + maxValue: chapter.pageCount, onChanged: (index) => onChanged(index), inverted: invertTap, ), @@ -311,9 +312,9 @@ class ReaderWrapper extends HookConsumerWidget { onPressed: nextPrevChapterPair?.first != null ? () => ReaderRoute( mangaId: - nextPrevChapterPair!.first!.mangaId!, + nextPrevChapterPair!.first!.mangaId, chapterIndex: - nextPrevChapterPair.first!.index!, + nextPrevChapterPair.first!.index, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) @@ -336,27 +337,22 @@ class ReaderWrapper extends HookConsumerWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - if (chapter.index != null && - chapter.bookmarked != null) - SingleChapterActionIcon( - icon: chapter.bookmarked! - ? Icons.bookmark_rounded - : Icons.bookmark_outline_rounded, - chapterIndex: chapter.index!, - mangaId: manga.id!, - chapterPut: ChapterPut( - bookmarked: !chapter.bookmarked!, - ), - refresh: () async { - if (manga.id != null && - chapter.index != null) { - return ref.refresh(chapterProvider( - mangaId: manga.id!, - chapterIndex: chapter.index!, - ).future); - } - }, + SingleChapterActionIcon( + icon: chapter.isBookmarked + ? Icons.bookmark_rounded + : Icons.bookmark_outline_rounded, + chapterIndex: chapter.index, + mangaId: manga.id, + chapterPut: ChapterPut( + bookmarked: !chapter.isBookmarked, ), + refresh: () async { + return ref.refresh(chapterProvider( + mangaId: manga.id, + chapterIndex: chapter.index, + ).future); + }, + ), IconButton( icon: const Icon(Icons.app_settings_alt_outlined), onPressed: () => showReaderModePopup(), @@ -390,8 +386,8 @@ class ReaderWrapper extends HookConsumerWidget { onInvoke: (intent) { nextPrevChapterPair?.second != null ? ReaderRoute( - mangaId: nextPrevChapterPair!.second!.mangaId!, - chapterIndex: nextPrevChapterPair.second!.index!, + mangaId: nextPrevChapterPair!.second!.mangaId, + chapterIndex: nextPrevChapterPair.second!.index, toPrev: true, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) @@ -402,8 +398,8 @@ class ReaderWrapper extends HookConsumerWidget { NextChapterIntent: CallbackAction( onInvoke: (intent) => nextPrevChapterPair?.first != null ? ReaderRoute( - mangaId: nextPrevChapterPair!.first!.mangaId!, - chapterIndex: nextPrevChapterPair.first!.index!, + mangaId: nextPrevChapterPair!.first!.mangaId, + chapterIndex: nextPrevChapterPair.first!.index, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) : onNext(), @@ -423,7 +419,7 @@ class ReaderWrapper extends HookConsumerWidget { toggleVisibility: () => visibility.value = !visibility.value, scrollDirection: scrollDirection, - mangaId: manga.id!, + mangaId: manga.id, mangaReaderPadding: mangaReaderPadding.value, mangaReaderMagnifierSize: mangaReaderMagnifierSize.value, onNext: onNext, @@ -486,14 +482,14 @@ class ReaderView extends HookWidget { nextChapter() => prevNextChapterPair?.first != null ? ReaderRoute( mangaId: mangaId, - chapterIndex: prevNextChapterPair!.first!.index!, + chapterIndex: prevNextChapterPair!.first!.index, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) : null; prevChapter() => prevNextChapterPair?.second != null ? ReaderRoute( mangaId: mangaId, - chapterIndex: prevNextChapterPair!.second!.index!, + chapterIndex: prevNextChapterPair!.second!.index, toPrev: true, transVertical: scrollDirection != Axis.vertical, ).pushReplacement(context) diff --git a/lib/src/features/manga_book/presentation/updates/updates_screen.dart b/lib/src/features/manga_book/presentation/updates/updates_screen.dart index dbaa837c..c9c47651 100644 --- a/lib/src/features/manga_book/presentation/updates/updates_screen.dart +++ b/lib/src/features/manga_book/presentation/updates/updates_screen.dart @@ -93,11 +93,11 @@ class UpdatesScreen extends HookConsumerWidget { icon: const Icon(Icons.close_rounded), ), title: Text( - context.l10n!.numSelected(selectedChapters.value.length), + context.l10n.numSelected(selectedChapters.value.length), ), ) : AppBar( - title: Text(context.l10n!.updates), + title: Text(context.l10n.updates), actions: const [UpdateStatusPopupMenu()], ), bottomSheet: selectedChapters.value.isNotEmpty @@ -118,24 +118,25 @@ class UpdatesScreen extends HookConsumerWidget { firstPageProgressIndicatorBuilder: (context) => const CenterSorayomiShimmerIndicator(), firstPageErrorIndicatorBuilder: (context) => Emoticons( - text: controller.error.toString(), + title: controller.error.toString(), button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.retry), + child: Text(context.l10n.retry), ), ), noItemsFoundIndicatorBuilder: (context) => Emoticons( - text: context.l10n!.noUpdatesFound, + title: context.l10n.noUpdatesFound, button: TextButton( onPressed: () => controller.refresh(), - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ), ), itemBuilder: (context, item, index) { int? previousDate; try { - previousDate = - controller.itemList?[index - 1].chapter?.fetchedAt; + previousDate = int.tryParse( + controller.itemList?[index - 1].chapter?.fetchedAt.value ?? + ""); } catch (e) { previousDate = null; } @@ -147,10 +148,10 @@ class UpdatesScreen extends HookConsumerWidget { } else { final chapter = ref .refresh(chapterProvider( - mangaId: item.manga!.id!, - chapterIndex: item.chapter!.index!, + mangaId: item.manga!.id, + chapterIndex: item.chapter!.index, )) - .valueOrToast(ref.read(toastProvider(context))); + .valueOrToast(ref.read(toastProvider)); try { controller.itemList = [...?controller.itemList] ..replaceRange(index, index + 1, [ @@ -164,15 +165,16 @@ class UpdatesScreen extends HookConsumerWidget { } }, isSelected: - selectedChapters.value.containsKey(item.chapter!.id!), + selectedChapters.value.containsKey(item.chapter!.id), canTapSelect: selectedChapters.value.isNotEmpty, toggleSelect: (Chapter val) { if ((val.id).isNull) return; selectedChapters.value = - (selectedChapters.value.toggleKey(val.id!, val)); + (selectedChapters.value.toggleKey(val.id, val)); }, ); - if ((item.chapter?.fetchedAt).isSameDayAs(previousDate)) { + if ((int.tryParse(item.chapter?.fetchedAt.value ?? "")) + .isSameDayAs(previousDate)) { return chapterTile; } else { return Column( @@ -180,7 +182,8 @@ class UpdatesScreen extends HookConsumerWidget { children: [ ListTile( title: Text( - item.chapter!.fetchedAt.toDaysAgoFromSeconds(context), + int.tryParse(item.chapter?.fetchedAt.value ?? "") + .toDaysAgoFromSeconds(context), ), ), chapterTile, diff --git a/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart b/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart index f78f4c41..cd558829 100644 --- a/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart +++ b/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart @@ -33,7 +33,7 @@ class ChapterMangaListTile extends StatelessWidget { @override Widget build(BuildContext context) { - final color = (pair.chapter?.read).ifNull() ? Colors.grey : null; + final color = (pair.chapter?.isRead).ifNull() ? Colors.grey : null; return GestureDetector( onSecondaryTap: pair.chapter != null ? () => toggleSelect(pair.chapter!) : null, @@ -41,8 +41,8 @@ class ChapterMangaListTile extends StatelessWidget { title: Row( mainAxisSize: MainAxisSize.min, children: [ - if ((pair.chapter?.bookmarked).ifNull()) ...[ - const Icon(Icons.bookmark, size: 20), + if ((pair.chapter?.isBookmarked).ifNull()) ...[ + const Icon(Icons.bookmark_rounded, size: 20), const Gap(4), ], Expanded( @@ -59,7 +59,7 @@ class ChapterMangaListTile extends StatelessWidget { onTap: () { if ((pair.manga?.id) != null) { MangaRoute( - mangaId: pair.manga!.id!, + mangaId: pair.manga!.id, ).push(context); } }, @@ -75,8 +75,8 @@ class ChapterMangaListTile extends StatelessWidget { ), trailing: (pair.manga?.id != null && pair.chapter?.index != null) ? DownloadStatusIcon( - isDownloaded: (pair.chapter?.downloaded).ifNull(), - mangaId: pair.manga!.id!, + isDownloaded: (pair.chapter?.isDownloaded).ifNull(), + mangaId: pair.manga!.id, chapter: pair.chapter!, updateData: updatePair, ) @@ -91,8 +91,8 @@ class ChapterMangaListTile extends StatelessWidget { toggleSelect(pair.chapter!); } else { ReaderRoute( - mangaId: pair.manga!.id!, - chapterIndex: pair.chapter!.index!, + mangaId: pair.manga!.id, + chapterIndex: pair.chapter!.index, showReaderLayoutAnimation: true, ).push(context); } diff --git a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart index 3599797c..1f7f57a2 100644 --- a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart +++ b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_action_icon.dart @@ -44,7 +44,7 @@ class MultiChaptersActionIcon extends ConsumerWidget { ), ); if (context.mounted) { - result.showToastOnError(ref.read(toastProvider(context))); + result.showToastOnError(ref.read(toastProvider)); } await refresh(change != null); }, diff --git a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart index f078c3d4..a88f44fb 100644 --- a/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart +++ b/lib/src/features/manga_book/widgets/chapter_actions/multi_chapters_actions_bottom_app_bar.dart @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; - import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/app_sizes.dart'; @@ -46,24 +45,24 @@ class MultiChaptersActionsBottomAppBar extends HookConsumerWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - if (selectedList.any((e) => e.bookmarked.ifNull())) + if (selectedList.any((e) => e.isBookmarked.ifNull())) MultiChaptersActionIcon( - icon: Icons.bookmark_remove_sharp, + icon: Icons.bookmark_remove_rounded, chapterList: chapterList, change: ChapterChange(isBookmarked: false), refresh: refresh, ), - if (selectedList.any((e) => !(e.bookmarked.ifNull()))) + if (selectedList.any((e) => !(e.isBookmarked.ifNull()))) MultiChaptersActionIcon( - icon: Icons.bookmark_add_sharp, + icon: Icons.bookmark_add_rounded, chapterList: chapterList, change: ChapterChange(isBookmarked: true), refresh: refresh, ), if (selectedList.isSingletonList && hasPreviousDone) SingleChapterActionIcon( - chapterIndex: selectedChapters.value[chapterList.first]!.index!, - mangaId: selectedChapters.value[chapterList.first]!.mangaId!, + chapterIndex: selectedChapters.value[chapterList.first]!.index, + mangaId: selectedChapters.value[chapterList.first]!.mangaId, imageIcon: ImageIcon( Assets.icons.previousDone.provider(), color: context.theme.cardTheme.color, @@ -71,32 +70,32 @@ class MultiChaptersActionsBottomAppBar extends HookConsumerWidget { chapterPut: ChapterPut(markPrevRead: true), refresh: refresh, ), - if (selectedList.any((e) => !(e.read.ifNull()))) + if (selectedList.any((e) => !(e.isRead.ifNull()))) MultiChaptersActionIcon( - icon: Icons.done_all_sharp, + icon: Icons.done_all_rounded, chapterList: chapterList, change: ChapterChange(isRead: true, lastPageRead: 0), refresh: refresh, ), - if (selectedList.any((e) => e.read.ifNull())) + if (selectedList.any((e) => e.isRead.ifNull())) MultiChaptersActionIcon( - icon: Icons.remove_done_sharp, + icon: Icons.remove_done_rounded, chapterList: chapterList, change: ChapterChange(isRead: false), refresh: refresh, ), - if (selectedList.any((e) => !(e.downloaded.ifNull()))) + if (selectedList.any((e) => !(e.isDownloaded.ifNull()))) MultiChaptersActionIcon( - icon: Icons.download_sharp, + icon: Icons.download_rounded, chapterList: [ for (var e in selectedList) - if (!(e.downloaded.ifNull(true))) (e.id!) + if (!(e.isDownloaded.ifNull(true))) (e.id) ], refresh: refresh, ), - if (selectedList.any((e) => e.downloaded.ifNull())) + if (selectedList.any((e) => e.isDownloaded.ifNull())) MultiChaptersActionIcon( - icon: Icons.delete_sharp, + icon: Icons.delete_rounded, chapterList: chapterList, change: ChapterChange(delete: true), refresh: refresh, diff --git a/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart b/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart index 05587c4d..ffb1d996 100644 --- a/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart +++ b/lib/src/features/manga_book/widgets/chapter_actions/single_chapter_action_icon.dart @@ -42,7 +42,7 @@ class SingleChapterActionIcon extends ConsumerWidget { ), )); if (context.mounted) { - result.showToastOnError(ref.read(toastProvider(context))); + result.showToastOnError(ref.read(toastProvider)); } await refresh(); }, diff --git a/lib/src/features/manga_book/widgets/download_status_icon.dart b/lib/src/features/manga_book/widgets/download_status_icon.dart index db0c5d7a..fa4cc0e1 100644 --- a/lib/src/features/manga_book/widgets/download_status_icon.dart +++ b/lib/src/features/manga_book/widgets/download_status_icon.dart @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; - import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; @@ -44,21 +43,20 @@ class DownloadStatusIcon extends HookConsumerWidget { } Future toggleChapterToQueue( - Toast toast, + Toast? toast, WidgetRef ref, { bool isAdd = false, bool isRemove = false, bool isError = false, }) async { try { - if (chapter.index == null) return; (await AsyncValue.guard(() async { final repo = ref.read(downloadsRepositoryProvider); if (isRemove || isError) { - await repo.removeChapterFromDownloadQueue(mangaId, chapter.index!); + await repo.removeChapterFromDownloadQueue(mangaId, chapter.index); } if (isAdd || isError) { - await repo.addChapterToDownloadQueue(mangaId, chapter.index!); + await repo.addChapterToDownloadQueue(mangaId, chapter.index); } })) .showToastOnError(toast); @@ -71,8 +69,8 @@ class DownloadStatusIcon extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final isLoading = useState(false); - final toast = ref.watch(toastProvider(context)); - final download = ref.watch(downloadsFromIdProvider(chapter.id ?? -1)); + final toast = ref.watch(toastProvider); + final download = ref.watch(downloadsFromIdProvider(chapter.id)); useEffect(() { if (download?.state == "Finished") { Future.microtask( @@ -110,7 +108,7 @@ class DownloadStatusIcon extends HookConsumerWidget { (await AsyncValue.guard( () => ref.read(mangaBookRepositoryProvider).modifyBulkChapters( batch: ChapterBatch( - chapterIds: [chapter.id!], + chapterIds: [chapter.id], change: ChapterChange(delete: true), ), ), diff --git a/lib/src/features/manga_book/widgets/update_status_fab.dart b/lib/src/features/manga_book/widgets/update_status_fab.dart index d4a961bb..b96f9621 100644 --- a/lib/src/features/manga_book/widgets/update_status_fab.dart +++ b/lib/src/features/manga_book/widgets/update_status_fab.dart @@ -19,14 +19,16 @@ class UpdateStatusFab extends ConsumerWidget { final updateStatus = ref.watch(updatesSocketProvider); final showStatus = (updateStatus.valueOrNull?.isUpdateChecking).ifNull(); return FloatingActionButton.extended( - icon: showStatus ? null : const Icon(Icons.refresh), + icon: showStatus ? null : const Icon(Icons.refresh_rounded), onPressed: () => showStatus + //TODO: showStatus + ? const UpdateStatusRoute().push(context) : ref.read(updatesRepositoryProvider).fetchUpdates(), label: showStatus ? Text("${updateStatus.valueOrNull?.updateChecked.padLeft()}" "/${updateStatus.valueOrNull?.total.padLeft()}") - : Text(context.l10n!.update), + : Text(context.l10n.update), ); } } diff --git a/lib/src/features/manga_book/widgets/update_status_popup_menu.dart b/lib/src/features/manga_book/widgets/update_status_popup_menu.dart index bea764f7..23491ced 100644 --- a/lib/src/features/manga_book/widgets/update_status_popup_menu.dart +++ b/lib/src/features/manga_book/widgets/update_status_popup_menu.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../constants/app_sizes.dart'; - import '../../../routes/router_config.dart'; import '../../../utils/extensions/custom_extensions.dart'; import '../../library/domain/category/category_model.dart'; @@ -30,22 +29,22 @@ class UpdateStatusPopupMenu extends ConsumerWidget { itemBuilder: (context) { final category = getCategory?.call(); return [ - if (category != null && category.id != null && category.id != 0) + if (category != null && category.id != 0) PopupMenuItem( - child: Text(context.l10n!.categoryUpdate), + child: Text(context.l10n.categoryUpdate), onTap: () => ref .read(updatesRepositoryProvider) .fetchUpdates(categoryId: category.id), ), PopupMenuItem( onTap: () => ref.read(updatesRepositoryProvider).fetchUpdates(), - child: Text(context.l10n!.globalUpdate), + child: Text(context.l10n.globalUpdate), ), if (showSummaryButton) PopupMenuItem( onTap: () => const UpdateStatusRoute().push(context), child: Text( - context.l10n!.updatesSummary, + context.l10n.updatesSummary, ), ), ]; diff --git a/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart b/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart index 320a9fbd..0c1f748e 100644 --- a/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart +++ b/lib/src/features/manga_book/widgets/update_status_summary_sheet.dart @@ -28,7 +28,7 @@ class UpdateStatusSummaryDialog extends ConsumerWidget { : statusUpdate; return Scaffold( appBar: AppBar( - title: Text(context.l10n!.updatesSummary), + title: Text(context.l10n.updatesSummary), actions: const [UpdateStatusPopupMenu(showSummaryButton: false)], ), body: finalStatus.showUiWhenData( @@ -40,23 +40,23 @@ class UpdateStatusSummaryDialog extends ConsumerWidget { if ((data?.running).isNotBlank) UpdateStatusExpansionTile( mangas: data!.running!, - title: context.l10n!.running, + title: context.l10n.running, initiallyExpanded: true, ), if ((data?.pending).isNotBlank) UpdateStatusExpansionTile( mangas: data!.pending!, - title: context.l10n!.pending, + title: context.l10n.pending, ), if ((data?.completed).isNotBlank) UpdateStatusExpansionTile( mangas: data!.completed!, - title: context.l10n!.completed, + title: context.l10n.completed, ), if ((data?.failed).isNotBlank) UpdateStatusExpansionTile( mangas: data!.failed!, - title: context.l10n!.failed, + title: context.l10n.failed, initiallyExpanded: true, ), ], @@ -90,7 +90,7 @@ class UpdateStatusExpansionTile extends StatelessWidget { .map((e) => MangaCoverListTile( manga: e, showCountBadges: true, - onPressed: () => MangaRoute(mangaId: e.id!).push(context), + onPressed: () => MangaRoute(mangaId: e.id).push(context), )) .toList(), ); diff --git a/lib/src/features/quick_open/domain/quick_search_result.freezed.dart b/lib/src/features/quick_open/domain/quick_search_result.freezed.dart index 8135c5ec..2697097c 100644 --- a/lib/src/features/quick_open/domain/quick_search_result.freezed.dart +++ b/lib/src/features/quick_open/domain/quick_search_result.freezed.dart @@ -12,7 +12,7 @@ part of 'quick_search_result.dart'; T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$QuickSearchResult { @@ -125,6 +125,9 @@ class _$QuickSearchResultCopyWithImpl<$Res, $Val extends QuickSearchResult> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -147,6 +150,8 @@ class __$$HelpTextQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$HelpTextQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -203,7 +208,9 @@ class _$HelpTextQuickSearchResultImpl implements HelpTextQuickSearchResult { @override int get hashCode => Object.hash(runtimeType, prefill, pattern, hintText); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$HelpTextQuickSearchResultImplCopyWith<_$HelpTextQuickSearchResultImpl> @@ -335,7 +342,10 @@ abstract class HelpTextQuickSearchResult implements QuickSearchResult { String get prefill; String? get pattern; String get hintText; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$HelpTextQuickSearchResultImplCopyWith<_$HelpTextQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -348,8 +358,6 @@ abstract class _$$SourceQuickSearchResultImplCopyWith<$Res> { __$$SourceQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source source}); - - $SourceCopyWith<$Res> get source; } /// @nodoc @@ -361,26 +369,20 @@ class __$$SourceQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$SourceQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ - Object? source = null, + Object? source = freezed, }) { return _then(_$SourceQuickSearchResultImpl( - source: null == source + source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res> get source { - return $SourceCopyWith<$Res>(_value.source, (value) { - return _then(_value.copyWith(source: value)); - }); - } } /// @nodoc @@ -401,13 +403,16 @@ class _$SourceQuickSearchResultImpl implements SourceQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SourceQuickSearchResultImpl && - (identical(other.source, source) || other.source == source)); + const DeepCollectionEquality().equals(other.source, source)); } @override - int get hashCode => Object.hash(runtimeType, source); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(source)); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SourceQuickSearchResultImplCopyWith<_$SourceQuickSearchResultImpl> @@ -535,7 +540,10 @@ abstract class SourceQuickSearchResult implements QuickSearchResult { _$SourceQuickSearchResultImpl; Source get source; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$SourceQuickSearchResultImplCopyWith<_$SourceQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -548,8 +556,6 @@ abstract class _$$SourceSearchQuickSearchResultImplCopyWith<$Res> { __$$SourceSearchQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source source, String query}); - - $SourceCopyWith<$Res> get source; } /// @nodoc @@ -562,14 +568,16 @@ class __$$SourceSearchQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$SourceSearchQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ - Object? source = null, + Object? source = freezed, Object? query = null, }) { return _then(_$SourceSearchQuickSearchResultImpl( - source: null == source + source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source, @@ -579,14 +587,6 @@ class __$$SourceSearchQuickSearchResultImplCopyWithImpl<$Res> as String, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res> get source { - return $SourceCopyWith<$Res>(_value.source, (value) { - return _then(_value.copyWith(source: value)); - }); - } } /// @nodoc @@ -611,14 +611,17 @@ class _$SourceSearchQuickSearchResultImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$SourceSearchQuickSearchResultImpl && - (identical(other.source, source) || other.source == source) && + const DeepCollectionEquality().equals(other.source, source) && (identical(other.query, query) || other.query == query)); } @override - int get hashCode => Object.hash(runtimeType, source, query); + int get hashCode => Object.hash( + runtimeType, const DeepCollectionEquality().hash(source), query); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SourceSearchQuickSearchResultImplCopyWith< @@ -749,7 +752,10 @@ abstract class SourceSearchQuickSearchResult implements QuickSearchResult { Source get source; String get query; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$SourceSearchQuickSearchResultImplCopyWith< _$SourceSearchQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; @@ -763,8 +769,6 @@ abstract class _$$CategoryQuickSearchResultImplCopyWith<$Res> { __$$CategoryQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Category category}); - - $CategoryCopyWith<$Res> get category; } /// @nodoc @@ -777,26 +781,20 @@ class __$$CategoryQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$CategoryQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ - Object? category = null, + Object? category = freezed, }) { return _then(_$CategoryQuickSearchResultImpl( - category: null == category + category: freezed == category ? _value.category : category // ignore: cast_nullable_to_non_nullable as Category, )); } - - @override - @pragma('vm:prefer-inline') - $CategoryCopyWith<$Res> get category { - return $CategoryCopyWith<$Res>(_value.category, (value) { - return _then(_value.copyWith(category: value)); - }); - } } /// @nodoc @@ -817,14 +815,16 @@ class _$CategoryQuickSearchResultImpl implements CategoryQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryQuickSearchResultImpl && - (identical(other.category, category) || - other.category == category)); + const DeepCollectionEquality().equals(other.category, category)); } @override - int get hashCode => Object.hash(runtimeType, category); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(category)); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CategoryQuickSearchResultImplCopyWith<_$CategoryQuickSearchResultImpl> @@ -952,7 +952,10 @@ abstract class CategoryQuickSearchResult implements QuickSearchResult { _$CategoryQuickSearchResultImpl; Category get category; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CategoryQuickSearchResultImplCopyWith<_$CategoryQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -965,9 +968,6 @@ abstract class _$$CategoryMangaQuickSearchResultImplCopyWith<$Res> { __$$CategoryMangaQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Category category, Manga manga}); - - $CategoryCopyWith<$Res> get category; - $MangaCopyWith<$Res> get manga; } /// @nodoc @@ -980,39 +980,25 @@ class __$$CategoryMangaQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$CategoryMangaQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ - Object? category = null, - Object? manga = null, + Object? category = freezed, + Object? manga = freezed, }) { return _then(_$CategoryMangaQuickSearchResultImpl( - category: null == category + category: freezed == category ? _value.category : category // ignore: cast_nullable_to_non_nullable as Category, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, )); } - - @override - @pragma('vm:prefer-inline') - $CategoryCopyWith<$Res> get category { - return $CategoryCopyWith<$Res>(_value.category, (value) { - return _then(_value.copyWith(category: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } } /// @nodoc @@ -1037,15 +1023,19 @@ class _$CategoryMangaQuickSearchResultImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryMangaQuickSearchResultImpl && - (identical(other.category, category) || - other.category == category) && - (identical(other.manga, manga) || other.manga == manga)); + const DeepCollectionEquality().equals(other.category, category) && + const DeepCollectionEquality().equals(other.manga, manga)); } @override - int get hashCode => Object.hash(runtimeType, category, manga); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(category), + const DeepCollectionEquality().hash(manga)); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CategoryMangaQuickSearchResultImplCopyWith< @@ -1176,7 +1166,10 @@ abstract class CategoryMangaQuickSearchResult implements QuickSearchResult { Category get category; Manga get manga; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CategoryMangaQuickSearchResultImplCopyWith< _$CategoryMangaQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; @@ -1190,10 +1183,6 @@ abstract class _$$CategoryMangaChapterQuickSearchResultImplCopyWith<$Res> { __$$CategoryMangaChapterQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Category? category, Manga manga, Chapter chapter}); - - $CategoryCopyWith<$Res>? get category; - $MangaCopyWith<$Res> get manga; - $ChapterCopyWith<$Res> get chapter; } /// @nodoc @@ -1206,56 +1195,30 @@ class __$$CategoryMangaChapterQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$CategoryMangaChapterQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? category = freezed, - Object? manga = null, - Object? chapter = null, + Object? manga = freezed, + Object? chapter = freezed, }) { return _then(_$CategoryMangaChapterQuickSearchResultImpl( category: freezed == category ? _value.category : category // ignore: cast_nullable_to_non_nullable as Category?, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, - chapter: null == chapter + chapter: freezed == chapter ? _value.chapter : chapter // ignore: cast_nullable_to_non_nullable as Chapter, )); } - - @override - @pragma('vm:prefer-inline') - $CategoryCopyWith<$Res>? get category { - if (_value.category == null) { - return null; - } - - return $CategoryCopyWith<$Res>(_value.category!, (value) { - return _then(_value.copyWith(category: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res> get chapter { - return $ChapterCopyWith<$Res>(_value.chapter, (value) { - return _then(_value.copyWith(chapter: value)); - }); - } } /// @nodoc @@ -1282,16 +1245,21 @@ class _$CategoryMangaChapterQuickSearchResultImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$CategoryMangaChapterQuickSearchResultImpl && - (identical(other.category, category) || - other.category == category) && - (identical(other.manga, manga) || other.manga == manga) && - (identical(other.chapter, chapter) || other.chapter == chapter)); + const DeepCollectionEquality().equals(other.category, category) && + const DeepCollectionEquality().equals(other.manga, manga) && + const DeepCollectionEquality().equals(other.chapter, chapter)); } @override - int get hashCode => Object.hash(runtimeType, category, manga, chapter); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(category), + const DeepCollectionEquality().hash(manga), + const DeepCollectionEquality().hash(chapter)); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CategoryMangaChapterQuickSearchResultImplCopyWith< @@ -1426,7 +1394,10 @@ abstract class CategoryMangaChapterQuickSearchResult Category? get category; Manga get manga; Chapter get chapter; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$CategoryMangaChapterQuickSearchResultImplCopyWith< _$CategoryMangaChapterQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; @@ -1440,9 +1411,6 @@ abstract class _$$MangaQuickSearchResultImplCopyWith<$Res> { __$$MangaQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source? source, Manga manga}); - - $SourceCopyWith<$Res>? get source; - $MangaCopyWith<$Res> get manga; } /// @nodoc @@ -1454,43 +1422,25 @@ class __$$MangaQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$MangaQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? source = freezed, - Object? manga = null, + Object? manga = freezed, }) { return _then(_$MangaQuickSearchResultImpl( source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source?, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res>? get source { - if (_value.source == null) { - return null; - } - - return $SourceCopyWith<$Res>(_value.source!, (value) { - return _then(_value.copyWith(source: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } } /// @nodoc @@ -1513,14 +1463,19 @@ class _$MangaQuickSearchResultImpl implements MangaQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MangaQuickSearchResultImpl && - (identical(other.source, source) || other.source == source) && - (identical(other.manga, manga) || other.manga == manga)); + const DeepCollectionEquality().equals(other.source, source) && + const DeepCollectionEquality().equals(other.manga, manga)); } @override - int get hashCode => Object.hash(runtimeType, source, manga); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(source), + const DeepCollectionEquality().hash(manga)); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MangaQuickSearchResultImplCopyWith<_$MangaQuickSearchResultImpl> @@ -1650,7 +1605,10 @@ abstract class MangaQuickSearchResult implements QuickSearchResult { Source? get source; Manga get manga; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$MangaQuickSearchResultImplCopyWith<_$MangaQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1663,10 +1621,6 @@ abstract class _$$ChapterQuickSearchResultImplCopyWith<$Res> { __$$ChapterQuickSearchResultImplCopyWithImpl<$Res>; @useResult $Res call({Source? source, Manga manga, Chapter chapter}); - - $SourceCopyWith<$Res>? get source; - $MangaCopyWith<$Res> get manga; - $ChapterCopyWith<$Res> get chapter; } /// @nodoc @@ -1679,56 +1633,30 @@ class __$$ChapterQuickSearchResultImplCopyWithImpl<$Res> $Res Function(_$ChapterQuickSearchResultImpl) _then) : super(_value, _then); + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? source = freezed, - Object? manga = null, - Object? chapter = null, + Object? manga = freezed, + Object? chapter = freezed, }) { return _then(_$ChapterQuickSearchResultImpl( source: freezed == source ? _value.source : source // ignore: cast_nullable_to_non_nullable as Source?, - manga: null == manga + manga: freezed == manga ? _value.manga : manga // ignore: cast_nullable_to_non_nullable as Manga, - chapter: null == chapter + chapter: freezed == chapter ? _value.chapter : chapter // ignore: cast_nullable_to_non_nullable as Chapter, )); } - - @override - @pragma('vm:prefer-inline') - $SourceCopyWith<$Res>? get source { - if (_value.source == null) { - return null; - } - - return $SourceCopyWith<$Res>(_value.source!, (value) { - return _then(_value.copyWith(source: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $MangaCopyWith<$Res> get manga { - return $MangaCopyWith<$Res>(_value.manga, (value) { - return _then(_value.copyWith(manga: value)); - }); - } - - @override - @pragma('vm:prefer-inline') - $ChapterCopyWith<$Res> get chapter { - return $ChapterCopyWith<$Res>(_value.chapter, (value) { - return _then(_value.copyWith(chapter: value)); - }); - } } /// @nodoc @@ -1754,15 +1682,21 @@ class _$ChapterQuickSearchResultImpl implements ChapterQuickSearchResult { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChapterQuickSearchResultImpl && - (identical(other.source, source) || other.source == source) && - (identical(other.manga, manga) || other.manga == manga) && - (identical(other.chapter, chapter) || other.chapter == chapter)); + const DeepCollectionEquality().equals(other.source, source) && + const DeepCollectionEquality().equals(other.manga, manga) && + const DeepCollectionEquality().equals(other.chapter, chapter)); } @override - int get hashCode => Object.hash(runtimeType, source, manga, chapter); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(source), + const DeepCollectionEquality().hash(manga), + const DeepCollectionEquality().hash(chapter)); - @JsonKey(ignore: true) + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChapterQuickSearchResultImplCopyWith<_$ChapterQuickSearchResultImpl> @@ -1894,7 +1828,10 @@ abstract class ChapterQuickSearchResult implements QuickSearchResult { Source? get source; Manga get manga; Chapter get chapter; - @JsonKey(ignore: true) + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$ChapterQuickSearchResultImplCopyWith<_$ChapterQuickSearchResultImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1916,6 +1853,9 @@ class __$$GlobalSearchQuickSearchResultImplCopyWithImpl<$Res> _$GlobalSearchQuickSearchResultImpl _value, $Res Function(_$GlobalSearchQuickSearchResultImpl) _then) : super(_value, _then); + + /// Create a copy of QuickSearchResult + /// with the given fields replaced by the non-null parameter values. } /// @nodoc diff --git a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart index 397b0f1d..e11c121e 100644 --- a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart +++ b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.dart @@ -5,7 +5,9 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; + import '../../../../../constants/quick_open_help_text.dart'; import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; @@ -14,9 +16,11 @@ import '../../../../browse_center/presentation/source/controller/source_controll import '../../../../library/domain/category/category_model.dart'; import '../../../../library/presentation/category/controller/edit_category_controller.dart'; import '../../../../library/presentation/library/controller/library_controller.dart'; +import '../../../../manga_book/domain/chapter/chapter_model.dart'; import '../../../../manga_book/domain/manga/manga_model.dart'; import '../../../../manga_book/presentation/manga_details/controller/manga_details_controller.dart'; import '../../../domain/quick_search_result.dart'; + part 'quick_search_controller.g.dart'; @riverpod @@ -28,7 +32,7 @@ class QuickSearchQuery extends _$QuickSearchQuery @riverpod List? processesQuickSearch( - ProcessesQuickSearchRef ref, { + Ref ref, { required BuildContext context, }) { String query = ref.watch(quickSearchQueryProvider) ?? ""; @@ -59,7 +63,7 @@ List? processesQuickSearch( List? chapterSearch(Manga manga, {Category? category, String? query}) { final chapterList = ref - .watch(mangaChapterListProvider(mangaId: manga.id!)) + .watch(mangaChapterListProvider(mangaId: manga.id)) .valueOrNull ?.where( (chapter) => chapter.query(query), @@ -90,13 +94,13 @@ List? processesQuickSearch( final mangaChapterQueryList = categoryMangaQueryList[1].split(':'); final mangaList = ref - .watch(categoryMangaListProvider(firstCategory!.id!)) + .watch(categoryMangaListProvider(firstCategory!.id)) .valueOrNull ?.where((e) => e.query(mangaChapterQueryList.firstOrNull)); if (mangaChapterQueryList.length > 1) { final firstManga = mangaList.firstOrNull; - if (firstManga != null && firstManga.id != null) { + if (firstManga != null) { return chapterSearch( firstManga, category: firstCategory, diff --git a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart index ff6af366..ba548126 100644 --- a/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart +++ b/lib/src/features/quick_open/presentation/quick_search/controller/quick_search_controller.g.dart @@ -7,7 +7,7 @@ part of 'quick_search_controller.dart'; // ************************************************************************** String _$processesQuickSearchHash() => - r'93fc20d8122c2e7cb96f566d756f68d9436cc08c'; + r'b942ca982add9beef7a5fc12a5a05e30455014c2'; /// Copied from Dart SDK class _SystemHash { @@ -144,6 +144,8 @@ class ProcessesQuickSearchProvider } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin ProcessesQuickSearchRef on AutoDisposeProviderRef?> { /// The parameter `context` of this provider. @@ -176,4 +178,4 @@ final quickSearchQueryProvider = typedef _$QuickSearchQuery = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart b/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart index 207ac813..1accf20a 100644 --- a/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart +++ b/lib/src/features/quick_open/presentation/quick_search/quick_search_screen.dart @@ -49,7 +49,7 @@ class QuickSearchScreen extends HookWidget { ), Material( color: Colors.transparent, - child: Text(context.l10n!.quickSearchShowAllCommandTip), + child: Text(context.l10n.quickSearchShowAllCommandTip), ) ], ), diff --git a/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart b/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart index e688e71e..ac05f86f 100644 --- a/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart +++ b/lib/src/features/quick_open/presentation/quick_search/widgets/category_query_list_tile.dart @@ -36,22 +36,22 @@ class CategoryQueryListTile extends StatelessWidget { } else if ((chapter?.name).isBlank) { title = (manga?.title ?? ""); } else { - title = chapter?.getDisplayName(context) ?? ""; + title = chapter?.name ?? ""; } return InkWell( onTap: () { if (chapter?.index != null) { ReaderRoute( - mangaId: manga!.id!, - chapterIndex: chapter!.index!, + mangaId: manga!.id, + chapterIndex: chapter!.index, showReaderLayoutAnimation: true, ).push(context); } else if (manga?.id != null) { - MangaRoute(mangaId: manga!.id!, categoryId: category?.id) + MangaRoute(mangaId: manga!.id, categoryId: category?.id) .push(context); } else { - LibraryRoute(initialCategoryOrder: category?.order).push(context); + LibraryRoute(categoryId: category?.order ?? 0).push(context); } afterClick?.call(); }, diff --git a/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart b/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart index 25180646..f4fe1dc6 100644 --- a/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart +++ b/lib/src/features/quick_open/presentation/quick_search/widgets/quick_search_bar.dart @@ -42,7 +42,7 @@ class QuickSearchBar extends HookConsumerWidget { }, decoration: InputDecoration( isDense: true, - hintText: context.l10n!.search, + hintText: context.l10n.search, border: OutlineInputBorder(borderRadius: KBorderRadius.r16.radius), ), ), diff --git a/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart b/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart index d7835bd1..dc3e2f1c 100644 --- a/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart +++ b/lib/src/features/quick_open/presentation/quick_search/widgets/source_query_list_tile.dart @@ -8,8 +8,6 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../../constants/app_sizes.dart'; -import '../../../../../constants/enum.dart'; - import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/server_image.dart'; @@ -31,19 +29,19 @@ class SourceQueryListTile extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return ListTile( onTap: (() async { - if (source.id == null) return; - ref.read(sourceLastUsedProvider.notifier).update(source.id); - SourceMangaRoute( - sourceId: source.id!, - sourceType: query.isBlank ? SourceType.popular : SourceType.filter, + ref.read(sourceLastUsedProvider.notifier).update(source.id.value); + SourceTypeRoute( + sourceId: source.id.value, + sourceType: + (query.isBlank ? SourceType.POPULAR : SourceType.SEARCH).name, query: query, - ).push(context); + ).go(context); afterClick?.call(); }), leading: ClipRRect( borderRadius: KBorderRadius.r8.radius, child: ServerImage( - imageUrl: source.iconUrl ?? "", + imageUrl: source.iconUrl, size: const Size.square(48), ), ), @@ -52,7 +50,7 @@ class SourceQueryListTile extends ConsumerWidget { text: TextSpan( children: [ TextSpan( - text: "${source.displayName ?? source.name ?? ""}/ ", + text: "${source.displayName}/ ", style: Theme.of(context).textTheme.bodySmall?.copyWith( letterSpacing: .1, wordSpacing: .1, @@ -66,10 +64,10 @@ class SourceQueryListTile extends ConsumerWidget { ], ), ) - : Text(source.displayName ?? source.name ?? ""), - subtitle: (source.lang?.displayName).isNotBlank + : Text(source.displayName), + subtitle: (source.language?.displayName).isNotBlank ? Text( - source.lang?.displayName ?? "", + source.language?.displayName ?? "", style: TextStyle(color: context.theme.hintColor), ) : null, diff --git a/lib/src/features/quick_open/presentation/search_stack/search_stack_screen.dart b/lib/src/features/quick_open/presentation/search_stack/search_stack_screen.dart index 10043843..493a0908 100644 --- a/lib/src/features/quick_open/presentation/search_stack/search_stack_screen.dart +++ b/lib/src/features/quick_open/presentation/search_stack/search_stack_screen.dart @@ -42,7 +42,7 @@ class SearchStackScreen extends HookConsumerWidget { child: Container( constraints: const BoxConstraints.expand(), decoration: BoxDecoration( - color: context.theme.canvasColor.withOpacity(.1), + color: context.theme.canvasColor.withValues(alpha: .1), ), child: QuickSearchScreen( afterClick: () => visible.value = (false), diff --git a/lib/src/features/settings/controller/server_controller.dart b/lib/src/features/settings/controller/server_controller.dart new file mode 100644 index 00000000..387bf786 --- /dev/null +++ b/lib/src/features/settings/controller/server_controller.dart @@ -0,0 +1,17 @@ +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../utils/extensions/custom_extensions.dart'; +import '../data/settings_repository.dart'; +import '../domain/settings/settings.dart'; + +part 'server_controller.g.dart'; + +@riverpod +class Settings extends _$Settings { + @override + Stream build() => + ref.watch(settingsRepositoryProvider).getServerSettings(); + + void updateState(SettingsDto value) => + state = state.copyWithData((_) => value); +} diff --git a/lib/src/features/settings/controller/server_controller.g.dart b/lib/src/features/settings/controller/server_controller.g.dart new file mode 100644 index 00000000..cbb19257 --- /dev/null +++ b/lib/src/features/settings/controller/server_controller.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_controller.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$settingsHash() => r'7980358be1bb37c35fc365430f5007488c3eb9f8'; + +/// See also [Settings]. +@ProviderFor(Settings) +final settingsProvider = + AutoDisposeStreamNotifierProvider.internal( + Settings.new, + name: r'settingsProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$settingsHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef _$Settings = AutoDisposeStreamNotifier; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/data/backup/backup_repository.dart b/lib/src/features/settings/data/backup/backup_repository.dart deleted file mode 100644 index b38ff63c..00000000 --- a/lib/src/features/settings/data/backup/backup_repository.dart +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:dio/dio.dart'; - -import 'package:file_picker/file_picker.dart'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; -import 'package:riverpod_annotation/riverpod_annotation.dart'; - -import '../../../../constants/endpoints.dart'; -import '../../../../global_providers/global_providers.dart'; - -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/storage/dio/dio_client.dart'; -import '../../domain/backup_missing/backup_missing.dart'; - -part 'backup_repository.g.dart'; - -class BackupRepository { - const BackupRepository(this.dioClient); - - final DioClient dioClient; - - Future restoreBackup( - BuildContext context, PlatformFile? file) async { - if ((file?.name).isBlank || - (kIsWeb && (file?.bytes).isBlank || - (!kIsWeb && (file?.path).isBlank))) { - throw context.l10n!.errorFilePick; - } - if (!(file!.name.endsWith('.proto.gz'))) { - throw context.l10n!.errorFilePickUnknownExtension(".proto.gz"); - } - return (await dioClient.post( - BackupUrl.import, - data: FormData.fromMap({ - 'backup.proto.gz': kIsWeb - ? MultipartFile.fromBytes( - file.bytes!, - filename: "backup.proto.gz", - ) - : MultipartFile.fromFileSync( - file.path!, - filename: "backup.proto.gz", - ) - }), - decoder: (e) => - e is Map ? BackupMissing.fromJson(e) : null, - )) - .data; - } -} - -@riverpod -BackupRepository backupRepository(BackupRepositoryRef ref) => - BackupRepository(ref.watch(dioClientKeyProvider)); diff --git a/lib/src/features/settings/data/backup/backup_repository.g.dart b/lib/src/features/settings/data/backup/backup_repository.g.dart deleted file mode 100644 index a5372112..00000000 --- a/lib/src/features/settings/data/backup/backup_repository.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'backup_repository.dart'; - -// ************************************************************************** -// RiverpodGenerator -// ************************************************************************** - -String _$backupRepositoryHash() => r'f23ad9ca70263d5a36808247d3868230cacaa3cd'; - -/// See also [backupRepository]. -@ProviderFor(backupRepository) -final backupRepositoryProvider = AutoDisposeProvider.internal( - backupRepository, - name: r'backupRepositoryProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$backupRepositoryHash, - dependencies: null, - allTransitiveDependencies: null, -); - -typedef BackupRepositoryRef = AutoDisposeProviderRef; -// ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/src/features/settings/data/graphql/__generated__/server_settings_query.ast.gql.dart b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.ast.gql.dart new file mode 100644 index 00000000..5219498f --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.ast.gql.dart @@ -0,0 +1,56 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ServerSettings = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'ServerSettings'), + variableDefinitions: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ServerSettings, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.dart b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.dart new file mode 100644 index 00000000..5de168c3 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.dart @@ -0,0 +1,141 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'server_settings_query.data.gql.g.dart'; + +abstract class GServerSettingsData + implements Built { + GServerSettingsData._(); + + factory GServerSettingsData( + [void Function(GServerSettingsDataBuilder b) updates]) = + _$GServerSettingsData; + + static void _initializeBuilder(GServerSettingsDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GServerSettingsData_settings get settings; + static Serializer get serializer => + _$gServerSettingsDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerSettingsData.serializer, + this, + ) as Map); + + static GServerSettingsData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerSettingsData.serializer, + json, + ); +} + +abstract class GServerSettingsData_settings + implements + Built, + _i2.GSettingsFragment { + GServerSettingsData_settings._(); + + factory GServerSettingsData_settings( + [void Function(GServerSettingsData_settingsBuilder b) updates]) = + _$GServerSettingsData_settings; + + static void _initializeBuilder(GServerSettingsData_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gServerSettingsDataSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GServerSettingsData_settings.serializer, + this, + ) as Map); + + static GServerSettingsData_settings? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerSettingsData_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.g.dart new file mode 100644 index 00000000..aeb0bd80 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.g.dart @@ -0,0 +1,1148 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_query.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerSettingsDataSerializer = + new _$GServerSettingsDataSerializer(); +Serializer + _$gServerSettingsDataSettingsSerializer = + new _$GServerSettingsData_settingsSerializer(); + +class _$GServerSettingsDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerSettingsData, + _$GServerSettingsData + ]; + @override + final String wireName = 'GServerSettingsData'; + + @override + Iterable serialize( + Serializers serializers, GServerSettingsData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType(GServerSettingsData_settings)), + ]; + + return result; + } + + @override + GServerSettingsData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerSettingsDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType(GServerSettingsData_settings))! + as GServerSettingsData_settings); + break; + } + } + + return result.build(); + } +} + +class _$GServerSettingsData_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerSettingsData_settings, + _$GServerSettingsData_settings + ]; + @override + final String wireName = 'GServerSettingsData_settings'; + + @override + Iterable serialize( + Serializers serializers, GServerSettingsData_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GServerSettingsData_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerSettingsData_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GServerSettingsData extends GServerSettingsData { + @override + final String G__typename; + @override + final GServerSettingsData_settings settings; + + factory _$GServerSettingsData( + [void Function(GServerSettingsDataBuilder)? updates]) => + (new GServerSettingsDataBuilder()..update(updates))._build(); + + _$GServerSettingsData._({required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerSettingsData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GServerSettingsData', 'settings'); + } + + @override + GServerSettingsData rebuild( + void Function(GServerSettingsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerSettingsDataBuilder toBuilder() => + new GServerSettingsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerSettingsData && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerSettingsData') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GServerSettingsDataBuilder + implements Builder { + _$GServerSettingsData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GServerSettingsData_settingsBuilder? _settings; + GServerSettingsData_settingsBuilder get settings => + _$this._settings ??= new GServerSettingsData_settingsBuilder(); + set settings(GServerSettingsData_settingsBuilder? settings) => + _$this._settings = settings; + + GServerSettingsDataBuilder() { + GServerSettingsData._initializeBuilder(this); + } + + GServerSettingsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GServerSettingsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerSettingsData; + } + + @override + void update(void Function(GServerSettingsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerSettingsData build() => _build(); + + _$GServerSettingsData _build() { + _$GServerSettingsData _$result; + try { + _$result = _$v ?? + new _$GServerSettingsData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerSettingsData', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerSettingsData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GServerSettingsData_settings extends GServerSettingsData_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GServerSettingsData_settings( + [void Function(GServerSettingsData_settingsBuilder)? updates]) => + (new GServerSettingsData_settingsBuilder()..update(updates))._build(); + + _$GServerSettingsData_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerSettingsData_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, r'GServerSettingsData_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GServerSettingsData_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GServerSettingsData_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GServerSettingsData_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GServerSettingsData_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GServerSettingsData_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GServerSettingsData_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GServerSettingsData_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GServerSettingsData_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GServerSettingsData_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GServerSettingsData_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GServerSettingsData_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GServerSettingsData_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GServerSettingsData_settings', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GServerSettingsData_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GServerSettingsData_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GServerSettingsData_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, r'GServerSettingsData_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GServerSettingsData_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GServerSettingsData_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, r'GServerSettingsData_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GServerSettingsData_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GServerSettingsData_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GServerSettingsData_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, r'GServerSettingsData_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, r'GServerSettingsData_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GServerSettingsData_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GServerSettingsData_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, r'GServerSettingsData_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, r'GServerSettingsData_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChapters, + r'GServerSettingsData_settings', 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChaptersLimit, + r'GServerSettingsData_settings', 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull(excludeEntryWithUnreadChapters, + r'GServerSettingsData_settings', 'excludeEntryWithUnreadChapters'); + } + + @override + GServerSettingsData_settings rebuild( + void Function(GServerSettingsData_settingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerSettingsData_settingsBuilder toBuilder() => + new GServerSettingsData_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerSettingsData_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerSettingsData_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GServerSettingsData_settingsBuilder + implements + Builder { + _$GServerSettingsData_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GServerSettingsData_settingsBuilder() { + GServerSettingsData_settings._initializeBuilder(this); + } + + GServerSettingsData_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GServerSettingsData_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerSettingsData_settings; + } + + @override + void update(void Function(GServerSettingsData_settingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerSettingsData_settings build() => _build(); + + _$GServerSettingsData_settings _build() { + _$GServerSettingsData_settings _$result; + try { + _$result = _$v ?? + new _$GServerSettingsData_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerSettingsData_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GServerSettingsData_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GServerSettingsData_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GServerSettingsData_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GServerSettingsData_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GServerSettingsData_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GServerSettingsData_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GServerSettingsData_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GServerSettingsData_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GServerSettingsData_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GServerSettingsData_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GServerSettingsData_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GServerSettingsData_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GServerSettingsData_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GServerSettingsData_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GServerSettingsData_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GServerSettingsData_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GServerSettingsData_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GServerSettingsData_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GServerSettingsData_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GServerSettingsData_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GServerSettingsData_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GServerSettingsData_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GServerSettingsData_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, r'GServerSettingsData_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GServerSettingsData_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GServerSettingsData_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GServerSettingsData_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GServerSettingsData_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GServerSettingsData_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GServerSettingsData_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GServerSettingsData_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GServerSettingsData_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerSettingsData_settings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/data/graphql/__generated__/server_settings_query.req.gql.dart b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.req.gql.dart new file mode 100644 index 00000000..f94bfa20 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.req.gql.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/server_settings_query.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'server_settings_query.req.gql.g.dart'; + +abstract class GServerSettingsReq + implements + Built, + _i1.OperationRequest<_i2.GServerSettingsData, _i3.GServerSettingsVars> { + GServerSettingsReq._(); + + factory GServerSettingsReq( + [void Function(GServerSettingsReqBuilder b) updates]) = + _$GServerSettingsReq; + + static void _initializeBuilder(GServerSettingsReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ServerSettings', + ) + ..executeOnListen = true; + + @override + _i3.GServerSettingsVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, + _i2.GServerSettingsData?, + )? get updateResult; + @override + _i2.GServerSettingsData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GServerSettingsData? parseData(Map json) => + _i2.GServerSettingsData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GServerSettingsData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GServerSettingsData, _i3.GServerSettingsVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gServerSettingsReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GServerSettingsReq.serializer, + this, + ) as Map); + + static GServerSettingsReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GServerSettingsReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/data/graphql/__generated__/server_settings_query.req.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.req.gql.g.dart new file mode 100644 index 00000000..95ef66d6 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.req.gql.g.dart @@ -0,0 +1,370 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_query.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerSettingsReqSerializer = + new _$GServerSettingsReqSerializer(); + +class _$GServerSettingsReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GServerSettingsReq, _$GServerSettingsReq]; + @override + final String wireName = 'GServerSettingsReq'; + + @override + Iterable serialize( + Serializers serializers, GServerSettingsReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GServerSettingsVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GServerSettingsData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GServerSettingsReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerSettingsReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GServerSettingsVars))! + as _i3.GServerSettingsVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GServerSettingsData))! + as _i2.GServerSettingsData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GServerSettingsReq extends GServerSettingsReq { + @override + final _i3.GServerSettingsVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? updateResult; + @override + final _i2.GServerSettingsData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GServerSettingsReq( + [void Function(GServerSettingsReqBuilder)? updates]) => + (new GServerSettingsReqBuilder()..update(updates))._build(); + + _$GServerSettingsReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GServerSettingsReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GServerSettingsReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GServerSettingsReq', 'executeOnListen'); + } + + @override + GServerSettingsReq rebuild( + void Function(GServerSettingsReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerSettingsReqBuilder toBuilder() => + new GServerSettingsReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GServerSettingsReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerSettingsReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GServerSettingsReqBuilder + implements Builder { + _$GServerSettingsReq? _$v; + + _i3.GServerSettingsVarsBuilder? _vars; + _i3.GServerSettingsVarsBuilder get vars => + _$this._vars ??= new _i3.GServerSettingsVarsBuilder(); + set vars(_i3.GServerSettingsVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? _updateResult; + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GServerSettingsData? Function( + _i2.GServerSettingsData?, _i2.GServerSettingsData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GServerSettingsDataBuilder? _optimisticResponse; + _i2.GServerSettingsDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GServerSettingsDataBuilder(); + set optimisticResponse(_i2.GServerSettingsDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GServerSettingsReqBuilder() { + GServerSettingsReq._initializeBuilder(this); + } + + GServerSettingsReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GServerSettingsReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerSettingsReq; + } + + @override + void update(void Function(GServerSettingsReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerSettingsReq build() => _build(); + + _$GServerSettingsReq _build() { + _$GServerSettingsReq _$result; + try { + _$result = _$v ?? + new _$GServerSettingsReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GServerSettingsReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GServerSettingsReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerSettingsReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.dart b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.dart new file mode 100644 index 00000000..49ac5b1e --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'server_settings_query.var.gql.g.dart'; + +abstract class GServerSettingsVars + implements Built { + GServerSettingsVars._(); + + factory GServerSettingsVars( + [void Function(GServerSettingsVarsBuilder b) updates]) = + _$GServerSettingsVars; + + static Serializer get serializer => + _$gServerSettingsVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerSettingsVars.serializer, + this, + ) as Map); + + static GServerSettingsVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerSettingsVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.g.dart b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.g.dart new file mode 100644 index 00000000..a1a6ce36 --- /dev/null +++ b/lib/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_query.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerSettingsVarsSerializer = + new _$GServerSettingsVarsSerializer(); + +class _$GServerSettingsVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerSettingsVars, + _$GServerSettingsVars + ]; + @override + final String wireName = 'GServerSettingsVars'; + + @override + Iterable serialize( + Serializers serializers, GServerSettingsVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GServerSettingsVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GServerSettingsVarsBuilder().build(); + } +} + +class _$GServerSettingsVars extends GServerSettingsVars { + factory _$GServerSettingsVars( + [void Function(GServerSettingsVarsBuilder)? updates]) => + (new GServerSettingsVarsBuilder()..update(updates))._build(); + + _$GServerSettingsVars._() : super._(); + + @override + GServerSettingsVars rebuild( + void Function(GServerSettingsVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerSettingsVarsBuilder toBuilder() => + new GServerSettingsVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerSettingsVars; + } + + @override + int get hashCode { + return 10413499; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GServerSettingsVars').toString(); + } +} + +class GServerSettingsVarsBuilder + implements Builder { + _$GServerSettingsVars? _$v; + + GServerSettingsVarsBuilder(); + + @override + void replace(GServerSettingsVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerSettingsVars; + } + + @override + void update(void Function(GServerSettingsVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerSettingsVars build() => _build(); + + _$GServerSettingsVars _build() { + final _$result = _$v ?? new _$GServerSettingsVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/data/graphql/query.dart b/lib/src/features/settings/data/graphql/query.dart new file mode 100644 index 00000000..6e532ff2 --- /dev/null +++ b/lib/src/features/settings/data/graphql/query.dart @@ -0,0 +1,5 @@ +import '__generated__/server_settings_query.req.gql.dart'; + +abstract class SettingsQuery { + static GServerSettingsReq serverSettings() => GServerSettingsReq(); +} diff --git a/lib/src/features/settings/data/graphql/server_settings_query.graphql b/lib/src/features/settings/data/graphql/server_settings_query.graphql new file mode 100644 index 00000000..07697040 --- /dev/null +++ b/lib/src/features/settings/data/graphql/server_settings_query.graphql @@ -0,0 +1,7 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +query ServerSettings { + settings { + ...SettingsFragment + } +} diff --git a/lib/src/features/settings/data/settings_repository.dart b/lib/src/features/settings/data/settings_repository.dart new file mode 100644 index 00000000..cfd98af9 --- /dev/null +++ b/lib/src/features/settings/data/settings_repository.dart @@ -0,0 +1,25 @@ +import 'package:ferry/ferry.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../global_providers/global_providers.dart'; +import '../../../utils/extensions/custom_extensions.dart'; +import '../domain/settings/settings.dart'; +import 'graphql/query.dart'; + +part 'settings_repository.g.dart'; + +class SettingsRepository { + const SettingsRepository(this.ferryClient); + + final Client ferryClient; + + Stream getServerSettings() => ferryClient.fetch( + SettingsQuery.serverSettings(), + (data) => data.settings, + ); +} + +@riverpod +SettingsRepository settingsRepository(Ref ref) => + SettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/data/settings_repository.g.dart b/lib/src/features/settings/data/settings_repository.g.dart new file mode 100644 index 00000000..ef4230fa --- /dev/null +++ b/lib/src/features/settings/data/settings_repository.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$settingsRepositoryHash() => + r'c014ae7626c141eab72fe1f8c1255ea52b1a2101'; + +/// See also [settingsRepository]. +@ProviderFor(settingsRepository) +final settingsRepositoryProvider = + AutoDisposeProvider.internal( + settingsRepository, + name: r'settingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$settingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SettingsRepositoryRef = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/domain/automatic_backup_settings/automatic_backup_settings_dto.dart b/lib/src/features/settings/domain/automatic_backup_settings/automatic_backup_settings_dto.dart new file mode 100644 index 00000000..683cd58b --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/automatic_backup_settings_dto.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/automatic_backup_settings_fragment.data.gql.dart'; + +typedef AutomaticBackupSettingsDto = GAutomaticBackupSettingsFragment; diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart new file mode 100644 index 00000000..4cb1e762 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const AutomaticBackupSettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'AutomaticBackupSettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'backupInterval'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupPath'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTTL'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'backupTime'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = + _i1.DocumentNode(definitions: [AutomaticBackupSettingsFragment]); diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.dart new file mode 100644 index 00000000..89b1b339 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.dart @@ -0,0 +1,62 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'automatic_backup_settings_fragment.data.gql.g.dart'; + +abstract class GAutomaticBackupSettingsFragment { + String get G__typename; + int get backupInterval; + String get backupPath; + int get backupTTL; + String get backupTime; + Map toJson(); +} + +abstract class GAutomaticBackupSettingsFragmentData + implements + Built, + GAutomaticBackupSettingsFragment { + GAutomaticBackupSettingsFragmentData._(); + + factory GAutomaticBackupSettingsFragmentData( + [void Function(GAutomaticBackupSettingsFragmentDataBuilder b) + updates]) = _$GAutomaticBackupSettingsFragmentData; + + static void _initializeBuilder( + GAutomaticBackupSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + static Serializer get serializer => + _$gAutomaticBackupSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GAutomaticBackupSettingsFragmentData.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsFragmentData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAutomaticBackupSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.g.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.g.dart new file mode 100644 index 00000000..4e46a62b --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.g.dart @@ -0,0 +1,247 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'automatic_backup_settings_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsFragmentDataSerializer = + new _$GAutomaticBackupSettingsFragmentDataSerializer(); + +class _$GAutomaticBackupSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsFragmentData, + _$GAutomaticBackupSettingsFragmentData + ]; + @override + final String wireName = 'GAutomaticBackupSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GAutomaticBackupSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAutomaticBackupSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsFragmentData + extends GAutomaticBackupSettingsFragmentData { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + + factory _$GAutomaticBackupSettingsFragmentData( + [void Function(GAutomaticBackupSettingsFragmentDataBuilder)? + updates]) => + (new GAutomaticBackupSettingsFragmentDataBuilder()..update(updates)) + ._build(); + + _$GAutomaticBackupSettingsFragmentData._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GAutomaticBackupSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GAutomaticBackupSettingsFragmentData', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GAutomaticBackupSettingsFragmentData', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GAutomaticBackupSettingsFragmentData', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GAutomaticBackupSettingsFragmentData', 'backupTime'); + } + + @override + GAutomaticBackupSettingsFragmentData rebuild( + void Function(GAutomaticBackupSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsFragmentDataBuilder toBuilder() => + new GAutomaticBackupSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsFragmentData && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime)) + .toString(); + } +} + +class GAutomaticBackupSettingsFragmentDataBuilder + implements + Builder { + _$GAutomaticBackupSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + GAutomaticBackupSettingsFragmentDataBuilder() { + GAutomaticBackupSettingsFragmentData._initializeBuilder(this); + } + + GAutomaticBackupSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _$v = null; + } + return this; + } + + @override + void replace(GAutomaticBackupSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsFragmentData; + } + + @override + void update( + void Function(GAutomaticBackupSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsFragmentData build() => _build(); + + _$GAutomaticBackupSettingsFragmentData _build() { + final _$result = _$v ?? + new _$GAutomaticBackupSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GAutomaticBackupSettingsFragmentData', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GAutomaticBackupSettingsFragmentData', 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GAutomaticBackupSettingsFragmentData', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GAutomaticBackupSettingsFragmentData', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GAutomaticBackupSettingsFragmentData', 'backupTime'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.req.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.req.gql.dart new file mode 100644 index 00000000..5dbc0479 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.req.gql.dart @@ -0,0 +1,73 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'automatic_backup_settings_fragment.req.gql.g.dart'; + +abstract class GAutomaticBackupSettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GAutomaticBackupSettingsFragmentData, + _i3.GAutomaticBackupSettingsFragmentVars> { + GAutomaticBackupSettingsFragmentReq._(); + + factory GAutomaticBackupSettingsFragmentReq( + [void Function(GAutomaticBackupSettingsFragmentReqBuilder b) + updates]) = _$GAutomaticBackupSettingsFragmentReq; + + static void _initializeBuilder( + GAutomaticBackupSettingsFragmentReqBuilder b) => + b + ..document = _i4.document + ..fragmentName = 'AutomaticBackupSettingsFragment'; + + @override + _i3.GAutomaticBackupSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GAutomaticBackupSettingsFragmentData? parseData( + Map json) => + _i2.GAutomaticBackupSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson( + _i2.GAutomaticBackupSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gAutomaticBackupSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GAutomaticBackupSettingsFragmentReq.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsFragmentReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GAutomaticBackupSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.req.gql.g.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.req.gql.g.dart new file mode 100644 index 00000000..873d4188 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.req.gql.g.dart @@ -0,0 +1,249 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'automatic_backup_settings_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsFragmentReqSerializer = + new _$GAutomaticBackupSettingsFragmentReqSerializer(); + +class _$GAutomaticBackupSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsFragmentReq, + _$GAutomaticBackupSettingsFragmentReq + ]; + @override + final String wireName = 'GAutomaticBackupSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: + const FullType(_i3.GAutomaticBackupSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GAutomaticBackupSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GAutomaticBackupSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GAutomaticBackupSettingsFragmentVars))! + as _i3.GAutomaticBackupSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GAutomaticBackupSettingsFragmentReq + extends GAutomaticBackupSettingsFragmentReq { + @override + final _i3.GAutomaticBackupSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GAutomaticBackupSettingsFragmentReq( + [void Function(GAutomaticBackupSettingsFragmentReqBuilder)? + updates]) => + (new GAutomaticBackupSettingsFragmentReqBuilder()..update(updates)) + ._build(); + + _$GAutomaticBackupSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GAutomaticBackupSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GAutomaticBackupSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GAutomaticBackupSettingsFragmentReq', 'idFields'); + } + + @override + GAutomaticBackupSettingsFragmentReq rebuild( + void Function(GAutomaticBackupSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsFragmentReqBuilder toBuilder() => + new GAutomaticBackupSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GAutomaticBackupSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GAutomaticBackupSettingsFragmentReqBuilder + implements + Builder { + _$GAutomaticBackupSettingsFragmentReq? _$v; + + _i3.GAutomaticBackupSettingsFragmentVarsBuilder? _vars; + _i3.GAutomaticBackupSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GAutomaticBackupSettingsFragmentVarsBuilder(); + set vars(_i3.GAutomaticBackupSettingsFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GAutomaticBackupSettingsFragmentReqBuilder() { + GAutomaticBackupSettingsFragmentReq._initializeBuilder(this); + } + + GAutomaticBackupSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GAutomaticBackupSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsFragmentReq; + } + + @override + void update( + void Function(GAutomaticBackupSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsFragmentReq build() => _build(); + + _$GAutomaticBackupSettingsFragmentReq _build() { + _$GAutomaticBackupSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GAutomaticBackupSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GAutomaticBackupSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GAutomaticBackupSettingsFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GAutomaticBackupSettingsFragmentReq', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.dart new file mode 100644 index 00000000..4375e95e --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'automatic_backup_settings_fragment.var.gql.g.dart'; + +abstract class GAutomaticBackupSettingsFragmentVars + implements + Built { + GAutomaticBackupSettingsFragmentVars._(); + + factory GAutomaticBackupSettingsFragmentVars( + [void Function(GAutomaticBackupSettingsFragmentVarsBuilder b) + updates]) = _$GAutomaticBackupSettingsFragmentVars; + + static Serializer get serializer => + _$gAutomaticBackupSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GAutomaticBackupSettingsFragmentVars.serializer, + this, + ) as Map); + + static GAutomaticBackupSettingsFragmentVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GAutomaticBackupSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.g.dart b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.g.dart new file mode 100644 index 00000000..15faaa8a --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.g.dart @@ -0,0 +1,105 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'automatic_backup_settings_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gAutomaticBackupSettingsFragmentVarsSerializer = + new _$GAutomaticBackupSettingsFragmentVarsSerializer(); + +class _$GAutomaticBackupSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GAutomaticBackupSettingsFragmentVars, + _$GAutomaticBackupSettingsFragmentVars + ]; + @override + final String wireName = 'GAutomaticBackupSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GAutomaticBackupSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GAutomaticBackupSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GAutomaticBackupSettingsFragmentVarsBuilder().build(); + } +} + +class _$GAutomaticBackupSettingsFragmentVars + extends GAutomaticBackupSettingsFragmentVars { + factory _$GAutomaticBackupSettingsFragmentVars( + [void Function(GAutomaticBackupSettingsFragmentVarsBuilder)? + updates]) => + (new GAutomaticBackupSettingsFragmentVarsBuilder()..update(updates)) + ._build(); + + _$GAutomaticBackupSettingsFragmentVars._() : super._(); + + @override + GAutomaticBackupSettingsFragmentVars rebuild( + void Function(GAutomaticBackupSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GAutomaticBackupSettingsFragmentVarsBuilder toBuilder() => + new GAutomaticBackupSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GAutomaticBackupSettingsFragmentVars; + } + + @override + int get hashCode { + return 729542752; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GAutomaticBackupSettingsFragmentVars') + .toString(); + } +} + +class GAutomaticBackupSettingsFragmentVarsBuilder + implements + Builder { + _$GAutomaticBackupSettingsFragmentVars? _$v; + + GAutomaticBackupSettingsFragmentVarsBuilder(); + + @override + void replace(GAutomaticBackupSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GAutomaticBackupSettingsFragmentVars; + } + + @override + void update( + void Function(GAutomaticBackupSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GAutomaticBackupSettingsFragmentVars build() => _build(); + + _$GAutomaticBackupSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GAutomaticBackupSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/automatic_backup_settings/graphql/automatic_backup_settings_fragment.graphql b/lib/src/features/settings/domain/automatic_backup_settings/graphql/automatic_backup_settings_fragment.graphql new file mode 100644 index 00000000..88991209 --- /dev/null +++ b/lib/src/features/settings/domain/automatic_backup_settings/graphql/automatic_backup_settings_fragment.graphql @@ -0,0 +1,7 @@ + +fragment AutomaticBackupSettingsFragment on SettingsType { + backupInterval + backupPath + backupTTL + backupTime +} diff --git a/lib/src/features/settings/domain/backup_missing/backup_missing.dart b/lib/src/features/settings/domain/backup_missing/backup_missing.dart deleted file mode 100644 index c517098c..00000000 --- a/lib/src/features/settings/domain/backup_missing/backup_missing.dart +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../../utils/extensions/custom_extensions.dart'; - -part 'backup_missing.freezed.dart'; -part 'backup_missing.g.dart'; - -@freezed -class BackupMissing with _$BackupMissing { - BackupMissing._(); - factory BackupMissing({ - List? missingSources, - List? missingTrackers, - List? mangasMissingSources, - }) = _BackupMissing; - - BackupMissing get filter => BackupMissing( - missingSources: [...?missingSources] - ..removeWhere((element) => element.isBlank), - missingTrackers: [...?missingTrackers] - ..removeWhere((element) => element.isBlank), - mangasMissingSources: [...?mangasMissingSources] - ..removeWhere((element) => element.isBlank), - ); - bool get isEmpty => - missingSources.isBlank && - missingTrackers.isBlank && - mangasMissingSources.isBlank; - - factory BackupMissing.fromJson(Map json) => - _$BackupMissingFromJson(json); -} diff --git a/lib/src/features/settings/domain/backup_missing/backup_missing.freezed.dart b/lib/src/features/settings/domain/backup_missing/backup_missing.freezed.dart deleted file mode 100644 index f16553a5..00000000 --- a/lib/src/features/settings/domain/backup_missing/backup_missing.freezed.dart +++ /dev/null @@ -1,231 +0,0 @@ -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'backup_missing.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -T _$identity(T value) => value; - -final _privateConstructorUsedError = UnsupportedError( - 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); - -BackupMissing _$BackupMissingFromJson(Map json) { - return _BackupMissing.fromJson(json); -} - -/// @nodoc -mixin _$BackupMissing { - List? get missingSources => throw _privateConstructorUsedError; - List? get missingTrackers => throw _privateConstructorUsedError; - List? get mangasMissingSources => throw _privateConstructorUsedError; - - Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) - $BackupMissingCopyWith get copyWith => - throw _privateConstructorUsedError; -} - -/// @nodoc -abstract class $BackupMissingCopyWith<$Res> { - factory $BackupMissingCopyWith( - BackupMissing value, $Res Function(BackupMissing) then) = - _$BackupMissingCopyWithImpl<$Res, BackupMissing>; - @useResult - $Res call( - {List? missingSources, - List? missingTrackers, - List? mangasMissingSources}); -} - -/// @nodoc -class _$BackupMissingCopyWithImpl<$Res, $Val extends BackupMissing> - implements $BackupMissingCopyWith<$Res> { - _$BackupMissingCopyWithImpl(this._value, this._then); - - // ignore: unused_field - final $Val _value; - // ignore: unused_field - final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? missingSources = freezed, - Object? missingTrackers = freezed, - Object? mangasMissingSources = freezed, - }) { - return _then(_value.copyWith( - missingSources: freezed == missingSources - ? _value.missingSources - : missingSources // ignore: cast_nullable_to_non_nullable - as List?, - missingTrackers: freezed == missingTrackers - ? _value.missingTrackers - : missingTrackers // ignore: cast_nullable_to_non_nullable - as List?, - mangasMissingSources: freezed == mangasMissingSources - ? _value.mangasMissingSources - : mangasMissingSources // ignore: cast_nullable_to_non_nullable - as List?, - ) as $Val); - } -} - -/// @nodoc -abstract class _$$BackupMissingImplCopyWith<$Res> - implements $BackupMissingCopyWith<$Res> { - factory _$$BackupMissingImplCopyWith( - _$BackupMissingImpl value, $Res Function(_$BackupMissingImpl) then) = - __$$BackupMissingImplCopyWithImpl<$Res>; - @override - @useResult - $Res call( - {List? missingSources, - List? missingTrackers, - List? mangasMissingSources}); -} - -/// @nodoc -class __$$BackupMissingImplCopyWithImpl<$Res> - extends _$BackupMissingCopyWithImpl<$Res, _$BackupMissingImpl> - implements _$$BackupMissingImplCopyWith<$Res> { - __$$BackupMissingImplCopyWithImpl( - _$BackupMissingImpl _value, $Res Function(_$BackupMissingImpl) _then) - : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? missingSources = freezed, - Object? missingTrackers = freezed, - Object? mangasMissingSources = freezed, - }) { - return _then(_$BackupMissingImpl( - missingSources: freezed == missingSources - ? _value._missingSources - : missingSources // ignore: cast_nullable_to_non_nullable - as List?, - missingTrackers: freezed == missingTrackers - ? _value._missingTrackers - : missingTrackers // ignore: cast_nullable_to_non_nullable - as List?, - mangasMissingSources: freezed == mangasMissingSources - ? _value._mangasMissingSources - : mangasMissingSources // ignore: cast_nullable_to_non_nullable - as List?, - )); - } -} - -/// @nodoc -@JsonSerializable() -class _$BackupMissingImpl extends _BackupMissing { - _$BackupMissingImpl( - {final List? missingSources, - final List? missingTrackers, - final List? mangasMissingSources}) - : _missingSources = missingSources, - _missingTrackers = missingTrackers, - _mangasMissingSources = mangasMissingSources, - super._(); - - factory _$BackupMissingImpl.fromJson(Map json) => - _$$BackupMissingImplFromJson(json); - - final List? _missingSources; - @override - List? get missingSources { - final value = _missingSources; - if (value == null) return null; - if (_missingSources is EqualUnmodifiableListView) return _missingSources; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - final List? _missingTrackers; - @override - List? get missingTrackers { - final value = _missingTrackers; - if (value == null) return null; - if (_missingTrackers is EqualUnmodifiableListView) return _missingTrackers; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - final List? _mangasMissingSources; - @override - List? get mangasMissingSources { - final value = _mangasMissingSources; - if (value == null) return null; - if (_mangasMissingSources is EqualUnmodifiableListView) - return _mangasMissingSources; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); - } - - @override - String toString() { - return 'BackupMissing(missingSources: $missingSources, missingTrackers: $missingTrackers, mangasMissingSources: $mangasMissingSources)'; - } - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BackupMissingImpl && - const DeepCollectionEquality() - .equals(other._missingSources, _missingSources) && - const DeepCollectionEquality() - .equals(other._missingTrackers, _missingTrackers) && - const DeepCollectionEquality() - .equals(other._mangasMissingSources, _mangasMissingSources)); - } - - @JsonKey(ignore: true) - @override - int get hashCode => Object.hash( - runtimeType, - const DeepCollectionEquality().hash(_missingSources), - const DeepCollectionEquality().hash(_missingTrackers), - const DeepCollectionEquality().hash(_mangasMissingSources)); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$BackupMissingImplCopyWith<_$BackupMissingImpl> get copyWith => - __$$BackupMissingImplCopyWithImpl<_$BackupMissingImpl>(this, _$identity); - - @override - Map toJson() { - return _$$BackupMissingImplToJson( - this, - ); - } -} - -abstract class _BackupMissing extends BackupMissing { - factory _BackupMissing( - {final List? missingSources, - final List? missingTrackers, - final List? mangasMissingSources}) = _$BackupMissingImpl; - _BackupMissing._() : super._(); - - factory _BackupMissing.fromJson(Map json) = - _$BackupMissingImpl.fromJson; - - @override - List? get missingSources; - @override - List? get missingTrackers; - @override - List? get mangasMissingSources; - @override - @JsonKey(ignore: true) - _$$BackupMissingImplCopyWith<_$BackupMissingImpl> get copyWith => - throw _privateConstructorUsedError; -} diff --git a/lib/src/features/settings/domain/backup_missing/backup_missing.g.dart b/lib/src/features/settings/domain/backup_missing/backup_missing.g.dart deleted file mode 100644 index f42017a6..00000000 --- a/lib/src/features/settings/domain/backup_missing/backup_missing.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'backup_missing.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -_$BackupMissingImpl _$$BackupMissingImplFromJson(Map json) => - _$BackupMissingImpl( - missingSources: (json['missingSources'] as List?) - ?.map((e) => e as String) - .toList(), - missingTrackers: (json['missingTrackers'] as List?) - ?.map((e) => e as String) - .toList(), - mangasMissingSources: (json['mangasMissingSources'] as List?) - ?.map((e) => e as String) - .toList(), - ); - -Map _$$BackupMissingImplToJson(_$BackupMissingImpl instance) => - { - 'missingSources': instance.missingSources, - 'missingTrackers': instance.missingTrackers, - 'mangasMissingSources': instance.mangasMissingSources, - }; diff --git a/lib/src/features/settings/domain/browse/browse_settings.dart b/lib/src/features/settings/domain/browse/browse_settings.dart new file mode 100644 index 00000000..bdee7b57 --- /dev/null +++ b/lib/src/features/settings/domain/browse/browse_settings.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef BrowseSettingsDto = GBrowserSettingsFragment; diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..f3abecc1 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const BrowserSettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'BrowserSettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'extensionRepos'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'localSourcePath'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [BrowserSettingsFragment]); diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..96fc93a0 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,58 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GBrowserSettingsFragment { + String get G__typename; + BuiltList get extensionRepos; + int get maxSourcesInParallel; + String get localSourcePath; + Map toJson(); +} + +abstract class GBrowserSettingsFragmentData + implements + Built, + GBrowserSettingsFragment { + GBrowserSettingsFragmentData._(); + + factory GBrowserSettingsFragmentData( + [void Function(GBrowserSettingsFragmentDataBuilder b) updates]) = + _$GBrowserSettingsFragmentData; + + static void _initializeBuilder(GBrowserSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + static Serializer get serializer => + _$gBrowserSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GBrowserSettingsFragmentData.serializer, + this, + ) as Map); + + static GBrowserSettingsFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBrowserSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..e1e51579 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,243 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gBrowserSettingsFragmentDataSerializer = + new _$GBrowserSettingsFragmentDataSerializer(); + +class _$GBrowserSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBrowserSettingsFragmentData, + _$GBrowserSettingsFragmentData + ]; + @override + final String wireName = 'GBrowserSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GBrowserSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GBrowserSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBrowserSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GBrowserSettingsFragmentData extends GBrowserSettingsFragmentData { + @override + final String G__typename; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + + factory _$GBrowserSettingsFragmentData( + [void Function(GBrowserSettingsFragmentDataBuilder)? updates]) => + (new GBrowserSettingsFragmentDataBuilder()..update(updates))._build(); + + _$GBrowserSettingsFragmentData._( + {required this.G__typename, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GBrowserSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, r'GBrowserSettingsFragmentData', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GBrowserSettingsFragmentData', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GBrowserSettingsFragmentData', 'localSourcePath'); + } + + @override + GBrowserSettingsFragmentData rebuild( + void Function(GBrowserSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBrowserSettingsFragmentDataBuilder toBuilder() => + new GBrowserSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBrowserSettingsFragmentData && + G__typename == other.G__typename && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBrowserSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GBrowserSettingsFragmentDataBuilder + implements + Builder { + _$GBrowserSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GBrowserSettingsFragmentDataBuilder() { + GBrowserSettingsFragmentData._initializeBuilder(this); + } + + GBrowserSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GBrowserSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBrowserSettingsFragmentData; + } + + @override + void update(void Function(GBrowserSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBrowserSettingsFragmentData build() => _build(); + + _$GBrowserSettingsFragmentData _build() { + _$GBrowserSettingsFragmentData _$result; + try { + _$result = _$v ?? + new _$GBrowserSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GBrowserSettingsFragmentData', 'G__typename'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GBrowserSettingsFragmentData', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GBrowserSettingsFragmentData', + 'localSourcePath'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBrowserSettingsFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..aafa8fec --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GBrowserSettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GBrowserSettingsFragmentData, + _i3.GBrowserSettingsFragmentVars> { + GBrowserSettingsFragmentReq._(); + + factory GBrowserSettingsFragmentReq( + [void Function(GBrowserSettingsFragmentReqBuilder b) updates]) = + _$GBrowserSettingsFragmentReq; + + static void _initializeBuilder(GBrowserSettingsFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'BrowserSettingsFragment'; + + @override + _i3.GBrowserSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GBrowserSettingsFragmentData? parseData(Map json) => + _i2.GBrowserSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GBrowserSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gBrowserSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GBrowserSettingsFragmentReq.serializer, + this, + ) as Map); + + static GBrowserSettingsFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GBrowserSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..d0f899da --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,242 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gBrowserSettingsFragmentReqSerializer = + new _$GBrowserSettingsFragmentReqSerializer(); + +class _$GBrowserSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBrowserSettingsFragmentReq, + _$GBrowserSettingsFragmentReq + ]; + @override + final String wireName = 'GBrowserSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GBrowserSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GBrowserSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GBrowserSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBrowserSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GBrowserSettingsFragmentVars))! + as _i3.GBrowserSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GBrowserSettingsFragmentReq extends GBrowserSettingsFragmentReq { + @override + final _i3.GBrowserSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GBrowserSettingsFragmentReq( + [void Function(GBrowserSettingsFragmentReqBuilder)? updates]) => + (new GBrowserSettingsFragmentReqBuilder()..update(updates))._build(); + + _$GBrowserSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GBrowserSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GBrowserSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GBrowserSettingsFragmentReq', 'idFields'); + } + + @override + GBrowserSettingsFragmentReq rebuild( + void Function(GBrowserSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBrowserSettingsFragmentReqBuilder toBuilder() => + new GBrowserSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBrowserSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBrowserSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GBrowserSettingsFragmentReqBuilder + implements + Builder { + _$GBrowserSettingsFragmentReq? _$v; + + _i3.GBrowserSettingsFragmentVarsBuilder? _vars; + _i3.GBrowserSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GBrowserSettingsFragmentVarsBuilder(); + set vars(_i3.GBrowserSettingsFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GBrowserSettingsFragmentReqBuilder() { + GBrowserSettingsFragmentReq._initializeBuilder(this); + } + + GBrowserSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GBrowserSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBrowserSettingsFragmentReq; + } + + @override + void update(void Function(GBrowserSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBrowserSettingsFragmentReq build() => _build(); + + _$GBrowserSettingsFragmentReq _build() { + _$GBrowserSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GBrowserSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GBrowserSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GBrowserSettingsFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBrowserSettingsFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..1e7afd7c --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GBrowserSettingsFragmentVars + implements + Built { + GBrowserSettingsFragmentVars._(); + + factory GBrowserSettingsFragmentVars( + [void Function(GBrowserSettingsFragmentVarsBuilder b) updates]) = + _$GBrowserSettingsFragmentVars; + + static Serializer get serializer => + _$gBrowserSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GBrowserSettingsFragmentVars.serializer, + this, + ) as Map); + + static GBrowserSettingsFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBrowserSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..dc878e40 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gBrowserSettingsFragmentVarsSerializer = + new _$GBrowserSettingsFragmentVarsSerializer(); + +class _$GBrowserSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBrowserSettingsFragmentVars, + _$GBrowserSettingsFragmentVars + ]; + @override + final String wireName = 'GBrowserSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GBrowserSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GBrowserSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GBrowserSettingsFragmentVarsBuilder().build(); + } +} + +class _$GBrowserSettingsFragmentVars extends GBrowserSettingsFragmentVars { + factory _$GBrowserSettingsFragmentVars( + [void Function(GBrowserSettingsFragmentVarsBuilder)? updates]) => + (new GBrowserSettingsFragmentVarsBuilder()..update(updates))._build(); + + _$GBrowserSettingsFragmentVars._() : super._(); + + @override + GBrowserSettingsFragmentVars rebuild( + void Function(GBrowserSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBrowserSettingsFragmentVarsBuilder toBuilder() => + new GBrowserSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBrowserSettingsFragmentVars; + } + + @override + int get hashCode { + return 761217899; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GBrowserSettingsFragmentVars') + .toString(); + } +} + +class GBrowserSettingsFragmentVarsBuilder + implements + Builder { + _$GBrowserSettingsFragmentVars? _$v; + + GBrowserSettingsFragmentVarsBuilder(); + + @override + void replace(GBrowserSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBrowserSettingsFragmentVars; + } + + @override + void update(void Function(GBrowserSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBrowserSettingsFragmentVars build() => _build(); + + _$GBrowserSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GBrowserSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/browse/graphql/fragment.graphql b/lib/src/features/settings/domain/browse/graphql/fragment.graphql new file mode 100644 index 00000000..91514cb0 --- /dev/null +++ b/lib/src/features/settings/domain/browse/graphql/fragment.graphql @@ -0,0 +1,6 @@ + +fragment BrowserSettingsFragment on SettingsType { + extensionRepos + maxSourcesInParallel + localSourcePath +} diff --git a/lib/src/features/settings/domain/cloud_flare/cloud_flare.dart b/lib/src/features/settings/domain/cloud_flare/cloud_flare.dart new file mode 100644 index 00000000..d11e078d --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/cloud_flare.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef CloudFlareDto = GCloudFlareBypassFragment; diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..18332ba8 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const CloudFlareBypassFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'CloudFlareBypassFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [CloudFlareBypassFragment]); diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..ddcd6b26 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,63 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GCloudFlareBypassFragment { + String get G__typename; + bool get flareSolverrEnabled; + String get flareSolverrSessionName; + int get flareSolverrSessionTtl; + int get flareSolverrTimeout; + String get flareSolverrUrl; + Map toJson(); +} + +abstract class GCloudFlareBypassFragmentData + implements + Built, + GCloudFlareBypassFragment { + GCloudFlareBypassFragmentData._(); + + factory GCloudFlareBypassFragmentData( + [void Function(GCloudFlareBypassFragmentDataBuilder b) updates]) = + _$GCloudFlareBypassFragmentData; + + static void _initializeBuilder(GCloudFlareBypassFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + static Serializer get serializer => + _$gCloudFlareBypassFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GCloudFlareBypassFragmentData.serializer, + this, + ) as Map); + + static GCloudFlareBypassFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCloudFlareBypassFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..4a7e06c8 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,279 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gCloudFlareBypassFragmentDataSerializer = + new _$GCloudFlareBypassFragmentDataSerializer(); + +class _$GCloudFlareBypassFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCloudFlareBypassFragmentData, + _$GCloudFlareBypassFragmentData + ]; + @override + final String wireName = 'GCloudFlareBypassFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GCloudFlareBypassFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GCloudFlareBypassFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCloudFlareBypassFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCloudFlareBypassFragmentData extends GCloudFlareBypassFragmentData { + @override + final String G__typename; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + + factory _$GCloudFlareBypassFragmentData( + [void Function(GCloudFlareBypassFragmentDataBuilder)? updates]) => + (new GCloudFlareBypassFragmentDataBuilder()..update(updates))._build(); + + _$GCloudFlareBypassFragmentData._( + {required this.G__typename, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCloudFlareBypassFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GCloudFlareBypassFragmentData', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GCloudFlareBypassFragmentData', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GCloudFlareBypassFragmentData', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GCloudFlareBypassFragmentData', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GCloudFlareBypassFragmentData', 'flareSolverrUrl'); + } + + @override + GCloudFlareBypassFragmentData rebuild( + void Function(GCloudFlareBypassFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCloudFlareBypassFragmentDataBuilder toBuilder() => + new GCloudFlareBypassFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCloudFlareBypassFragmentData && + G__typename == other.G__typename && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCloudFlareBypassFragmentData') + ..add('G__typename', G__typename) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl)) + .toString(); + } +} + +class GCloudFlareBypassFragmentDataBuilder + implements + Builder { + _$GCloudFlareBypassFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + GCloudFlareBypassFragmentDataBuilder() { + GCloudFlareBypassFragmentData._initializeBuilder(this); + } + + GCloudFlareBypassFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _$v = null; + } + return this; + } + + @override + void replace(GCloudFlareBypassFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCloudFlareBypassFragmentData; + } + + @override + void update(void Function(GCloudFlareBypassFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCloudFlareBypassFragmentData build() => _build(); + + _$GCloudFlareBypassFragmentData _build() { + final _$result = _$v ?? + new _$GCloudFlareBypassFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCloudFlareBypassFragmentData', 'G__typename'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GCloudFlareBypassFragmentData', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GCloudFlareBypassFragmentData', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GCloudFlareBypassFragmentData', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GCloudFlareBypassFragmentData', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GCloudFlareBypassFragmentData', + 'flareSolverrUrl'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..39f26157 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,68 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GCloudFlareBypassFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GCloudFlareBypassFragmentData, + _i3.GCloudFlareBypassFragmentVars> { + GCloudFlareBypassFragmentReq._(); + + factory GCloudFlareBypassFragmentReq( + [void Function(GCloudFlareBypassFragmentReqBuilder b) updates]) = + _$GCloudFlareBypassFragmentReq; + + static void _initializeBuilder(GCloudFlareBypassFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'CloudFlareBypassFragment'; + + @override + _i3.GCloudFlareBypassFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GCloudFlareBypassFragmentData? parseData(Map json) => + _i2.GCloudFlareBypassFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GCloudFlareBypassFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gCloudFlareBypassFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GCloudFlareBypassFragmentReq.serializer, + this, + ) as Map); + + static GCloudFlareBypassFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCloudFlareBypassFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..a0ebb1dd --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,242 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gCloudFlareBypassFragmentReqSerializer = + new _$GCloudFlareBypassFragmentReqSerializer(); + +class _$GCloudFlareBypassFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCloudFlareBypassFragmentReq, + _$GCloudFlareBypassFragmentReq + ]; + @override + final String wireName = 'GCloudFlareBypassFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GCloudFlareBypassFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GCloudFlareBypassFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GCloudFlareBypassFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCloudFlareBypassFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GCloudFlareBypassFragmentVars))! + as _i3.GCloudFlareBypassFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GCloudFlareBypassFragmentReq extends GCloudFlareBypassFragmentReq { + @override + final _i3.GCloudFlareBypassFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GCloudFlareBypassFragmentReq( + [void Function(GCloudFlareBypassFragmentReqBuilder)? updates]) => + (new GCloudFlareBypassFragmentReqBuilder()..update(updates))._build(); + + _$GCloudFlareBypassFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GCloudFlareBypassFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GCloudFlareBypassFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GCloudFlareBypassFragmentReq', 'idFields'); + } + + @override + GCloudFlareBypassFragmentReq rebuild( + void Function(GCloudFlareBypassFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCloudFlareBypassFragmentReqBuilder toBuilder() => + new GCloudFlareBypassFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCloudFlareBypassFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCloudFlareBypassFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GCloudFlareBypassFragmentReqBuilder + implements + Builder { + _$GCloudFlareBypassFragmentReq? _$v; + + _i3.GCloudFlareBypassFragmentVarsBuilder? _vars; + _i3.GCloudFlareBypassFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GCloudFlareBypassFragmentVarsBuilder(); + set vars(_i3.GCloudFlareBypassFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GCloudFlareBypassFragmentReqBuilder() { + GCloudFlareBypassFragmentReq._initializeBuilder(this); + } + + GCloudFlareBypassFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GCloudFlareBypassFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCloudFlareBypassFragmentReq; + } + + @override + void update(void Function(GCloudFlareBypassFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCloudFlareBypassFragmentReq build() => _build(); + + _$GCloudFlareBypassFragmentReq _build() { + _$GCloudFlareBypassFragmentReq _$result; + try { + _$result = _$v ?? + new _$GCloudFlareBypassFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GCloudFlareBypassFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GCloudFlareBypassFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCloudFlareBypassFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..d49e2929 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GCloudFlareBypassFragmentVars + implements + Built { + GCloudFlareBypassFragmentVars._(); + + factory GCloudFlareBypassFragmentVars( + [void Function(GCloudFlareBypassFragmentVarsBuilder b) updates]) = + _$GCloudFlareBypassFragmentVars; + + static Serializer get serializer => + _$gCloudFlareBypassFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCloudFlareBypassFragmentVars.serializer, + this, + ) as Map); + + static GCloudFlareBypassFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCloudFlareBypassFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..cb1df0c6 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gCloudFlareBypassFragmentVarsSerializer = + new _$GCloudFlareBypassFragmentVarsSerializer(); + +class _$GCloudFlareBypassFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCloudFlareBypassFragmentVars, + _$GCloudFlareBypassFragmentVars + ]; + @override + final String wireName = 'GCloudFlareBypassFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GCloudFlareBypassFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GCloudFlareBypassFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GCloudFlareBypassFragmentVarsBuilder().build(); + } +} + +class _$GCloudFlareBypassFragmentVars extends GCloudFlareBypassFragmentVars { + factory _$GCloudFlareBypassFragmentVars( + [void Function(GCloudFlareBypassFragmentVarsBuilder)? updates]) => + (new GCloudFlareBypassFragmentVarsBuilder()..update(updates))._build(); + + _$GCloudFlareBypassFragmentVars._() : super._(); + + @override + GCloudFlareBypassFragmentVars rebuild( + void Function(GCloudFlareBypassFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCloudFlareBypassFragmentVarsBuilder toBuilder() => + new GCloudFlareBypassFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCloudFlareBypassFragmentVars; + } + + @override + int get hashCode { + return 1031671732; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GCloudFlareBypassFragmentVars') + .toString(); + } +} + +class GCloudFlareBypassFragmentVarsBuilder + implements + Builder { + _$GCloudFlareBypassFragmentVars? _$v; + + GCloudFlareBypassFragmentVarsBuilder(); + + @override + void replace(GCloudFlareBypassFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCloudFlareBypassFragmentVars; + } + + @override + void update(void Function(GCloudFlareBypassFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCloudFlareBypassFragmentVars build() => _build(); + + _$GCloudFlareBypassFragmentVars _build() { + final _$result = _$v ?? new _$GCloudFlareBypassFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/cloud_flare/graphql/fragment.graphql b/lib/src/features/settings/domain/cloud_flare/graphql/fragment.graphql new file mode 100644 index 00000000..9e250c62 --- /dev/null +++ b/lib/src/features/settings/domain/cloud_flare/graphql/fragment.graphql @@ -0,0 +1,8 @@ + +fragment CloudFlareBypassFragment on SettingsType { + flareSolverrEnabled + flareSolverrSessionName + flareSolverrSessionTtl + flareSolverrTimeout + flareSolverrUrl +} diff --git a/lib/src/features/settings/domain/downloads_settings/downloads_settings.dart b/lib/src/features/settings/domain/downloads_settings/downloads_settings.dart new file mode 100644 index 00000000..a37429d3 --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/downloads_settings.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef DownloadsSettingsDto = GDownloadsSettingsFragment; diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..e404f88d --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const DownloadsSettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'DownloadsSettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'downloadsPath'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [DownloadsSettingsFragment]); diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..c1d9e971 --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,63 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GDownloadsSettingsFragment { + String get G__typename; + bool get downloadAsCbz; + String get downloadsPath; + bool get autoDownloadNewChapters; + int get autoDownloadNewChaptersLimit; + bool get excludeEntryWithUnreadChapters; + Map toJson(); +} + +abstract class GDownloadsSettingsFragmentData + implements + Built, + GDownloadsSettingsFragment { + GDownloadsSettingsFragmentData._(); + + factory GDownloadsSettingsFragmentData( + [void Function(GDownloadsSettingsFragmentDataBuilder b) updates]) = + _$GDownloadsSettingsFragmentData; + + static void _initializeBuilder(GDownloadsSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gDownloadsSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GDownloadsSettingsFragmentData.serializer, + this, + ) as Map); + + static GDownloadsSettingsFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDownloadsSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..53ac410d --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,277 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gDownloadsSettingsFragmentDataSerializer = + new _$GDownloadsSettingsFragmentDataSerializer(); + +class _$GDownloadsSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDownloadsSettingsFragmentData, + _$GDownloadsSettingsFragmentData + ]; + @override + final String wireName = 'GDownloadsSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GDownloadsSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GDownloadsSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDownloadsSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GDownloadsSettingsFragmentData extends GDownloadsSettingsFragmentData { + @override + final String G__typename; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GDownloadsSettingsFragmentData( + [void Function(GDownloadsSettingsFragmentDataBuilder)? updates]) => + (new GDownloadsSettingsFragmentDataBuilder()..update(updates))._build(); + + _$GDownloadsSettingsFragmentData._( + {required this.G__typename, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GDownloadsSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, r'GDownloadsSettingsFragmentData', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, r'GDownloadsSettingsFragmentData', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChapters, + r'GDownloadsSettingsFragmentData', 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChaptersLimit, + r'GDownloadsSettingsFragmentData', 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull(excludeEntryWithUnreadChapters, + r'GDownloadsSettingsFragmentData', 'excludeEntryWithUnreadChapters'); + } + + @override + GDownloadsSettingsFragmentData rebuild( + void Function(GDownloadsSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDownloadsSettingsFragmentDataBuilder toBuilder() => + new GDownloadsSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDownloadsSettingsFragmentData && + G__typename == other.G__typename && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDownloadsSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GDownloadsSettingsFragmentDataBuilder + implements + Builder { + _$GDownloadsSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GDownloadsSettingsFragmentDataBuilder() { + GDownloadsSettingsFragmentData._initializeBuilder(this); + } + + GDownloadsSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GDownloadsSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDownloadsSettingsFragmentData; + } + + @override + void update(void Function(GDownloadsSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDownloadsSettingsFragmentData build() => _build(); + + _$GDownloadsSettingsFragmentData _build() { + final _$result = _$v ?? + new _$GDownloadsSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GDownloadsSettingsFragmentData', 'G__typename'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GDownloadsSettingsFragmentData', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GDownloadsSettingsFragmentData', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GDownloadsSettingsFragmentData', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GDownloadsSettingsFragmentData', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GDownloadsSettingsFragmentData', + 'excludeEntryWithUnreadChapters'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..2bbc8f38 --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,68 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GDownloadsSettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GDownloadsSettingsFragmentData, + _i3.GDownloadsSettingsFragmentVars> { + GDownloadsSettingsFragmentReq._(); + + factory GDownloadsSettingsFragmentReq( + [void Function(GDownloadsSettingsFragmentReqBuilder b) updates]) = + _$GDownloadsSettingsFragmentReq; + + static void _initializeBuilder(GDownloadsSettingsFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'DownloadsSettingsFragment'; + + @override + _i3.GDownloadsSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GDownloadsSettingsFragmentData? parseData(Map json) => + _i2.GDownloadsSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GDownloadsSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gDownloadsSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GDownloadsSettingsFragmentReq.serializer, + this, + ) as Map); + + static GDownloadsSettingsFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GDownloadsSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..e6728771 --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,242 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gDownloadsSettingsFragmentReqSerializer = + new _$GDownloadsSettingsFragmentReqSerializer(); + +class _$GDownloadsSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDownloadsSettingsFragmentReq, + _$GDownloadsSettingsFragmentReq + ]; + @override + final String wireName = 'GDownloadsSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GDownloadsSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GDownloadsSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDownloadsSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDownloadsSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GDownloadsSettingsFragmentVars))! + as _i3.GDownloadsSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GDownloadsSettingsFragmentReq extends GDownloadsSettingsFragmentReq { + @override + final _i3.GDownloadsSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GDownloadsSettingsFragmentReq( + [void Function(GDownloadsSettingsFragmentReqBuilder)? updates]) => + (new GDownloadsSettingsFragmentReqBuilder()..update(updates))._build(); + + _$GDownloadsSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GDownloadsSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GDownloadsSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GDownloadsSettingsFragmentReq', 'idFields'); + } + + @override + GDownloadsSettingsFragmentReq rebuild( + void Function(GDownloadsSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDownloadsSettingsFragmentReqBuilder toBuilder() => + new GDownloadsSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDownloadsSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDownloadsSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GDownloadsSettingsFragmentReqBuilder + implements + Builder { + _$GDownloadsSettingsFragmentReq? _$v; + + _i3.GDownloadsSettingsFragmentVarsBuilder? _vars; + _i3.GDownloadsSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GDownloadsSettingsFragmentVarsBuilder(); + set vars(_i3.GDownloadsSettingsFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GDownloadsSettingsFragmentReqBuilder() { + GDownloadsSettingsFragmentReq._initializeBuilder(this); + } + + GDownloadsSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GDownloadsSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDownloadsSettingsFragmentReq; + } + + @override + void update(void Function(GDownloadsSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDownloadsSettingsFragmentReq build() => _build(); + + _$GDownloadsSettingsFragmentReq _build() { + _$GDownloadsSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GDownloadsSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GDownloadsSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GDownloadsSettingsFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDownloadsSettingsFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..1091e9aa --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GDownloadsSettingsFragmentVars + implements + Built { + GDownloadsSettingsFragmentVars._(); + + factory GDownloadsSettingsFragmentVars( + [void Function(GDownloadsSettingsFragmentVarsBuilder b) updates]) = + _$GDownloadsSettingsFragmentVars; + + static Serializer get serializer => + _$gDownloadsSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDownloadsSettingsFragmentVars.serializer, + this, + ) as Map); + + static GDownloadsSettingsFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDownloadsSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..76d84e14 --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gDownloadsSettingsFragmentVarsSerializer = + new _$GDownloadsSettingsFragmentVarsSerializer(); + +class _$GDownloadsSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDownloadsSettingsFragmentVars, + _$GDownloadsSettingsFragmentVars + ]; + @override + final String wireName = 'GDownloadsSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GDownloadsSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GDownloadsSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GDownloadsSettingsFragmentVarsBuilder().build(); + } +} + +class _$GDownloadsSettingsFragmentVars extends GDownloadsSettingsFragmentVars { + factory _$GDownloadsSettingsFragmentVars( + [void Function(GDownloadsSettingsFragmentVarsBuilder)? updates]) => + (new GDownloadsSettingsFragmentVarsBuilder()..update(updates))._build(); + + _$GDownloadsSettingsFragmentVars._() : super._(); + + @override + GDownloadsSettingsFragmentVars rebuild( + void Function(GDownloadsSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDownloadsSettingsFragmentVarsBuilder toBuilder() => + new GDownloadsSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDownloadsSettingsFragmentVars; + } + + @override + int get hashCode { + return 952943663; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GDownloadsSettingsFragmentVars') + .toString(); + } +} + +class GDownloadsSettingsFragmentVarsBuilder + implements + Builder { + _$GDownloadsSettingsFragmentVars? _$v; + + GDownloadsSettingsFragmentVarsBuilder(); + + @override + void replace(GDownloadsSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDownloadsSettingsFragmentVars; + } + + @override + void update(void Function(GDownloadsSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDownloadsSettingsFragmentVars build() => _build(); + + _$GDownloadsSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GDownloadsSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/downloads_settings/graphql/fragment.graphql b/lib/src/features/settings/domain/downloads_settings/graphql/fragment.graphql new file mode 100644 index 00000000..9e61af7c --- /dev/null +++ b/lib/src/features/settings/domain/downloads_settings/graphql/fragment.graphql @@ -0,0 +1,8 @@ + +fragment DownloadsSettingsFragment on SettingsType { + downloadAsCbz + downloadsPath + autoDownloadNewChapters + autoDownloadNewChaptersLimit + excludeEntryWithUnreadChapters +} diff --git a/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..e8406924 --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const LibrarySettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'LibrarySettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'updateMangas'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'excludeCompleted'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [LibrarySettingsFragment]); diff --git a/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..38fcd9b0 --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,63 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GLibrarySettingsFragment { + String get G__typename; + double get globalUpdateInterval; + bool get updateMangas; + bool get excludeCompleted; + bool get excludeNotStarted; + bool get excludeUnreadChapters; + Map toJson(); +} + +abstract class GLibrarySettingsFragmentData + implements + Built, + GLibrarySettingsFragment { + GLibrarySettingsFragmentData._(); + + factory GLibrarySettingsFragmentData( + [void Function(GLibrarySettingsFragmentDataBuilder b) updates]) = + _$GLibrarySettingsFragmentData; + + static void _initializeBuilder(GLibrarySettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + static Serializer get serializer => + _$gLibrarySettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GLibrarySettingsFragmentData.serializer, + this, + ) as Map); + + static GLibrarySettingsFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLibrarySettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..d2b19a8f --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,276 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gLibrarySettingsFragmentDataSerializer = + new _$GLibrarySettingsFragmentDataSerializer(); + +class _$GLibrarySettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLibrarySettingsFragmentData, + _$GLibrarySettingsFragmentData + ]; + @override + final String wireName = 'GLibrarySettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GLibrarySettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GLibrarySettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLibrarySettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GLibrarySettingsFragmentData extends GLibrarySettingsFragmentData { + @override + final String G__typename; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + + factory _$GLibrarySettingsFragmentData( + [void Function(GLibrarySettingsFragmentDataBuilder)? updates]) => + (new GLibrarySettingsFragmentDataBuilder()..update(updates))._build(); + + _$GLibrarySettingsFragmentData._( + {required this.G__typename, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GLibrarySettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GLibrarySettingsFragmentData', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, r'GLibrarySettingsFragmentData', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, r'GLibrarySettingsFragmentData', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GLibrarySettingsFragmentData', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GLibrarySettingsFragmentData', 'excludeUnreadChapters'); + } + + @override + GLibrarySettingsFragmentData rebuild( + void Function(GLibrarySettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLibrarySettingsFragmentDataBuilder toBuilder() => + new GLibrarySettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLibrarySettingsFragmentData && + G__typename == other.G__typename && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLibrarySettingsFragmentData') + ..add('G__typename', G__typename) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters)) + .toString(); + } +} + +class GLibrarySettingsFragmentDataBuilder + implements + Builder { + _$GLibrarySettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + GLibrarySettingsFragmentDataBuilder() { + GLibrarySettingsFragmentData._initializeBuilder(this); + } + + GLibrarySettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GLibrarySettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLibrarySettingsFragmentData; + } + + @override + void update(void Function(GLibrarySettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLibrarySettingsFragmentData build() => _build(); + + _$GLibrarySettingsFragmentData _build() { + final _$result = _$v ?? + new _$GLibrarySettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GLibrarySettingsFragmentData', 'G__typename'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GLibrarySettingsFragmentData', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, r'GLibrarySettingsFragmentData', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GLibrarySettingsFragmentData', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GLibrarySettingsFragmentData', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GLibrarySettingsFragmentData', + 'excludeUnreadChapters'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..cb4894d4 --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GLibrarySettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GLibrarySettingsFragmentData, + _i3.GLibrarySettingsFragmentVars> { + GLibrarySettingsFragmentReq._(); + + factory GLibrarySettingsFragmentReq( + [void Function(GLibrarySettingsFragmentReqBuilder b) updates]) = + _$GLibrarySettingsFragmentReq; + + static void _initializeBuilder(GLibrarySettingsFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'LibrarySettingsFragment'; + + @override + _i3.GLibrarySettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GLibrarySettingsFragmentData? parseData(Map json) => + _i2.GLibrarySettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GLibrarySettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gLibrarySettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GLibrarySettingsFragmentReq.serializer, + this, + ) as Map); + + static GLibrarySettingsFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GLibrarySettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..5955d942 --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,242 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gLibrarySettingsFragmentReqSerializer = + new _$GLibrarySettingsFragmentReqSerializer(); + +class _$GLibrarySettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLibrarySettingsFragmentReq, + _$GLibrarySettingsFragmentReq + ]; + @override + final String wireName = 'GLibrarySettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GLibrarySettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GLibrarySettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GLibrarySettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLibrarySettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GLibrarySettingsFragmentVars))! + as _i3.GLibrarySettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GLibrarySettingsFragmentReq extends GLibrarySettingsFragmentReq { + @override + final _i3.GLibrarySettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GLibrarySettingsFragmentReq( + [void Function(GLibrarySettingsFragmentReqBuilder)? updates]) => + (new GLibrarySettingsFragmentReqBuilder()..update(updates))._build(); + + _$GLibrarySettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GLibrarySettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GLibrarySettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GLibrarySettingsFragmentReq', 'idFields'); + } + + @override + GLibrarySettingsFragmentReq rebuild( + void Function(GLibrarySettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLibrarySettingsFragmentReqBuilder toBuilder() => + new GLibrarySettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLibrarySettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLibrarySettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GLibrarySettingsFragmentReqBuilder + implements + Builder { + _$GLibrarySettingsFragmentReq? _$v; + + _i3.GLibrarySettingsFragmentVarsBuilder? _vars; + _i3.GLibrarySettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GLibrarySettingsFragmentVarsBuilder(); + set vars(_i3.GLibrarySettingsFragmentVarsBuilder? vars) => + _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GLibrarySettingsFragmentReqBuilder() { + GLibrarySettingsFragmentReq._initializeBuilder(this); + } + + GLibrarySettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GLibrarySettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLibrarySettingsFragmentReq; + } + + @override + void update(void Function(GLibrarySettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLibrarySettingsFragmentReq build() => _build(); + + _$GLibrarySettingsFragmentReq _build() { + _$GLibrarySettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GLibrarySettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GLibrarySettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GLibrarySettingsFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GLibrarySettingsFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..97984fa4 --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GLibrarySettingsFragmentVars + implements + Built { + GLibrarySettingsFragmentVars._(); + + factory GLibrarySettingsFragmentVars( + [void Function(GLibrarySettingsFragmentVarsBuilder b) updates]) = + _$GLibrarySettingsFragmentVars; + + static Serializer get serializer => + _$gLibrarySettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLibrarySettingsFragmentVars.serializer, + this, + ) as Map); + + static GLibrarySettingsFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLibrarySettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..99e29470 --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gLibrarySettingsFragmentVarsSerializer = + new _$GLibrarySettingsFragmentVarsSerializer(); + +class _$GLibrarySettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLibrarySettingsFragmentVars, + _$GLibrarySettingsFragmentVars + ]; + @override + final String wireName = 'GLibrarySettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GLibrarySettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GLibrarySettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GLibrarySettingsFragmentVarsBuilder().build(); + } +} + +class _$GLibrarySettingsFragmentVars extends GLibrarySettingsFragmentVars { + factory _$GLibrarySettingsFragmentVars( + [void Function(GLibrarySettingsFragmentVarsBuilder)? updates]) => + (new GLibrarySettingsFragmentVarsBuilder()..update(updates))._build(); + + _$GLibrarySettingsFragmentVars._() : super._(); + + @override + GLibrarySettingsFragmentVars rebuild( + void Function(GLibrarySettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLibrarySettingsFragmentVarsBuilder toBuilder() => + new GLibrarySettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLibrarySettingsFragmentVars; + } + + @override + int get hashCode { + return 35673886; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GLibrarySettingsFragmentVars') + .toString(); + } +} + +class GLibrarySettingsFragmentVarsBuilder + implements + Builder { + _$GLibrarySettingsFragmentVars? _$v; + + GLibrarySettingsFragmentVarsBuilder(); + + @override + void replace(GLibrarySettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLibrarySettingsFragmentVars; + } + + @override + void update(void Function(GLibrarySettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLibrarySettingsFragmentVars build() => _build(); + + _$GLibrarySettingsFragmentVars _build() { + final _$result = _$v ?? new _$GLibrarySettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/library_settings/graphql/fragment.graphql b/lib/src/features/settings/domain/library_settings/graphql/fragment.graphql new file mode 100644 index 00000000..c2f8187d --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/graphql/fragment.graphql @@ -0,0 +1,8 @@ + +fragment LibrarySettingsFragment on SettingsType { + globalUpdateInterval + updateMangas + excludeCompleted + excludeNotStarted + excludeUnreadChapters +} diff --git a/lib/src/features/settings/domain/library_settings/library_settings.dart b/lib/src/features/settings/domain/library_settings/library_settings.dart new file mode 100644 index 00000000..24320efe --- /dev/null +++ b/lib/src/features/settings/domain/library_settings/library_settings.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef LibrarySettingsDto = GLibrarySettingsFragment; diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..fdfaf24e --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const MiscSettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'MiscSettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [MiscSettingsFragment]); diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..14c2b532 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,56 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GMiscSettingsFragment { + String get G__typename; + bool get debugLogsEnabled; + bool get systemTrayEnabled; + bool get gqlDebugLogsEnabled; + Map toJson(); +} + +abstract class GMiscSettingsFragmentData + implements + Built, + GMiscSettingsFragment { + GMiscSettingsFragmentData._(); + + factory GMiscSettingsFragmentData( + [void Function(GMiscSettingsFragmentDataBuilder b) updates]) = + _$GMiscSettingsFragmentData; + + static void _initializeBuilder(GMiscSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + static Serializer get serializer => + _$gMiscSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GMiscSettingsFragmentData.serializer, + this, + ) as Map); + + static GMiscSettingsFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMiscSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..263bfea8 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,227 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMiscSettingsFragmentDataSerializer = + new _$GMiscSettingsFragmentDataSerializer(); + +class _$GMiscSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMiscSettingsFragmentData, + _$GMiscSettingsFragmentData + ]; + @override + final String wireName = 'GMiscSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GMiscSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GMiscSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMiscSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GMiscSettingsFragmentData extends GMiscSettingsFragmentData { + @override + final String G__typename; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + + factory _$GMiscSettingsFragmentData( + [void Function(GMiscSettingsFragmentDataBuilder)? updates]) => + (new GMiscSettingsFragmentDataBuilder()..update(updates))._build(); + + _$GMiscSettingsFragmentData._( + {required this.G__typename, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMiscSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, r'GMiscSettingsFragmentData', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, r'GMiscSettingsFragmentData', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GMiscSettingsFragmentData', 'gqlDebugLogsEnabled'); + } + + @override + GMiscSettingsFragmentData rebuild( + void Function(GMiscSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMiscSettingsFragmentDataBuilder toBuilder() => + new GMiscSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMiscSettingsFragmentData && + G__typename == other.G__typename && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMiscSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled)) + .toString(); + } +} + +class GMiscSettingsFragmentDataBuilder + implements + Builder { + _$GMiscSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + GMiscSettingsFragmentDataBuilder() { + GMiscSettingsFragmentData._initializeBuilder(this); + } + + GMiscSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GMiscSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMiscSettingsFragmentData; + } + + @override + void update(void Function(GMiscSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMiscSettingsFragmentData build() => _build(); + + _$GMiscSettingsFragmentData _build() { + final _$result = _$v ?? + new _$GMiscSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GMiscSettingsFragmentData', 'G__typename'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GMiscSettingsFragmentData', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GMiscSettingsFragmentData', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GMiscSettingsFragmentData', + 'gqlDebugLogsEnabled'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..279d02ae --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GMiscSettingsFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GMiscSettingsFragmentData, + _i3.GMiscSettingsFragmentVars> { + GMiscSettingsFragmentReq._(); + + factory GMiscSettingsFragmentReq( + [void Function(GMiscSettingsFragmentReqBuilder b) updates]) = + _$GMiscSettingsFragmentReq; + + static void _initializeBuilder(GMiscSettingsFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'MiscSettingsFragment'; + + @override + _i3.GMiscSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GMiscSettingsFragmentData? parseData(Map json) => + _i2.GMiscSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GMiscSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gMiscSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GMiscSettingsFragmentReq.serializer, + this, + ) as Map); + + static GMiscSettingsFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GMiscSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..283ca492 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,238 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMiscSettingsFragmentReqSerializer = + new _$GMiscSettingsFragmentReqSerializer(); + +class _$GMiscSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMiscSettingsFragmentReq, + _$GMiscSettingsFragmentReq + ]; + @override + final String wireName = 'GMiscSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GMiscSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GMiscSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMiscSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMiscSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GMiscSettingsFragmentVars))! + as _i3.GMiscSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GMiscSettingsFragmentReq extends GMiscSettingsFragmentReq { + @override + final _i3.GMiscSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GMiscSettingsFragmentReq( + [void Function(GMiscSettingsFragmentReqBuilder)? updates]) => + (new GMiscSettingsFragmentReqBuilder()..update(updates))._build(); + + _$GMiscSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GMiscSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GMiscSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GMiscSettingsFragmentReq', 'idFields'); + } + + @override + GMiscSettingsFragmentReq rebuild( + void Function(GMiscSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMiscSettingsFragmentReqBuilder toBuilder() => + new GMiscSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMiscSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMiscSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GMiscSettingsFragmentReqBuilder + implements + Builder { + _$GMiscSettingsFragmentReq? _$v; + + _i3.GMiscSettingsFragmentVarsBuilder? _vars; + _i3.GMiscSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GMiscSettingsFragmentVarsBuilder(); + set vars(_i3.GMiscSettingsFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GMiscSettingsFragmentReqBuilder() { + GMiscSettingsFragmentReq._initializeBuilder(this); + } + + GMiscSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GMiscSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMiscSettingsFragmentReq; + } + + @override + void update(void Function(GMiscSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMiscSettingsFragmentReq build() => _build(); + + _$GMiscSettingsFragmentReq _build() { + _$GMiscSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GMiscSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GMiscSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GMiscSettingsFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMiscSettingsFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..f1b8ec33 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GMiscSettingsFragmentVars + implements + Built { + GMiscSettingsFragmentVars._(); + + factory GMiscSettingsFragmentVars( + [void Function(GMiscSettingsFragmentVarsBuilder b) updates]) = + _$GMiscSettingsFragmentVars; + + static Serializer get serializer => + _$gMiscSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMiscSettingsFragmentVars.serializer, + this, + ) as Map); + + static GMiscSettingsFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMiscSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..af419c83 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gMiscSettingsFragmentVarsSerializer = + new _$GMiscSettingsFragmentVarsSerializer(); + +class _$GMiscSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMiscSettingsFragmentVars, + _$GMiscSettingsFragmentVars + ]; + @override + final String wireName = 'GMiscSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GMiscSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GMiscSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GMiscSettingsFragmentVarsBuilder().build(); + } +} + +class _$GMiscSettingsFragmentVars extends GMiscSettingsFragmentVars { + factory _$GMiscSettingsFragmentVars( + [void Function(GMiscSettingsFragmentVarsBuilder)? updates]) => + (new GMiscSettingsFragmentVarsBuilder()..update(updates))._build(); + + _$GMiscSettingsFragmentVars._() : super._(); + + @override + GMiscSettingsFragmentVars rebuild( + void Function(GMiscSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMiscSettingsFragmentVarsBuilder toBuilder() => + new GMiscSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMiscSettingsFragmentVars; + } + + @override + int get hashCode { + return 584133642; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GMiscSettingsFragmentVars').toString(); + } +} + +class GMiscSettingsFragmentVarsBuilder + implements + Builder { + _$GMiscSettingsFragmentVars? _$v; + + GMiscSettingsFragmentVarsBuilder(); + + @override + void replace(GMiscSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMiscSettingsFragmentVars; + } + + @override + void update(void Function(GMiscSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMiscSettingsFragmentVars build() => _build(); + + _$GMiscSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GMiscSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/misc_settings/graphql/fragment.graphql b/lib/src/features/settings/domain/misc_settings/graphql/fragment.graphql new file mode 100644 index 00000000..c13fe621 --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/graphql/fragment.graphql @@ -0,0 +1,6 @@ + +fragment MiscSettingsFragment on SettingsType { + debugLogsEnabled + systemTrayEnabled + gqlDebugLogsEnabled +} diff --git a/lib/src/features/settings/domain/misc_settings/misc_settings.dart b/lib/src/features/settings/domain/misc_settings/misc_settings.dart new file mode 100644 index 00000000..da78c59d --- /dev/null +++ b/lib/src/features/settings/domain/misc_settings/misc_settings.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef MiscSettingsDto = GMiscSettingsFragment; diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.ast.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.ast.gql.dart new file mode 100644 index 00000000..fc4787dc --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.ast.gql.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const RestoreStatusFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'RestoreStatusFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'mangaProgress'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'state'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'totalManga'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [RestoreStatusFragment]); diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.dart new file mode 100644 index 00000000..754442da --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.dart @@ -0,0 +1,58 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'restore_status_fragment.data.gql.g.dart'; + +abstract class GRestoreStatusFragment { + String get G__typename; + int get mangaProgress; + _i1.GBackupRestoreState get state; + int get totalManga; + Map toJson(); +} + +abstract class GRestoreStatusFragmentData + implements + Built, + GRestoreStatusFragment { + GRestoreStatusFragmentData._(); + + factory GRestoreStatusFragmentData( + [void Function(GRestoreStatusFragmentDataBuilder b) updates]) = + _$GRestoreStatusFragmentData; + + static void _initializeBuilder(GRestoreStatusFragmentDataBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get mangaProgress; + @override + _i1.GBackupRestoreState get state; + @override + int get totalManga; + static Serializer get serializer => + _$gRestoreStatusFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GRestoreStatusFragmentData.serializer, + this, + ) as Map); + + static GRestoreStatusFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GRestoreStatusFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.g.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.g.dart new file mode 100644 index 00000000..e61f9c19 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.g.dart @@ -0,0 +1,220 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusFragmentDataSerializer = + new _$GRestoreStatusFragmentDataSerializer(); + +class _$GRestoreStatusFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusFragmentData, + _$GRestoreStatusFragmentData + ]; + @override + final String wireName = 'GRestoreStatusFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i1.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreStatusFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i1.GBackupRestoreState))! + as _i1.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusFragmentData extends GRestoreStatusFragmentData { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i1.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreStatusFragmentData( + [void Function(GRestoreStatusFragmentDataBuilder)? updates]) => + (new GRestoreStatusFragmentDataBuilder()..update(updates))._build(); + + _$GRestoreStatusFragmentData._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + mangaProgress, r'GRestoreStatusFragmentData', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusFragmentData', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusFragmentData', 'totalManga'); + } + + @override + GRestoreStatusFragmentData rebuild( + void Function(GRestoreStatusFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusFragmentDataBuilder toBuilder() => + new GRestoreStatusFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusFragmentData && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusFragmentData') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreStatusFragmentDataBuilder + implements + Builder { + _$GRestoreStatusFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i1.GBackupRestoreState? _state; + _i1.GBackupRestoreState? get state => _$this._state; + set state(_i1.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreStatusFragmentDataBuilder() { + GRestoreStatusFragmentData._initializeBuilder(this); + } + + GRestoreStatusFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusFragmentData; + } + + @override + void update(void Function(GRestoreStatusFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusFragmentData build() => _build(); + + _$GRestoreStatusFragmentData _build() { + final _$result = _$v ?? + new _$GRestoreStatusFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusFragmentData', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull( + mangaProgress, r'GRestoreStatusFragmentData', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusFragmentData', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusFragmentData', 'totalManga'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.req.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.req.gql.dart new file mode 100644 index 00000000..b9451110 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'restore_status_fragment.req.gql.g.dart'; + +abstract class GRestoreStatusFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GRestoreStatusFragmentData, + _i3.GRestoreStatusFragmentVars> { + GRestoreStatusFragmentReq._(); + + factory GRestoreStatusFragmentReq( + [void Function(GRestoreStatusFragmentReqBuilder b) updates]) = + _$GRestoreStatusFragmentReq; + + static void _initializeBuilder(GRestoreStatusFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'RestoreStatusFragment'; + + @override + _i3.GRestoreStatusFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GRestoreStatusFragmentData? parseData(Map json) => + _i2.GRestoreStatusFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreStatusFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gRestoreStatusFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreStatusFragmentReq.serializer, + this, + ) as Map); + + static GRestoreStatusFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreStatusFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.req.gql.g.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.req.gql.g.dart new file mode 100644 index 00000000..6db0504a --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.req.gql.g.dart @@ -0,0 +1,239 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusFragmentReqSerializer = + new _$GRestoreStatusFragmentReqSerializer(); + +class _$GRestoreStatusFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusFragmentReq, + _$GRestoreStatusFragmentReq + ]; + @override + final String wireName = 'GRestoreStatusFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreStatusFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GRestoreStatusFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GRestoreStatusFragmentVars))! + as _i3.GRestoreStatusFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusFragmentReq extends GRestoreStatusFragmentReq { + @override + final _i3.GRestoreStatusFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GRestoreStatusFragmentReq( + [void Function(GRestoreStatusFragmentReqBuilder)? updates]) => + (new GRestoreStatusFragmentReqBuilder()..update(updates))._build(); + + _$GRestoreStatusFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GRestoreStatusFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GRestoreStatusFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GRestoreStatusFragmentReq', 'idFields'); + } + + @override + GRestoreStatusFragmentReq rebuild( + void Function(GRestoreStatusFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusFragmentReqBuilder toBuilder() => + new GRestoreStatusFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GRestoreStatusFragmentReqBuilder + implements + Builder { + _$GRestoreStatusFragmentReq? _$v; + + _i3.GRestoreStatusFragmentVarsBuilder? _vars; + _i3.GRestoreStatusFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreStatusFragmentVarsBuilder(); + set vars(_i3.GRestoreStatusFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GRestoreStatusFragmentReqBuilder() { + GRestoreStatusFragmentReq._initializeBuilder(this); + } + + GRestoreStatusFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusFragmentReq; + } + + @override + void update(void Function(GRestoreStatusFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusFragmentReq build() => _build(); + + _$GRestoreStatusFragmentReq _build() { + _$GRestoreStatusFragmentReq _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GRestoreStatusFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GRestoreStatusFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.dart new file mode 100644 index 00000000..0df4b9f1 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'restore_status_fragment.var.gql.g.dart'; + +abstract class GRestoreStatusFragmentVars + implements + Built { + GRestoreStatusFragmentVars._(); + + factory GRestoreStatusFragmentVars( + [void Function(GRestoreStatusFragmentVarsBuilder b) updates]) = + _$GRestoreStatusFragmentVars; + + static Serializer get serializer => + _$gRestoreStatusFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusFragmentVars.serializer, + this, + ) as Map); + + static GRestoreStatusFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.g.dart b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.g.dart new file mode 100644 index 00000000..374a8302 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusFragmentVarsSerializer = + new _$GRestoreStatusFragmentVarsSerializer(); + +class _$GRestoreStatusFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusFragmentVars, + _$GRestoreStatusFragmentVars + ]; + @override + final String wireName = 'GRestoreStatusFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GRestoreStatusFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GRestoreStatusFragmentVarsBuilder().build(); + } +} + +class _$GRestoreStatusFragmentVars extends GRestoreStatusFragmentVars { + factory _$GRestoreStatusFragmentVars( + [void Function(GRestoreStatusFragmentVarsBuilder)? updates]) => + (new GRestoreStatusFragmentVarsBuilder()..update(updates))._build(); + + _$GRestoreStatusFragmentVars._() : super._(); + + @override + GRestoreStatusFragmentVars rebuild( + void Function(GRestoreStatusFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusFragmentVarsBuilder toBuilder() => + new GRestoreStatusFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusFragmentVars; + } + + @override + int get hashCode { + return 295813420; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GRestoreStatusFragmentVars') + .toString(); + } +} + +class GRestoreStatusFragmentVarsBuilder + implements + Builder { + _$GRestoreStatusFragmentVars? _$v; + + GRestoreStatusFragmentVarsBuilder(); + + @override + void replace(GRestoreStatusFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusFragmentVars; + } + + @override + void update(void Function(GRestoreStatusFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusFragmentVars build() => _build(); + + _$GRestoreStatusFragmentVars _build() { + final _$result = _$v ?? new _$GRestoreStatusFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/restore_status/graphql/restore_status_fragment.graphql b/lib/src/features/settings/domain/restore_status/graphql/restore_status_fragment.graphql new file mode 100644 index 00000000..e2e2ffe9 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/graphql/restore_status_fragment.graphql @@ -0,0 +1,6 @@ + +fragment RestoreStatusFragment on BackupRestoreStatus { + mangaProgress + state + totalManga +} diff --git a/lib/src/features/settings/domain/restore_status/restore_status.dart b/lib/src/features/settings/domain/restore_status/restore_status.dart new file mode 100644 index 00000000..dbccf204 --- /dev/null +++ b/lib/src/features/settings/domain/restore_status/restore_status.dart @@ -0,0 +1,11 @@ +import '../../../../graphql/__generated__/schema.schema.gql.dart'; +import 'graphql/__generated__/restore_status_fragment.data.gql.dart'; + +typedef RestoreStatus = GRestoreStatusFragment; + +typedef RestoreState = GBackupRestoreState; + +extension RestoreStateExtension on RestoreState { + bool get isFinalState => + this == RestoreState.SUCCESS || this == RestoreState.FAILURE; +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..a989893e --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ServerBindingFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'ServerBindingFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'ip'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'port'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ServerBindingFragment]); diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..76d38dea --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GServerBindingFragment { + String get G__typename; + String get ip; + int get port; + Map toJson(); +} + +abstract class GServerBindingFragmentData + implements + Built, + GServerBindingFragment { + GServerBindingFragmentData._(); + + factory GServerBindingFragmentData( + [void Function(GServerBindingFragmentDataBuilder b) updates]) = + _$GServerBindingFragmentData; + + static void _initializeBuilder(GServerBindingFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + String get ip; + @override + int get port; + static Serializer get serializer => + _$gServerBindingFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GServerBindingFragmentData.serializer, + this, + ) as Map); + + static GServerBindingFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerBindingFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..209854ec --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,192 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerBindingFragmentDataSerializer = + new _$GServerBindingFragmentDataSerializer(); + +class _$GServerBindingFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerBindingFragmentData, + _$GServerBindingFragmentData + ]; + @override + final String wireName = 'GServerBindingFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GServerBindingFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GServerBindingFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerBindingFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GServerBindingFragmentData extends GServerBindingFragmentData { + @override + final String G__typename; + @override + final String ip; + @override + final int port; + + factory _$GServerBindingFragmentData( + [void Function(GServerBindingFragmentDataBuilder)? updates]) => + (new GServerBindingFragmentDataBuilder()..update(updates))._build(); + + _$GServerBindingFragmentData._( + {required this.G__typename, required this.ip, required this.port}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerBindingFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GServerBindingFragmentData', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GServerBindingFragmentData', 'port'); + } + + @override + GServerBindingFragmentData rebuild( + void Function(GServerBindingFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerBindingFragmentDataBuilder toBuilder() => + new GServerBindingFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerBindingFragmentData && + G__typename == other.G__typename && + ip == other.ip && + port == other.port; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerBindingFragmentData') + ..add('G__typename', G__typename) + ..add('ip', ip) + ..add('port', port)) + .toString(); + } +} + +class GServerBindingFragmentDataBuilder + implements + Builder { + _$GServerBindingFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + GServerBindingFragmentDataBuilder() { + GServerBindingFragmentData._initializeBuilder(this); + } + + GServerBindingFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _ip = $v.ip; + _port = $v.port; + _$v = null; + } + return this; + } + + @override + void replace(GServerBindingFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerBindingFragmentData; + } + + @override + void update(void Function(GServerBindingFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerBindingFragmentData build() => _build(); + + _$GServerBindingFragmentData _build() { + final _$result = _$v ?? + new _$GServerBindingFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GServerBindingFragmentData', 'G__typename'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GServerBindingFragmentData', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GServerBindingFragmentData', 'port'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..4e18acff --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GServerBindingFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GServerBindingFragmentData, + _i3.GServerBindingFragmentVars> { + GServerBindingFragmentReq._(); + + factory GServerBindingFragmentReq( + [void Function(GServerBindingFragmentReqBuilder b) updates]) = + _$GServerBindingFragmentReq; + + static void _initializeBuilder(GServerBindingFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'ServerBindingFragment'; + + @override + _i3.GServerBindingFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GServerBindingFragmentData? parseData(Map json) => + _i2.GServerBindingFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GServerBindingFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gServerBindingFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GServerBindingFragmentReq.serializer, + this, + ) as Map); + + static GServerBindingFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GServerBindingFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..e7d54fc0 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,239 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerBindingFragmentReqSerializer = + new _$GServerBindingFragmentReqSerializer(); + +class _$GServerBindingFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerBindingFragmentReq, + _$GServerBindingFragmentReq + ]; + @override + final String wireName = 'GServerBindingFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GServerBindingFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GServerBindingFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GServerBindingFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GServerBindingFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GServerBindingFragmentVars))! + as _i3.GServerBindingFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GServerBindingFragmentReq extends GServerBindingFragmentReq { + @override + final _i3.GServerBindingFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GServerBindingFragmentReq( + [void Function(GServerBindingFragmentReqBuilder)? updates]) => + (new GServerBindingFragmentReqBuilder()..update(updates))._build(); + + _$GServerBindingFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GServerBindingFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GServerBindingFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerBindingFragmentReq', 'idFields'); + } + + @override + GServerBindingFragmentReq rebuild( + void Function(GServerBindingFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerBindingFragmentReqBuilder toBuilder() => + new GServerBindingFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerBindingFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GServerBindingFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GServerBindingFragmentReqBuilder + implements + Builder { + _$GServerBindingFragmentReq? _$v; + + _i3.GServerBindingFragmentVarsBuilder? _vars; + _i3.GServerBindingFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GServerBindingFragmentVarsBuilder(); + set vars(_i3.GServerBindingFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GServerBindingFragmentReqBuilder() { + GServerBindingFragmentReq._initializeBuilder(this); + } + + GServerBindingFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GServerBindingFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerBindingFragmentReq; + } + + @override + void update(void Function(GServerBindingFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerBindingFragmentReq build() => _build(); + + _$GServerBindingFragmentReq _build() { + _$GServerBindingFragmentReq _$result; + try { + _$result = _$v ?? + new _$GServerBindingFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GServerBindingFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GServerBindingFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GServerBindingFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..c26a4ede --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GServerBindingFragmentVars + implements + Built { + GServerBindingFragmentVars._(); + + factory GServerBindingFragmentVars( + [void Function(GServerBindingFragmentVarsBuilder b) updates]) = + _$GServerBindingFragmentVars; + + static Serializer get serializer => + _$gServerBindingFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GServerBindingFragmentVars.serializer, + this, + ) as Map); + + static GServerBindingFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GServerBindingFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..18d5d9f8 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gServerBindingFragmentVarsSerializer = + new _$GServerBindingFragmentVarsSerializer(); + +class _$GServerBindingFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GServerBindingFragmentVars, + _$GServerBindingFragmentVars + ]; + @override + final String wireName = 'GServerBindingFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GServerBindingFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GServerBindingFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GServerBindingFragmentVarsBuilder().build(); + } +} + +class _$GServerBindingFragmentVars extends GServerBindingFragmentVars { + factory _$GServerBindingFragmentVars( + [void Function(GServerBindingFragmentVarsBuilder)? updates]) => + (new GServerBindingFragmentVarsBuilder()..update(updates))._build(); + + _$GServerBindingFragmentVars._() : super._(); + + @override + GServerBindingFragmentVars rebuild( + void Function(GServerBindingFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GServerBindingFragmentVarsBuilder toBuilder() => + new GServerBindingFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GServerBindingFragmentVars; + } + + @override + int get hashCode { + return 50426703; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GServerBindingFragmentVars') + .toString(); + } +} + +class GServerBindingFragmentVarsBuilder + implements + Builder { + _$GServerBindingFragmentVars? _$v; + + GServerBindingFragmentVarsBuilder(); + + @override + void replace(GServerBindingFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GServerBindingFragmentVars; + } + + @override + void update(void Function(GServerBindingFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GServerBindingFragmentVars build() => _build(); + + _$GServerBindingFragmentVars _build() { + final _$result = _$v ?? new _$GServerBindingFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/server_binding/graphql/fragment.graphql b/lib/src/features/settings/domain/server_binding/graphql/fragment.graphql new file mode 100644 index 00000000..962ac2b4 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/graphql/fragment.graphql @@ -0,0 +1,4 @@ +fragment ServerBindingFragment on SettingsType { + ip + port +} diff --git a/lib/src/features/settings/domain/server_binding/server_binding.dart b/lib/src/features/settings/domain/server_binding/server_binding.dart new file mode 100644 index 00000000..a9d40b81 --- /dev/null +++ b/lib/src/features/settings/domain/server_binding/server_binding.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef ServerBindingDto = GServerBindingFragment; diff --git a/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart new file mode 100644 index 00000000..3bfc6fc1 --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart @@ -0,0 +1,76 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i4; + +const SettingsFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SettingsFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'AutomaticBackupSettingsFragment'), + directives: [], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'ServerBindingFragment'), + directives: [], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SocksProxyFragment'), + directives: [], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'CloudFlareBypassFragment'), + directives: [], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'MiscSettingsFragment'), + directives: [], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'BrowserSettingsFragment'), + directives: [], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'LibrarySettingsFragment'), + directives: [], + ), + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'DownloadsSettingsFragment'), + directives: [], + ), + ]), +); +const document = _i1.DocumentNode(definitions: [ + SettingsFragment, + _i2.AutomaticBackupSettingsFragment, + _i3.ServerBindingFragment, + _i4.SocksProxyFragment, + _i5.CloudFlareBypassFragment, + _i6.LibrarySettingsFragment, + _i7.DownloadsSettingsFragment, + _i8.MiscSettingsFragment, + _i9.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart new file mode 100644 index 00000000..e85950cf --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart @@ -0,0 +1,215 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i9; + +part 'settings_fragment.data.gql.g.dart'; + +abstract class GSettingsFragment + implements + _i1.GAutomaticBackupSettingsFragment, + _i2.GServerBindingFragment, + _i3.GSocksProxyFragment, + _i4.GCloudFlareBypassFragment, + _i5.GMiscSettingsFragment, + _i6.GBrowserSettingsFragment, + _i7.GLibrarySettingsFragment, + _i8.GDownloadsSettingsFragment { + @override + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + @override + Map toJson(); +} + +abstract class GSettingsFragmentData + implements + Built, + GSettingsFragment, + _i1.GAutomaticBackupSettingsFragment, + _i2.GServerBindingFragment, + _i3.GSocksProxyFragment, + _i4.GCloudFlareBypassFragment, + _i5.GMiscSettingsFragment, + _i6.GBrowserSettingsFragment, + _i7.GLibrarySettingsFragment, + _i8.GDownloadsSettingsFragment { + GSettingsFragmentData._(); + + factory GSettingsFragmentData( + [void Function(GSettingsFragmentDataBuilder b) updates]) = + _$GSettingsFragmentData; + + static void _initializeBuilder(GSettingsFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gSettingsFragmentDataSerializer; + + @override + Map toJson() => (_i9.serializers.serializeWith( + GSettingsFragmentData.serializer, + this, + ) as Map); + + static GSettingsFragmentData? fromJson(Map json) => + _i9.serializers.deserializeWith( + GSettingsFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.g.dart b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.g.dart new file mode 100644 index 00000000..0e88c437 --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.g.dart @@ -0,0 +1,954 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSettingsFragmentDataSerializer = + new _$GSettingsFragmentDataSerializer(); + +class _$GSettingsFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSettingsFragmentData, + _$GSettingsFragmentData + ]; + @override + final String wireName = 'GSettingsFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GSettingsFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GSettingsFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSettingsFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GSettingsFragmentData extends GSettingsFragmentData { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GSettingsFragmentData( + [void Function(GSettingsFragmentDataBuilder)? updates]) => + (new GSettingsFragmentDataBuilder()..update(updates))._build(); + + _$GSettingsFragmentData._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSettingsFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, r'GSettingsFragmentData', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GSettingsFragmentData', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GSettingsFragmentData', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GSettingsFragmentData', 'backupTime'); + BuiltValueNullFieldError.checkNotNull(ip, r'GSettingsFragmentData', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GSettingsFragmentData', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, r'GSettingsFragmentData', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GSettingsFragmentData', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, r'GSettingsFragmentData', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GSettingsFragmentData', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, r'GSettingsFragmentData', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, r'GSettingsFragmentData', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, r'GSettingsFragmentData', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GSettingsFragmentData', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GSettingsFragmentData', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, r'GSettingsFragmentData', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GSettingsFragmentData', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, r'GSettingsFragmentData', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, r'GSettingsFragmentData', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, r'GSettingsFragmentData', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, r'GSettingsFragmentData', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, r'GSettingsFragmentData', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GSettingsFragmentData', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, r'GSettingsFragmentData', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, r'GSettingsFragmentData', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, r'GSettingsFragmentData', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, r'GSettingsFragmentData', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GSettingsFragmentData', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, r'GSettingsFragmentData', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, r'GSettingsFragmentData', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChapters, + r'GSettingsFragmentData', 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChaptersLimit, + r'GSettingsFragmentData', 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull(excludeEntryWithUnreadChapters, + r'GSettingsFragmentData', 'excludeEntryWithUnreadChapters'); + } + + @override + GSettingsFragmentData rebuild( + void Function(GSettingsFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSettingsFragmentDataBuilder toBuilder() => + new GSettingsFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSettingsFragmentData && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSettingsFragmentData') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GSettingsFragmentDataBuilder + implements Builder { + _$GSettingsFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GSettingsFragmentDataBuilder() { + GSettingsFragmentData._initializeBuilder(this); + } + + GSettingsFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GSettingsFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSettingsFragmentData; + } + + @override + void update(void Function(GSettingsFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSettingsFragmentData build() => _build(); + + _$GSettingsFragmentData _build() { + _$GSettingsFragmentData _$result; + try { + _$result = _$v ?? + new _$GSettingsFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSettingsFragmentData', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, r'GSettingsFragmentData', 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GSettingsFragmentData', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GSettingsFragmentData', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, r'GSettingsFragmentData', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GSettingsFragmentData', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GSettingsFragmentData', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GSettingsFragmentData', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GSettingsFragmentData', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GSettingsFragmentData', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GSettingsFragmentData', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GSettingsFragmentData', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GSettingsFragmentData', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GSettingsFragmentData', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GSettingsFragmentData', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GSettingsFragmentData', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GSettingsFragmentData', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GSettingsFragmentData', 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, r'GSettingsFragmentData', 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GSettingsFragmentData', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GSettingsFragmentData', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GSettingsFragmentData', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GSettingsFragmentData', 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GSettingsFragmentData', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, r'GSettingsFragmentData', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, r'GSettingsFragmentData', 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GSettingsFragmentData', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GSettingsFragmentData', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, r'GSettingsFragmentData', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, r'GSettingsFragmentData', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GSettingsFragmentData', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GSettingsFragmentData', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GSettingsFragmentData', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSettingsFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.req.gql.dart b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.req.gql.dart new file mode 100644 index 00000000..bb20dff2 --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'settings_fragment.req.gql.g.dart'; + +abstract class GSettingsFragmentReq + implements + Built, + _i1 + .FragmentRequest<_i2.GSettingsFragmentData, _i3.GSettingsFragmentVars> { + GSettingsFragmentReq._(); + + factory GSettingsFragmentReq( + [void Function(GSettingsFragmentReqBuilder b) updates]) = + _$GSettingsFragmentReq; + + static void _initializeBuilder(GSettingsFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'SettingsFragment'; + + @override + _i3.GSettingsFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSettingsFragmentData? parseData(Map json) => + _i2.GSettingsFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSettingsFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gSettingsFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSettingsFragmentReq.serializer, + this, + ) as Map); + + static GSettingsFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSettingsFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.req.gql.g.dart b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.req.gql.g.dart new file mode 100644 index 00000000..412fb291 --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.req.gql.g.dart @@ -0,0 +1,237 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSettingsFragmentReqSerializer = + new _$GSettingsFragmentReqSerializer(); + +class _$GSettingsFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSettingsFragmentReq, + _$GSettingsFragmentReq + ]; + @override + final String wireName = 'GSettingsFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GSettingsFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSettingsFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSettingsFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSettingsFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSettingsFragmentVars))! + as _i3.GSettingsFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSettingsFragmentReq extends GSettingsFragmentReq { + @override + final _i3.GSettingsFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSettingsFragmentReq( + [void Function(GSettingsFragmentReqBuilder)? updates]) => + (new GSettingsFragmentReqBuilder()..update(updates))._build(); + + _$GSettingsFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GSettingsFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSettingsFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSettingsFragmentReq', 'idFields'); + } + + @override + GSettingsFragmentReq rebuild( + void Function(GSettingsFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSettingsFragmentReqBuilder toBuilder() => + new GSettingsFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSettingsFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSettingsFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSettingsFragmentReqBuilder + implements Builder { + _$GSettingsFragmentReq? _$v; + + _i3.GSettingsFragmentVarsBuilder? _vars; + _i3.GSettingsFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSettingsFragmentVarsBuilder(); + set vars(_i3.GSettingsFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSettingsFragmentReqBuilder() { + GSettingsFragmentReq._initializeBuilder(this); + } + + GSettingsFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSettingsFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSettingsFragmentReq; + } + + @override + void update(void Function(GSettingsFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSettingsFragmentReq build() => _build(); + + _$GSettingsFragmentReq _build() { + _$GSettingsFragmentReq _$result; + try { + _$result = _$v ?? + new _$GSettingsFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSettingsFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSettingsFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSettingsFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.dart b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.dart new file mode 100644 index 00000000..6f3d199a --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'settings_fragment.var.gql.g.dart'; + +abstract class GSettingsFragmentVars + implements Built { + GSettingsFragmentVars._(); + + factory GSettingsFragmentVars( + [void Function(GSettingsFragmentVarsBuilder b) updates]) = + _$GSettingsFragmentVars; + + static Serializer get serializer => + _$gSettingsFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSettingsFragmentVars.serializer, + this, + ) as Map); + + static GSettingsFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSettingsFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.g.dart b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.g.dart new file mode 100644 index 00000000..4558f4ce --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'settings_fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSettingsFragmentVarsSerializer = + new _$GSettingsFragmentVarsSerializer(); + +class _$GSettingsFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSettingsFragmentVars, + _$GSettingsFragmentVars + ]; + @override + final String wireName = 'GSettingsFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GSettingsFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSettingsFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSettingsFragmentVarsBuilder().build(); + } +} + +class _$GSettingsFragmentVars extends GSettingsFragmentVars { + factory _$GSettingsFragmentVars( + [void Function(GSettingsFragmentVarsBuilder)? updates]) => + (new GSettingsFragmentVarsBuilder()..update(updates))._build(); + + _$GSettingsFragmentVars._() : super._(); + + @override + GSettingsFragmentVars rebuild( + void Function(GSettingsFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSettingsFragmentVarsBuilder toBuilder() => + new GSettingsFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSettingsFragmentVars; + } + + @override + int get hashCode { + return 334809867; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSettingsFragmentVars').toString(); + } +} + +class GSettingsFragmentVarsBuilder + implements Builder { + _$GSettingsFragmentVars? _$v; + + GSettingsFragmentVarsBuilder(); + + @override + void replace(GSettingsFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSettingsFragmentVars; + } + + @override + void update(void Function(GSettingsFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSettingsFragmentVars build() => _build(); + + _$GSettingsFragmentVars _build() { + final _$result = _$v ?? new _$GSettingsFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/settings/graphql/settings_fragment.graphql b/lib/src/features/settings/domain/settings/graphql/settings_fragment.graphql new file mode 100644 index 00000000..5e41e4a5 --- /dev/null +++ b/lib/src/features/settings/domain/settings/graphql/settings_fragment.graphql @@ -0,0 +1,19 @@ +# import '/src/features/settings/domain/automatic_backup_settings/graphql/automatic_backup_settings_fragment.graphql' +# import '/src/features/settings/domain/server_binding/graphql/fragment.graphql' +# import '/src/features/settings/domain/socks_proxy/graphql/fragment.graphql' +# import '/src/features/settings/domain/cloud_flare/graphql/fragment.graphql' +# import '/src/features/settings/domain/library_settings/graphql/fragment.graphql' +# import '/src/features/settings/domain/downloads_settings/graphql/fragment.graphql' +# import '/src/features/settings/domain/misc_settings/graphql/fragment.graphql' +# import '/src/features/settings/domain/browse/graphql/fragment.graphql' + +fragment SettingsFragment on SettingsType { + ...AutomaticBackupSettingsFragment + ...ServerBindingFragment + ...SocksProxyFragment + ...CloudFlareBypassFragment + ...MiscSettingsFragment + ...BrowserSettingsFragment + ...LibrarySettingsFragment + ...DownloadsSettingsFragment +} diff --git a/lib/src/features/settings/domain/settings/settings.dart b/lib/src/features/settings/domain/settings/settings.dart new file mode 100644 index 00000000..00547a4e --- /dev/null +++ b/lib/src/features/settings/domain/settings/settings.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/settings_fragment.data.gql.dart'; + +typedef SettingsDto = GSettingsFragment; diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart new file mode 100644 index 00000000..1b38cb50 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart @@ -0,0 +1,60 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const SocksProxyFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'SocksProxyFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyHost'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyPort'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [SocksProxyFragment]); diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart new file mode 100644 index 00000000..4d70c5e5 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart @@ -0,0 +1,65 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.data.gql.g.dart'; + +abstract class GSocksProxyFragment { + String get G__typename; + bool get socksProxyEnabled; + String get socksProxyHost; + String get socksProxyPassword; + String get socksProxyPort; + String get socksProxyUsername; + int get socksProxyVersion; + Map toJson(); +} + +abstract class GSocksProxyFragmentData + implements + Built, + GSocksProxyFragment { + GSocksProxyFragmentData._(); + + factory GSocksProxyFragmentData( + [void Function(GSocksProxyFragmentDataBuilder b) updates]) = + _$GSocksProxyFragmentData; + + static void _initializeBuilder(GSocksProxyFragmentDataBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + static Serializer get serializer => + _$gSocksProxyFragmentDataSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GSocksProxyFragmentData.serializer, + this, + ) as Map); + + static GSocksProxyFragmentData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSocksProxyFragmentData.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.g.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.g.dart new file mode 100644 index 00000000..f0a74809 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.g.dart @@ -0,0 +1,298 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSocksProxyFragmentDataSerializer = + new _$GSocksProxyFragmentDataSerializer(); + +class _$GSocksProxyFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSocksProxyFragmentData, + _$GSocksProxyFragmentData + ]; + @override + final String wireName = 'GSocksProxyFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GSocksProxyFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GSocksProxyFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSocksProxyFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GSocksProxyFragmentData extends GSocksProxyFragmentData { + @override + final String G__typename; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + + factory _$GSocksProxyFragmentData( + [void Function(GSocksProxyFragmentDataBuilder)? updates]) => + (new GSocksProxyFragmentDataBuilder()..update(updates))._build(); + + _$GSocksProxyFragmentData._( + {required this.G__typename, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSocksProxyFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, r'GSocksProxyFragmentData', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GSocksProxyFragmentData', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, r'GSocksProxyFragmentData', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GSocksProxyFragmentData', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, r'GSocksProxyFragmentData', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, r'GSocksProxyFragmentData', 'socksProxyVersion'); + } + + @override + GSocksProxyFragmentData rebuild( + void Function(GSocksProxyFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSocksProxyFragmentDataBuilder toBuilder() => + new GSocksProxyFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSocksProxyFragmentData && + G__typename == other.G__typename && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSocksProxyFragmentData') + ..add('G__typename', G__typename) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion)) + .toString(); + } +} + +class GSocksProxyFragmentDataBuilder + implements + Builder { + _$GSocksProxyFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + GSocksProxyFragmentDataBuilder() { + GSocksProxyFragmentData._initializeBuilder(this); + } + + GSocksProxyFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _$v = null; + } + return this; + } + + @override + void replace(GSocksProxyFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSocksProxyFragmentData; + } + + @override + void update(void Function(GSocksProxyFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSocksProxyFragmentData build() => _build(); + + _$GSocksProxyFragmentData _build() { + final _$result = _$v ?? + new _$GSocksProxyFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GSocksProxyFragmentData', 'G__typename'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GSocksProxyFragmentData', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GSocksProxyFragmentData', 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GSocksProxyFragmentData', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GSocksProxyFragmentData', 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GSocksProxyFragmentData', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GSocksProxyFragmentData', + 'socksProxyVersion'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart new file mode 100644 index 00000000..fb47a777 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragment.req.gql.g.dart'; + +abstract class GSocksProxyFragmentReq + implements + Built, + _i1.FragmentRequest<_i2.GSocksProxyFragmentData, + _i3.GSocksProxyFragmentVars> { + GSocksProxyFragmentReq._(); + + factory GSocksProxyFragmentReq( + [void Function(GSocksProxyFragmentReqBuilder b) updates]) = + _$GSocksProxyFragmentReq; + + static void _initializeBuilder(GSocksProxyFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'SocksProxyFragment'; + + @override + _i3.GSocksProxyFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GSocksProxyFragmentData? parseData(Map json) => + _i2.GSocksProxyFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GSocksProxyFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gSocksProxyFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GSocksProxyFragmentReq.serializer, + this, + ) as Map); + + static GSocksProxyFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GSocksProxyFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.g.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.g.dart new file mode 100644 index 00000000..51bd6dc1 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.g.dart @@ -0,0 +1,237 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSocksProxyFragmentReqSerializer = + new _$GSocksProxyFragmentReqSerializer(); + +class _$GSocksProxyFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSocksProxyFragmentReq, + _$GSocksProxyFragmentReq + ]; + @override + final String wireName = 'GSocksProxyFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GSocksProxyFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GSocksProxyFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSocksProxyFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSocksProxyFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GSocksProxyFragmentVars))! + as _i3.GSocksProxyFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GSocksProxyFragmentReq extends GSocksProxyFragmentReq { + @override + final _i3.GSocksProxyFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GSocksProxyFragmentReq( + [void Function(GSocksProxyFragmentReqBuilder)? updates]) => + (new GSocksProxyFragmentReqBuilder()..update(updates))._build(); + + _$GSocksProxyFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GSocksProxyFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GSocksProxyFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GSocksProxyFragmentReq', 'idFields'); + } + + @override + GSocksProxyFragmentReq rebuild( + void Function(GSocksProxyFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSocksProxyFragmentReqBuilder toBuilder() => + new GSocksProxyFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSocksProxyFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSocksProxyFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GSocksProxyFragmentReqBuilder + implements Builder { + _$GSocksProxyFragmentReq? _$v; + + _i3.GSocksProxyFragmentVarsBuilder? _vars; + _i3.GSocksProxyFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GSocksProxyFragmentVarsBuilder(); + set vars(_i3.GSocksProxyFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GSocksProxyFragmentReqBuilder() { + GSocksProxyFragmentReq._initializeBuilder(this); + } + + GSocksProxyFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GSocksProxyFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSocksProxyFragmentReq; + } + + @override + void update(void Function(GSocksProxyFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSocksProxyFragmentReq build() => _build(); + + _$GSocksProxyFragmentReq _build() { + _$GSocksProxyFragmentReq _$result; + try { + _$result = _$v ?? + new _$GSocksProxyFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GSocksProxyFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GSocksProxyFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSocksProxyFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart new file mode 100644 index 00000000..fd3646e2 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragment.var.gql.g.dart'; + +abstract class GSocksProxyFragmentVars + implements Built { + GSocksProxyFragmentVars._(); + + factory GSocksProxyFragmentVars( + [void Function(GSocksProxyFragmentVarsBuilder b) updates]) = + _$GSocksProxyFragmentVars; + + static Serializer get serializer => + _$gSocksProxyFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSocksProxyFragmentVars.serializer, + this, + ) as Map); + + static GSocksProxyFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSocksProxyFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.g.dart b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.g.dart new file mode 100644 index 00000000..bfa75623 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragment.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gSocksProxyFragmentVarsSerializer = + new _$GSocksProxyFragmentVarsSerializer(); + +class _$GSocksProxyFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSocksProxyFragmentVars, + _$GSocksProxyFragmentVars + ]; + @override + final String wireName = 'GSocksProxyFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GSocksProxyFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GSocksProxyFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GSocksProxyFragmentVarsBuilder().build(); + } +} + +class _$GSocksProxyFragmentVars extends GSocksProxyFragmentVars { + factory _$GSocksProxyFragmentVars( + [void Function(GSocksProxyFragmentVarsBuilder)? updates]) => + (new GSocksProxyFragmentVarsBuilder()..update(updates))._build(); + + _$GSocksProxyFragmentVars._() : super._(); + + @override + GSocksProxyFragmentVars rebuild( + void Function(GSocksProxyFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSocksProxyFragmentVarsBuilder toBuilder() => + new GSocksProxyFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSocksProxyFragmentVars; + } + + @override + int get hashCode { + return 999918222; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GSocksProxyFragmentVars').toString(); + } +} + +class GSocksProxyFragmentVarsBuilder + implements + Builder { + _$GSocksProxyFragmentVars? _$v; + + GSocksProxyFragmentVarsBuilder(); + + @override + void replace(GSocksProxyFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSocksProxyFragmentVars; + } + + @override + void update(void Function(GSocksProxyFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSocksProxyFragmentVars build() => _build(); + + _$GSocksProxyFragmentVars _build() { + final _$result = _$v ?? new _$GSocksProxyFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/domain/socks_proxy/graphql/fragment.graphql b/lib/src/features/settings/domain/socks_proxy/graphql/fragment.graphql new file mode 100644 index 00000000..fbd90553 --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/graphql/fragment.graphql @@ -0,0 +1,9 @@ + +fragment SocksProxyFragment on SettingsType { + socksProxyEnabled + socksProxyHost + socksProxyPassword + socksProxyPort + socksProxyUsername + socksProxyVersion +} diff --git a/lib/src/features/settings/domain/socks_proxy/socks_proxy.dart b/lib/src/features/settings/domain/socks_proxy/socks_proxy.dart new file mode 100644 index 00000000..4041d2eb --- /dev/null +++ b/lib/src/features/settings/domain/socks_proxy/socks_proxy.dart @@ -0,0 +1,3 @@ +import 'graphql/__generated__/fragment.data.gql.dart'; + +typedef SocksProxyDto = GSocksProxyFragment; diff --git a/lib/src/features/settings/presentation/appearance/appearance_screen.dart b/lib/src/features/settings/presentation/appearance/appearance_screen.dart index 30905e8c..a277680d 100644 --- a/lib/src/features/settings/presentation/appearance/appearance_screen.dart +++ b/lib/src/features/settings/presentation/appearance/appearance_screen.dart @@ -10,7 +10,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../widgets/app_theme_mode_tile/app_theme_mode_tile.dart'; import 'widgets/app_theme_selector/app_theme_selector.dart'; -import 'widgets/grid_cover_min_width.dart'; +import 'widgets/grid_cover_width_slider/grid_cover_width_slider.dart'; import 'widgets/is_true_black/is_true_black_tile.dart'; class AppearanceScreen extends ConsumerWidget { @@ -20,13 +20,13 @@ class AppearanceScreen extends ConsumerWidget { Widget build(context, ref) { final themeMode = ref.watch(appThemeModeProvider); return Scaffold( - appBar: AppBar(title: Text(context.l10n!.appearance)), + appBar: AppBar(title: Text(context.l10n.appearance)), body: ListView( children: [ const AppThemeModeTile(), if (themeMode != ThemeMode.light) const IsTrueBlackTile(), const AppThemeSelector(), - const GridCoverMinWidth(), + const GridCoverWidthSlider(), ], ), ); diff --git a/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart b/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart index 8a1152c9..34f14131 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.dart @@ -27,41 +27,45 @@ class AppThemeSelector extends HookConsumerWidget { Widget build(context, ref) { final flexSchemaList = useMemoized(() => FlexColor.schemes.keys.toList()); final selectedAppTheme = ref.watch(appSchemeProvider); - + final scrollController = useScrollController(); return Padding( padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16), child: SizedBox( height: 148, - child: ListView.builder( - scrollDirection: Axis.horizontal, - itemCount: flexSchemaList.length, - itemBuilder: (context, index) { - final flexSchemeColor = FlexColor.schemes[flexSchemaList[index]]; - if (flexSchemeColor == null) return const SizedBox.shrink(); - return Padding( - padding: const EdgeInsets.symmetric(horizontal: 4), - child: Tooltip( - message: flexSchemeColor.name, - child: FlexThemeModeOptionButton( - height: 64, - width: 32, - optionButtonBorderRadius: 16, - flexSchemeColor: flexSchemeColor.dark, - borderRadius: 8, - hoverColor: context.isDarkMode - ? Colors.black.withAlpha(0x2F) - : Colors.white.withAlpha(0x3F), - focusColor: context.isDarkMode - ? Colors.black.withAlpha(0x4F) - : Colors.white.withAlpha(0x5F), - selected: selectedAppTheme == flexSchemaList[index], - onSelect: () => ref - .read(appSchemeProvider.notifier) - .update(flexSchemaList[index]), + child: Scrollbar( + controller: scrollController, + child: ListView.builder( + controller: scrollController, + scrollDirection: Axis.horizontal, + itemCount: flexSchemaList.length, + itemBuilder: (context, index) { + final flexSchemeColor = FlexColor.schemes[flexSchemaList[index]]; + if (flexSchemeColor == null) return const SizedBox.shrink(); + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 4), + child: Tooltip( + message: flexSchemeColor.name, + child: FlexThemeModeOptionButton( + height: 64, + width: 32, + optionButtonBorderRadius: 16, + flexSchemeColor: flexSchemeColor.dark, + borderRadius: 8, + hoverColor: context.isDarkMode + ? Colors.black.withAlpha(0x2F) + : Colors.white.withAlpha(0x3F), + focusColor: context.isDarkMode + ? Colors.black.withAlpha(0x4F) + : Colors.white.withAlpha(0x5F), + selected: selectedAppTheme == flexSchemaList[index], + onSelect: () => ref + .read(appSchemeProvider.notifier) + .update(flexSchemaList[index]), + ), ), - ), - ); - }, + ); + }, + ), ), ), ); diff --git a/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.g.dart b/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.g.dart index e1a6f44c..287faa36 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.g.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/app_theme_selector/app_theme_selector.g.dart @@ -22,4 +22,4 @@ final appSchemeProvider = typedef _$AppScheme = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart similarity index 71% rename from lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart rename to lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart index fde5caaf..87403715 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.dart @@ -8,12 +8,12 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../../../../../constants/db_keys.dart'; -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../widgets/slider_setting_tile/slider_setting_tile.dart'; +import '../../../../../../constants/db_keys.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; +import '../../../../widgets/slider_setting_tile/slider_setting_tile.dart'; -part 'grid_cover_min_width.g.dart'; +part 'grid_cover_width_slider.g.dart'; @riverpod class GridMinWidth extends _$GridMinWidth @@ -22,15 +22,15 @@ class GridMinWidth extends _$GridMinWidth double? build() => initialize(DBKeys.gridMangaCoverWidth); } -class GridCoverMinWidth extends ConsumerWidget { - const GridCoverMinWidth({super.key}); +class GridCoverWidthSlider extends ConsumerWidget { + const GridCoverWidthSlider({super.key}); @override Widget build(BuildContext context, WidgetRef ref) { return SliderSettingTile( defaultValue: DBKeys.gridMangaCoverWidth.initial, getSliderLabel: (value) => value.round().toString(), - title: context.l10n!.mangaGridSize, + title: context.l10n.mangaGridSize, icon: Icons.grid_view_rounded, value: ref.watch(gridMinWidthProvider) ?? DBKeys.gridMangaCoverWidth.initial, diff --git a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.g.dart b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.g.dart similarity index 85% rename from lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.g.dart rename to lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.g.dart index 5d5780a2..ed3d76bd 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/grid_cover_min_width.g.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/grid_cover_width_slider/grid_cover_width_slider.g.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'grid_cover_min_width.dart'; +part of 'grid_cover_width_slider.dart'; // ************************************************************************** // RiverpodGenerator @@ -22,4 +22,4 @@ final gridMinWidthProvider = typedef _$GridMinWidth = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart index 19b63ded..2e0efd37 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.dart @@ -26,8 +26,8 @@ class IsTrueBlackTile extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, - secondary: const Icon(Icons.circle, color: Colors.black), - title: Text(context.l10n!.isTrueBlack), + secondary: const Icon(Icons.circle_rounded, color: Colors.black), + title: Text(context.l10n.isTrueBlack), onChanged: ref.read(isTrueBlackProvider.notifier).update, value: ref.watch(isTrueBlackProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.g.dart b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.g.dart index bacbf725..fb4a16c5 100644 --- a/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.g.dart +++ b/lib/src/features/settings/presentation/appearance/widgets/is_true_black/is_true_black_tile.g.dart @@ -22,4 +22,4 @@ final isTrueBlackProvider = typedef _$IsTrueBlack = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/backup/backup_screen.dart b/lib/src/features/settings/presentation/backup/backup_screen.dart index 31bd17a5..85b72455 100644 --- a/lib/src/features/settings/presentation/backup/backup_screen.dart +++ b/lib/src/features/settings/presentation/backup/backup_screen.dart @@ -4,91 +4,34 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import '../../../../constants/endpoints.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/launch_url_in_web.dart'; -import '../../../../utils/misc/toast/toast.dart'; -import '../../data/backup/backup_repository.dart'; -import '../../widgets/server_port_tile/server_port_tile.dart'; -import '../../widgets/server_url_tile/server_url_tile.dart'; -import 'widgets/backup_missing_dialog.dart'; +import '../../controller/server_controller.dart'; +import 'widgets/automatic_backup/automatic_backup_section.dart'; +import 'widgets/backup_and_restore/backup_and_restore_section.dart'; class BackupScreen extends ConsumerWidget { const BackupScreen({super.key}); - void backupFilePicker(WidgetRef ref, BuildContext context) async { - Toast getToast(context) => ref.read(toastProvider(context)); - final file = await FilePicker.platform.pickFiles( - type: FileType.custom, - allowedExtensions: ['gz'], - ); - if ((file?.files).isNotBlank) { - if (context.mounted) { - getToast(context).show(context.l10n!.restoring); - } - } - final result = await AsyncValue.guard(() => ref - .read(backupRepositoryProvider) - .restoreBackup(context, file?.files.single)); - result.whenOrNull( - error: (error, stackTrace) { - if (context.mounted) { - result.showToastOnError(getToast(context)); - } - }, - data: (data) { - final backupMissing = data?.filter; - if (context.mounted) { - getToast(context).instantShow(context.l10n!.restored); - } - if (backupMissing != null && !backupMissing.isEmpty) { - showDialog( - context: context, - builder: (context) => BackupMissingDialog( - backupMissing: backupMissing, - ), - ); - } - }, - ); - } - @override - Widget build(BuildContext context, WidgetRef ref) { + Widget build(context, ref) { return Scaffold( - appBar: AppBar(title: Text(context.l10n!.backup)), - body: ListView( - children: [ - ListTile( - title: Text(context.l10n!.createBackupTitle), - subtitle: Text(context.l10n!.createBackupDescription), - leading: const Icon(Icons.backup_rounded), - onTap: () async { - final toast = ref.read(toastProvider(context)); - launchUrlInWeb( - context, - Endpoints.baseApi( - baseUrl: ref.read(serverUrlProvider), - port: ref.read(serverPortProvider), - addPort: ref.watch(serverPortToggleProvider).ifNull(), - ) + - BackupUrl.export, - toast, - ); - }, + appBar: AppBar(title: Text(context.l10n.backup)), + body: RefreshIndicator( + onRefresh: () => ref.refresh(settingsProvider.future), + child: ListTileTheme( + data: const ListTileThemeData( + subtitleTextStyle: TextStyle(color: Colors.grey), ), - ListTile( - title: Text(context.l10n!.restoreBackupTitle), - subtitle: Text(context.l10n!.restoreBackupDescription), - leading: const Icon(Icons.restore_rounded), - onTap: () => backupFilePicker(ref, context), + child: ListView( + children: const [ + BackupAndRestoreSection(), + AutomaticBackupSection(), + ], ), - ], + ), ), ); } diff --git a/lib/src/features/settings/presentation/backup/controllers/backup_controller.dart b/lib/src/features/settings/presentation/backup/controllers/backup_controller.dart new file mode 100644 index 00000000..d5f360da --- /dev/null +++ b/lib/src/features/settings/presentation/backup/controllers/backup_controller.dart @@ -0,0 +1,11 @@ +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../domain/restore_status/restore_status.dart'; +import '../data/backup_settings_repository.dart'; + +part 'backup_controller.g.dart'; + +@riverpod +Stream restoreStatus(Ref ref, String restoreId) => + ref.watch(backupSettingsRepositoryProvider).getRestoreStatus(restoreId); diff --git a/lib/src/features/settings/presentation/backup/controllers/backup_controller.g.dart b/lib/src/features/settings/presentation/backup/controllers/backup_controller.g.dart new file mode 100644 index 00000000..962f1958 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/controllers/backup_controller.g.dart @@ -0,0 +1,161 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'backup_controller.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$restoreStatusHash() => r'e92c2f84827483884e464b7c65052a757560eb50'; + +/// Copied from Dart SDK +class _SystemHash { + _SystemHash._(); + + static int combine(int hash, int value) { + // ignore: parameter_assignments + hash = 0x1fffffff & (hash + value); + // ignore: parameter_assignments + hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); + return hash ^ (hash >> 6); + } + + static int finish(int hash) { + // ignore: parameter_assignments + hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); + // ignore: parameter_assignments + hash = hash ^ (hash >> 11); + return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); + } +} + +/// See also [restoreStatus]. +@ProviderFor(restoreStatus) +const restoreStatusProvider = RestoreStatusFamily(); + +/// See also [restoreStatus]. +class RestoreStatusFamily extends Family> { + /// See also [restoreStatus]. + const RestoreStatusFamily(); + + /// See also [restoreStatus]. + RestoreStatusProvider call( + String restoreId, + ) { + return RestoreStatusProvider( + restoreId, + ); + } + + @override + RestoreStatusProvider getProviderOverride( + covariant RestoreStatusProvider provider, + ) { + return call( + provider.restoreId, + ); + } + + static const Iterable? _dependencies = null; + + @override + Iterable? get dependencies => _dependencies; + + static const Iterable? _allTransitiveDependencies = null; + + @override + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; + + @override + String? get name => r'restoreStatusProvider'; +} + +/// See also [restoreStatus]. +class RestoreStatusProvider extends AutoDisposeStreamProvider { + /// See also [restoreStatus]. + RestoreStatusProvider( + String restoreId, + ) : this._internal( + (ref) => restoreStatus( + ref as RestoreStatusRef, + restoreId, + ), + from: restoreStatusProvider, + name: r'restoreStatusProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$restoreStatusHash, + dependencies: RestoreStatusFamily._dependencies, + allTransitiveDependencies: + RestoreStatusFamily._allTransitiveDependencies, + restoreId: restoreId, + ); + + RestoreStatusProvider._internal( + super._createNotifier, { + required super.name, + required super.dependencies, + required super.allTransitiveDependencies, + required super.debugGetCreateSourceHash, + required super.from, + required this.restoreId, + }) : super.internal(); + + final String restoreId; + + @override + Override overrideWith( + Stream Function(RestoreStatusRef provider) create, + ) { + return ProviderOverride( + origin: this, + override: RestoreStatusProvider._internal( + (ref) => create(ref as RestoreStatusRef), + from: from, + name: null, + dependencies: null, + allTransitiveDependencies: null, + debugGetCreateSourceHash: null, + restoreId: restoreId, + ), + ); + } + + @override + AutoDisposeStreamProviderElement createElement() { + return _RestoreStatusProviderElement(this); + } + + @override + bool operator ==(Object other) { + return other is RestoreStatusProvider && other.restoreId == restoreId; + } + + @override + int get hashCode { + var hash = _SystemHash.combine(0, runtimeType.hashCode); + hash = _SystemHash.combine(hash, restoreId.hashCode); + + return _SystemHash.finish(hash); + } +} + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +mixin RestoreStatusRef on AutoDisposeStreamProviderRef { + /// The parameter `restoreId` of this provider. + String get restoreId; +} + +class _RestoreStatusProviderElement + extends AutoDisposeStreamProviderElement + with RestoreStatusRef { + _RestoreStatusProviderElement(super.provider); + + @override + String get restoreId => (origin as RestoreStatusProvider).restoreId; +} +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/backup/data/backup_settings_repository.dart b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.dart new file mode 100644 index 00000000..b331eec1 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.dart @@ -0,0 +1,79 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:ferry/ferry.dart'; +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:http/http.dart' show MultipartFile; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../domain/restore_status/restore_status.dart'; +import '../../../domain/settings/settings.dart'; +import 'graphql/query.dart'; + +part 'backup_settings_repository.g.dart'; + +class BackupSettingsRepository { + const BackupSettingsRepository(this.ferryClient); + + final Client ferryClient; + + Stream restoreBackup(MultipartFile? file) => ferryClient.fetch( + BackupSettingsQuery.restoreBackup(file), + (data) => data.restoreBackup.id, + ); + + Stream?> validateBackup(MultipartFile? file) => ferryClient.fetch( + BackupSettingsQuery.validateBackup(file), + (data) => data.validateBackup.missingSources + .map((value) => value.name) + .toSet(), + ); + + Stream getRestoreStatus(String restoreId) => + ferryClient.fetch(BackupSettingsQuery.restoreStatus(restoreId), + (data) => data.restoreStatus); + + Stream createBackup(bool includeCategories, bool includeChapters) => + ferryClient.fetch( + BackupSettingsQuery.createBackup(includeCategories, includeChapters), + (data) => data.createBackup.url, + ); + + Future updateBackupLocation(String? backupPath) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupPath(backupPath), + (data) => data.setSettings.settings, + ) + .first; + + Future updateBackupTime(TimeOfDay backupTime) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupTime(backupTime), + (data) => data.setSettings.settings, + ) + .first; + + Future updateBackupInterval(int backupInterval) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupInterval(backupInterval), + (data) => data.setSettings.settings, + ) + .first; + + Future updateBackupTTL(int backupTTL) => ferryClient + .fetch( + BackupSettingsQuery.updateBackupTTL(backupTTL), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +BackupSettingsRepository backupSettingsRepository(Ref ref) => + BackupSettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/backup/data/backup_settings_repository.g.dart b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.g.dart new file mode 100644 index 00000000..3522bb03 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/backup_settings_repository.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'backup_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$backupSettingsRepositoryHash() => + r'7589f51f74379766353aa5fe017905ec32486b5e'; + +/// See also [backupSettingsRepository]. +@ProviderFor(backupSettingsRepository) +final backupSettingsRepositoryProvider = + AutoDisposeProvider.internal( + backupSettingsRepository, + name: r'backupSettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$backupSettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef BackupSettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.ast.gql.dart new file mode 100644 index 00000000..a25e8cd1 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.ast.gql.dart @@ -0,0 +1,75 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const CreateBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'CreateBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'includeCategories')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + directives: [], + ), + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'includeChapters')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: true)), + directives: [], + ), + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'createBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'includeCategories'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'includeCategories')), + ), + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'includeChapters'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'includeChapters')), + ), + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [CreateBackup]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.dart new file mode 100644 index 00000000..cef23a97 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.dart @@ -0,0 +1,71 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'create_backup.data.gql.g.dart'; + +abstract class GCreateBackupData + implements Built { + GCreateBackupData._(); + + factory GCreateBackupData( + [void Function(GCreateBackupDataBuilder b) updates]) = + _$GCreateBackupData; + + static void _initializeBuilder(GCreateBackupDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GCreateBackupData_createBackup get createBackup; + static Serializer get serializer => + _$gCreateBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupData.serializer, + this, + ) as Map); + + static GCreateBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupData.serializer, + json, + ); +} + +abstract class GCreateBackupData_createBackup + implements + Built { + GCreateBackupData_createBackup._(); + + factory GCreateBackupData_createBackup( + [void Function(GCreateBackupData_createBackupBuilder b) updates]) = + _$GCreateBackupData_createBackup; + + static void _initializeBuilder(GCreateBackupData_createBackupBuilder b) => + b..G__typename = 'CreateBackupPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + String get url; + static Serializer get serializer => + _$gCreateBackupDataCreateBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupData_createBackup.serializer, + this, + ) as Map); + + static GCreateBackupData_createBackup? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupData_createBackup.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.g.dart new file mode 100644 index 00000000..bb8838cb --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.g.dart @@ -0,0 +1,369 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_backup.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCreateBackupDataSerializer = + new _$GCreateBackupDataSerializer(); +Serializer + _$gCreateBackupDataCreateBackupSerializer = + new _$GCreateBackupData_createBackupSerializer(); + +class _$GCreateBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupData, _$GCreateBackupData]; + @override + final String wireName = 'GCreateBackupData'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'createBackup', + serializers.serialize(object.createBackup, + specifiedType: const FullType(GCreateBackupData_createBackup)), + ]; + + return result; + } + + @override + GCreateBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'createBackup': + result.createBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GCreateBackupData_createBackup))! + as GCreateBackupData_createBackup); + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupData_createBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCreateBackupData_createBackup, + _$GCreateBackupData_createBackup + ]; + @override + final String wireName = 'GCreateBackupData_createBackup'; + + @override + Iterable serialize( + Serializers serializers, GCreateBackupData_createBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'url', + serializers.serialize(object.url, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GCreateBackupData_createBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupData_createBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupData extends GCreateBackupData { + @override + final String G__typename; + @override + final GCreateBackupData_createBackup createBackup; + + factory _$GCreateBackupData( + [void Function(GCreateBackupDataBuilder)? updates]) => + (new GCreateBackupDataBuilder()..update(updates))._build(); + + _$GCreateBackupData._({required this.G__typename, required this.createBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + createBackup, r'GCreateBackupData', 'createBackup'); + } + + @override + GCreateBackupData rebuild(void Function(GCreateBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupDataBuilder toBuilder() => + new GCreateBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupData && + G__typename == other.G__typename && + createBackup == other.createBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, createBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupData') + ..add('G__typename', G__typename) + ..add('createBackup', createBackup)) + .toString(); + } +} + +class GCreateBackupDataBuilder + implements Builder { + _$GCreateBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GCreateBackupData_createBackupBuilder? _createBackup; + GCreateBackupData_createBackupBuilder get createBackup => + _$this._createBackup ??= new GCreateBackupData_createBackupBuilder(); + set createBackup(GCreateBackupData_createBackupBuilder? createBackup) => + _$this._createBackup = createBackup; + + GCreateBackupDataBuilder() { + GCreateBackupData._initializeBuilder(this); + } + + GCreateBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _createBackup = $v.createBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupData; + } + + @override + void update(void Function(GCreateBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupData build() => _build(); + + _$GCreateBackupData _build() { + _$GCreateBackupData _$result; + try { + _$result = _$v ?? + new _$GCreateBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData', 'G__typename'), + createBackup: createBackup.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'createBackup'; + createBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCreateBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupData_createBackup extends GCreateBackupData_createBackup { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final String url; + + factory _$GCreateBackupData_createBackup( + [void Function(GCreateBackupData_createBackupBuilder)? updates]) => + (new GCreateBackupData_createBackupBuilder()..update(updates))._build(); + + _$GCreateBackupData_createBackup._( + {required this.G__typename, this.clientMutationId, required this.url}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData_createBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + url, r'GCreateBackupData_createBackup', 'url'); + } + + @override + GCreateBackupData_createBackup rebuild( + void Function(GCreateBackupData_createBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupData_createBackupBuilder toBuilder() => + new GCreateBackupData_createBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupData_createBackup && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupData_createBackup') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('url', url)) + .toString(); + } +} + +class GCreateBackupData_createBackupBuilder + implements + Builder { + _$GCreateBackupData_createBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GCreateBackupData_createBackupBuilder() { + GCreateBackupData_createBackup._initializeBuilder(this); + } + + GCreateBackupData_createBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupData_createBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupData_createBackup; + } + + @override + void update(void Function(GCreateBackupData_createBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupData_createBackup build() => _build(); + + _$GCreateBackupData_createBackup _build() { + final _$result = _$v ?? + new _$GCreateBackupData_createBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GCreateBackupData_createBackup', 'G__typename'), + clientMutationId: clientMutationId, + url: BuiltValueNullFieldError.checkNotNull( + url, r'GCreateBackupData_createBackup', 'url'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.req.gql.dart new file mode 100644 index 00000000..03656c31 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.req.gql.dart @@ -0,0 +1,96 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'create_backup.req.gql.g.dart'; + +abstract class GCreateBackupReq + implements + Built, + _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> { + GCreateBackupReq._(); + + factory GCreateBackupReq([void Function(GCreateBackupReqBuilder b) updates]) = + _$GCreateBackupReq; + + static void _initializeBuilder(GCreateBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'CreateBackup', + ) + ..executeOnListen = true; + + @override + _i3.GCreateBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, + _i2.GCreateBackupData?, + )? get updateResult; + @override + _i2.GCreateBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GCreateBackupData? parseData(Map json) => + _i2.GCreateBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GCreateBackupData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GCreateBackupData, _i3.GCreateBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gCreateBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GCreateBackupReq.serializer, + this, + ) as Map); + + static GCreateBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GCreateBackupReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.req.gql.g.dart new file mode 100644 index 00000000..36db1380 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.req.gql.g.dart @@ -0,0 +1,368 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_backup.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCreateBackupReqSerializer = + new _$GCreateBackupReqSerializer(); + +class _$GCreateBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupReq, _$GCreateBackupReq]; + @override + final String wireName = 'GCreateBackupReq'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GCreateBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GCreateBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GCreateBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GCreateBackupVars))! + as _i3.GCreateBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GCreateBackupData))! + as _i2.GCreateBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupReq extends GCreateBackupReq { + @override + final _i3.GCreateBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? updateResult; + @override + final _i2.GCreateBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GCreateBackupReq( + [void Function(GCreateBackupReqBuilder)? updates]) => + (new GCreateBackupReqBuilder()..update(updates))._build(); + + _$GCreateBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GCreateBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GCreateBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GCreateBackupReq', 'executeOnListen'); + } + + @override + GCreateBackupReq rebuild(void Function(GCreateBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupReqBuilder toBuilder() => + new GCreateBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GCreateBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GCreateBackupReqBuilder + implements Builder { + _$GCreateBackupReq? _$v; + + _i3.GCreateBackupVarsBuilder? _vars; + _i3.GCreateBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GCreateBackupVarsBuilder(); + set vars(_i3.GCreateBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? _updateResult; + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GCreateBackupData? Function( + _i2.GCreateBackupData?, _i2.GCreateBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GCreateBackupDataBuilder? _optimisticResponse; + _i2.GCreateBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GCreateBackupDataBuilder(); + set optimisticResponse(_i2.GCreateBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GCreateBackupReqBuilder() { + GCreateBackupReq._initializeBuilder(this); + } + + GCreateBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupReq; + } + + @override + void update(void Function(GCreateBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupReq build() => _build(); + + _$GCreateBackupReq _build() { + _$GCreateBackupReq _$result; + try { + _$result = _$v ?? + new _$GCreateBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GCreateBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GCreateBackupReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCreateBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.dart new file mode 100644 index 00000000..782a7327 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'create_backup.var.gql.g.dart'; + +abstract class GCreateBackupVars + implements Built { + GCreateBackupVars._(); + + factory GCreateBackupVars( + [void Function(GCreateBackupVarsBuilder b) updates]) = + _$GCreateBackupVars; + + bool? get includeCategories; + bool? get includeChapters; + static Serializer get serializer => + _$gCreateBackupVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupVars.serializer, + this, + ) as Map); + + static GCreateBackupVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.g.dart new file mode 100644 index 00000000..998ff7f9 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.g.dart @@ -0,0 +1,166 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_backup.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gCreateBackupVarsSerializer = + new _$GCreateBackupVarsSerializer(); + +class _$GCreateBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupVars, _$GCreateBackupVars]; + @override + final String wireName = 'GCreateBackupVars'; + + @override + Iterable serialize(Serializers serializers, GCreateBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.includeCategories; + if (value != null) { + result + ..add('includeCategories') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeChapters; + if (value != null) { + result + ..add('includeChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GCreateBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'includeCategories': + result.includeCategories = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeChapters': + result.includeChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupVars extends GCreateBackupVars { + @override + final bool? includeCategories; + @override + final bool? includeChapters; + + factory _$GCreateBackupVars( + [void Function(GCreateBackupVarsBuilder)? updates]) => + (new GCreateBackupVarsBuilder()..update(updates))._build(); + + _$GCreateBackupVars._({this.includeCategories, this.includeChapters}) + : super._(); + + @override + GCreateBackupVars rebuild(void Function(GCreateBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupVarsBuilder toBuilder() => + new GCreateBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupVars && + includeCategories == other.includeCategories && + includeChapters == other.includeChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, includeCategories.hashCode); + _$hash = $jc(_$hash, includeChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupVars') + ..add('includeCategories', includeCategories) + ..add('includeChapters', includeChapters)) + .toString(); + } +} + +class GCreateBackupVarsBuilder + implements Builder { + _$GCreateBackupVars? _$v; + + bool? _includeCategories; + bool? get includeCategories => _$this._includeCategories; + set includeCategories(bool? includeCategories) => + _$this._includeCategories = includeCategories; + + bool? _includeChapters; + bool? get includeChapters => _$this._includeChapters; + set includeChapters(bool? includeChapters) => + _$this._includeChapters = includeChapters; + + GCreateBackupVarsBuilder(); + + GCreateBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _includeCategories = $v.includeCategories; + _includeChapters = $v.includeChapters; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupVars; + } + + @override + void update(void Function(GCreateBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupVars build() => _build(); + + _$GCreateBackupVars _build() { + final _$result = _$v ?? + new _$GCreateBackupVars._( + includeCategories: includeCategories, + includeChapters: includeChapters, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.ast.gql.dart new file mode 100644 index 00000000..6151304e --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.ast.gql.dart @@ -0,0 +1,74 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.ast.gql.dart' + as _i2; + +const RestoreBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'RestoreBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'restoreBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backup'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'clientMutationId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'RestoreStatusFragment'), + directives: [], + ) + ]), + ), + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + RestoreBackup, + _i2.RestoreStatusFragment, +]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.dart new file mode 100644 index 00000000..bfe51df1 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.dart @@ -0,0 +1,118 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'restore_backup.data.gql.g.dart'; + +abstract class GRestoreBackupData + implements Built { + GRestoreBackupData._(); + + factory GRestoreBackupData( + [void Function(GRestoreBackupDataBuilder b) updates]) = + _$GRestoreBackupData; + + static void _initializeBuilder(GRestoreBackupDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GRestoreBackupData_restoreBackup get restoreBackup; + static Serializer get serializer => + _$gRestoreBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData.serializer, + this, + ) as Map); + + static GRestoreBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData.serializer, + json, + ); +} + +abstract class GRestoreBackupData_restoreBackup + implements + Built { + GRestoreBackupData_restoreBackup._(); + + factory GRestoreBackupData_restoreBackup( + [void Function(GRestoreBackupData_restoreBackupBuilder b) updates]) = + _$GRestoreBackupData_restoreBackup; + + static void _initializeBuilder(GRestoreBackupData_restoreBackupBuilder b) => + b..G__typename = 'RestoreBackupPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String? get clientMutationId; + String get id; + GRestoreBackupData_restoreBackup_status? get status; + static Serializer get serializer => + _$gRestoreBackupDataRestoreBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData_restoreBackup.serializer, + this, + ) as Map); + + static GRestoreBackupData_restoreBackup? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData_restoreBackup.serializer, + json, + ); +} + +abstract class GRestoreBackupData_restoreBackup_status + implements + Built, + _i2.GRestoreStatusFragment { + GRestoreBackupData_restoreBackup_status._(); + + factory GRestoreBackupData_restoreBackup_status( + [void Function(GRestoreBackupData_restoreBackup_statusBuilder b) + updates]) = _$GRestoreBackupData_restoreBackup_status; + + static void _initializeBuilder( + GRestoreBackupData_restoreBackup_statusBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get mangaProgress; + @override + _i3.GBackupRestoreState get state; + @override + int get totalManga; + static Serializer get serializer => + _$gRestoreBackupDataRestoreBackupStatusSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupData_restoreBackup_status.serializer, + this, + ) as Map); + + static GRestoreBackupData_restoreBackup_status? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupData_restoreBackup_status.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.g.dart new file mode 100644 index 00000000..1ac172e0 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.g.dart @@ -0,0 +1,634 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_backup.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreBackupDataSerializer = + new _$GRestoreBackupDataSerializer(); +Serializer + _$gRestoreBackupDataRestoreBackupSerializer = + new _$GRestoreBackupData_restoreBackupSerializer(); +Serializer + _$gRestoreBackupDataRestoreBackupStatusSerializer = + new _$GRestoreBackupData_restoreBackup_statusSerializer(); + +class _$GRestoreBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupData, _$GRestoreBackupData]; + @override + final String wireName = 'GRestoreBackupData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'restoreBackup', + serializers.serialize(object.restoreBackup, + specifiedType: const FullType(GRestoreBackupData_restoreBackup)), + ]; + + return result; + } + + @override + GRestoreBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'restoreBackup': + result.restoreBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup))! + as GRestoreBackupData_restoreBackup); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupData_restoreBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupData_restoreBackup, + _$GRestoreBackupData_restoreBackup + ]; + @override + final String wireName = 'GRestoreBackupData_restoreBackup'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData_restoreBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup_status))); + } + return result; + } + + @override + GRestoreBackupData_restoreBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupData_restoreBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreBackupData_restoreBackup_status))! + as GRestoreBackupData_restoreBackup_status); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupData_restoreBackup_statusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupData_restoreBackup_status, + _$GRestoreBackupData_restoreBackup_status + ]; + @override + final String wireName = 'GRestoreBackupData_restoreBackup_status'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupData_restoreBackup_status object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i3.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreBackupData_restoreBackup_status deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupData_restoreBackup_statusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i3.GBackupRestoreState))! + as _i3.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupData extends GRestoreBackupData { + @override + final String G__typename; + @override + final GRestoreBackupData_restoreBackup restoreBackup; + + factory _$GRestoreBackupData( + [void Function(GRestoreBackupDataBuilder)? updates]) => + (new GRestoreBackupDataBuilder()..update(updates))._build(); + + _$GRestoreBackupData._( + {required this.G__typename, required this.restoreBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + restoreBackup, r'GRestoreBackupData', 'restoreBackup'); + } + + @override + GRestoreBackupData rebuild( + void Function(GRestoreBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupDataBuilder toBuilder() => + new GRestoreBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData && + G__typename == other.G__typename && + restoreBackup == other.restoreBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, restoreBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupData') + ..add('G__typename', G__typename) + ..add('restoreBackup', restoreBackup)) + .toString(); + } +} + +class GRestoreBackupDataBuilder + implements Builder { + _$GRestoreBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GRestoreBackupData_restoreBackupBuilder? _restoreBackup; + GRestoreBackupData_restoreBackupBuilder get restoreBackup => + _$this._restoreBackup ??= new GRestoreBackupData_restoreBackupBuilder(); + set restoreBackup(GRestoreBackupData_restoreBackupBuilder? restoreBackup) => + _$this._restoreBackup = restoreBackup; + + GRestoreBackupDataBuilder() { + GRestoreBackupData._initializeBuilder(this); + } + + GRestoreBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _restoreBackup = $v.restoreBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData; + } + + @override + void update(void Function(GRestoreBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData build() => _build(); + + _$GRestoreBackupData _build() { + _$GRestoreBackupData _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData', 'G__typename'), + restoreBackup: restoreBackup.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'restoreBackup'; + restoreBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData_restoreBackup + extends GRestoreBackupData_restoreBackup { + @override + final String G__typename; + @override + final String? clientMutationId; + @override + final String id; + @override + final GRestoreBackupData_restoreBackup_status? status; + + factory _$GRestoreBackupData_restoreBackup( + [void Function(GRestoreBackupData_restoreBackupBuilder)? updates]) => + (new GRestoreBackupData_restoreBackupBuilder()..update(updates))._build(); + + _$GRestoreBackupData_restoreBackup._( + {required this.G__typename, + this.clientMutationId, + required this.id, + this.status}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData_restoreBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + id, r'GRestoreBackupData_restoreBackup', 'id'); + } + + @override + GRestoreBackupData_restoreBackup rebuild( + void Function(GRestoreBackupData_restoreBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupData_restoreBackupBuilder toBuilder() => + new GRestoreBackupData_restoreBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData_restoreBackup && + G__typename == other.G__typename && + clientMutationId == other.clientMutationId && + id == other.id && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupData_restoreBackup') + ..add('G__typename', G__typename) + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('status', status)) + .toString(); + } +} + +class GRestoreBackupData_restoreBackupBuilder + implements + Builder { + _$GRestoreBackupData_restoreBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + GRestoreBackupData_restoreBackup_statusBuilder? _status; + GRestoreBackupData_restoreBackup_statusBuilder get status => + _$this._status ??= new GRestoreBackupData_restoreBackup_statusBuilder(); + set status(GRestoreBackupData_restoreBackup_statusBuilder? status) => + _$this._status = status; + + GRestoreBackupData_restoreBackupBuilder() { + GRestoreBackupData_restoreBackup._initializeBuilder(this); + } + + GRestoreBackupData_restoreBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _status = $v.status?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData_restoreBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData_restoreBackup; + } + + @override + void update(void Function(GRestoreBackupData_restoreBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData_restoreBackup build() => _build(); + + _$GRestoreBackupData_restoreBackup _build() { + _$GRestoreBackupData_restoreBackup _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupData_restoreBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreBackupData_restoreBackup', 'G__typename'), + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GRestoreBackupData_restoreBackup', 'id'), + status: _status?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'status'; + _status?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupData_restoreBackup', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupData_restoreBackup_status + extends GRestoreBackupData_restoreBackup_status { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i3.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreBackupData_restoreBackup_status( + [void Function(GRestoreBackupData_restoreBackup_statusBuilder)? + updates]) => + (new GRestoreBackupData_restoreBackup_statusBuilder()..update(updates)) + ._build(); + + _$GRestoreBackupData_restoreBackup_status._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreBackupData_restoreBackup_status', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreBackupData_restoreBackup_status', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreBackupData_restoreBackup_status', 'totalManga'); + } + + @override + GRestoreBackupData_restoreBackup_status rebuild( + void Function(GRestoreBackupData_restoreBackup_statusBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupData_restoreBackup_statusBuilder toBuilder() => + new GRestoreBackupData_restoreBackup_statusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupData_restoreBackup_status && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GRestoreBackupData_restoreBackup_status') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreBackupData_restoreBackup_statusBuilder + implements + Builder { + _$GRestoreBackupData_restoreBackup_status? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i3.GBackupRestoreState? _state; + _i3.GBackupRestoreState? get state => _$this._state; + set state(_i3.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreBackupData_restoreBackup_statusBuilder() { + GRestoreBackupData_restoreBackup_status._initializeBuilder(this); + } + + GRestoreBackupData_restoreBackup_statusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupData_restoreBackup_status other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupData_restoreBackup_status; + } + + @override + void update( + void Function(GRestoreBackupData_restoreBackup_statusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupData_restoreBackup_status build() => _build(); + + _$GRestoreBackupData_restoreBackup_status _build() { + final _$result = _$v ?? + new _$GRestoreBackupData_restoreBackup_status._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GRestoreBackupData_restoreBackup_status', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreBackupData_restoreBackup_status', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreBackupData_restoreBackup_status', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull(totalManga, + r'GRestoreBackupData_restoreBackup_status', 'totalManga'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.req.gql.dart new file mode 100644 index 00000000..618cc12a --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.req.gql.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'restore_backup.req.gql.g.dart'; + +abstract class GRestoreBackupReq + implements + Built, + _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> { + GRestoreBackupReq._(); + + factory GRestoreBackupReq( + [void Function(GRestoreBackupReqBuilder b) updates]) = + _$GRestoreBackupReq; + + static void _initializeBuilder(GRestoreBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'RestoreBackup', + ) + ..executeOnListen = true; + + @override + _i3.GRestoreBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, + _i2.GRestoreBackupData?, + )? get updateResult; + @override + _i2.GRestoreBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GRestoreBackupData? parseData(Map json) => + _i2.GRestoreBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreBackupData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GRestoreBackupData, _i3.GRestoreBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gRestoreBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreBackupReq.serializer, + this, + ) as Map); + + static GRestoreBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreBackupReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.req.gql.g.dart new file mode 100644 index 00000000..3c139546 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.req.gql.g.dart @@ -0,0 +1,368 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_backup.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreBackupReqSerializer = + new _$GRestoreBackupReqSerializer(); + +class _$GRestoreBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupReq, _$GRestoreBackupReq]; + @override + final String wireName = 'GRestoreBackupReq'; + + @override + Iterable serialize(Serializers serializers, GRestoreBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GRestoreBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GRestoreBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GRestoreBackupVars))! + as _i3.GRestoreBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GRestoreBackupData))! + as _i2.GRestoreBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupReq extends GRestoreBackupReq { + @override + final _i3.GRestoreBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? updateResult; + @override + final _i2.GRestoreBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GRestoreBackupReq( + [void Function(GRestoreBackupReqBuilder)? updates]) => + (new GRestoreBackupReqBuilder()..update(updates))._build(); + + _$GRestoreBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreBackupReq', 'executeOnListen'); + } + + @override + GRestoreBackupReq rebuild(void Function(GRestoreBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupReqBuilder toBuilder() => + new GRestoreBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GRestoreBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GRestoreBackupReqBuilder + implements Builder { + _$GRestoreBackupReq? _$v; + + _i3.GRestoreBackupVarsBuilder? _vars; + _i3.GRestoreBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreBackupVarsBuilder(); + set vars(_i3.GRestoreBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? _updateResult; + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GRestoreBackupData? Function( + _i2.GRestoreBackupData?, _i2.GRestoreBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GRestoreBackupDataBuilder? _optimisticResponse; + _i2.GRestoreBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GRestoreBackupDataBuilder(); + set optimisticResponse(_i2.GRestoreBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GRestoreBackupReqBuilder() { + GRestoreBackupReq._initializeBuilder(this); + } + + GRestoreBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupReq; + } + + @override + void update(void Function(GRestoreBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupReq build() => _build(); + + _$GRestoreBackupReq _build() { + _$GRestoreBackupReq _$result; + try { + _$result = _$v ?? + new _$GRestoreBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreBackupReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.dart new file mode 100644 index 00000000..35e5e3cb --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:http/http.dart' as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'restore_backup.var.gql.g.dart'; + +abstract class GRestoreBackupVars + implements Built { + GRestoreBackupVars._(); + + factory GRestoreBackupVars( + [void Function(GRestoreBackupVarsBuilder b) updates]) = + _$GRestoreBackupVars; + + _i1.MultipartFile get backup; + static Serializer get serializer => + _$gRestoreBackupVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GRestoreBackupVars.serializer, + this, + ) as Map); + + static GRestoreBackupVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GRestoreBackupVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.g.dart new file mode 100644 index 00000000..e5135db9 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.g.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_backup.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreBackupVarsSerializer = + new _$GRestoreBackupVarsSerializer(); + +class _$GRestoreBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreBackupVars, _$GRestoreBackupVars]; + @override + final String wireName = 'GRestoreBackupVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i1.MultipartFile)), + ]; + + return result; + } + + @override + GRestoreBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i1.MultipartFile))! + as _i1.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupVars extends GRestoreBackupVars { + @override + final _i1.MultipartFile backup; + + factory _$GRestoreBackupVars( + [void Function(GRestoreBackupVarsBuilder)? updates]) => + (new GRestoreBackupVarsBuilder()..update(updates))._build(); + + _$GRestoreBackupVars._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupVars', 'backup'); + } + + @override + GRestoreBackupVars rebuild( + void Function(GRestoreBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupVarsBuilder toBuilder() => + new GRestoreBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupVars && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupVars') + ..add('backup', backup)) + .toString(); + } +} + +class GRestoreBackupVarsBuilder + implements Builder { + _$GRestoreBackupVars? _$v; + + _i1.MultipartFile? _backup; + _i1.MultipartFile? get backup => _$this._backup; + set backup(_i1.MultipartFile? backup) => _$this._backup = backup; + + GRestoreBackupVarsBuilder(); + + GRestoreBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupVars; + } + + @override + void update(void Function(GRestoreBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupVars build() => _build(); + + _$GRestoreBackupVars _build() { + final _$result = _$v ?? + new _$GRestoreBackupVars._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupVars', 'backup'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.ast.gql.dart new file mode 100644 index 00000000..c503932c --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.ast.gql.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.ast.gql.dart' + as _i2; + +const RestoreStatus = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'RestoreStatus'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'restoreStatus'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'id'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'restoreId')), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'RestoreStatusFragment'), + directives: [], + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + RestoreStatus, + _i2.RestoreStatusFragment, +]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.dart new file mode 100644 index 00000000..f04c99d1 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.dart @@ -0,0 +1,83 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'restore_status.data.gql.g.dart'; + +abstract class GRestoreStatusData + implements Built { + GRestoreStatusData._(); + + factory GRestoreStatusData( + [void Function(GRestoreStatusDataBuilder b) updates]) = + _$GRestoreStatusData; + + static void _initializeBuilder(GRestoreStatusDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GRestoreStatusData_restoreStatus? get restoreStatus; + static Serializer get serializer => + _$gRestoreStatusDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusData.serializer, + this, + ) as Map); + + static GRestoreStatusData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusData.serializer, + json, + ); +} + +abstract class GRestoreStatusData_restoreStatus + implements + Built, + _i2.GRestoreStatusFragment { + GRestoreStatusData_restoreStatus._(); + + factory GRestoreStatusData_restoreStatus( + [void Function(GRestoreStatusData_restoreStatusBuilder b) updates]) = + _$GRestoreStatusData_restoreStatus; + + static void _initializeBuilder(GRestoreStatusData_restoreStatusBuilder b) => + b..G__typename = 'BackupRestoreStatus'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get mangaProgress; + @override + _i3.GBackupRestoreState get state; + @override + int get totalManga; + static Serializer get serializer => + _$gRestoreStatusDataRestoreStatusSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusData_restoreStatus.serializer, + this, + ) as Map); + + static GRestoreStatusData_restoreStatus? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusData_restoreStatus.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.g.dart new file mode 100644 index 00000000..210bc82b --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.g.dart @@ -0,0 +1,399 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusDataSerializer = + new _$GRestoreStatusDataSerializer(); +Serializer + _$gRestoreStatusDataRestoreStatusSerializer = + new _$GRestoreStatusData_restoreStatusSerializer(); + +class _$GRestoreStatusDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusData, _$GRestoreStatusData]; + @override + final String wireName = 'GRestoreStatusData'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.restoreStatus; + if (value != null) { + result + ..add('restoreStatus') + ..add(serializers.serialize(value, + specifiedType: const FullType(GRestoreStatusData_restoreStatus))); + } + return result; + } + + @override + GRestoreStatusData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'restoreStatus': + result.restoreStatus.replace(serializers.deserialize(value, + specifiedType: + const FullType(GRestoreStatusData_restoreStatus))! + as GRestoreStatusData_restoreStatus); + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusData_restoreStatusSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreStatusData_restoreStatus, + _$GRestoreStatusData_restoreStatus + ]; + @override + final String wireName = 'GRestoreStatusData_restoreStatus'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusData_restoreStatus object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'mangaProgress', + serializers.serialize(object.mangaProgress, + specifiedType: const FullType(int)), + 'state', + serializers.serialize(object.state, + specifiedType: const FullType(_i3.GBackupRestoreState)), + 'totalManga', + serializers.serialize(object.totalManga, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GRestoreStatusData_restoreStatus deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusData_restoreStatusBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaProgress': + result.mangaProgress = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'state': + result.state = serializers.deserialize(value, + specifiedType: const FullType(_i3.GBackupRestoreState))! + as _i3.GBackupRestoreState; + break; + case 'totalManga': + result.totalManga = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusData extends GRestoreStatusData { + @override + final String G__typename; + @override + final GRestoreStatusData_restoreStatus? restoreStatus; + + factory _$GRestoreStatusData( + [void Function(GRestoreStatusDataBuilder)? updates]) => + (new GRestoreStatusDataBuilder()..update(updates))._build(); + + _$GRestoreStatusData._({required this.G__typename, this.restoreStatus}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData', 'G__typename'); + } + + @override + GRestoreStatusData rebuild( + void Function(GRestoreStatusDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusDataBuilder toBuilder() => + new GRestoreStatusDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusData && + G__typename == other.G__typename && + restoreStatus == other.restoreStatus; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, restoreStatus.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusData') + ..add('G__typename', G__typename) + ..add('restoreStatus', restoreStatus)) + .toString(); + } +} + +class GRestoreStatusDataBuilder + implements Builder { + _$GRestoreStatusData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GRestoreStatusData_restoreStatusBuilder? _restoreStatus; + GRestoreStatusData_restoreStatusBuilder get restoreStatus => + _$this._restoreStatus ??= new GRestoreStatusData_restoreStatusBuilder(); + set restoreStatus(GRestoreStatusData_restoreStatusBuilder? restoreStatus) => + _$this._restoreStatus = restoreStatus; + + GRestoreStatusDataBuilder() { + GRestoreStatusData._initializeBuilder(this); + } + + GRestoreStatusDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _restoreStatus = $v.restoreStatus?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusData; + } + + @override + void update(void Function(GRestoreStatusDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusData build() => _build(); + + _$GRestoreStatusData _build() { + _$GRestoreStatusData _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData', 'G__typename'), + restoreStatus: _restoreStatus?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'restoreStatus'; + _restoreStatus?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GRestoreStatusData_restoreStatus + extends GRestoreStatusData_restoreStatus { + @override + final String G__typename; + @override + final int mangaProgress; + @override + final _i3.GBackupRestoreState state; + @override + final int totalManga; + + factory _$GRestoreStatusData_restoreStatus( + [void Function(GRestoreStatusData_restoreStatusBuilder)? updates]) => + (new GRestoreStatusData_restoreStatusBuilder()..update(updates))._build(); + + _$GRestoreStatusData_restoreStatus._( + {required this.G__typename, + required this.mangaProgress, + required this.state, + required this.totalManga}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData_restoreStatus', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + mangaProgress, r'GRestoreStatusData_restoreStatus', 'mangaProgress'); + BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusData_restoreStatus', 'state'); + BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga'); + } + + @override + GRestoreStatusData_restoreStatus rebuild( + void Function(GRestoreStatusData_restoreStatusBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusData_restoreStatusBuilder toBuilder() => + new GRestoreStatusData_restoreStatusBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusData_restoreStatus && + G__typename == other.G__typename && + mangaProgress == other.mangaProgress && + state == other.state && + totalManga == other.totalManga; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, mangaProgress.hashCode); + _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, totalManga.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusData_restoreStatus') + ..add('G__typename', G__typename) + ..add('mangaProgress', mangaProgress) + ..add('state', state) + ..add('totalManga', totalManga)) + .toString(); + } +} + +class GRestoreStatusData_restoreStatusBuilder + implements + Builder { + _$GRestoreStatusData_restoreStatus? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _mangaProgress; + int? get mangaProgress => _$this._mangaProgress; + set mangaProgress(int? mangaProgress) => + _$this._mangaProgress = mangaProgress; + + _i3.GBackupRestoreState? _state; + _i3.GBackupRestoreState? get state => _$this._state; + set state(_i3.GBackupRestoreState? state) => _$this._state = state; + + int? _totalManga; + int? get totalManga => _$this._totalManga; + set totalManga(int? totalManga) => _$this._totalManga = totalManga; + + GRestoreStatusData_restoreStatusBuilder() { + GRestoreStatusData_restoreStatus._initializeBuilder(this); + } + + GRestoreStatusData_restoreStatusBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _mangaProgress = $v.mangaProgress; + _state = $v.state; + _totalManga = $v.totalManga; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusData_restoreStatus other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusData_restoreStatus; + } + + @override + void update(void Function(GRestoreStatusData_restoreStatusBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusData_restoreStatus build() => _build(); + + _$GRestoreStatusData_restoreStatus _build() { + final _$result = _$v ?? + new _$GRestoreStatusData_restoreStatus._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GRestoreStatusData_restoreStatus', 'G__typename'), + mangaProgress: BuiltValueNullFieldError.checkNotNull(mangaProgress, + r'GRestoreStatusData_restoreStatus', 'mangaProgress'), + state: BuiltValueNullFieldError.checkNotNull( + state, r'GRestoreStatusData_restoreStatus', 'state'), + totalManga: BuiltValueNullFieldError.checkNotNull( + totalManga, r'GRestoreStatusData_restoreStatus', 'totalManga'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.req.gql.dart new file mode 100644 index 00000000..e19e0a2f --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.req.gql.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'restore_status.req.gql.g.dart'; + +abstract class GRestoreStatusReq + implements + Built, + _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> { + GRestoreStatusReq._(); + + factory GRestoreStatusReq( + [void Function(GRestoreStatusReqBuilder b) updates]) = + _$GRestoreStatusReq; + + static void _initializeBuilder(GRestoreStatusReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'RestoreStatus', + ) + ..executeOnListen = true; + + @override + _i3.GRestoreStatusVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, + _i2.GRestoreStatusData?, + )? get updateResult; + @override + _i2.GRestoreStatusData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GRestoreStatusData? parseData(Map json) => + _i2.GRestoreStatusData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GRestoreStatusData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GRestoreStatusData, _i3.GRestoreStatusVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gRestoreStatusReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GRestoreStatusReq.serializer, + this, + ) as Map); + + static GRestoreStatusReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GRestoreStatusReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.req.gql.g.dart new file mode 100644 index 00000000..714a47aa --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.req.gql.g.dart @@ -0,0 +1,368 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusReqSerializer = + new _$GRestoreStatusReqSerializer(); + +class _$GRestoreStatusReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusReq, _$GRestoreStatusReq]; + @override + final String wireName = 'GRestoreStatusReq'; + + @override + Iterable serialize(Serializers serializers, GRestoreStatusReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GRestoreStatusVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GRestoreStatusData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GRestoreStatusReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GRestoreStatusVars))! + as _i3.GRestoreStatusVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GRestoreStatusData))! + as _i2.GRestoreStatusData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusReq extends GRestoreStatusReq { + @override + final _i3.GRestoreStatusVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? updateResult; + @override + final _i2.GRestoreStatusData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GRestoreStatusReq( + [void Function(GRestoreStatusReqBuilder)? updates]) => + (new GRestoreStatusReqBuilder()..update(updates))._build(); + + _$GRestoreStatusReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GRestoreStatusReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreStatusReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreStatusReq', 'executeOnListen'); + } + + @override + GRestoreStatusReq rebuild(void Function(GRestoreStatusReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusReqBuilder toBuilder() => + new GRestoreStatusReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GRestoreStatusReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GRestoreStatusReqBuilder + implements Builder { + _$GRestoreStatusReq? _$v; + + _i3.GRestoreStatusVarsBuilder? _vars; + _i3.GRestoreStatusVarsBuilder get vars => + _$this._vars ??= new _i3.GRestoreStatusVarsBuilder(); + set vars(_i3.GRestoreStatusVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? _updateResult; + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GRestoreStatusData? Function( + _i2.GRestoreStatusData?, _i2.GRestoreStatusData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GRestoreStatusDataBuilder? _optimisticResponse; + _i2.GRestoreStatusDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GRestoreStatusDataBuilder(); + set optimisticResponse(_i2.GRestoreStatusDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GRestoreStatusReqBuilder() { + GRestoreStatusReq._initializeBuilder(this); + } + + GRestoreStatusReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusReq; + } + + @override + void update(void Function(GRestoreStatusReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusReq build() => _build(); + + _$GRestoreStatusReq _build() { + _$GRestoreStatusReq _$result; + try { + _$result = _$v ?? + new _$GRestoreStatusReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GRestoreStatusReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GRestoreStatusReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GRestoreStatusReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.dart new file mode 100644 index 00000000..8c41f5d6 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'restore_status.var.gql.g.dart'; + +abstract class GRestoreStatusVars + implements Built { + GRestoreStatusVars._(); + + factory GRestoreStatusVars( + [void Function(GRestoreStatusVarsBuilder b) updates]) = + _$GRestoreStatusVars; + + String get restoreId; + static Serializer get serializer => + _$gRestoreStatusVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreStatusVars.serializer, + this, + ) as Map); + + static GRestoreStatusVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreStatusVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.g.dart new file mode 100644 index 00000000..5af5176d --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.g.dart @@ -0,0 +1,143 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'restore_status.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gRestoreStatusVarsSerializer = + new _$GRestoreStatusVarsSerializer(); + +class _$GRestoreStatusVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GRestoreStatusVars, _$GRestoreStatusVars]; + @override + final String wireName = 'GRestoreStatusVars'; + + @override + Iterable serialize( + Serializers serializers, GRestoreStatusVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'restoreId', + serializers.serialize(object.restoreId, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GRestoreStatusVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreStatusVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'restoreId': + result.restoreId = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreStatusVars extends GRestoreStatusVars { + @override + final String restoreId; + + factory _$GRestoreStatusVars( + [void Function(GRestoreStatusVarsBuilder)? updates]) => + (new GRestoreStatusVarsBuilder()..update(updates))._build(); + + _$GRestoreStatusVars._({required this.restoreId}) : super._() { + BuiltValueNullFieldError.checkNotNull( + restoreId, r'GRestoreStatusVars', 'restoreId'); + } + + @override + GRestoreStatusVars rebuild( + void Function(GRestoreStatusVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreStatusVarsBuilder toBuilder() => + new GRestoreStatusVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreStatusVars && restoreId == other.restoreId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, restoreId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreStatusVars') + ..add('restoreId', restoreId)) + .toString(); + } +} + +class GRestoreStatusVarsBuilder + implements Builder { + _$GRestoreStatusVars? _$v; + + String? _restoreId; + String? get restoreId => _$this._restoreId; + set restoreId(String? restoreId) => _$this._restoreId = restoreId; + + GRestoreStatusVarsBuilder(); + + GRestoreStatusVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _restoreId = $v.restoreId; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreStatusVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreStatusVars; + } + + @override + void update(void Function(GRestoreStatusVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreStatusVars build() => _build(); + + _$GRestoreStatusVars _build() { + final _$result = _$v ?? + new _$GRestoreStatusVars._( + restoreId: BuiltValueNullFieldError.checkNotNull( + restoreId, r'GRestoreStatusVars', 'restoreId'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.ast.gql.dart new file mode 100644 index 00000000..c360541e --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateBackupInterval = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupInterval'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupInterval')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '1')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupInterval'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'backupInterval')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateBackupInterval, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.dart new file mode 100644 index 00000000..93fce54d --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_interval.data.gql.g.dart'; + +abstract class GUpdateBackupIntervalData + implements + Built { + GUpdateBackupIntervalData._(); + + factory GUpdateBackupIntervalData( + [void Function(GUpdateBackupIntervalDataBuilder b) updates]) = + _$GUpdateBackupIntervalData; + + static void _initializeBuilder(GUpdateBackupIntervalDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupIntervalData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupIntervalDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData_setSettings + implements + Built { + GUpdateBackupIntervalData_setSettings._(); + + factory GUpdateBackupIntervalData_setSettings( + [void Function(GUpdateBackupIntervalData_setSettingsBuilder b) + updates]) = _$GUpdateBackupIntervalData_setSettings; + + static void _initializeBuilder( + GUpdateBackupIntervalData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupIntervalData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupIntervalDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupIntervalData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateBackupIntervalData_setSettings_settings._(); + + factory GUpdateBackupIntervalData_setSettings_settings( + [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupIntervalData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupIntervalData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.g.dart new file mode 100644 index 00000000..e5d76382 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.g.dart @@ -0,0 +1,1394 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_interval.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupIntervalDataSerializer = + new _$GUpdateBackupIntervalDataSerializer(); +Serializer + _$gUpdateBackupIntervalDataSetSettingsSerializer = + new _$GUpdateBackupIntervalData_setSettingsSerializer(); +Serializer + _$gUpdateBackupIntervalDataSetSettingsSettingsSerializer = + new _$GUpdateBackupIntervalData_setSettings_settingsSerializer(); + +class _$GUpdateBackupIntervalDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData, + _$GUpdateBackupIntervalData + ]; + @override + final String wireName = 'GUpdateBackupIntervalData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupIntervalData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupIntervalData_setSettings))! + as GUpdateBackupIntervalData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData_setSettings, + _$GUpdateBackupIntervalData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupIntervalData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupIntervalData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupIntervalData_setSettings_settings))! + as GUpdateBackupIntervalData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalData_setSettings_settings, + _$GUpdateBackupIntervalData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupIntervalData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupIntervalData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateBackupIntervalData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalData extends GUpdateBackupIntervalData { + @override + final String G__typename; + @override + final GUpdateBackupIntervalData_setSettings setSettings; + + factory _$GUpdateBackupIntervalData( + [void Function(GUpdateBackupIntervalDataBuilder)? updates]) => + (new GUpdateBackupIntervalDataBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupIntervalData', 'setSettings'); + } + + @override + GUpdateBackupIntervalData rebuild( + void Function(GUpdateBackupIntervalDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalDataBuilder toBuilder() => + new GUpdateBackupIntervalDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupIntervalDataBuilder + implements + Builder { + _$GUpdateBackupIntervalData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupIntervalData_setSettingsBuilder? _setSettings; + GUpdateBackupIntervalData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateBackupIntervalData_setSettingsBuilder(); + set setSettings(GUpdateBackupIntervalData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupIntervalDataBuilder() { + GUpdateBackupIntervalData._initializeBuilder(this); + } + + GUpdateBackupIntervalDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData; + } + + @override + void update(void Function(GUpdateBackupIntervalDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData build() => _build(); + + _$GUpdateBackupIntervalData _build() { + _$GUpdateBackupIntervalData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData_setSettings + extends GUpdateBackupIntervalData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupIntervalData_setSettings_settings settings; + + factory _$GUpdateBackupIntervalData_setSettings( + [void Function(GUpdateBackupIntervalData_setSettingsBuilder)? + updates]) => + (new GUpdateBackupIntervalData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupIntervalData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupIntervalData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupIntervalData_setSettings', 'settings'); + } + + @override + GUpdateBackupIntervalData_setSettings rebuild( + void Function(GUpdateBackupIntervalData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalData_setSettingsBuilder toBuilder() => + new GUpdateBackupIntervalData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupIntervalData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupIntervalData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupIntervalData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupIntervalData_setSettings_settingsBuilder? _settings; + GUpdateBackupIntervalData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupIntervalData_setSettings_settingsBuilder(); + set settings( + GUpdateBackupIntervalData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupIntervalData_setSettingsBuilder() { + GUpdateBackupIntervalData_setSettings._initializeBuilder(this); + } + + GUpdateBackupIntervalData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupIntervalData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData_setSettings build() => _build(); + + _$GUpdateBackupIntervalData_setSettings _build() { + _$GUpdateBackupIntervalData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupIntervalData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupIntervalData_setSettings_settings + extends GUpdateBackupIntervalData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateBackupIntervalData_setSettings_settings( + [void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupIntervalData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateBackupIntervalData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupIntervalData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupIntervalData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupIntervalData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupIntervalData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupIntervalData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupIntervalData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateBackupIntervalData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupIntervalData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateBackupIntervalData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateBackupIntervalData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateBackupIntervalData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateBackupIntervalData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateBackupIntervalData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateBackupIntervalData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateBackupIntervalData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupIntervalData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupIntervalData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupIntervalData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateBackupIntervalData_setSettings_settings rebuild( + void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupIntervalData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupIntervalData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateBackupIntervalData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupIntervalData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateBackupIntervalData_setSettings_settingsBuilder() { + GUpdateBackupIntervalData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupIntervalData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupIntervalData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalData_setSettings_settings build() => _build(); + + _$GUpdateBackupIntervalData_setSettings_settings _build() { + _$GUpdateBackupIntervalData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateBackupIntervalData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupIntervalData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateBackupIntervalData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateBackupIntervalData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateBackupIntervalData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupIntervalData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateBackupIntervalData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateBackupIntervalData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateBackupIntervalData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateBackupIntervalData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateBackupIntervalData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateBackupIntervalData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateBackupIntervalData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateBackupIntervalData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateBackupIntervalData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateBackupIntervalData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateBackupIntervalData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateBackupIntervalData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateBackupIntervalData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupIntervalData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupIntervalData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupIntervalData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.req.gql.dart new file mode 100644 index 00000000..614c8074 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_backup_interval.req.gql.g.dart'; + +abstract class GUpdateBackupIntervalReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupIntervalData, + _i3.GUpdateBackupIntervalVars> { + GUpdateBackupIntervalReq._(); + + factory GUpdateBackupIntervalReq( + [void Function(GUpdateBackupIntervalReqBuilder b) updates]) = + _$GUpdateBackupIntervalReq; + + static void _initializeBuilder(GUpdateBackupIntervalReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupInterval', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupIntervalVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, + _i2.GUpdateBackupIntervalData?, + )? get updateResult; + @override + _i2.GUpdateBackupIntervalData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupIntervalData? parseData(Map json) => + _i2.GUpdateBackupIntervalData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupIntervalData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupIntervalData, + _i3.GUpdateBackupIntervalVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupIntervalReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupIntervalReq.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupIntervalReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.req.gql.g.dart new file mode 100644 index 00000000..bf011cf8 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.req.gql.g.dart @@ -0,0 +1,381 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_interval.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupIntervalReqSerializer = + new _$GUpdateBackupIntervalReqSerializer(); + +class _$GUpdateBackupIntervalReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalReq, + _$GUpdateBackupIntervalReq + ]; + @override + final String wireName = 'GUpdateBackupIntervalReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupIntervalVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupIntervalData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupIntervalReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupIntervalVars))! + as _i3.GUpdateBackupIntervalVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupIntervalData))! + as _i2.GUpdateBackupIntervalData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalReq extends GUpdateBackupIntervalReq { + @override + final _i3.GUpdateBackupIntervalVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + updateResult; + @override + final _i2.GUpdateBackupIntervalData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupIntervalReq( + [void Function(GUpdateBackupIntervalReqBuilder)? updates]) => + (new GUpdateBackupIntervalReqBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupIntervalReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupIntervalReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupIntervalReq', 'executeOnListen'); + } + + @override + GUpdateBackupIntervalReq rebuild( + void Function(GUpdateBackupIntervalReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalReqBuilder toBuilder() => + new GUpdateBackupIntervalReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupIntervalReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupIntervalReqBuilder + implements + Builder { + _$GUpdateBackupIntervalReq? _$v; + + _i3.GUpdateBackupIntervalVarsBuilder? _vars; + _i3.GUpdateBackupIntervalVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupIntervalVarsBuilder(); + set vars(_i3.GUpdateBackupIntervalVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + _updateResult; + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, _i2.GUpdateBackupIntervalData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupIntervalData? Function( + _i2.GUpdateBackupIntervalData?, + _i2.GUpdateBackupIntervalData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupIntervalDataBuilder? _optimisticResponse; + _i2.GUpdateBackupIntervalDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupIntervalDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupIntervalDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupIntervalReqBuilder() { + GUpdateBackupIntervalReq._initializeBuilder(this); + } + + GUpdateBackupIntervalReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalReq; + } + + @override + void update(void Function(GUpdateBackupIntervalReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalReq build() => _build(); + + _$GUpdateBackupIntervalReq _build() { + _$GUpdateBackupIntervalReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupIntervalReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupIntervalReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateBackupIntervalReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupIntervalReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.dart new file mode 100644 index 00000000..ce864ed1 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_interval.var.gql.g.dart'; + +abstract class GUpdateBackupIntervalVars + implements + Built { + GUpdateBackupIntervalVars._(); + + factory GUpdateBackupIntervalVars( + [void Function(GUpdateBackupIntervalVarsBuilder b) updates]) = + _$GUpdateBackupIntervalVars; + + int? get backupInterval; + static Serializer get serializer => + _$gUpdateBackupIntervalVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupIntervalVars.serializer, + this, + ) as Map); + + static GUpdateBackupIntervalVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupIntervalVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.g.dart new file mode 100644 index 00000000..aaee8583 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_interval.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupIntervalVarsSerializer = + new _$GUpdateBackupIntervalVarsSerializer(); + +class _$GUpdateBackupIntervalVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupIntervalVars, + _$GUpdateBackupIntervalVars + ]; + @override + final String wireName = 'GUpdateBackupIntervalVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupIntervalVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupInterval; + if (value != null) { + result + ..add('backupInterval') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateBackupIntervalVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupIntervalVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupIntervalVars extends GUpdateBackupIntervalVars { + @override + final int? backupInterval; + + factory _$GUpdateBackupIntervalVars( + [void Function(GUpdateBackupIntervalVarsBuilder)? updates]) => + (new GUpdateBackupIntervalVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupIntervalVars._({this.backupInterval}) : super._(); + + @override + GUpdateBackupIntervalVars rebuild( + void Function(GUpdateBackupIntervalVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupIntervalVarsBuilder toBuilder() => + new GUpdateBackupIntervalVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupIntervalVars && + backupInterval == other.backupInterval; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupIntervalVars') + ..add('backupInterval', backupInterval)) + .toString(); + } +} + +class GUpdateBackupIntervalVarsBuilder + implements + Builder { + _$GUpdateBackupIntervalVars? _$v; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + GUpdateBackupIntervalVarsBuilder(); + + GUpdateBackupIntervalVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupInterval = $v.backupInterval; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupIntervalVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupIntervalVars; + } + + @override + void update(void Function(GUpdateBackupIntervalVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupIntervalVars build() => _build(); + + _$GUpdateBackupIntervalVars _build() { + final _$result = _$v ?? + new _$GUpdateBackupIntervalVars._( + backupInterval: backupInterval, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.ast.gql.dart new file mode 100644 index 00000000..3c7b9e44 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateBackupPath = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupPath'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupPath'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupPath')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateBackupPath, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.dart new file mode 100644 index 00000000..edceb3f2 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_path.data.gql.g.dart'; + +abstract class GUpdateBackupPathData + implements Built { + GUpdateBackupPathData._(); + + factory GUpdateBackupPathData( + [void Function(GUpdateBackupPathDataBuilder b) updates]) = + _$GUpdateBackupPathData; + + static void _initializeBuilder(GUpdateBackupPathDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupPathData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupPathDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData.serializer, + this, + ) as Map); + + static GUpdateBackupPathData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData_setSettings + implements + Built { + GUpdateBackupPathData_setSettings._(); + + factory GUpdateBackupPathData_setSettings( + [void Function(GUpdateBackupPathData_setSettingsBuilder b) updates]) = + _$GUpdateBackupPathData_setSettings; + + static void _initializeBuilder(GUpdateBackupPathData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupPathData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupPathDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupPathData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupPathData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateBackupPathData_setSettings_settings._(); + + factory GUpdateBackupPathData_setSettings_settings( + [void Function(GUpdateBackupPathData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupPathData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupPathData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gUpdateBackupPathDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupPathData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.g.dart new file mode 100644 index 00000000..5999d008 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.g.dart @@ -0,0 +1,1356 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_path.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupPathDataSerializer = + new _$GUpdateBackupPathDataSerializer(); +Serializer + _$gUpdateBackupPathDataSetSettingsSerializer = + new _$GUpdateBackupPathData_setSettingsSerializer(); +Serializer + _$gUpdateBackupPathDataSetSettingsSettingsSerializer = + new _$GUpdateBackupPathData_setSettings_settingsSerializer(); + +class _$GUpdateBackupPathDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData, + _$GUpdateBackupPathData + ]; + @override + final String wireName = 'GUpdateBackupPathData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupPathData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupPathData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupPathData_setSettings))! + as GUpdateBackupPathData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData_setSettings, + _$GUpdateBackupPathData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupPathData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupPathData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupPathData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupPathData_setSettings_settings))! + as GUpdateBackupPathData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathData_setSettings_settings, + _$GUpdateBackupPathData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupPathData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupPathData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateBackupPathData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathData extends GUpdateBackupPathData { + @override + final String G__typename; + @override + final GUpdateBackupPathData_setSettings setSettings; + + factory _$GUpdateBackupPathData( + [void Function(GUpdateBackupPathDataBuilder)? updates]) => + (new GUpdateBackupPathDataBuilder()..update(updates))._build(); + + _$GUpdateBackupPathData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupPathData', 'setSettings'); + } + + @override + GUpdateBackupPathData rebuild( + void Function(GUpdateBackupPathDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathDataBuilder toBuilder() => + new GUpdateBackupPathDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupPathDataBuilder + implements Builder { + _$GUpdateBackupPathData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupPathData_setSettingsBuilder? _setSettings; + GUpdateBackupPathData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupPathData_setSettingsBuilder(); + set setSettings(GUpdateBackupPathData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupPathDataBuilder() { + GUpdateBackupPathData._initializeBuilder(this); + } + + GUpdateBackupPathDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData; + } + + @override + void update(void Function(GUpdateBackupPathDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData build() => _build(); + + _$GUpdateBackupPathData _build() { + _$GUpdateBackupPathData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData_setSettings + extends GUpdateBackupPathData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupPathData_setSettings_settings settings; + + factory _$GUpdateBackupPathData_setSettings( + [void Function(GUpdateBackupPathData_setSettingsBuilder)? updates]) => + (new GUpdateBackupPathData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupPathData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupPathData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupPathData_setSettings', 'settings'); + } + + @override + GUpdateBackupPathData_setSettings rebuild( + void Function(GUpdateBackupPathData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathData_setSettingsBuilder toBuilder() => + new GUpdateBackupPathData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupPathData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupPathData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupPathData_setSettings_settingsBuilder? _settings; + GUpdateBackupPathData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupPathData_setSettings_settingsBuilder(); + set settings(GUpdateBackupPathData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupPathData_setSettingsBuilder() { + GUpdateBackupPathData_setSettings._initializeBuilder(this); + } + + GUpdateBackupPathData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupPathData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData_setSettings build() => _build(); + + _$GUpdateBackupPathData_setSettings _build() { + _$GUpdateBackupPathData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupPathData_setSettings_settings + extends GUpdateBackupPathData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateBackupPathData_setSettings_settings( + [void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupPathData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupPathData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupPathData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupPathData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupPathData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupPathData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupPathData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupPathData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupPathData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupPathData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateBackupPathData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupPathData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateBackupPathData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupPathData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GUpdateBackupPathData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateBackupPathData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateBackupPathData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateBackupPathData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GUpdateBackupPathData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateBackupPathData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateBackupPathData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupPathData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupPathData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupPathData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateBackupPathData_setSettings_settings rebuild( + void Function(GUpdateBackupPathData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupPathData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupPathData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateBackupPathData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupPathData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateBackupPathData_setSettings_settingsBuilder() { + GUpdateBackupPathData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupPathData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupPathData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathData_setSettings_settings build() => _build(); + + _$GUpdateBackupPathData_setSettings_settings _build() { + _$GUpdateBackupPathData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupPathData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupPathData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupPathData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateBackupPathData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupPathData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupPathData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupPathData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateBackupPathData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateBackupPathData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateBackupPathData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateBackupPathData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateBackupPathData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateBackupPathData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateBackupPathData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateBackupPathData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateBackupPathData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateBackupPathData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateBackupPathData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateBackupPathData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateBackupPathData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateBackupPathData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateBackupPathData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateBackupPathData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateBackupPathData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateBackupPathData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateBackupPathData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupPathData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupPathData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupPathData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.req.gql.dart new file mode 100644 index 00000000..8d3408fb --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_backup_path.req.gql.g.dart'; + +abstract class GUpdateBackupPathReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupPathData, + _i3.GUpdateBackupPathVars> { + GUpdateBackupPathReq._(); + + factory GUpdateBackupPathReq( + [void Function(GUpdateBackupPathReqBuilder b) updates]) = + _$GUpdateBackupPathReq; + + static void _initializeBuilder(GUpdateBackupPathReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupPath', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupPathVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, + _i2.GUpdateBackupPathData?, + )? get updateResult; + @override + _i2.GUpdateBackupPathData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupPathData? parseData(Map json) => + _i2.GUpdateBackupPathData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupPathData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupPathData, _i3.GUpdateBackupPathVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupPathReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupPathReq.serializer, + this, + ) as Map); + + static GUpdateBackupPathReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupPathReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.req.gql.g.dart new file mode 100644 index 00000000..75725d24 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.req.gql.g.dart @@ -0,0 +1,375 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_path.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupPathReqSerializer = + new _$GUpdateBackupPathReqSerializer(); + +class _$GUpdateBackupPathReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathReq, + _$GUpdateBackupPathReq + ]; + @override + final String wireName = 'GUpdateBackupPathReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupPathVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupPathData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupPathReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupPathVars))! + as _i3.GUpdateBackupPathVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupPathData))! + as _i2.GUpdateBackupPathData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathReq extends GUpdateBackupPathReq { + @override + final _i3.GUpdateBackupPathVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? updateResult; + @override + final _i2.GUpdateBackupPathData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupPathReq( + [void Function(GUpdateBackupPathReqBuilder)? updates]) => + (new GUpdateBackupPathReqBuilder()..update(updates))._build(); + + _$GUpdateBackupPathReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupPathReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupPathReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'); + } + + @override + GUpdateBackupPathReq rebuild( + void Function(GUpdateBackupPathReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathReqBuilder toBuilder() => + new GUpdateBackupPathReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupPathReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupPathReqBuilder + implements Builder { + _$GUpdateBackupPathReq? _$v; + + _i3.GUpdateBackupPathVarsBuilder? _vars; + _i3.GUpdateBackupPathVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupPathVarsBuilder(); + set vars(_i3.GUpdateBackupPathVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? _updateResult; + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupPathData? Function( + _i2.GUpdateBackupPathData?, _i2.GUpdateBackupPathData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupPathDataBuilder? _optimisticResponse; + _i2.GUpdateBackupPathDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupPathDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupPathDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupPathReqBuilder() { + GUpdateBackupPathReq._initializeBuilder(this); + } + + GUpdateBackupPathReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathReq; + } + + @override + void update(void Function(GUpdateBackupPathReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathReq build() => _build(); + + _$GUpdateBackupPathReq _build() { + _$GUpdateBackupPathReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupPathReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupPathReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupPathReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupPathReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.dart new file mode 100644 index 00000000..8c80a12f --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_path.var.gql.g.dart'; + +abstract class GUpdateBackupPathVars + implements Built { + GUpdateBackupPathVars._(); + + factory GUpdateBackupPathVars( + [void Function(GUpdateBackupPathVarsBuilder b) updates]) = + _$GUpdateBackupPathVars; + + String get backupPath; + static Serializer get serializer => + _$gUpdateBackupPathVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupPathVars.serializer, + this, + ) as Map); + + static GUpdateBackupPathVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupPathVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.g.dart new file mode 100644 index 00000000..5a933781 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.g.dart @@ -0,0 +1,146 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_path.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupPathVarsSerializer = + new _$GUpdateBackupPathVarsSerializer(); + +class _$GUpdateBackupPathVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupPathVars, + _$GUpdateBackupPathVars + ]; + @override + final String wireName = 'GUpdateBackupPathVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupPathVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateBackupPathVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupPathVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupPathVars extends GUpdateBackupPathVars { + @override + final String backupPath; + + factory _$GUpdateBackupPathVars( + [void Function(GUpdateBackupPathVarsBuilder)? updates]) => + (new GUpdateBackupPathVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupPathVars._({required this.backupPath}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupPathVars', 'backupPath'); + } + + @override + GUpdateBackupPathVars rebuild( + void Function(GUpdateBackupPathVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupPathVarsBuilder toBuilder() => + new GUpdateBackupPathVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupPathVars && backupPath == other.backupPath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupPathVars') + ..add('backupPath', backupPath)) + .toString(); + } +} + +class GUpdateBackupPathVarsBuilder + implements Builder { + _$GUpdateBackupPathVars? _$v; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + GUpdateBackupPathVarsBuilder(); + + GUpdateBackupPathVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupPath = $v.backupPath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupPathVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupPathVars; + } + + @override + void update(void Function(GUpdateBackupPathVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupPathVars build() => _build(); + + _$GUpdateBackupPathVars _build() { + final _$result = _$v ?? + new _$GUpdateBackupPathVars._( + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupPathVars', 'backupPath'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.ast.gql.dart new file mode 100644 index 00000000..22748263 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.ast.gql.dart @@ -0,0 +1,94 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateBackupTime = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupTime'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode( + value: _i1.StringValueNode( + value: '12:00', + isBlock: false, + )), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupTime'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupTime')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateBackupTime, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.dart new file mode 100644 index 00000000..f0cdc2ad --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_time.data.gql.g.dart'; + +abstract class GUpdateBackupTimeData + implements Built { + GUpdateBackupTimeData._(); + + factory GUpdateBackupTimeData( + [void Function(GUpdateBackupTimeDataBuilder b) updates]) = + _$GUpdateBackupTimeData; + + static void _initializeBuilder(GUpdateBackupTimeDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTimeData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupTimeDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData_setSettings + implements + Built { + GUpdateBackupTimeData_setSettings._(); + + factory GUpdateBackupTimeData_setSettings( + [void Function(GUpdateBackupTimeData_setSettingsBuilder b) updates]) = + _$GUpdateBackupTimeData_setSettings; + + static void _initializeBuilder(GUpdateBackupTimeData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTimeData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupTimeDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupTimeData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateBackupTimeData_setSettings_settings._(); + + factory GUpdateBackupTimeData_setSettings_settings( + [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupTimeData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupTimeData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gUpdateBackupTimeDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupTimeData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.g.dart new file mode 100644 index 00000000..92a8817f --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.g.dart @@ -0,0 +1,1356 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_time.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupTimeDataSerializer = + new _$GUpdateBackupTimeDataSerializer(); +Serializer + _$gUpdateBackupTimeDataSetSettingsSerializer = + new _$GUpdateBackupTimeData_setSettingsSerializer(); +Serializer + _$gUpdateBackupTimeDataSetSettingsSettingsSerializer = + new _$GUpdateBackupTimeData_setSettings_settingsSerializer(); + +class _$GUpdateBackupTimeDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData, + _$GUpdateBackupTimeData + ]; + @override + final String wireName = 'GUpdateBackupTimeData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupTimeData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupTimeData_setSettings))! + as GUpdateBackupTimeData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData_setSettings, + _$GUpdateBackupTimeData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupTimeData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupTimeData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupTimeData_setSettings_settings))! + as GUpdateBackupTimeData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeData_setSettings_settings, + _$GUpdateBackupTimeData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupTimeData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateBackupTimeData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateBackupTimeData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeData extends GUpdateBackupTimeData { + @override + final String G__typename; + @override + final GUpdateBackupTimeData_setSettings setSettings; + + factory _$GUpdateBackupTimeData( + [void Function(GUpdateBackupTimeDataBuilder)? updates]) => + (new GUpdateBackupTimeDataBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupTimeData', 'setSettings'); + } + + @override + GUpdateBackupTimeData rebuild( + void Function(GUpdateBackupTimeDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeDataBuilder toBuilder() => + new GUpdateBackupTimeDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupTimeDataBuilder + implements Builder { + _$GUpdateBackupTimeData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTimeData_setSettingsBuilder? _setSettings; + GUpdateBackupTimeData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupTimeData_setSettingsBuilder(); + set setSettings(GUpdateBackupTimeData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupTimeDataBuilder() { + GUpdateBackupTimeData._initializeBuilder(this); + } + + GUpdateBackupTimeDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData; + } + + @override + void update(void Function(GUpdateBackupTimeDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData build() => _build(); + + _$GUpdateBackupTimeData _build() { + _$GUpdateBackupTimeData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData_setSettings + extends GUpdateBackupTimeData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupTimeData_setSettings_settings settings; + + factory _$GUpdateBackupTimeData_setSettings( + [void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates]) => + (new GUpdateBackupTimeData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTimeData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTimeData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupTimeData_setSettings', 'settings'); + } + + @override + GUpdateBackupTimeData_setSettings rebuild( + void Function(GUpdateBackupTimeData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeData_setSettingsBuilder toBuilder() => + new GUpdateBackupTimeData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupTimeData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupTimeData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTimeData_setSettings_settingsBuilder? _settings; + GUpdateBackupTimeData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupTimeData_setSettings_settingsBuilder(); + set settings(GUpdateBackupTimeData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupTimeData_setSettingsBuilder() { + GUpdateBackupTimeData_setSettings._initializeBuilder(this); + } + + GUpdateBackupTimeData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData_setSettings; + } + + @override + void update( + void Function(GUpdateBackupTimeData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData_setSettings build() => _build(); + + _$GUpdateBackupTimeData_setSettings _build() { + _$GUpdateBackupTimeData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTimeData_setSettings_settings + extends GUpdateBackupTimeData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateBackupTimeData_setSettings_settings( + [void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupTimeData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTimeData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupTimeData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupTimeData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupTimeData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupTimeData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTimeData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupTimeData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupTimeData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupTimeData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateBackupTimeData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupTimeData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateBackupTimeData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupTimeData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GUpdateBackupTimeData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateBackupTimeData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateBackupTimeData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateBackupTimeData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GUpdateBackupTimeData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateBackupTimeData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateBackupTimeData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupTimeData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupTimeData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupTimeData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateBackupTimeData_setSettings_settings rebuild( + void Function(GUpdateBackupTimeData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupTimeData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupTimeData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateBackupTimeData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupTimeData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateBackupTimeData_setSettings_settingsBuilder() { + GUpdateBackupTimeData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupTimeData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupTimeData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeData_setSettings_settings build() => _build(); + + _$GUpdateBackupTimeData_setSettings_settings _build() { + _$GUpdateBackupTimeData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTimeData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupTimeData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupTimeData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateBackupTimeData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupTimeData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTimeData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupTimeData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateBackupTimeData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateBackupTimeData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateBackupTimeData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateBackupTimeData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateBackupTimeData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateBackupTimeData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateBackupTimeData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateBackupTimeData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateBackupTimeData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateBackupTimeData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateBackupTimeData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateBackupTimeData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateBackupTimeData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateBackupTimeData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateBackupTimeData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateBackupTimeData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateBackupTimeData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateBackupTimeData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateBackupTimeData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupTimeData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupTimeData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupTimeData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.req.gql.dart new file mode 100644 index 00000000..361045fa --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_backup_time.req.gql.g.dart'; + +abstract class GUpdateBackupTimeReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateBackupTimeData, + _i3.GUpdateBackupTimeVars> { + GUpdateBackupTimeReq._(); + + factory GUpdateBackupTimeReq( + [void Function(GUpdateBackupTimeReqBuilder b) updates]) = + _$GUpdateBackupTimeReq; + + static void _initializeBuilder(GUpdateBackupTimeReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupTime', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupTimeVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, + _i2.GUpdateBackupTimeData?, + )? get updateResult; + @override + _i2.GUpdateBackupTimeData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupTimeData? parseData(Map json) => + _i2.GUpdateBackupTimeData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupTimeData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupTimeData, _i3.GUpdateBackupTimeVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupTimeReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupTimeReq.serializer, + this, + ) as Map); + + static GUpdateBackupTimeReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupTimeReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.req.gql.g.dart new file mode 100644 index 00000000..cd2cf31f --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.req.gql.g.dart @@ -0,0 +1,375 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_time.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupTimeReqSerializer = + new _$GUpdateBackupTimeReqSerializer(); + +class _$GUpdateBackupTimeReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeReq, + _$GUpdateBackupTimeReq + ]; + @override + final String wireName = 'GUpdateBackupTimeReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupTimeVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTimeData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupTimeReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupTimeVars))! + as _i3.GUpdateBackupTimeVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTimeData))! + as _i2.GUpdateBackupTimeData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeReq extends GUpdateBackupTimeReq { + @override + final _i3.GUpdateBackupTimeVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? updateResult; + @override + final _i2.GUpdateBackupTimeData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupTimeReq( + [void Function(GUpdateBackupTimeReqBuilder)? updates]) => + (new GUpdateBackupTimeReqBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateBackupTimeReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTimeReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'); + } + + @override + GUpdateBackupTimeReq rebuild( + void Function(GUpdateBackupTimeReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeReqBuilder toBuilder() => + new GUpdateBackupTimeReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupTimeReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupTimeReqBuilder + implements Builder { + _$GUpdateBackupTimeReq? _$v; + + _i3.GUpdateBackupTimeVarsBuilder? _vars; + _i3.GUpdateBackupTimeVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupTimeVarsBuilder(); + set vars(_i3.GUpdateBackupTimeVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? _updateResult; + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupTimeData? Function( + _i2.GUpdateBackupTimeData?, _i2.GUpdateBackupTimeData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupTimeDataBuilder? _optimisticResponse; + _i2.GUpdateBackupTimeDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupTimeDataBuilder(); + set optimisticResponse( + _i2.GUpdateBackupTimeDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupTimeReqBuilder() { + GUpdateBackupTimeReq._initializeBuilder(this); + } + + GUpdateBackupTimeReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeReq; + } + + @override + void update(void Function(GUpdateBackupTimeReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeReq build() => _build(); + + _$GUpdateBackupTimeReq _build() { + _$GUpdateBackupTimeReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTimeReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTimeReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTimeReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTimeReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.dart new file mode 100644 index 00000000..3425d573 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_time.var.gql.g.dart'; + +abstract class GUpdateBackupTimeVars + implements Built { + GUpdateBackupTimeVars._(); + + factory GUpdateBackupTimeVars( + [void Function(GUpdateBackupTimeVarsBuilder b) updates]) = + _$GUpdateBackupTimeVars; + + String? get backupTime; + static Serializer get serializer => + _$gUpdateBackupTimeVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTimeVars.serializer, + this, + ) as Map); + + static GUpdateBackupTimeVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTimeVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.g.dart new file mode 100644 index 00000000..835b63ae --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.g.dart @@ -0,0 +1,145 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_time.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupTimeVarsSerializer = + new _$GUpdateBackupTimeVarsSerializer(); + +class _$GUpdateBackupTimeVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTimeVars, + _$GUpdateBackupTimeVars + ]; + @override + final String wireName = 'GUpdateBackupTimeVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTimeVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupTime; + if (value != null) { + result + ..add('backupTime') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateBackupTimeVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTimeVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTimeVars extends GUpdateBackupTimeVars { + @override + final String? backupTime; + + factory _$GUpdateBackupTimeVars( + [void Function(GUpdateBackupTimeVarsBuilder)? updates]) => + (new GUpdateBackupTimeVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupTimeVars._({this.backupTime}) : super._(); + + @override + GUpdateBackupTimeVars rebuild( + void Function(GUpdateBackupTimeVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTimeVarsBuilder toBuilder() => + new GUpdateBackupTimeVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTimeVars && backupTime == other.backupTime; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTimeVars') + ..add('backupTime', backupTime)) + .toString(); + } +} + +class GUpdateBackupTimeVarsBuilder + implements Builder { + _$GUpdateBackupTimeVars? _$v; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + GUpdateBackupTimeVarsBuilder(); + + GUpdateBackupTimeVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupTime = $v.backupTime; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTimeVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTimeVars; + } + + @override + void update(void Function(GUpdateBackupTimeVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTimeVars build() => _build(); + + _$GUpdateBackupTimeVars _build() { + final _$result = _$v ?? + new _$GUpdateBackupTimeVars._( + backupTime: backupTime, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.ast.gql.dart new file mode 100644 index 00000000..08a94559 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateBackupTTL = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateBackupTTL'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '14')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backupTTL'), + value: + _i1.VariableNode(name: _i1.NameNode(value: 'backupTTL')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateBackupTTL, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.dart new file mode 100644 index 00000000..88359587 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_ttl.data.gql.g.dart'; + +abstract class GUpdateBackupTTLData + implements Built { + GUpdateBackupTTLData._(); + + factory GUpdateBackupTTLData( + [void Function(GUpdateBackupTTLDataBuilder b) updates]) = + _$GUpdateBackupTTLData; + + static void _initializeBuilder(GUpdateBackupTTLDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTTLData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateBackupTTLDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData_setSettings + implements + Built { + GUpdateBackupTTLData_setSettings._(); + + factory GUpdateBackupTTLData_setSettings( + [void Function(GUpdateBackupTTLData_setSettingsBuilder b) updates]) = + _$GUpdateBackupTTLData_setSettings; + + static void _initializeBuilder(GUpdateBackupTTLData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateBackupTTLData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateBackupTTLDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData_setSettings.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateBackupTTLData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateBackupTTLData_setSettings_settings._(); + + factory GUpdateBackupTTLData_setSettings_settings( + [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder b) + updates]) = _$GUpdateBackupTTLData_setSettings_settings; + + static void _initializeBuilder( + GUpdateBackupTTLData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gUpdateBackupTTLDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateBackupTTLData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.g.dart new file mode 100644 index 00000000..9f1dae5e --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.g.dart @@ -0,0 +1,1351 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_ttl.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupTTLDataSerializer = + new _$GUpdateBackupTTLDataSerializer(); +Serializer + _$gUpdateBackupTTLDataSetSettingsSerializer = + new _$GUpdateBackupTTLData_setSettingsSerializer(); +Serializer + _$gUpdateBackupTTLDataSetSettingsSettingsSerializer = + new _$GUpdateBackupTTLData_setSettings_settingsSerializer(); + +class _$GUpdateBackupTTLDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData, + _$GUpdateBackupTTLData + ]; + @override + final String wireName = 'GUpdateBackupTTLData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateBackupTTLData_setSettings)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateBackupTTLData_setSettings))! + as GUpdateBackupTTLData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData_setSettings, + _$GUpdateBackupTTLData_setSettings + ]; + @override + final String wireName = 'GUpdateBackupTTLData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateBackupTTLData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateBackupTTLData_setSettings_settings))! + as GUpdateBackupTTLData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLData_setSettings_settings, + _$GUpdateBackupTTLData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateBackupTTLData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateBackupTTLData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLData extends GUpdateBackupTTLData { + @override + final String G__typename; + @override + final GUpdateBackupTTLData_setSettings setSettings; + + factory _$GUpdateBackupTTLData( + [void Function(GUpdateBackupTTLDataBuilder)? updates]) => + (new GUpdateBackupTTLDataBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateBackupTTLData', 'setSettings'); + } + + @override + GUpdateBackupTTLData rebuild( + void Function(GUpdateBackupTTLDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLDataBuilder toBuilder() => + new GUpdateBackupTTLDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateBackupTTLDataBuilder + implements Builder { + _$GUpdateBackupTTLData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTTLData_setSettingsBuilder? _setSettings; + GUpdateBackupTTLData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateBackupTTLData_setSettingsBuilder(); + set setSettings(GUpdateBackupTTLData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateBackupTTLDataBuilder() { + GUpdateBackupTTLData._initializeBuilder(this); + } + + GUpdateBackupTTLDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData; + } + + @override + void update(void Function(GUpdateBackupTTLDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData build() => _build(); + + _$GUpdateBackupTTLData _build() { + _$GUpdateBackupTTLData _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData_setSettings + extends GUpdateBackupTTLData_setSettings { + @override + final String G__typename; + @override + final GUpdateBackupTTLData_setSettings_settings settings; + + factory _$GUpdateBackupTTLData_setSettings( + [void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates]) => + (new GUpdateBackupTTLData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateBackupTTLData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateBackupTTLData_setSettings', 'settings'); + } + + @override + GUpdateBackupTTLData_setSettings rebuild( + void Function(GUpdateBackupTTLData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLData_setSettingsBuilder toBuilder() => + new GUpdateBackupTTLData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateBackupTTLData_setSettingsBuilder + implements + Builder { + _$GUpdateBackupTTLData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateBackupTTLData_setSettings_settingsBuilder? _settings; + GUpdateBackupTTLData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateBackupTTLData_setSettings_settingsBuilder(); + set settings(GUpdateBackupTTLData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateBackupTTLData_setSettingsBuilder() { + GUpdateBackupTTLData_setSettings._initializeBuilder(this); + } + + GUpdateBackupTTLData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData_setSettings; + } + + @override + void update(void Function(GUpdateBackupTTLData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData_setSettings build() => _build(); + + _$GUpdateBackupTTLData_setSettings _build() { + _$GUpdateBackupTTLData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateBackupTTLData_setSettings_settings + extends GUpdateBackupTTLData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateBackupTTLData_setSettings_settings( + [void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateBackupTTLData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateBackupTTLData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateBackupTTLData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateBackupTTLData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateBackupTTLData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTTLData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupTTLData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateBackupTTLData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupTTLData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateBackupTTLData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateBackupTTLData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateBackupTTLData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateBackupTTLData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateBackupTTLData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GUpdateBackupTTLData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateBackupTTLData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateBackupTTLData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateBackupTTLData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GUpdateBackupTTLData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateBackupTTLData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateBackupTTLData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupTTLData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupTTLData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupTTLData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateBackupTTLData_setSettings_settings rebuild( + void Function(GUpdateBackupTTLData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLData_setSettings_settingsBuilder toBuilder() => + new GUpdateBackupTTLData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateBackupTTLData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateBackupTTLData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateBackupTTLData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateBackupTTLData_setSettings_settingsBuilder() { + GUpdateBackupTTLData_setSettings_settings._initializeBuilder(this); + } + + GUpdateBackupTTLData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateBackupTTLData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLData_setSettings_settings build() => _build(); + + _$GUpdateBackupTTLData_setSettings_settings _build() { + _$GUpdateBackupTTLData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateBackupTTLData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateBackupTTLData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateBackupTTLData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateBackupTTLData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateBackupTTLData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateBackupTTLData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateBackupTTLData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateBackupTTLData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateBackupTTLData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateBackupTTLData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateBackupTTLData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateBackupTTLData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateBackupTTLData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateBackupTTLData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateBackupTTLData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateBackupTTLData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateBackupTTLData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateBackupTTLData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateBackupTTLData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateBackupTTLData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateBackupTTLData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateBackupTTLData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateBackupTTLData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateBackupTTLData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateBackupTTLData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateBackupTTLData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateBackupTTLData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateBackupTTLData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateBackupTTLData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateBackupTTLData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateBackupTTLData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateBackupTTLData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateBackupTTLData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.req.gql.dart new file mode 100644 index 00000000..0910c52c --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_backup_ttl.req.gql.g.dart'; + +abstract class GUpdateBackupTTLReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> { + GUpdateBackupTTLReq._(); + + factory GUpdateBackupTTLReq( + [void Function(GUpdateBackupTTLReqBuilder b) updates]) = + _$GUpdateBackupTTLReq; + + static void _initializeBuilder(GUpdateBackupTTLReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateBackupTTL', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateBackupTTLVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, + _i2.GUpdateBackupTTLData?, + )? get updateResult; + @override + _i2.GUpdateBackupTTLData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateBackupTTLData? parseData(Map json) => + _i2.GUpdateBackupTTLData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateBackupTTLData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateBackupTTLData, _i3.GUpdateBackupTTLVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateBackupTTLReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateBackupTTLReq.serializer, + this, + ) as Map); + + static GUpdateBackupTTLReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateBackupTTLReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.req.gql.g.dart new file mode 100644 index 00000000..fc6e2634 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.req.gql.g.dart @@ -0,0 +1,373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_ttl.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupTTLReqSerializer = + new _$GUpdateBackupTTLReqSerializer(); + +class _$GUpdateBackupTTLReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLReq, + _$GUpdateBackupTTLReq + ]; + @override + final String wireName = 'GUpdateBackupTTLReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateBackupTTLVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTTLData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateBackupTTLReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateBackupTTLVars))! + as _i3.GUpdateBackupTTLVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateBackupTTLData))! + as _i2.GUpdateBackupTTLData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLReq extends GUpdateBackupTTLReq { + @override + final _i3.GUpdateBackupTTLVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? updateResult; + @override + final _i2.GUpdateBackupTTLData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateBackupTTLReq( + [void Function(GUpdateBackupTTLReqBuilder)? updates]) => + (new GUpdateBackupTTLReqBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateBackupTTLReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTTLReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'); + } + + @override + GUpdateBackupTTLReq rebuild( + void Function(GUpdateBackupTTLReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLReqBuilder toBuilder() => + new GUpdateBackupTTLReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateBackupTTLReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateBackupTTLReqBuilder + implements Builder { + _$GUpdateBackupTTLReq? _$v; + + _i3.GUpdateBackupTTLVarsBuilder? _vars; + _i3.GUpdateBackupTTLVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateBackupTTLVarsBuilder(); + set vars(_i3.GUpdateBackupTTLVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? _updateResult; + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateBackupTTLData? Function( + _i2.GUpdateBackupTTLData?, _i2.GUpdateBackupTTLData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateBackupTTLDataBuilder? _optimisticResponse; + _i2.GUpdateBackupTTLDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateBackupTTLDataBuilder(); + set optimisticResponse(_i2.GUpdateBackupTTLDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateBackupTTLReqBuilder() { + GUpdateBackupTTLReq._initializeBuilder(this); + } + + GUpdateBackupTTLReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLReq; + } + + @override + void update(void Function(GUpdateBackupTTLReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLReq build() => _build(); + + _$GUpdateBackupTTLReq _build() { + _$GUpdateBackupTTLReq _$result; + try { + _$result = _$v ?? + new _$GUpdateBackupTTLReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateBackupTTLReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateBackupTTLReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateBackupTTLReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.dart new file mode 100644 index 00000000..078b921c --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_backup_ttl.var.gql.g.dart'; + +abstract class GUpdateBackupTTLVars + implements Built { + GUpdateBackupTTLVars._(); + + factory GUpdateBackupTTLVars( + [void Function(GUpdateBackupTTLVarsBuilder b) updates]) = + _$GUpdateBackupTTLVars; + + int? get backupTTL; + static Serializer get serializer => + _$gUpdateBackupTTLVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateBackupTTLVars.serializer, + this, + ) as Map); + + static GUpdateBackupTTLVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateBackupTTLVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.g.dart new file mode 100644 index 00000000..89b8b6ad --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.g.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_backup_ttl.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateBackupTTLVarsSerializer = + new _$GUpdateBackupTTLVarsSerializer(); + +class _$GUpdateBackupTTLVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateBackupTTLVars, + _$GUpdateBackupTTLVars + ]; + @override + final String wireName = 'GUpdateBackupTTLVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateBackupTTLVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.backupTTL; + if (value != null) { + result + ..add('backupTTL') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateBackupTTLVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateBackupTTLVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateBackupTTLVars extends GUpdateBackupTTLVars { + @override + final int? backupTTL; + + factory _$GUpdateBackupTTLVars( + [void Function(GUpdateBackupTTLVarsBuilder)? updates]) => + (new GUpdateBackupTTLVarsBuilder()..update(updates))._build(); + + _$GUpdateBackupTTLVars._({this.backupTTL}) : super._(); + + @override + GUpdateBackupTTLVars rebuild( + void Function(GUpdateBackupTTLVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateBackupTTLVarsBuilder toBuilder() => + new GUpdateBackupTTLVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateBackupTTLVars && backupTTL == other.backupTTL; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateBackupTTLVars') + ..add('backupTTL', backupTTL)) + .toString(); + } +} + +class GUpdateBackupTTLVarsBuilder + implements Builder { + _$GUpdateBackupTTLVars? _$v; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + GUpdateBackupTTLVarsBuilder(); + + GUpdateBackupTTLVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backupTTL = $v.backupTTL; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateBackupTTLVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateBackupTTLVars; + } + + @override + void update(void Function(GUpdateBackupTTLVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateBackupTTLVars build() => _build(); + + _$GUpdateBackupTTLVars _build() { + final _$result = _$v ?? + new _$GUpdateBackupTTLVars._( + backupTTL: backupTTL, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.ast.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.ast.gql.dart new file mode 100644 index 00000000..8b022bd6 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.ast.gql.dart @@ -0,0 +1,58 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const ValidateBackup = _i1.OperationDefinitionNode( + type: _i1.OperationType.query, + name: _i1.NameNode(value: 'ValidateBackup'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'validateBackup'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'backup'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'backup')), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'missingSources'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ValidateBackup]); diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.dart new file mode 100644 index 00000000..e6bdca72 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.dart @@ -0,0 +1,107 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'validate_backup.data.gql.g.dart'; + +abstract class GValidateBackupData + implements Built { + GValidateBackupData._(); + + factory GValidateBackupData( + [void Function(GValidateBackupDataBuilder b) updates]) = + _$GValidateBackupData; + + static void _initializeBuilder(GValidateBackupDataBuilder b) => + b..G__typename = 'Query'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GValidateBackupData_validateBackup get validateBackup; + static Serializer get serializer => + _$gValidateBackupDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData.serializer, + this, + ) as Map); + + static GValidateBackupData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData.serializer, + json, + ); +} + +abstract class GValidateBackupData_validateBackup + implements + Built { + GValidateBackupData_validateBackup._(); + + factory GValidateBackupData_validateBackup( + [void Function(GValidateBackupData_validateBackupBuilder b) + updates]) = _$GValidateBackupData_validateBackup; + + static void _initializeBuilder(GValidateBackupData_validateBackupBuilder b) => + b..G__typename = 'ValidateBackupResult'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + BuiltList + get missingSources; + static Serializer get serializer => + _$gValidateBackupDataValidateBackupSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData_validateBackup.serializer, + this, + ) as Map); + + static GValidateBackupData_validateBackup? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData_validateBackup.serializer, + json, + ); +} + +abstract class GValidateBackupData_validateBackup_missingSources + implements + Built { + GValidateBackupData_validateBackup_missingSources._(); + + factory GValidateBackupData_validateBackup_missingSources( + [void Function(GValidateBackupData_validateBackup_missingSourcesBuilder b) + updates]) = _$GValidateBackupData_validateBackup_missingSources; + + static void _initializeBuilder( + GValidateBackupData_validateBackup_missingSourcesBuilder b) => + b..G__typename = 'ValidateBackupSource'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + String get name; + static Serializer + get serializer => + _$gValidateBackupDataValidateBackupMissingSourcesSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupData_validateBackup_missingSources.serializer, + this, + ) as Map); + + static GValidateBackupData_validateBackup_missingSources? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GValidateBackupData_validateBackup_missingSources.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.g.dart new file mode 100644 index 00000000..08e9b4b2 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.g.dart @@ -0,0 +1,563 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'validate_backup.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gValidateBackupDataSerializer = + new _$GValidateBackupDataSerializer(); +Serializer + _$gValidateBackupDataValidateBackupSerializer = + new _$GValidateBackupData_validateBackupSerializer(); +Serializer + _$gValidateBackupDataValidateBackupMissingSourcesSerializer = + new _$GValidateBackupData_validateBackup_missingSourcesSerializer(); + +class _$GValidateBackupDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupData, + _$GValidateBackupData + ]; + @override + final String wireName = 'GValidateBackupData'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'validateBackup', + serializers.serialize(object.validateBackup, + specifiedType: const FullType(GValidateBackupData_validateBackup)), + ]; + + return result; + } + + @override + GValidateBackupData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'validateBackup': + result.validateBackup.replace(serializers.deserialize(value, + specifiedType: + const FullType(GValidateBackupData_validateBackup))! + as GValidateBackupData_validateBackup); + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupData_validateBackupSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupData_validateBackup, + _$GValidateBackupData_validateBackup + ]; + @override + final String wireName = 'GValidateBackupData_validateBackup'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupData_validateBackup object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'missingSources', + serializers.serialize(object.missingSources, + specifiedType: const FullType(BuiltList, const [ + const FullType(GValidateBackupData_validateBackup_missingSources) + ])), + ]; + + return result; + } + + @override + GValidateBackupData_validateBackup deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupData_validateBackupBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'missingSources': + result.missingSources.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType( + GValidateBackupData_validateBackup_missingSources) + ]))! as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupData_validateBackup_missingSourcesSerializer + implements + StructuredSerializer< + GValidateBackupData_validateBackup_missingSources> { + @override + final Iterable types = const [ + GValidateBackupData_validateBackup_missingSources, + _$GValidateBackupData_validateBackup_missingSources + ]; + @override + final String wireName = 'GValidateBackupData_validateBackup_missingSources'; + + @override + Iterable serialize(Serializers serializers, + GValidateBackupData_validateBackup_missingSources object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GValidateBackupData_validateBackup_missingSources deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GValidateBackupData_validateBackup_missingSourcesBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupData extends GValidateBackupData { + @override + final String G__typename; + @override + final GValidateBackupData_validateBackup validateBackup; + + factory _$GValidateBackupData( + [void Function(GValidateBackupDataBuilder)? updates]) => + (new GValidateBackupDataBuilder()..update(updates))._build(); + + _$GValidateBackupData._( + {required this.G__typename, required this.validateBackup}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + validateBackup, r'GValidateBackupData', 'validateBackup'); + } + + @override + GValidateBackupData rebuild( + void Function(GValidateBackupDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupDataBuilder toBuilder() => + new GValidateBackupDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData && + G__typename == other.G__typename && + validateBackup == other.validateBackup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, validateBackup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupData') + ..add('G__typename', G__typename) + ..add('validateBackup', validateBackup)) + .toString(); + } +} + +class GValidateBackupDataBuilder + implements Builder { + _$GValidateBackupData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GValidateBackupData_validateBackupBuilder? _validateBackup; + GValidateBackupData_validateBackupBuilder get validateBackup => + _$this._validateBackup ??= + new GValidateBackupData_validateBackupBuilder(); + set validateBackup( + GValidateBackupData_validateBackupBuilder? validateBackup) => + _$this._validateBackup = validateBackup; + + GValidateBackupDataBuilder() { + GValidateBackupData._initializeBuilder(this); + } + + GValidateBackupDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _validateBackup = $v.validateBackup.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData; + } + + @override + void update(void Function(GValidateBackupDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData build() => _build(); + + _$GValidateBackupData _build() { + _$GValidateBackupData _$result; + try { + _$result = _$v ?? + new _$GValidateBackupData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData', 'G__typename'), + validateBackup: validateBackup.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'validateBackup'; + validateBackup.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData_validateBackup + extends GValidateBackupData_validateBackup { + @override + final String G__typename; + @override + final BuiltList + missingSources; + + factory _$GValidateBackupData_validateBackup( + [void Function(GValidateBackupData_validateBackupBuilder)? + updates]) => + (new GValidateBackupData_validateBackupBuilder()..update(updates)) + ._build(); + + _$GValidateBackupData_validateBackup._( + {required this.G__typename, required this.missingSources}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GValidateBackupData_validateBackup', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(missingSources, + r'GValidateBackupData_validateBackup', 'missingSources'); + } + + @override + GValidateBackupData_validateBackup rebuild( + void Function(GValidateBackupData_validateBackupBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupData_validateBackupBuilder toBuilder() => + new GValidateBackupData_validateBackupBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData_validateBackup && + G__typename == other.G__typename && + missingSources == other.missingSources; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, missingSources.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupData_validateBackup') + ..add('G__typename', G__typename) + ..add('missingSources', missingSources)) + .toString(); + } +} + +class GValidateBackupData_validateBackupBuilder + implements + Builder { + _$GValidateBackupData_validateBackup? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + ListBuilder? + _missingSources; + ListBuilder + get missingSources => _$this._missingSources ??= + new ListBuilder(); + set missingSources( + ListBuilder? + missingSources) => + _$this._missingSources = missingSources; + + GValidateBackupData_validateBackupBuilder() { + GValidateBackupData_validateBackup._initializeBuilder(this); + } + + GValidateBackupData_validateBackupBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _missingSources = $v.missingSources.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData_validateBackup other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData_validateBackup; + } + + @override + void update( + void Function(GValidateBackupData_validateBackupBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData_validateBackup build() => _build(); + + _$GValidateBackupData_validateBackup _build() { + _$GValidateBackupData_validateBackup _$result; + try { + _$result = _$v ?? + new _$GValidateBackupData_validateBackup._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GValidateBackupData_validateBackup', 'G__typename'), + missingSources: missingSources.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'missingSources'; + missingSources.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupData_validateBackup', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupData_validateBackup_missingSources + extends GValidateBackupData_validateBackup_missingSources { + @override + final String G__typename; + @override + final String name; + + factory _$GValidateBackupData_validateBackup_missingSources( + [void Function( + GValidateBackupData_validateBackup_missingSourcesBuilder)? + updates]) => + (new GValidateBackupData_validateBackup_missingSourcesBuilder() + ..update(updates)) + ._build(); + + _$GValidateBackupData_validateBackup_missingSources._( + {required this.G__typename, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GValidateBackupData_validateBackup_missingSources', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + name, r'GValidateBackupData_validateBackup_missingSources', 'name'); + } + + @override + GValidateBackupData_validateBackup_missingSources rebuild( + void Function( + GValidateBackupData_validateBackup_missingSourcesBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupData_validateBackup_missingSourcesBuilder toBuilder() => + new GValidateBackupData_validateBackup_missingSourcesBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupData_validateBackup_missingSources && + G__typename == other.G__typename && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GValidateBackupData_validateBackup_missingSources') + ..add('G__typename', G__typename) + ..add('name', name)) + .toString(); + } +} + +class GValidateBackupData_validateBackup_missingSourcesBuilder + implements + Builder { + _$GValidateBackupData_validateBackup_missingSources? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GValidateBackupData_validateBackup_missingSourcesBuilder() { + GValidateBackupData_validateBackup_missingSources._initializeBuilder(this); + } + + GValidateBackupData_validateBackup_missingSourcesBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupData_validateBackup_missingSources other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupData_validateBackup_missingSources; + } + + @override + void update( + void Function(GValidateBackupData_validateBackup_missingSourcesBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupData_validateBackup_missingSources build() => _build(); + + _$GValidateBackupData_validateBackup_missingSources _build() { + final _$result = _$v ?? + new _$GValidateBackupData_validateBackup_missingSources._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GValidateBackupData_validateBackup_missingSources', + 'G__typename'), + name: BuiltValueNullFieldError.checkNotNull(name, + r'GValidateBackupData_validateBackup_missingSources', 'name'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.req.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.req.gql.dart new file mode 100644 index 00000000..ca23cba1 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.req.gql.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'validate_backup.req.gql.g.dart'; + +abstract class GValidateBackupReq + implements + Built, + _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> { + GValidateBackupReq._(); + + factory GValidateBackupReq( + [void Function(GValidateBackupReqBuilder b) updates]) = + _$GValidateBackupReq; + + static void _initializeBuilder(GValidateBackupReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ValidateBackup', + ) + ..executeOnListen = true; + + @override + _i3.GValidateBackupVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, + _i2.GValidateBackupData?, + )? get updateResult; + @override + _i2.GValidateBackupData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GValidateBackupData? parseData(Map json) => + _i2.GValidateBackupData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GValidateBackupData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GValidateBackupData, _i3.GValidateBackupVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gValidateBackupReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GValidateBackupReq.serializer, + this, + ) as Map); + + static GValidateBackupReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GValidateBackupReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.req.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.req.gql.g.dart new file mode 100644 index 00000000..edf7c2f1 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.req.gql.g.dart @@ -0,0 +1,370 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'validate_backup.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gValidateBackupReqSerializer = + new _$GValidateBackupReqSerializer(); + +class _$GValidateBackupReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GValidateBackupReq, _$GValidateBackupReq]; + @override + final String wireName = 'GValidateBackupReq'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GValidateBackupVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GValidateBackupData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GValidateBackupReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GValidateBackupVars))! + as _i3.GValidateBackupVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GValidateBackupData))! + as _i2.GValidateBackupData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupReq extends GValidateBackupReq { + @override + final _i3.GValidateBackupVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? updateResult; + @override + final _i2.GValidateBackupData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GValidateBackupReq( + [void Function(GValidateBackupReqBuilder)? updates]) => + (new GValidateBackupReqBuilder()..update(updates))._build(); + + _$GValidateBackupReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GValidateBackupReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GValidateBackupReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GValidateBackupReq', 'executeOnListen'); + } + + @override + GValidateBackupReq rebuild( + void Function(GValidateBackupReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupReqBuilder toBuilder() => + new GValidateBackupReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GValidateBackupReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GValidateBackupReqBuilder + implements Builder { + _$GValidateBackupReq? _$v; + + _i3.GValidateBackupVarsBuilder? _vars; + _i3.GValidateBackupVarsBuilder get vars => + _$this._vars ??= new _i3.GValidateBackupVarsBuilder(); + set vars(_i3.GValidateBackupVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? _updateResult; + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GValidateBackupData? Function( + _i2.GValidateBackupData?, _i2.GValidateBackupData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GValidateBackupDataBuilder? _optimisticResponse; + _i2.GValidateBackupDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GValidateBackupDataBuilder(); + set optimisticResponse(_i2.GValidateBackupDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GValidateBackupReqBuilder() { + GValidateBackupReq._initializeBuilder(this); + } + + GValidateBackupReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupReq; + } + + @override + void update(void Function(GValidateBackupReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupReq build() => _build(); + + _$GValidateBackupReq _build() { + _$GValidateBackupReq _$result; + try { + _$result = _$v ?? + new _$GValidateBackupReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GValidateBackupReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GValidateBackupReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GValidateBackupReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.dart new file mode 100644 index 00000000..6e6d5277 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:http/http.dart' as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'validate_backup.var.gql.g.dart'; + +abstract class GValidateBackupVars + implements Built { + GValidateBackupVars._(); + + factory GValidateBackupVars( + [void Function(GValidateBackupVarsBuilder b) updates]) = + _$GValidateBackupVars; + + _i1.MultipartFile get backup; + static Serializer get serializer => + _$gValidateBackupVarsSerializer; + + Map toJson() => (_i2.serializers.serializeWith( + GValidateBackupVars.serializer, + this, + ) as Map); + + static GValidateBackupVars? fromJson(Map json) => + _i2.serializers.deserializeWith( + GValidateBackupVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.g.dart b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.g.dart new file mode 100644 index 00000000..076eb465 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'validate_backup.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gValidateBackupVarsSerializer = + new _$GValidateBackupVarsSerializer(); + +class _$GValidateBackupVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupVars, + _$GValidateBackupVars + ]; + @override + final String wireName = 'GValidateBackupVars'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i1.MultipartFile)), + ]; + + return result; + } + + @override + GValidateBackupVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i1.MultipartFile))! + as _i1.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupVars extends GValidateBackupVars { + @override + final _i1.MultipartFile backup; + + factory _$GValidateBackupVars( + [void Function(GValidateBackupVarsBuilder)? updates]) => + (new GValidateBackupVarsBuilder()..update(updates))._build(); + + _$GValidateBackupVars._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupVars', 'backup'); + } + + @override + GValidateBackupVars rebuild( + void Function(GValidateBackupVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupVarsBuilder toBuilder() => + new GValidateBackupVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupVars && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupVars') + ..add('backup', backup)) + .toString(); + } +} + +class GValidateBackupVarsBuilder + implements Builder { + _$GValidateBackupVars? _$v; + + _i1.MultipartFile? _backup; + _i1.MultipartFile? get backup => _$this._backup; + set backup(_i1.MultipartFile? backup) => _$this._backup = backup; + + GValidateBackupVarsBuilder(); + + GValidateBackupVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupVars; + } + + @override + void update(void Function(GValidateBackupVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupVars build() => _build(); + + _$GValidateBackupVars _build() { + final _$result = _$v ?? + new _$GValidateBackupVars._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupVars', 'backup'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/create_backup.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/create_backup.graphql new file mode 100644 index 00000000..44003706 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/create_backup.graphql @@ -0,0 +1,8 @@ +mutation CreateBackup($includeCategories: Boolean = true, $includeChapters: Boolean = true) { + createBackup( + input: {includeCategories: $includeCategories, includeChapters: $includeChapters} + ) { + clientMutationId + url + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/restore_backup.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/restore_backup.graphql new file mode 100644 index 00000000..2a374b44 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/restore_backup.graphql @@ -0,0 +1,11 @@ +# import '/src/features/settings/domain/restore_status/graphql/restore_status_fragment.graphql' + +mutation RestoreBackup($backup: Upload!) { + restoreBackup(input: { backup: $backup }) { + clientMutationId + id + status { + ...RestoreStatusFragment + } + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/restore_status.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/restore_status.graphql new file mode 100644 index 00000000..7586c4cc --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/restore_status.graphql @@ -0,0 +1,7 @@ +# import '/src/features/settings/domain/restore_status/graphql/restore_status_fragment.graphql' + +query RestoreStatus($restoreId: String!) { + restoreStatus(id: $restoreId) { + ...RestoreStatusFragment + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_interval.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_interval.graphql new file mode 100644 index 00000000..1a5b77d3 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_interval.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateBackupInterval($backupInterval: Int = 1) { + setSettings(input: {settings: {backupInterval: $backupInterval}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_path.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_path.graphql new file mode 100644 index 00000000..8d1f5ed6 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_path.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateBackupPath($backupPath: String!) { + setSettings(input: {settings: {backupPath: $backupPath}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_time.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_time.graphql new file mode 100644 index 00000000..d1994205 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_time.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateBackupTime($backupTime: String = "12:00") { + setSettings(input: {settings: {backupTime: $backupTime}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_ttl.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_ttl.graphql new file mode 100644 index 00000000..3f507f40 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/update_backup_ttl.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateBackupTTL($backupTTL: Int = 14) { + setSettings(input: {settings: {backupTTL: $backupTTL}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/queries/validate_backup.graphql b/lib/src/features/settings/presentation/backup/data/graphql/queries/validate_backup.graphql new file mode 100644 index 00000000..45d63f19 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/queries/validate_backup.graphql @@ -0,0 +1,7 @@ +query ValidateBackup($backup: Upload!) { + validateBackup(input: { backup: $backup }) { + missingSources { + name + } + } +} diff --git a/lib/src/features/settings/presentation/backup/data/graphql/query.dart b/lib/src/features/settings/presentation/backup/data/graphql/query.dart new file mode 100644 index 00000000..981c02a2 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/data/graphql/query.dart @@ -0,0 +1,59 @@ +import 'package:ferry/ferry.dart'; +import 'package:flutter/material.dart'; +import 'package:http/http.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import 'queries/__generated__/create_backup.req.gql.dart'; +import 'queries/__generated__/restore_backup.req.gql.dart'; +import 'queries/__generated__/restore_status.req.gql.dart'; +import 'queries/__generated__/update_backup_interval.req.gql.dart'; +import 'queries/__generated__/update_backup_path.req.gql.dart'; +import 'queries/__generated__/update_backup_time.req.gql.dart'; +import 'queries/__generated__/update_backup_ttl.req.gql.dart'; +import 'queries/__generated__/validate_backup.req.gql.dart'; + +abstract class BackupSettingsQuery { + static GRestoreBackupReq restoreBackup(MultipartFile? file) => + GRestoreBackupReq( + (req) => req + ..vars.backup = file + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GValidateBackupReq validateBackup(MultipartFile? file) => + GValidateBackupReq( + (req) => req + ..vars.backup = file + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GRestoreStatusReq restoreStatus(String restoreId) => GRestoreStatusReq( + (req) => req + ..vars.restoreId = restoreId + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GCreateBackupReq createBackup( + bool includeCategories, bool includeChapters) => + GCreateBackupReq( + (req) => req + ..vars.includeCategories = includeCategories + ..vars.includeChapters = includeChapters + ..fetchPolicy = FetchPolicy.NoCache, + ); + + static GUpdateBackupPathReq updateBackupPath(String? backupPath) => + GUpdateBackupPathReq((req) => req..vars.backupPath = backupPath.ifNull()); + + static GUpdateBackupTimeReq updateBackupTime(TimeOfDay timeOfDay) { + final time = "${timeOfDay.hour.padLeft()}:${timeOfDay.minute.padLeft()}"; + return GUpdateBackupTimeReq((req) => req..vars.backupTime = time); + } + + static GUpdateBackupIntervalReq updateBackupInterval(int backupInterval) => + GUpdateBackupIntervalReq( + (req) => req..vars.backupInterval = backupInterval.ifNull(1)); + + static GUpdateBackupTTLReq updateBackupTTL(int backupTTL) => + GUpdateBackupTTLReq((req) => req..vars.backupTTL = backupTTL.ifNull(14)); +} diff --git a/lib/src/features/settings/presentation/backup/widgets/automatic_backup/automatic_backup_section.dart b/lib/src/features/settings/presentation/backup/widgets/automatic_backup/automatic_backup_section.dart new file mode 100644 index 00000000..01ba70eb --- /dev/null +++ b/lib/src/features/settings/presentation/backup/widgets/automatic_backup/automatic_backup_section.dart @@ -0,0 +1,101 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/emoticons.dart'; +import '../../../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../../../widgets/input_popup/settings_prop_tile.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/automatic_backup_settings/automatic_backup_settings_dto.dart'; +import '../../data/backup_settings_repository.dart'; + +class AutomaticBackupSection extends ConsumerWidget { + const AutomaticBackupSection({super.key}); + + @override + Widget build(context, ref) { + final AsyncValue automaticBackupSettings = + ref.watch(settingsProvider); + final repository = ref.watch(backupSettingsRepositoryProvider); + + return automaticBackupSettings.showUiWhenData( + context, + (data) { + if (data == null) { + return Emoticons(title: context.l10n.errorSomethingWentWrong); + } + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.automaticBackup), + SettingsPropTile( + title: context.l10n.socksHost, + leading: const Icon(Icons.folder_rounded), + subtitle: data.backupPath, + description: context.l10n.backupLocationDescription, + type: SettingsPropType.textField( + hintText: context.l10n.enterProp(context.l10n.backupLocation), + value: data.backupPath, + onChanged: repository.updateBackupLocation, + ), + ), + ListTile( + leading: const Icon(Icons.access_alarm_rounded), + title: Text(context.l10n.backupTime), + subtitle: data.backupTime.toTimeOfDay != null + ? Text(data.backupTime.toTimeOfDay!.format(context)) + : null, + onTap: () async { + final backupTime = await showTimePicker( + initialTime: data.backupTime.toTimeOfDay ?? + const TimeOfDay(hour: 0, minute: 0), + context: context, + ); + if (backupTime != null) { + final result = await AppUtils.guard( + () => repository.updateBackupTime(backupTime), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else { + if (context.mounted) { + ref.read(toastProvider)?.showError( + context.l10n.invalidProp(context.l10n.backupTime)); + } + } + }, + ), + SettingsPropTile( + leading: const Icon(Icons.folder_rounded), + title: context.l10n.backupInterval, + subtitle: context.l10n + .nDays(data.backupInterval.ifNullOrZero(1).compact()!), + type: SettingsPropType.numberSlider( + min: 1, + max: 31, + value: data.backupInterval, + onChanged: repository.updateBackupInterval, + ), + ), + SettingsPropTile( + leading: const Icon(Icons.cleaning_services_rounded), + title: context.l10n.backupCleanup, + subtitle: context.l10n.backupCleanupDescription( + data.backupTTL.ifNull(14).compact()!), + type: SettingsPropType.numberSlider( + min: 0, + max: 1000, + value: data.backupTTL, + onChanged: repository.updateBackupTTL, + ), + ), + ], + ); + }, + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/backup_and_restore_section.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/backup_and_restore_section.dart new file mode 100644 index 00000000..853222fe --- /dev/null +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/backup_and_restore_section.dart @@ -0,0 +1,152 @@ +import 'package:file_picker/file_picker.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:gap/gap.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/file_picker_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../domain/restore_status/restore_status.dart'; +import '../../data/backup_settings_repository.dart'; +import 'widgets/backup_missing_dialog.dart'; +import 'widgets/create_backup_dialog.dart'; +import 'widgets/restore_status_progress.dart'; + +class BackupAndRestoreSection extends HookConsumerWidget { + const BackupAndRestoreSection({super.key}); + + Future getBackupFile( + BuildContext context, Toast? toast) async { + final asyncPickedFile = + await AsyncValue.guard(() => FilePickerUtils.pickFile( + context: context, + extensions: ['gz', 'tachibk'], + )); + if (!context.mounted) { + return null; + } + if (asyncPickedFile.hasError || asyncPickedFile.value == null) { + toast?.showError( + asyncPickedFile.error?.toString() ?? context.l10n.errorFilePick, + ); + return null; + } + return asyncPickedFile.value; + } + + Future backupFilePicker(WidgetRef ref, BuildContext context) async { + Toast? toast = ref.read(toastProvider); + + final pickedFile = await getBackupFile(context, toast); + if (pickedFile == null) return null; + + final asyncBackupFile = await AsyncValue.guard( + () => FilePickerUtils.convertToMultipartFile(pickedFile, "backup")); + + if (context.mounted && asyncBackupFile.hasError) { + asyncBackupFile.showToastOnError(toast); + return null; + } + + final backupFile = asyncBackupFile.value; + if (context.mounted) toast?.show(context.l10n.validating); + + final validateResult = await AsyncValue.guard(() => ref + .read(backupSettingsRepositoryProvider) + .validateBackup(backupFile) + .first); + + if (context.mounted && validateResult.hasError) { + validateResult.showToastOnError(toast); + return null; + } + + String? backupId; + bool restoreBackup = true; + if (validateResult.valueOrNull.isNotBlank && context.mounted) { + restoreBackup = (await showDialog( + context: context, + builder: (context) => + BackupMissingDialog(backupMissing: validateResult.valueOrNull!), + )) + .ifNull(); + } + + if (restoreBackup) { + final asyncBackupFile = await AsyncValue.guard( + () => FilePickerUtils.convertToMultipartFile(pickedFile, "backup")); + + if (context.mounted && asyncBackupFile.hasError) { + asyncBackupFile.showToastOnError(toast); + return null; + } + final backupResponse = (await AsyncValue.guard(() => ref + .read(backupSettingsRepositoryProvider) + .restoreBackup(asyncBackupFile.value) + .first)); + + if (backupResponse.hasError) { + toast?.showError(backupResponse.error.toString()); + } else { + if (backupResponse.hasValue) { + backupId = backupResponse.value; + } + if (context.mounted) { + toast?.show(context.l10n.restoring, instantShow: true); + } + } + } + return backupId; + } + + @override + Widget build(context, ref) { + final restoreId = useState(null); + final toast = ref.watch(toastProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.backupAndRestore), + ListTile( + title: Text(context.l10n.createBackupTitle), + subtitle: Text(context.l10n.createBackupDescription), + leading: const Icon(Icons.backup_rounded), + onTap: () { + showDialog( + context: context, + builder: (context) => const CreateBackupDialog(), + ); + }, + ), + ListTile( + title: Text(context.l10n.restoreBackupTitle), + subtitle: Text(context.l10n.restoreBackupDescription), + leading: const Icon(Icons.restore_rounded), + trailing: restoreId.value != null + ? RestoreStatusProgress( + restoreRequestId: restoreId.value!, + onCompleted: (state) { + if (state == RestoreState.FAILURE) { + toast?.showError(context.l10n.errorBackupRestore, + withMicrotask: true); + } else { + toast?.show( + context.l10n.restored, + withMicrotask: true, + instantShow: true, + ); + } + restoreId.value = null; + }, + ) + : null, + onTap: () async => + restoreId.value = await backupFilePicker(ref, context), + ), + const Gap(8), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/backup_missing_dialog.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/backup_missing_dialog.dart new file mode 100644 index 00000000..e08c339f --- /dev/null +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/backup_missing_dialog.dart @@ -0,0 +1,49 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:flutter/material.dart'; + +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../widgets/popup_widgets/pop_button.dart'; + +class BackupMissingDialog extends StatelessWidget { + const BackupMissingDialog({ + super.key, + required this.backupMissing, + }); + final Set backupMissing; + @override + Widget build(BuildContext context) { + return AlertDialog( + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + if (backupMissing.isNotBlank) ...[ + Text( + context.l10n.missingExtension, + style: context.textTheme.titleMedium, + ), + ...backupMissing.map( + (e) => ListTile( + leading: const Icon(Icons.extension_rounded), + title: Text(e), + ), + ), + ], + ], + ), + ), + actions: [ + PopButton(popText: context.l10n.cancel), + ElevatedButton( + onPressed: () => Navigator.of(context).pop(true), + child: Text(context.l10n.restore), + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/create_backup_dialog.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/create_backup_dialog.dart new file mode 100644 index 00000000..ed215ee5 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/create_backup_dialog.dart @@ -0,0 +1,79 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../../constants/endpoints.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/launch_url_in_web.dart'; +import '../../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../../widgets/async_buttons/async_elevated_button.dart'; +import '../../../../../../../widgets/popup_widgets/pop_button.dart'; +import '../../../../server/widget/client/server_port_tile/server_port_tile.dart'; +import '../../../../server/widget/client/server_url_tile/server_url_tile.dart'; +import '../../../data/backup_settings_repository.dart'; + +class CreateBackupDialog extends HookConsumerWidget { + const CreateBackupDialog({super.key}); + + @override + Widget build(context, ref) { + final includeCategory = useState(true); + final includeChapters = useState(true); + return AlertDialog( + title: Text(context.l10n.createBackupTitle), + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + CheckboxListTile( + title: Text(context.l10n.includeCategories), + value: includeCategory.value, + onChanged: (value) => includeCategory.value = value.ifNull(), + ), + CheckboxListTile( + title: Text(context.l10n.includeChapters), + value: includeChapters.value, + onChanged: (value) => includeChapters.value = value.ifNull(), + ), + ], + ), + ), + actions: [ + PopButton(popText: context.l10n.cancel), + AsyncElevatedButton( + onPressed: () async { + final toast = ref.read(toastProvider); + final backupUrl = await AsyncValue.guard(() => ref + .read(backupSettingsRepositoryProvider) + .createBackup(includeCategory.value, includeChapters.value) + .first); + if (!context.mounted) return; + if (backupUrl.hasError || backupUrl.valueOrNull.isBlank) { + { + toast?.showError( + backupUrl.error?.toString() ?? context.l10n.errorBackupCreate, + ); + } + return; + } + + launchUrlInWeb( + context, + Endpoints.baseApi( + baseUrl: ref.read(serverUrlProvider), + port: ref.read(serverPortProvider), + addPort: ref.watch(serverPortToggleProvider).ifNull(), + appendApiToUrl: false, + ) + + backupUrl.value!, + toast, + ); + context.navPop(); + }, + child: Text(context.l10n.restore), + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/restore_status_progress.dart b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/restore_status_progress.dart new file mode 100644 index 00000000..8b88c282 --- /dev/null +++ b/lib/src/features/settings/presentation/backup/widgets/backup_and_restore/widgets/restore_status_progress.dart @@ -0,0 +1,56 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/hooks/polling_hook.dart'; +import '../../../../../domain/restore_status/restore_status.dart'; +import '../../../controllers/backup_controller.dart'; + +class RestoreStatusProgress extends HookConsumerWidget { + const RestoreStatusProgress({ + super.key, + required this.restoreRequestId, + required this.onCompleted, + }); + final String restoreRequestId; + final ValueChanged onCompleted; + @override + Widget build(context, ref) { + final statusProvider = RestoreStatusProvider(restoreRequestId); + final asyncRestoreStatus = ref.watch(statusProvider); + final restoreStatus = asyncRestoreStatus.valueOrNull; + + usePolling( + pollingInterval: const Duration(milliseconds: 500), + pollFunction: () { + if (context.mounted) { + ref.invalidate(statusProvider); + } + }, + delayedStart: true, + ); + + useEffect(() { + if (restoreStatus != null) { + if ((restoreStatus.state.isFinalState).ifNull()) { + Future.microtask(() => onCompleted(restoreStatus.state)); + } + } + return null; + }, [restoreStatus?.state]); + return Stack( + alignment: Alignment.center, + children: [ + CircularProgressIndicator( + value: restoreStatus != null + ? ((restoreStatus.mangaProgress).ifNull() / + (restoreStatus.totalManga).ifNullOrZero(1)) + : null, + ), + if ((restoreStatus?.mangaProgress).ifNull().compact() != null) + Text((restoreStatus?.mangaProgress).ifNull().compact()!), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/backup/widgets/backup_missing_dialog.dart b/lib/src/features/settings/presentation/backup/widgets/backup_missing_dialog.dart deleted file mode 100644 index 69461272..00000000 --- a/lib/src/features/settings/presentation/backup/widgets/backup_missing_dialog.dart +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:flutter/material.dart'; - -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/pop_button.dart'; -import '../../../domain/backup_missing/backup_missing.dart'; - -class BackupMissingDialog extends StatelessWidget { - const BackupMissingDialog({ - super.key, - required this.backupMissing, - }); - final BackupMissing backupMissing; - @override - Widget build(BuildContext context) { - return AlertDialog( - content: SingleChildScrollView( - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - if (backupMissing.missingSources.isNotBlank) ...[ - Text( - context.l10n!.missingExtension, - style: context.textTheme.titleMedium, - ), - ...?backupMissing.missingSources?.map( - (e) => ListTile( - leading: const Icon(Icons.extension_rounded), - title: Text(e), - ), - ), - ], - if (backupMissing.missingTrackers.isNotBlank) ...[ - Text( - context.l10n!.missingTrackers, - style: context.textTheme.titleMedium, - ), - ...?backupMissing.missingTrackers?.map( - (e) => ListTile( - leading: const Icon(Icons.sync_rounded), - title: Text(e), - ), - ), - ], - if (backupMissing.mangasMissingSources.isNotBlank) ...[ - Text( - context.l10n!.mangaMissingSources, - style: context.textTheme.titleMedium, - ), - ...?backupMissing.mangasMissingSources?.map( - (e) => ListTile( - leading: const Icon(Icons.explore), - title: Text(e), - ), - ), - ] - ], - ), - ), - actions: [PopButton(popText: context.l10n!.close)], - ); - } -} diff --git a/lib/src/features/settings/presentation/browse/browse_settings_screen.dart b/lib/src/features/settings/presentation/browse/browse_settings_screen.dart index b5550d92..72344f36 100644 --- a/lib/src/features/settings/presentation/browse/browse_settings_screen.dart +++ b/lib/src/features/settings/presentation/browse/browse_settings_screen.dart @@ -5,27 +5,95 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; +import 'package:gap/gap.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; +import '../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../widgets/input_popup/settings_prop_tile.dart'; +import '../../controller/server_controller.dart'; +import '../../domain/browse/browse_settings.dart'; +import 'data/browse_settings_repository.dart'; import 'widgets/show_nsfw_switch/show_nsfw_switch.dart'; -class BrowseSettingsScreen extends StatelessWidget { +class BrowseSettingsScreen extends ConsumerWidget { const BrowseSettingsScreen({super.key}); @override - Widget build(BuildContext context) { + Widget build(context, ref) { + final repository = ref.watch(browseSettingsRepositoryProvider); + final serverSettings = ref.watch(settingsProvider); + final BrowseSettingsDto? browseSettings = serverSettings.valueOrNull; + onRefresh() => ref.refresh(settingsProvider.future); return Scaffold( - appBar: AppBar(title: Text(context.l10n!.browse)), - body: ListView( - children: [ - const ShowNSFWTile(), - ListTile( - subtitle: Text(context.l10n!.nsfwInfo), - leading: const Icon(Icons.info_rounded), - dense: true, + appBar: AppBar(title: Text(context.l10n.browse)), + body: RefreshIndicator( + onRefresh: onRefresh, + child: ListTileTheme( + data: const ListTileThemeData( + subtitleTextStyle: TextStyle(color: Colors.grey), ), - const Divider(), - ], + child: ListView( + children: [ + const ShowNSFWTile(), + Row( + children: [ + const Gap(16), + const Icon(Icons.info_outline_rounded, + color: Colors.grey, size: 18), + const Gap(10), + Expanded( + child: Text( + context.l10n.nsfwInfo, + style: context.textTheme.bodySmall + ?.copyWith(color: Colors.grey), + ), + ), + const Gap(10), + ], + ), + const Divider(), + if (serverSettings.valueOrNull != null) ...[ + SettingsPropTile( + leading: const Icon(Icons.swap_vert_rounded), + title: context.l10n.parallelSourceRequest, + subtitle: context.l10n.nSources( + (browseSettings?.maxSourcesInParallel).ifNull()), + type: SettingsPropType.numberSlider( + min: 1, + max: 20, + value: browseSettings?.maxSourcesInParallel, + onChanged: repository.updateSourceInParallel, + ), + ), + SettingsPropTile( + leading: const Icon(Icons.folder_rounded), + title: context.l10n.localSourceLocation, + type: SettingsPropType.textField( + hintText: context.l10n + .enterProp(context.l10n.localSourceLocation), + value: browseSettings?.localSourcePath, + onChanged: repository.updateLocalSourcePath, + ), + description: context.l10n.localSourceLocationDescription, + subtitle: browseSettings?.localSourcePath, + ), + ListTile( + leading: const Icon(Icons.extension_rounded), + title: Text(context.l10n.extensionRepository), + subtitle: Text( + (browseSettings?.extensionRepos).isBlank + ? context.l10n.extensionRepositoryDescription + : context.l10n.nRepo( + (browseSettings?.extensionRepos.length).ifNull(0)), + ), + onTap: () => const ExtensionRepositoryRoute().go(context), + ), + ], + ], + ), + ), ), ); } diff --git a/lib/src/features/settings/presentation/browse/data/browse_settings_repository.dart b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.dart new file mode 100644 index 00000000..65344ec2 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.dart @@ -0,0 +1,41 @@ +import 'package:ferry/ferry.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../domain/settings/settings.dart'; +import 'graphql/query.dart'; + +part 'browse_settings_repository.g.dart'; + +class BrowseSettingsRepository { + const BrowseSettingsRepository(this.ferryClient); + + final Client ferryClient; + + Future updateSourceInParallel(int value) => ferryClient + .fetch( + BrowseSettingsQuery.updateSourceInParallel(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateExtensionRepos(Set value) => ferryClient + .fetch( + BrowseSettingsQuery.updateExtensionRepos(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateLocalSourcePath(String value) => ferryClient + .fetch( + BrowseSettingsQuery.updateLocalSourcePath(value), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +BrowseSettingsRepository browseSettingsRepository(Ref ref) => + BrowseSettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/browse/data/browse_settings_repository.g.dart b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.g.dart new file mode 100644 index 00000000..e9b08673 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/browse_settings_repository.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'browse_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$browseSettingsRepositoryHash() => + r'e0803b4abcdce99f64f28fcdce5626b08c069aaa'; + +/// See also [browseSettingsRepository]. +@ProviderFor(browseSettingsRepository) +final browseSettingsRepositoryProvider = + AutoDisposeProvider.internal( + browseSettingsRepository, + name: r'browseSettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$browseSettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef BrowseSettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.ast.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.ast.gql.dart new file mode 100644 index 00000000..2003b9ed --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.ast.gql.dart @@ -0,0 +1,93 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateExtensionRepos = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateExtensionRepos'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'extensionRepos')), + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'extensionRepos'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'extensionRepos')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateExtensionRepos, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.dart new file mode 100644 index 00000000..3d051288 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_extension_repos.data.gql.g.dart'; + +abstract class GUpdateExtensionReposData + implements + Built { + GUpdateExtensionReposData._(); + + factory GUpdateExtensionReposData( + [void Function(GUpdateExtensionReposDataBuilder b) updates]) = + _$GUpdateExtensionReposData; + + static void _initializeBuilder(GUpdateExtensionReposDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateExtensionReposData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateExtensionReposDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposData.serializer, + this, + ) as Map); + + static GUpdateExtensionReposData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposData.serializer, + json, + ); +} + +abstract class GUpdateExtensionReposData_setSettings + implements + Built { + GUpdateExtensionReposData_setSettings._(); + + factory GUpdateExtensionReposData_setSettings( + [void Function(GUpdateExtensionReposData_setSettingsBuilder b) + updates]) = _$GUpdateExtensionReposData_setSettings; + + static void _initializeBuilder( + GUpdateExtensionReposData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateExtensionReposData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateExtensionReposDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposData_setSettings.serializer, + this, + ) as Map); + + static GUpdateExtensionReposData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateExtensionReposData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateExtensionReposData_setSettings_settings._(); + + factory GUpdateExtensionReposData_setSettings_settings( + [void Function(GUpdateExtensionReposData_setSettings_settingsBuilder b) + updates]) = _$GUpdateExtensionReposData_setSettings_settings; + + static void _initializeBuilder( + GUpdateExtensionReposData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateExtensionReposDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateExtensionReposData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.g.dart new file mode 100644 index 00000000..f0594c27 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.g.dart @@ -0,0 +1,1394 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_extension_repos.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateExtensionReposDataSerializer = + new _$GUpdateExtensionReposDataSerializer(); +Serializer + _$gUpdateExtensionReposDataSetSettingsSerializer = + new _$GUpdateExtensionReposData_setSettingsSerializer(); +Serializer + _$gUpdateExtensionReposDataSetSettingsSettingsSerializer = + new _$GUpdateExtensionReposData_setSettings_settingsSerializer(); + +class _$GUpdateExtensionReposDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposData, + _$GUpdateExtensionReposData + ]; + @override + final String wireName = 'GUpdateExtensionReposData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateExtensionReposData_setSettings)), + ]; + + return result; + } + + @override + GUpdateExtensionReposData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateExtensionReposData_setSettings))! + as GUpdateExtensionReposData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposData_setSettings, + _$GUpdateExtensionReposData_setSettings + ]; + @override + final String wireName = 'GUpdateExtensionReposData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateExtensionReposData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateExtensionReposData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateExtensionReposData_setSettings_settings))! + as GUpdateExtensionReposData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposData_setSettings_settings, + _$GUpdateExtensionReposData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateExtensionReposData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateExtensionReposData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateExtensionReposData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposData extends GUpdateExtensionReposData { + @override + final String G__typename; + @override + final GUpdateExtensionReposData_setSettings setSettings; + + factory _$GUpdateExtensionReposData( + [void Function(GUpdateExtensionReposDataBuilder)? updates]) => + (new GUpdateExtensionReposDataBuilder()..update(updates))._build(); + + _$GUpdateExtensionReposData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionReposData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateExtensionReposData', 'setSettings'); + } + + @override + GUpdateExtensionReposData rebuild( + void Function(GUpdateExtensionReposDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposDataBuilder toBuilder() => + new GUpdateExtensionReposDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionReposData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateExtensionReposDataBuilder + implements + Builder { + _$GUpdateExtensionReposData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateExtensionReposData_setSettingsBuilder? _setSettings; + GUpdateExtensionReposData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateExtensionReposData_setSettingsBuilder(); + set setSettings(GUpdateExtensionReposData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateExtensionReposDataBuilder() { + GUpdateExtensionReposData._initializeBuilder(this); + } + + GUpdateExtensionReposDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposData; + } + + @override + void update(void Function(GUpdateExtensionReposDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposData build() => _build(); + + _$GUpdateExtensionReposData _build() { + _$GUpdateExtensionReposData _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionReposData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionReposData_setSettings + extends GUpdateExtensionReposData_setSettings { + @override + final String G__typename; + @override + final GUpdateExtensionReposData_setSettings_settings settings; + + factory _$GUpdateExtensionReposData_setSettings( + [void Function(GUpdateExtensionReposData_setSettingsBuilder)? + updates]) => + (new GUpdateExtensionReposData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateExtensionReposData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateExtensionReposData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateExtensionReposData_setSettings', 'settings'); + } + + @override + GUpdateExtensionReposData_setSettings rebuild( + void Function(GUpdateExtensionReposData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposData_setSettingsBuilder toBuilder() => + new GUpdateExtensionReposData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateExtensionReposData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateExtensionReposData_setSettingsBuilder + implements + Builder { + _$GUpdateExtensionReposData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateExtensionReposData_setSettings_settingsBuilder? _settings; + GUpdateExtensionReposData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateExtensionReposData_setSettings_settingsBuilder(); + set settings( + GUpdateExtensionReposData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateExtensionReposData_setSettingsBuilder() { + GUpdateExtensionReposData_setSettings._initializeBuilder(this); + } + + GUpdateExtensionReposData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposData_setSettings; + } + + @override + void update( + void Function(GUpdateExtensionReposData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposData_setSettings build() => _build(); + + _$GUpdateExtensionReposData_setSettings _build() { + _$GUpdateExtensionReposData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateExtensionReposData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionReposData_setSettings_settings + extends GUpdateExtensionReposData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateExtensionReposData_setSettings_settings( + [void Function(GUpdateExtensionReposData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateExtensionReposData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateExtensionReposData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateExtensionReposData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateExtensionReposData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateExtensionReposData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateExtensionReposData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateExtensionReposData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateExtensionReposData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateExtensionReposData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateExtensionReposData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateExtensionReposData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateExtensionReposData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateExtensionReposData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateExtensionReposData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateExtensionReposData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateExtensionReposData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateExtensionReposData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateExtensionReposData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateExtensionReposData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateExtensionReposData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateExtensionReposData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateExtensionReposData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateExtensionReposData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateExtensionReposData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateExtensionReposData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateExtensionReposData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateExtensionReposData_setSettings_settings rebuild( + void Function(GUpdateExtensionReposData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposData_setSettings_settingsBuilder toBuilder() => + new GUpdateExtensionReposData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateExtensionReposData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateExtensionReposData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateExtensionReposData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateExtensionReposData_setSettings_settingsBuilder() { + GUpdateExtensionReposData_setSettings_settings._initializeBuilder(this); + } + + GUpdateExtensionReposData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateExtensionReposData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposData_setSettings_settings build() => _build(); + + _$GUpdateExtensionReposData_setSettings_settings _build() { + _$GUpdateExtensionReposData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateExtensionReposData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateExtensionReposData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateExtensionReposData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateExtensionReposData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateExtensionReposData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateExtensionReposData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateExtensionReposData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateExtensionReposData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateExtensionReposData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateExtensionReposData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateExtensionReposData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateExtensionReposData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateExtensionReposData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateExtensionReposData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateExtensionReposData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateExtensionReposData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateExtensionReposData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateExtensionReposData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateExtensionReposData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateExtensionReposData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateExtensionReposData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateExtensionReposData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.req.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.req.gql.dart new file mode 100644 index 00000000..0ab2e351 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_extension_repos.req.gql.g.dart'; + +abstract class GUpdateExtensionReposReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateExtensionReposData, + _i3.GUpdateExtensionReposVars> { + GUpdateExtensionReposReq._(); + + factory GUpdateExtensionReposReq( + [void Function(GUpdateExtensionReposReqBuilder b) updates]) = + _$GUpdateExtensionReposReq; + + static void _initializeBuilder(GUpdateExtensionReposReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateExtensionRepos', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateExtensionReposVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, + _i2.GUpdateExtensionReposData?, + )? get updateResult; + @override + _i2.GUpdateExtensionReposData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateExtensionReposData? parseData(Map json) => + _i2.GUpdateExtensionReposData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateExtensionReposData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateExtensionReposData, + _i3.GUpdateExtensionReposVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateExtensionReposReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateExtensionReposReq.serializer, + this, + ) as Map); + + static GUpdateExtensionReposReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateExtensionReposReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.req.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.req.gql.g.dart new file mode 100644 index 00000000..5326c8a7 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.req.gql.g.dart @@ -0,0 +1,381 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_extension_repos.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateExtensionReposReqSerializer = + new _$GUpdateExtensionReposReqSerializer(); + +class _$GUpdateExtensionReposReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposReq, + _$GUpdateExtensionReposReq + ]; + @override + final String wireName = 'GUpdateExtensionReposReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateExtensionReposVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateExtensionReposData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateExtensionReposReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateExtensionReposVars))! + as _i3.GUpdateExtensionReposVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateExtensionReposData))! + as _i2.GUpdateExtensionReposData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposReq extends GUpdateExtensionReposReq { + @override + final _i3.GUpdateExtensionReposVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, _i2.GUpdateExtensionReposData?)? + updateResult; + @override + final _i2.GUpdateExtensionReposData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateExtensionReposReq( + [void Function(GUpdateExtensionReposReqBuilder)? updates]) => + (new GUpdateExtensionReposReqBuilder()..update(updates))._build(); + + _$GUpdateExtensionReposReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateExtensionReposReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateExtensionReposReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateExtensionReposReq', 'executeOnListen'); + } + + @override + GUpdateExtensionReposReq rebuild( + void Function(GUpdateExtensionReposReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposReqBuilder toBuilder() => + new GUpdateExtensionReposReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateExtensionReposReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionReposReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateExtensionReposReqBuilder + implements + Builder { + _$GUpdateExtensionReposReq? _$v; + + _i3.GUpdateExtensionReposVarsBuilder? _vars; + _i3.GUpdateExtensionReposVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateExtensionReposVarsBuilder(); + set vars(_i3.GUpdateExtensionReposVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, _i2.GUpdateExtensionReposData?)? + _updateResult; + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, _i2.GUpdateExtensionReposData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateExtensionReposData? Function( + _i2.GUpdateExtensionReposData?, + _i2.GUpdateExtensionReposData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateExtensionReposDataBuilder? _optimisticResponse; + _i2.GUpdateExtensionReposDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateExtensionReposDataBuilder(); + set optimisticResponse( + _i2.GUpdateExtensionReposDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateExtensionReposReqBuilder() { + GUpdateExtensionReposReq._initializeBuilder(this); + } + + GUpdateExtensionReposReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposReq; + } + + @override + void update(void Function(GUpdateExtensionReposReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposReq build() => _build(); + + _$GUpdateExtensionReposReq _build() { + _$GUpdateExtensionReposReq _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateExtensionReposReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateExtensionReposReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.dart new file mode 100644 index 00000000..d33d52e7 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_extension_repos.var.gql.g.dart'; + +abstract class GUpdateExtensionReposVars + implements + Built { + GUpdateExtensionReposVars._(); + + factory GUpdateExtensionReposVars( + [void Function(GUpdateExtensionReposVarsBuilder b) updates]) = + _$GUpdateExtensionReposVars; + + BuiltList get extensionRepos; + static Serializer get serializer => + _$gUpdateExtensionReposVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionReposVars.serializer, + this, + ) as Map); + + static GUpdateExtensionReposVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionReposVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.g.dart new file mode 100644 index 00000000..d3cb16f9 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.g.dart @@ -0,0 +1,165 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_extension_repos.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateExtensionReposVarsSerializer = + new _$GUpdateExtensionReposVarsSerializer(); + +class _$GUpdateExtensionReposVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionReposVars, + _$GUpdateExtensionReposVars + ]; + @override + final String wireName = 'GUpdateExtensionReposVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionReposVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + ]; + + return result; + } + + @override + GUpdateExtensionReposVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionReposVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionReposVars extends GUpdateExtensionReposVars { + @override + final BuiltList extensionRepos; + + factory _$GUpdateExtensionReposVars( + [void Function(GUpdateExtensionReposVarsBuilder)? updates]) => + (new GUpdateExtensionReposVarsBuilder()..update(updates))._build(); + + _$GUpdateExtensionReposVars._({required this.extensionRepos}) : super._() { + BuiltValueNullFieldError.checkNotNull( + extensionRepos, r'GUpdateExtensionReposVars', 'extensionRepos'); + } + + @override + GUpdateExtensionReposVars rebuild( + void Function(GUpdateExtensionReposVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionReposVarsBuilder toBuilder() => + new GUpdateExtensionReposVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionReposVars && + extensionRepos == other.extensionRepos; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionReposVars') + ..add('extensionRepos', extensionRepos)) + .toString(); + } +} + +class GUpdateExtensionReposVarsBuilder + implements + Builder { + _$GUpdateExtensionReposVars? _$v; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + GUpdateExtensionReposVarsBuilder(); + + GUpdateExtensionReposVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _extensionRepos = $v.extensionRepos.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionReposVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionReposVars; + } + + @override + void update(void Function(GUpdateExtensionReposVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionReposVars build() => _build(); + + _$GUpdateExtensionReposVars _build() { + _$GUpdateExtensionReposVars _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionReposVars._( + extensionRepos: extensionRepos.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionReposVars', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.ast.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.ast.gql.dart new file mode 100644 index 00000000..926d0e3c --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateLocalSourcePath = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateLocalSourcePath'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'localSourcePath')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'localSourcePath'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'localSourcePath')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateLocalSourcePath, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.dart new file mode 100644 index 00000000..617b97d1 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_local_source_path.data.gql.g.dart'; + +abstract class GUpdateLocalSourcePathData + implements + Built { + GUpdateLocalSourcePathData._(); + + factory GUpdateLocalSourcePathData( + [void Function(GUpdateLocalSourcePathDataBuilder b) updates]) = + _$GUpdateLocalSourcePathData; + + static void _initializeBuilder(GUpdateLocalSourcePathDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateLocalSourcePathData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateLocalSourcePathDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathData.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathData.serializer, + json, + ); +} + +abstract class GUpdateLocalSourcePathData_setSettings + implements + Built { + GUpdateLocalSourcePathData_setSettings._(); + + factory GUpdateLocalSourcePathData_setSettings( + [void Function(GUpdateLocalSourcePathData_setSettingsBuilder b) + updates]) = _$GUpdateLocalSourcePathData_setSettings; + + static void _initializeBuilder( + GUpdateLocalSourcePathData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateLocalSourcePathData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateLocalSourcePathDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathData_setSettings.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateLocalSourcePathData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateLocalSourcePathData_setSettings_settings._(); + + factory GUpdateLocalSourcePathData_setSettings_settings( + [void Function(GUpdateLocalSourcePathData_setSettings_settingsBuilder b) + updates]) = _$GUpdateLocalSourcePathData_setSettings_settings; + + static void _initializeBuilder( + GUpdateLocalSourcePathData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateLocalSourcePathDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.g.dart new file mode 100644 index 00000000..a9defae3 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.g.dart @@ -0,0 +1,1406 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_local_source_path.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateLocalSourcePathDataSerializer = + new _$GUpdateLocalSourcePathDataSerializer(); +Serializer + _$gUpdateLocalSourcePathDataSetSettingsSerializer = + new _$GUpdateLocalSourcePathData_setSettingsSerializer(); +Serializer + _$gUpdateLocalSourcePathDataSetSettingsSettingsSerializer = + new _$GUpdateLocalSourcePathData_setSettings_settingsSerializer(); + +class _$GUpdateLocalSourcePathDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathData, + _$GUpdateLocalSourcePathData + ]; + @override + final String wireName = 'GUpdateLocalSourcePathData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateLocalSourcePathData_setSettings)), + ]; + + return result; + } + + @override + GUpdateLocalSourcePathData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateLocalSourcePathData_setSettings))! + as GUpdateLocalSourcePathData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathData_setSettings, + _$GUpdateLocalSourcePathData_setSettings + ]; + @override + final String wireName = 'GUpdateLocalSourcePathData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateLocalSourcePathData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateLocalSourcePathData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateLocalSourcePathData_setSettings_settings))! + as GUpdateLocalSourcePathData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathData_setSettings_settings, + _$GUpdateLocalSourcePathData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateLocalSourcePathData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateLocalSourcePathData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateLocalSourcePathData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathData extends GUpdateLocalSourcePathData { + @override + final String G__typename; + @override + final GUpdateLocalSourcePathData_setSettings setSettings; + + factory _$GUpdateLocalSourcePathData( + [void Function(GUpdateLocalSourcePathDataBuilder)? updates]) => + (new GUpdateLocalSourcePathDataBuilder()..update(updates))._build(); + + _$GUpdateLocalSourcePathData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateLocalSourcePathData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateLocalSourcePathData', 'setSettings'); + } + + @override + GUpdateLocalSourcePathData rebuild( + void Function(GUpdateLocalSourcePathDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathDataBuilder toBuilder() => + new GUpdateLocalSourcePathDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLocalSourcePathData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateLocalSourcePathDataBuilder + implements + Builder { + _$GUpdateLocalSourcePathData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateLocalSourcePathData_setSettingsBuilder? _setSettings; + GUpdateLocalSourcePathData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateLocalSourcePathData_setSettingsBuilder(); + set setSettings(GUpdateLocalSourcePathData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateLocalSourcePathDataBuilder() { + GUpdateLocalSourcePathData._initializeBuilder(this); + } + + GUpdateLocalSourcePathDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathData; + } + + @override + void update(void Function(GUpdateLocalSourcePathDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathData build() => _build(); + + _$GUpdateLocalSourcePathData _build() { + _$GUpdateLocalSourcePathData _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateLocalSourcePathData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLocalSourcePathData_setSettings + extends GUpdateLocalSourcePathData_setSettings { + @override + final String G__typename; + @override + final GUpdateLocalSourcePathData_setSettings_settings settings; + + factory _$GUpdateLocalSourcePathData_setSettings( + [void Function(GUpdateLocalSourcePathData_setSettingsBuilder)? + updates]) => + (new GUpdateLocalSourcePathData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateLocalSourcePathData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateLocalSourcePathData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateLocalSourcePathData_setSettings', 'settings'); + } + + @override + GUpdateLocalSourcePathData_setSettings rebuild( + void Function(GUpdateLocalSourcePathData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathData_setSettingsBuilder toBuilder() => + new GUpdateLocalSourcePathData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateLocalSourcePathData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateLocalSourcePathData_setSettingsBuilder + implements + Builder { + _$GUpdateLocalSourcePathData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateLocalSourcePathData_setSettings_settingsBuilder? _settings; + GUpdateLocalSourcePathData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateLocalSourcePathData_setSettings_settingsBuilder(); + set settings( + GUpdateLocalSourcePathData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateLocalSourcePathData_setSettingsBuilder() { + GUpdateLocalSourcePathData_setSettings._initializeBuilder(this); + } + + GUpdateLocalSourcePathData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathData_setSettings; + } + + @override + void update( + void Function(GUpdateLocalSourcePathData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathData_setSettings build() => _build(); + + _$GUpdateLocalSourcePathData_setSettings _build() { + _$GUpdateLocalSourcePathData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateLocalSourcePathData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLocalSourcePathData_setSettings_settings + extends GUpdateLocalSourcePathData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateLocalSourcePathData_setSettings_settings( + [void Function( + GUpdateLocalSourcePathData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateLocalSourcePathData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateLocalSourcePathData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateLocalSourcePathData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateLocalSourcePathData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateLocalSourcePathData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateLocalSourcePathData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateLocalSourcePathData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateLocalSourcePathData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateLocalSourcePathData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateLocalSourcePathData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateLocalSourcePathData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateLocalSourcePathData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateLocalSourcePathData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateLocalSourcePathData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateLocalSourcePathData_setSettings_settings rebuild( + void Function(GUpdateLocalSourcePathData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathData_setSettings_settingsBuilder toBuilder() => + new GUpdateLocalSourcePathData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateLocalSourcePathData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateLocalSourcePathData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateLocalSourcePathData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateLocalSourcePathData_setSettings_settingsBuilder() { + GUpdateLocalSourcePathData_setSettings_settings._initializeBuilder(this); + } + + GUpdateLocalSourcePathData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateLocalSourcePathData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathData_setSettings_settings build() => _build(); + + _$GUpdateLocalSourcePathData_setSettings_settings _build() { + _$GUpdateLocalSourcePathData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateLocalSourcePathData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateLocalSourcePathData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateLocalSourcePathData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.req.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.req.gql.dart new file mode 100644 index 00000000..cff029de --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_local_source_path.req.gql.g.dart'; + +abstract class GUpdateLocalSourcePathReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateLocalSourcePathData, + _i3.GUpdateLocalSourcePathVars> { + GUpdateLocalSourcePathReq._(); + + factory GUpdateLocalSourcePathReq( + [void Function(GUpdateLocalSourcePathReqBuilder b) updates]) = + _$GUpdateLocalSourcePathReq; + + static void _initializeBuilder(GUpdateLocalSourcePathReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateLocalSourcePath', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateLocalSourcePathVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, + _i2.GUpdateLocalSourcePathData?, + )? get updateResult; + @override + _i2.GUpdateLocalSourcePathData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateLocalSourcePathData? parseData(Map json) => + _i2.GUpdateLocalSourcePathData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateLocalSourcePathData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateLocalSourcePathData, + _i3.GUpdateLocalSourcePathVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateLocalSourcePathReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateLocalSourcePathReq.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateLocalSourcePathReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.req.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.req.gql.g.dart new file mode 100644 index 00000000..6eb04c0e --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.req.gql.g.dart @@ -0,0 +1,384 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_local_source_path.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateLocalSourcePathReqSerializer = + new _$GUpdateLocalSourcePathReqSerializer(); + +class _$GUpdateLocalSourcePathReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathReq, + _$GUpdateLocalSourcePathReq + ]; + @override + final String wireName = 'GUpdateLocalSourcePathReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateLocalSourcePathVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateLocalSourcePathData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateLocalSourcePathReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateLocalSourcePathVars))! + as _i3.GUpdateLocalSourcePathVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateLocalSourcePathData))! + as _i2.GUpdateLocalSourcePathData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathReq extends GUpdateLocalSourcePathReq { + @override + final _i3.GUpdateLocalSourcePathVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, _i2.GUpdateLocalSourcePathData?)? + updateResult; + @override + final _i2.GUpdateLocalSourcePathData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateLocalSourcePathReq( + [void Function(GUpdateLocalSourcePathReqBuilder)? updates]) => + (new GUpdateLocalSourcePathReqBuilder()..update(updates))._build(); + + _$GUpdateLocalSourcePathReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateLocalSourcePathReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateLocalSourcePathReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateLocalSourcePathReq', 'executeOnListen'); + } + + @override + GUpdateLocalSourcePathReq rebuild( + void Function(GUpdateLocalSourcePathReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathReqBuilder toBuilder() => + new GUpdateLocalSourcePathReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateLocalSourcePathReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLocalSourcePathReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateLocalSourcePathReqBuilder + implements + Builder { + _$GUpdateLocalSourcePathReq? _$v; + + _i3.GUpdateLocalSourcePathVarsBuilder? _vars; + _i3.GUpdateLocalSourcePathVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateLocalSourcePathVarsBuilder(); + set vars(_i3.GUpdateLocalSourcePathVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, _i2.GUpdateLocalSourcePathData?)? + _updateResult; + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, _i2.GUpdateLocalSourcePathData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateLocalSourcePathData? Function( + _i2.GUpdateLocalSourcePathData?, + _i2.GUpdateLocalSourcePathData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateLocalSourcePathDataBuilder? _optimisticResponse; + _i2.GUpdateLocalSourcePathDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateLocalSourcePathDataBuilder(); + set optimisticResponse( + _i2.GUpdateLocalSourcePathDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateLocalSourcePathReqBuilder() { + GUpdateLocalSourcePathReq._initializeBuilder(this); + } + + GUpdateLocalSourcePathReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathReq; + } + + @override + void update(void Function(GUpdateLocalSourcePathReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathReq build() => _build(); + + _$GUpdateLocalSourcePathReq _build() { + _$GUpdateLocalSourcePathReq _$result; + try { + _$result = _$v ?? + new _$GUpdateLocalSourcePathReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateLocalSourcePathReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateLocalSourcePathReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateLocalSourcePathReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.dart new file mode 100644 index 00000000..1f08954d --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_local_source_path.var.gql.g.dart'; + +abstract class GUpdateLocalSourcePathVars + implements + Built { + GUpdateLocalSourcePathVars._(); + + factory GUpdateLocalSourcePathVars( + [void Function(GUpdateLocalSourcePathVarsBuilder b) updates]) = + _$GUpdateLocalSourcePathVars; + + String get localSourcePath; + static Serializer get serializer => + _$gUpdateLocalSourcePathVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLocalSourcePathVars.serializer, + this, + ) as Map); + + static GUpdateLocalSourcePathVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateLocalSourcePathVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.g.dart new file mode 100644 index 00000000..2f82cff8 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.g.dart @@ -0,0 +1,151 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_local_source_path.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateLocalSourcePathVarsSerializer = + new _$GUpdateLocalSourcePathVarsSerializer(); + +class _$GUpdateLocalSourcePathVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLocalSourcePathVars, + _$GUpdateLocalSourcePathVars + ]; + @override + final String wireName = 'GUpdateLocalSourcePathVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLocalSourcePathVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateLocalSourcePathVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLocalSourcePathVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLocalSourcePathVars extends GUpdateLocalSourcePathVars { + @override + final String localSourcePath; + + factory _$GUpdateLocalSourcePathVars( + [void Function(GUpdateLocalSourcePathVarsBuilder)? updates]) => + (new GUpdateLocalSourcePathVarsBuilder()..update(updates))._build(); + + _$GUpdateLocalSourcePathVars._({required this.localSourcePath}) : super._() { + BuiltValueNullFieldError.checkNotNull( + localSourcePath, r'GUpdateLocalSourcePathVars', 'localSourcePath'); + } + + @override + GUpdateLocalSourcePathVars rebuild( + void Function(GUpdateLocalSourcePathVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLocalSourcePathVarsBuilder toBuilder() => + new GUpdateLocalSourcePathVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLocalSourcePathVars && + localSourcePath == other.localSourcePath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLocalSourcePathVars') + ..add('localSourcePath', localSourcePath)) + .toString(); + } +} + +class GUpdateLocalSourcePathVarsBuilder + implements + Builder { + _$GUpdateLocalSourcePathVars? _$v; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + GUpdateLocalSourcePathVarsBuilder(); + + GUpdateLocalSourcePathVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _localSourcePath = $v.localSourcePath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLocalSourcePathVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLocalSourcePathVars; + } + + @override + void update(void Function(GUpdateLocalSourcePathVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLocalSourcePathVars build() => _build(); + + _$GUpdateLocalSourcePathVars _build() { + final _$result = _$v ?? + new _$GUpdateLocalSourcePathVars._( + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateLocalSourcePathVars', + 'localSourcePath'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.ast.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.ast.gql.dart new file mode 100644 index 00000000..97a93b2c --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateSourceInParallel = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSourceInParallel'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'maxSourcesInParallel')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '6')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'maxSourcesInParallel')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateSourceInParallel, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.dart new file mode 100644 index 00000000..983dc45d --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_source_in_parallel.data.gql.g.dart'; + +abstract class GUpdateSourceInParallelData + implements + Built { + GUpdateSourceInParallelData._(); + + factory GUpdateSourceInParallelData( + [void Function(GUpdateSourceInParallelDataBuilder b) updates]) = + _$GUpdateSourceInParallelData; + + static void _initializeBuilder(GUpdateSourceInParallelDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSourceInParallelData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSourceInParallelDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelData.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelData.serializer, + json, + ); +} + +abstract class GUpdateSourceInParallelData_setSettings + implements + Built { + GUpdateSourceInParallelData_setSettings._(); + + factory GUpdateSourceInParallelData_setSettings( + [void Function(GUpdateSourceInParallelData_setSettingsBuilder b) + updates]) = _$GUpdateSourceInParallelData_setSettings; + + static void _initializeBuilder( + GUpdateSourceInParallelData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSourceInParallelData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSourceInParallelDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSourceInParallelData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSourceInParallelData_setSettings_settings._(); + + factory GUpdateSourceInParallelData_setSettings_settings( + [void Function(GUpdateSourceInParallelData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSourceInParallelData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSourceInParallelData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateSourceInParallelDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.g.dart new file mode 100644 index 00000000..f7f053e9 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.g.dart @@ -0,0 +1,1414 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_source_in_parallel.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateSourceInParallelDataSerializer = + new _$GUpdateSourceInParallelDataSerializer(); +Serializer + _$gUpdateSourceInParallelDataSetSettingsSerializer = + new _$GUpdateSourceInParallelData_setSettingsSerializer(); +Serializer + _$gUpdateSourceInParallelDataSetSettingsSettingsSerializer = + new _$GUpdateSourceInParallelData_setSettings_settingsSerializer(); + +class _$GUpdateSourceInParallelDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelData, + _$GUpdateSourceInParallelData + ]; + @override + final String wireName = 'GUpdateSourceInParallelData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateSourceInParallelData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSourceInParallelData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSourceInParallelData_setSettings))! + as GUpdateSourceInParallelData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelData_setSettings, + _$GUpdateSourceInParallelData_setSettings + ]; + @override + final String wireName = 'GUpdateSourceInParallelData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSourceInParallelData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSourceInParallelData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSourceInParallelData_setSettings_settings))! + as GUpdateSourceInParallelData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelData_setSettings_settings, + _$GUpdateSourceInParallelData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSourceInParallelData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSourceInParallelData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateSourceInParallelData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateSourceInParallelData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelData extends GUpdateSourceInParallelData { + @override + final String G__typename; + @override + final GUpdateSourceInParallelData_setSettings setSettings; + + factory _$GUpdateSourceInParallelData( + [void Function(GUpdateSourceInParallelDataBuilder)? updates]) => + (new GUpdateSourceInParallelDataBuilder()..update(updates))._build(); + + _$GUpdateSourceInParallelData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourceInParallelData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSourceInParallelData', 'setSettings'); + } + + @override + GUpdateSourceInParallelData rebuild( + void Function(GUpdateSourceInParallelDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelDataBuilder toBuilder() => + new GUpdateSourceInParallelDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourceInParallelData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSourceInParallelDataBuilder + implements + Builder { + _$GUpdateSourceInParallelData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSourceInParallelData_setSettingsBuilder? _setSettings; + GUpdateSourceInParallelData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateSourceInParallelData_setSettingsBuilder(); + set setSettings( + GUpdateSourceInParallelData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSourceInParallelDataBuilder() { + GUpdateSourceInParallelData._initializeBuilder(this); + } + + GUpdateSourceInParallelDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelData; + } + + @override + void update(void Function(GUpdateSourceInParallelDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelData build() => _build(); + + _$GUpdateSourceInParallelData _build() { + _$GUpdateSourceInParallelData _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourceInParallelData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourceInParallelData_setSettings + extends GUpdateSourceInParallelData_setSettings { + @override + final String G__typename; + @override + final GUpdateSourceInParallelData_setSettings_settings settings; + + factory _$GUpdateSourceInParallelData_setSettings( + [void Function(GUpdateSourceInParallelData_setSettingsBuilder)? + updates]) => + (new GUpdateSourceInParallelData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSourceInParallelData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSourceInParallelData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSourceInParallelData_setSettings', 'settings'); + } + + @override + GUpdateSourceInParallelData_setSettings rebuild( + void Function(GUpdateSourceInParallelData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelData_setSettingsBuilder toBuilder() => + new GUpdateSourceInParallelData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSourceInParallelData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSourceInParallelData_setSettingsBuilder + implements + Builder { + _$GUpdateSourceInParallelData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSourceInParallelData_setSettings_settingsBuilder? _settings; + GUpdateSourceInParallelData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSourceInParallelData_setSettings_settingsBuilder(); + set settings( + GUpdateSourceInParallelData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSourceInParallelData_setSettingsBuilder() { + GUpdateSourceInParallelData_setSettings._initializeBuilder(this); + } + + GUpdateSourceInParallelData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelData_setSettings; + } + + @override + void update( + void Function(GUpdateSourceInParallelData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelData_setSettings build() => _build(); + + _$GUpdateSourceInParallelData_setSettings _build() { + _$GUpdateSourceInParallelData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSourceInParallelData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourceInParallelData_setSettings_settings + extends GUpdateSourceInParallelData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateSourceInParallelData_setSettings_settings( + [void Function( + GUpdateSourceInParallelData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSourceInParallelData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSourceInParallelData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSourceInParallelData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSourceInParallelData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSourceInParallelData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSourceInParallelData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSourceInParallelData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSourceInParallelData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSourceInParallelData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSourceInParallelData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSourceInParallelData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSourceInParallelData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSourceInParallelData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSourceInParallelData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSourceInParallelData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSourceInParallelData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSourceInParallelData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateSourceInParallelData_setSettings_settings rebuild( + void Function(GUpdateSourceInParallelData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelData_setSettings_settingsBuilder toBuilder() => + new GUpdateSourceInParallelData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSourceInParallelData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateSourceInParallelData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSourceInParallelData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateSourceInParallelData_setSettings_settingsBuilder() { + GUpdateSourceInParallelData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSourceInParallelData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSourceInParallelData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelData_setSettings_settings build() => _build(); + + _$GUpdateSourceInParallelData_setSettings_settings _build() { + _$GUpdateSourceInParallelData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateSourceInParallelData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSourceInParallelData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateSourceInParallelData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateSourceInParallelData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateSourceInParallelData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSourceInParallelData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateSourceInParallelData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSourceInParallelData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateSourceInParallelData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSourceInParallelData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSourceInParallelData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateSourceInParallelData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSourceInParallelData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateSourceInParallelData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateSourceInParallelData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateSourceInParallelData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSourceInParallelData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSourceInParallelData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSourceInParallelData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.req.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.req.gql.dart new file mode 100644 index 00000000..1acfe639 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_source_in_parallel.req.gql.g.dart'; + +abstract class GUpdateSourceInParallelReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSourceInParallelData, + _i3.GUpdateSourceInParallelVars> { + GUpdateSourceInParallelReq._(); + + factory GUpdateSourceInParallelReq( + [void Function(GUpdateSourceInParallelReqBuilder b) updates]) = + _$GUpdateSourceInParallelReq; + + static void _initializeBuilder(GUpdateSourceInParallelReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSourceInParallel', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSourceInParallelVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, + _i2.GUpdateSourceInParallelData?, + )? get updateResult; + @override + _i2.GUpdateSourceInParallelData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSourceInParallelData? parseData(Map json) => + _i2.GUpdateSourceInParallelData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSourceInParallelData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSourceInParallelData, + _i3.GUpdateSourceInParallelVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSourceInParallelReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSourceInParallelReq.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSourceInParallelReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.req.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.req.gql.g.dart new file mode 100644 index 00000000..dd0e8650 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.req.gql.g.dart @@ -0,0 +1,384 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_source_in_parallel.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSourceInParallelReqSerializer = + new _$GUpdateSourceInParallelReqSerializer(); + +class _$GUpdateSourceInParallelReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelReq, + _$GUpdateSourceInParallelReq + ]; + @override + final String wireName = 'GUpdateSourceInParallelReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSourceInParallelVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSourceInParallelData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSourceInParallelReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateSourceInParallelVars))! + as _i3.GUpdateSourceInParallelVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateSourceInParallelData))! + as _i2.GUpdateSourceInParallelData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelReq extends GUpdateSourceInParallelReq { + @override + final _i3.GUpdateSourceInParallelVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, _i2.GUpdateSourceInParallelData?)? + updateResult; + @override + final _i2.GUpdateSourceInParallelData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSourceInParallelReq( + [void Function(GUpdateSourceInParallelReqBuilder)? updates]) => + (new GUpdateSourceInParallelReqBuilder()..update(updates))._build(); + + _$GUpdateSourceInParallelReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSourceInParallelReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSourceInParallelReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSourceInParallelReq', 'executeOnListen'); + } + + @override + GUpdateSourceInParallelReq rebuild( + void Function(GUpdateSourceInParallelReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelReqBuilder toBuilder() => + new GUpdateSourceInParallelReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSourceInParallelReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourceInParallelReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSourceInParallelReqBuilder + implements + Builder { + _$GUpdateSourceInParallelReq? _$v; + + _i3.GUpdateSourceInParallelVarsBuilder? _vars; + _i3.GUpdateSourceInParallelVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSourceInParallelVarsBuilder(); + set vars(_i3.GUpdateSourceInParallelVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, _i2.GUpdateSourceInParallelData?)? + _updateResult; + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, _i2.GUpdateSourceInParallelData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSourceInParallelData? Function( + _i2.GUpdateSourceInParallelData?, + _i2.GUpdateSourceInParallelData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSourceInParallelDataBuilder? _optimisticResponse; + _i2.GUpdateSourceInParallelDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateSourceInParallelDataBuilder(); + set optimisticResponse( + _i2.GUpdateSourceInParallelDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSourceInParallelReqBuilder() { + GUpdateSourceInParallelReq._initializeBuilder(this); + } + + GUpdateSourceInParallelReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelReq; + } + + @override + void update(void Function(GUpdateSourceInParallelReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelReq build() => _build(); + + _$GUpdateSourceInParallelReq _build() { + _$GUpdateSourceInParallelReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSourceInParallelReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSourceInParallelReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateSourceInParallelReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourceInParallelReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.dart new file mode 100644 index 00000000..c9a07050 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_source_in_parallel.var.gql.g.dart'; + +abstract class GUpdateSourceInParallelVars + implements + Built { + GUpdateSourceInParallelVars._(); + + factory GUpdateSourceInParallelVars( + [void Function(GUpdateSourceInParallelVarsBuilder b) updates]) = + _$GUpdateSourceInParallelVars; + + int? get maxSourcesInParallel; + static Serializer get serializer => + _$gUpdateSourceInParallelVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourceInParallelVars.serializer, + this, + ) as Map); + + static GUpdateSourceInParallelVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSourceInParallelVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.g.dart b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.g.dart new file mode 100644 index 00000000..01186bbc --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.g.dart @@ -0,0 +1,149 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_source_in_parallel.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateSourceInParallelVarsSerializer = + new _$GUpdateSourceInParallelVarsSerializer(); + +class _$GUpdateSourceInParallelVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourceInParallelVars, + _$GUpdateSourceInParallelVars + ]; + @override + final String wireName = 'GUpdateSourceInParallelVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourceInParallelVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.maxSourcesInParallel; + if (value != null) { + result + ..add('maxSourcesInParallel') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateSourceInParallelVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourceInParallelVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourceInParallelVars extends GUpdateSourceInParallelVars { + @override + final int? maxSourcesInParallel; + + factory _$GUpdateSourceInParallelVars( + [void Function(GUpdateSourceInParallelVarsBuilder)? updates]) => + (new GUpdateSourceInParallelVarsBuilder()..update(updates))._build(); + + _$GUpdateSourceInParallelVars._({this.maxSourcesInParallel}) : super._(); + + @override + GUpdateSourceInParallelVars rebuild( + void Function(GUpdateSourceInParallelVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourceInParallelVarsBuilder toBuilder() => + new GUpdateSourceInParallelVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourceInParallelVars && + maxSourcesInParallel == other.maxSourcesInParallel; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourceInParallelVars') + ..add('maxSourcesInParallel', maxSourcesInParallel)) + .toString(); + } +} + +class GUpdateSourceInParallelVarsBuilder + implements + Builder { + _$GUpdateSourceInParallelVars? _$v; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + GUpdateSourceInParallelVarsBuilder(); + + GUpdateSourceInParallelVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _maxSourcesInParallel = $v.maxSourcesInParallel; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourceInParallelVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourceInParallelVars; + } + + @override + void update(void Function(GUpdateSourceInParallelVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourceInParallelVars build() => _build(); + + _$GUpdateSourceInParallelVars _build() { + final _$result = _$v ?? + new _$GUpdateSourceInParallelVars._( + maxSourcesInParallel: maxSourcesInParallel, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/update_extension_repos.graphql b/lib/src/features/settings/presentation/browse/data/graphql/queries/update_extension_repos.graphql new file mode 100644 index 00000000..8860a533 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/update_extension_repos.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateExtensionRepos($extensionRepos: [String!]!) { + setSettings(input: {settings: {extensionRepos: $extensionRepos}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/update_local_source_path.graphql b/lib/src/features/settings/presentation/browse/data/graphql/queries/update_local_source_path.graphql new file mode 100644 index 00000000..070ce8b3 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/update_local_source_path.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateLocalSourcePath($localSourcePath: String!) { + setSettings(input: {settings: {localSourcePath: $localSourcePath}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/queries/update_source_in_parallel.graphql b/lib/src/features/settings/presentation/browse/data/graphql/queries/update_source_in_parallel.graphql new file mode 100644 index 00000000..87b3d5f8 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/queries/update_source_in_parallel.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateSourceInParallel($maxSourcesInParallel: Int = 6) { + setSettings(input: {settings: {maxSourcesInParallel: $maxSourcesInParallel}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/browse/data/graphql/query.dart b/lib/src/features/settings/presentation/browse/data/graphql/query.dart new file mode 100644 index 00000000..ab5a4db1 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/data/graphql/query.dart @@ -0,0 +1,18 @@ +import 'package:built_collection/built_collection.dart'; + +import 'queries/__generated__/update_extension_repos.req.gql.dart'; +import 'queries/__generated__/update_local_source_path.req.gql.dart'; +import 'queries/__generated__/update_source_in_parallel.req.gql.dart'; + +abstract class BrowseSettingsQuery { + static GUpdateSourceInParallelReq updateSourceInParallel(int value) => + GUpdateSourceInParallelReq( + (req) => req..vars.maxSourcesInParallel = value); + + static GUpdateExtensionReposReq updateExtensionRepos(Set value) => + GUpdateExtensionReposReq( + (req) => req..vars.extensionRepos = ListBuilder(value)); + + static GUpdateLocalSourcePathReq updateLocalSourcePath(String value) => + GUpdateLocalSourcePathReq((req) => req..vars.localSourcePath = value); +} diff --git a/lib/src/features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart b/lib/src/features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart new file mode 100644 index 00000000..db88e0b0 --- /dev/null +++ b/lib/src/features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart @@ -0,0 +1,115 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../constants/app_sizes.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/emoticons.dart'; +import '../../../../../../widgets/input_popup/widgets/text_field_dialog.dart'; +import '../../../../controller/server_controller.dart'; +import '../../data/browse_settings_repository.dart'; + +class ExtensionRepositoryScreen extends ConsumerWidget { + const ExtensionRepositoryScreen({super.key}); + @override + Widget build(context, ref) { + final repository = ref.watch(browseSettingsRepositoryProvider); + final serverSettings = ref.watch(settingsProvider); + final List repoList = [ + ...?serverSettings.valueOrNull?.extensionRepos + ]; + onRefresh() => ref.refresh(settingsProvider.future); + return Scaffold( + appBar: AppBar(title: Text(context.l10n.extensionRepository)), + floatingActionButton: FloatingActionButton( + onPressed: () async { + String? newUrl = await showDialog( + context: context, + builder: (context) => TextFieldDialog( + title: context.l10n.extensionRepository, + hintText: + context.l10n.enterProp(context.l10n.extensionRepository), + ), + ); + if (newUrl.isNotBlank && newUrl.isUrl) { + final result = await AppUtils.guard( + () => repository.updateExtensionRepos({...repoList, newUrl!}), + ref.read(toastProvider), + ); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } else if (context.mounted) { + ref.read(toastProvider)?.showError( + context.l10n.invalidProp(context.l10n.extensionRepository)); + } + }, + child: const Icon(Icons.add_rounded), + ), + body: RefreshIndicator( + onRefresh: onRefresh, + child: repoList.isNotBlank + ? ListView.builder( + itemCount: (repoList.length).ifNull(), + itemBuilder: (context, index) { + final repo = repoList[index]; + if (repo.isBlank) return const SizedBox.shrink(); + return Card( + margin: KEdgeInsets.a8.size, + child: ListTile( + title: Text( + repo, + maxLines: 2, + overflow: TextOverflow.ellipsis, + ), + trailing: Row( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + icon: const Icon(Icons.copy_rounded), + onPressed: () async { + await Clipboard.setData( + ClipboardData(text: repo)); + if (context.mounted) { + ref + .read(toastProvider) + ?.show(context.l10n.copied); + } + }, + ), + IconButton( + icon: const Icon(Icons.delete_rounded), + onPressed: () async { + final newList = {...repoList}..remove(repo); + final result = await AppUtils.guard( + () => + repository.updateExtensionRepos(newList), + ref.read(toastProvider)); + if (result != null) { + ref + .watch(settingsProvider.notifier) + .updateState(result); + } + }, + ), + ], + ), + ), + ); + }, + ) + : Emoticons( + title: + context.l10n.noPropFound(context.l10n.extensionRepository), + subTitle: context.l10n.extensionRepositoryDescription, + button: TextButton( + onPressed: onRefresh, + child: Text(context.l10n.refresh), + ), + ), + ), + ); + } +} diff --git a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart index 24f38b21..4783421b 100644 --- a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart +++ b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.dart @@ -27,9 +27,7 @@ class ShowNSFWTile extends ConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.eighteen_up_rating_rounded), - title: Text( - context.l10n!.nsfw, - ), + title: Text(context.l10n.nsfw), onChanged: ref.read(showNSFWProvider.notifier).update, value: ref.watch(showNSFWProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.g.dart b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.g.dart index c74b3134..c10ce4a4 100644 --- a/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.g.dart +++ b/lib/src/features/settings/presentation/browse/widgets/show_nsfw_switch/show_nsfw_switch.g.dart @@ -21,4 +21,4 @@ final showNSFWProvider = AutoDisposeNotifierProvider.internal( typedef _$ShowNSFW = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/downloads/data/downloads_settings_repository.dart b/lib/src/features/settings/presentation/downloads/data/downloads_settings_repository.dart new file mode 100644 index 00000000..f9f7162b --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/downloads_settings_repository.dart @@ -0,0 +1,57 @@ +import 'package:ferry/ferry.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../domain/settings/settings.dart'; +import 'graphql/query.dart'; + +part 'downloads_settings_repository.g.dart'; + +class DownloadsSettingsRepository { + const DownloadsSettingsRepository(this.ferryClient); + + final Client ferryClient; + + Future updateDownloadsLocation(String value) => ferryClient + .fetch( + DownloadsSettingsQuery.updateDownloadsLocation(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateDownloadAsCbz(bool value) => ferryClient + .fetch( + DownloadsSettingsQuery.updateDownloadAsCbz(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleAutoDownloadNewChapters(bool value) => ferryClient + .fetch( + DownloadsSettingsQuery.toggleAutoDownloadNewChapters(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleExcludeEntryWithUnreadChapters(bool value) => + ferryClient + .fetch( + DownloadsSettingsQuery.toggleExcludeEntryWithUnreadChapters(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateAutoDownloadNewChaptersLimit(int value) => + ferryClient + .fetch( + DownloadsSettingsQuery.updateAutoDownloadNewChaptersLimit(value), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +DownloadsSettingsRepository downloadsSettingsRepository(Ref ref) => + DownloadsSettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/downloads/data/downloads_settings_repository.g.dart b/lib/src/features/settings/presentation/downloads/data/downloads_settings_repository.g.dart new file mode 100644 index 00000000..42c15843 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/downloads_settings_repository.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'downloads_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$downloadsSettingsRepositoryHash() => + r'b0cf4782c6aa2c247fdc909f2430cc0fe0ebd805'; + +/// See also [downloadsSettingsRepository]. +@ProviderFor(downloadsSettingsRepository) +final downloadsSettingsRepositoryProvider = + AutoDisposeProvider.internal( + downloadsSettingsRepository, + name: r'downloadsSettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$downloadsSettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef DownloadsSettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.ast.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.ast.gql.dart new file mode 100644 index 00000000..a1d6aa91 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleAutoDownloadNewChapters = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleAutoDownloadNewChapters'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleAutoDownloadNewChapters, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.dart new file mode 100644 index 00000000..1c37cf8b --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.dart @@ -0,0 +1,182 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_auto_download_new_chapters.data.gql.g.dart'; + +abstract class GToggleAutoDownloadNewChaptersData + implements + Built { + GToggleAutoDownloadNewChaptersData._(); + + factory GToggleAutoDownloadNewChaptersData( + [void Function(GToggleAutoDownloadNewChaptersDataBuilder b) + updates]) = _$GToggleAutoDownloadNewChaptersData; + + static void _initializeBuilder(GToggleAutoDownloadNewChaptersDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleAutoDownloadNewChaptersData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleAutoDownloadNewChaptersDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleAutoDownloadNewChaptersData.serializer, + this, + ) as Map); + + static GToggleAutoDownloadNewChaptersData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleAutoDownloadNewChaptersData.serializer, + json, + ); +} + +abstract class GToggleAutoDownloadNewChaptersData_setSettings + implements + Built { + GToggleAutoDownloadNewChaptersData_setSettings._(); + + factory GToggleAutoDownloadNewChaptersData_setSettings( + [void Function(GToggleAutoDownloadNewChaptersData_setSettingsBuilder b) + updates]) = _$GToggleAutoDownloadNewChaptersData_setSettings; + + static void _initializeBuilder( + GToggleAutoDownloadNewChaptersData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleAutoDownloadNewChaptersData_setSettings_settings get settings; + static Serializer + get serializer => + _$gToggleAutoDownloadNewChaptersDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleAutoDownloadNewChaptersData_setSettings.serializer, + this, + ) as Map); + + static GToggleAutoDownloadNewChaptersData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleAutoDownloadNewChaptersData_setSettings.serializer, + json, + ); +} + +abstract class GToggleAutoDownloadNewChaptersData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleAutoDownloadNewChaptersData_setSettings_settings._(); + + factory GToggleAutoDownloadNewChaptersData_setSettings_settings( + [void Function( + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder b) + updates]) = _$GToggleAutoDownloadNewChaptersData_setSettings_settings; + + static void _initializeBuilder( + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gToggleAutoDownloadNewChaptersDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleAutoDownloadNewChaptersData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleAutoDownloadNewChaptersData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleAutoDownloadNewChaptersData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.g.dart new file mode 100644 index 00000000..c689f6e8 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.g.dart @@ -0,0 +1,1460 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_auto_download_new_chapters.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleAutoDownloadNewChaptersDataSerializer = + new _$GToggleAutoDownloadNewChaptersDataSerializer(); +Serializer + _$gToggleAutoDownloadNewChaptersDataSetSettingsSerializer = + new _$GToggleAutoDownloadNewChaptersData_setSettingsSerializer(); +Serializer + _$gToggleAutoDownloadNewChaptersDataSetSettingsSettingsSerializer = + new _$GToggleAutoDownloadNewChaptersData_setSettings_settingsSerializer(); + +class _$GToggleAutoDownloadNewChaptersDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleAutoDownloadNewChaptersData, + _$GToggleAutoDownloadNewChaptersData + ]; + @override + final String wireName = 'GToggleAutoDownloadNewChaptersData'; + + @override + Iterable serialize( + Serializers serializers, GToggleAutoDownloadNewChaptersData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GToggleAutoDownloadNewChaptersData_setSettings)), + ]; + + return result; + } + + @override + GToggleAutoDownloadNewChaptersData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleAutoDownloadNewChaptersDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleAutoDownloadNewChaptersData_setSettings))! + as GToggleAutoDownloadNewChaptersData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleAutoDownloadNewChaptersData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleAutoDownloadNewChaptersData_setSettings, + _$GToggleAutoDownloadNewChaptersData_setSettings + ]; + @override + final String wireName = 'GToggleAutoDownloadNewChaptersData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GToggleAutoDownloadNewChaptersData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GToggleAutoDownloadNewChaptersData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleAutoDownloadNewChaptersData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleAutoDownloadNewChaptersData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleAutoDownloadNewChaptersData_setSettings_settings))! + as GToggleAutoDownloadNewChaptersData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleAutoDownloadNewChaptersData_setSettings_settingsSerializer + implements + StructuredSerializer< + GToggleAutoDownloadNewChaptersData_setSettings_settings> { + @override + final Iterable types = const [ + GToggleAutoDownloadNewChaptersData_setSettings_settings, + _$GToggleAutoDownloadNewChaptersData_setSettings_settings + ]; + @override + final String wireName = + 'GToggleAutoDownloadNewChaptersData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleAutoDownloadNewChaptersData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleAutoDownloadNewChaptersData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleAutoDownloadNewChaptersData + extends GToggleAutoDownloadNewChaptersData { + @override + final String G__typename; + @override + final GToggleAutoDownloadNewChaptersData_setSettings setSettings; + + factory _$GToggleAutoDownloadNewChaptersData( + [void Function(GToggleAutoDownloadNewChaptersDataBuilder)? + updates]) => + (new GToggleAutoDownloadNewChaptersDataBuilder()..update(updates)) + ._build(); + + _$GToggleAutoDownloadNewChaptersData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleAutoDownloadNewChaptersData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleAutoDownloadNewChaptersData', 'setSettings'); + } + + @override + GToggleAutoDownloadNewChaptersData rebuild( + void Function(GToggleAutoDownloadNewChaptersDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleAutoDownloadNewChaptersDataBuilder toBuilder() => + new GToggleAutoDownloadNewChaptersDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleAutoDownloadNewChaptersData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleAutoDownloadNewChaptersData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleAutoDownloadNewChaptersDataBuilder + implements + Builder { + _$GToggleAutoDownloadNewChaptersData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleAutoDownloadNewChaptersData_setSettingsBuilder? _setSettings; + GToggleAutoDownloadNewChaptersData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GToggleAutoDownloadNewChaptersData_setSettingsBuilder(); + set setSettings( + GToggleAutoDownloadNewChaptersData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleAutoDownloadNewChaptersDataBuilder() { + GToggleAutoDownloadNewChaptersData._initializeBuilder(this); + } + + GToggleAutoDownloadNewChaptersDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleAutoDownloadNewChaptersData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleAutoDownloadNewChaptersData; + } + + @override + void update( + void Function(GToggleAutoDownloadNewChaptersDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleAutoDownloadNewChaptersData build() => _build(); + + _$GToggleAutoDownloadNewChaptersData _build() { + _$GToggleAutoDownloadNewChaptersData _$result; + try { + _$result = _$v ?? + new _$GToggleAutoDownloadNewChaptersData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleAutoDownloadNewChaptersData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleAutoDownloadNewChaptersData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleAutoDownloadNewChaptersData_setSettings + extends GToggleAutoDownloadNewChaptersData_setSettings { + @override + final String G__typename; + @override + final GToggleAutoDownloadNewChaptersData_setSettings_settings settings; + + factory _$GToggleAutoDownloadNewChaptersData_setSettings( + [void Function(GToggleAutoDownloadNewChaptersData_setSettingsBuilder)? + updates]) => + (new GToggleAutoDownloadNewChaptersData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleAutoDownloadNewChaptersData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleAutoDownloadNewChaptersData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(settings, + r'GToggleAutoDownloadNewChaptersData_setSettings', 'settings'); + } + + @override + GToggleAutoDownloadNewChaptersData_setSettings rebuild( + void Function(GToggleAutoDownloadNewChaptersData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleAutoDownloadNewChaptersData_setSettingsBuilder toBuilder() => + new GToggleAutoDownloadNewChaptersData_setSettingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleAutoDownloadNewChaptersData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleAutoDownloadNewChaptersData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleAutoDownloadNewChaptersData_setSettingsBuilder + implements + Builder { + _$GToggleAutoDownloadNewChaptersData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder? _settings; + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder(); + set settings( + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GToggleAutoDownloadNewChaptersData_setSettingsBuilder() { + GToggleAutoDownloadNewChaptersData_setSettings._initializeBuilder(this); + } + + GToggleAutoDownloadNewChaptersData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleAutoDownloadNewChaptersData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleAutoDownloadNewChaptersData_setSettings; + } + + @override + void update( + void Function(GToggleAutoDownloadNewChaptersData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleAutoDownloadNewChaptersData_setSettings build() => _build(); + + _$GToggleAutoDownloadNewChaptersData_setSettings _build() { + _$GToggleAutoDownloadNewChaptersData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleAutoDownloadNewChaptersData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleAutoDownloadNewChaptersData_setSettings', + 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleAutoDownloadNewChaptersData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleAutoDownloadNewChaptersData_setSettings_settings + extends GToggleAutoDownloadNewChaptersData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleAutoDownloadNewChaptersData_setSettings_settings( + [void Function( + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder)? + updates]) => + (new GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleAutoDownloadNewChaptersData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleAutoDownloadNewChaptersData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull(port, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleAutoDownloadNewChaptersData_setSettings_settings rebuild( + void Function( + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder toBuilder() => + new GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleAutoDownloadNewChaptersData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleAutoDownloadNewChaptersData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder + implements + Builder { + _$GToggleAutoDownloadNewChaptersData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder() { + GToggleAutoDownloadNewChaptersData_setSettings_settings._initializeBuilder( + this); + } + + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleAutoDownloadNewChaptersData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleAutoDownloadNewChaptersData_setSettings_settings; + } + + @override + void update( + void Function( + GToggleAutoDownloadNewChaptersData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleAutoDownloadNewChaptersData_setSettings_settings build() => _build(); + + _$GToggleAutoDownloadNewChaptersData_setSettings_settings _build() { + _$GToggleAutoDownloadNewChaptersData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleAutoDownloadNewChaptersData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleAutoDownloadNewChaptersData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.req.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.req.gql.dart new file mode 100644 index 00000000..70f83476 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.req.gql.dart @@ -0,0 +1,105 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_auto_download_new_chapters.req.gql.g.dart'; + +abstract class GToggleAutoDownloadNewChaptersReq + implements + Built, + _i1.OperationRequest<_i2.GToggleAutoDownloadNewChaptersData, + _i3.GToggleAutoDownloadNewChaptersVars> { + GToggleAutoDownloadNewChaptersReq._(); + + factory GToggleAutoDownloadNewChaptersReq( + [void Function(GToggleAutoDownloadNewChaptersReqBuilder b) updates]) = + _$GToggleAutoDownloadNewChaptersReq; + + static void _initializeBuilder(GToggleAutoDownloadNewChaptersReqBuilder b) => + b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleAutoDownloadNewChapters', + ) + ..executeOnListen = true; + + @override + _i3.GToggleAutoDownloadNewChaptersVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleAutoDownloadNewChaptersData? Function( + _i2.GToggleAutoDownloadNewChaptersData?, + _i2.GToggleAutoDownloadNewChaptersData?, + )? get updateResult; + @override + _i2.GToggleAutoDownloadNewChaptersData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleAutoDownloadNewChaptersData? parseData( + Map json) => + _i2.GToggleAutoDownloadNewChaptersData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson( + _i2.GToggleAutoDownloadNewChaptersData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleAutoDownloadNewChaptersData, + _i3.GToggleAutoDownloadNewChaptersVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleAutoDownloadNewChaptersReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleAutoDownloadNewChaptersReq.serializer, + this, + ) as Map); + + static GToggleAutoDownloadNewChaptersReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GToggleAutoDownloadNewChaptersReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.req.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.req.gql.g.dart new file mode 100644 index 00000000..8205641f --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.req.gql.g.dart @@ -0,0 +1,393 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_auto_download_new_chapters.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleAutoDownloadNewChaptersReqSerializer = + new _$GToggleAutoDownloadNewChaptersReqSerializer(); + +class _$GToggleAutoDownloadNewChaptersReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleAutoDownloadNewChaptersReq, + _$GToggleAutoDownloadNewChaptersReq + ]; + @override + final String wireName = 'GToggleAutoDownloadNewChaptersReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleAutoDownloadNewChaptersReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: + const FullType(_i3.GToggleAutoDownloadNewChaptersVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GToggleAutoDownloadNewChaptersData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleAutoDownloadNewChaptersReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleAutoDownloadNewChaptersReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GToggleAutoDownloadNewChaptersVars))! + as _i3.GToggleAutoDownloadNewChaptersVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GToggleAutoDownloadNewChaptersData))! + as _i2.GToggleAutoDownloadNewChaptersData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleAutoDownloadNewChaptersReq + extends GToggleAutoDownloadNewChaptersReq { + @override + final _i3.GToggleAutoDownloadNewChaptersVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleAutoDownloadNewChaptersData? Function( + _i2.GToggleAutoDownloadNewChaptersData?, + _i2.GToggleAutoDownloadNewChaptersData?)? updateResult; + @override + final _i2.GToggleAutoDownloadNewChaptersData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleAutoDownloadNewChaptersReq( + [void Function(GToggleAutoDownloadNewChaptersReqBuilder)? updates]) => + (new GToggleAutoDownloadNewChaptersReqBuilder()..update(updates)) + ._build(); + + _$GToggleAutoDownloadNewChaptersReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleAutoDownloadNewChaptersReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleAutoDownloadNewChaptersReq', 'operation'); + BuiltValueNullFieldError.checkNotNull(executeOnListen, + r'GToggleAutoDownloadNewChaptersReq', 'executeOnListen'); + } + + @override + GToggleAutoDownloadNewChaptersReq rebuild( + void Function(GToggleAutoDownloadNewChaptersReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleAutoDownloadNewChaptersReqBuilder toBuilder() => + new GToggleAutoDownloadNewChaptersReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleAutoDownloadNewChaptersReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleAutoDownloadNewChaptersReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleAutoDownloadNewChaptersReqBuilder + implements + Builder { + _$GToggleAutoDownloadNewChaptersReq? _$v; + + _i3.GToggleAutoDownloadNewChaptersVarsBuilder? _vars; + _i3.GToggleAutoDownloadNewChaptersVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleAutoDownloadNewChaptersVarsBuilder(); + set vars(_i3.GToggleAutoDownloadNewChaptersVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleAutoDownloadNewChaptersData? Function( + _i2.GToggleAutoDownloadNewChaptersData?, + _i2.GToggleAutoDownloadNewChaptersData?)? _updateResult; + _i2.GToggleAutoDownloadNewChaptersData? Function( + _i2.GToggleAutoDownloadNewChaptersData?, + _i2.GToggleAutoDownloadNewChaptersData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleAutoDownloadNewChaptersData? Function( + _i2.GToggleAutoDownloadNewChaptersData?, + _i2.GToggleAutoDownloadNewChaptersData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleAutoDownloadNewChaptersDataBuilder? _optimisticResponse; + _i2.GToggleAutoDownloadNewChaptersDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GToggleAutoDownloadNewChaptersDataBuilder(); + set optimisticResponse( + _i2.GToggleAutoDownloadNewChaptersDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleAutoDownloadNewChaptersReqBuilder() { + GToggleAutoDownloadNewChaptersReq._initializeBuilder(this); + } + + GToggleAutoDownloadNewChaptersReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleAutoDownloadNewChaptersReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleAutoDownloadNewChaptersReq; + } + + @override + void update( + void Function(GToggleAutoDownloadNewChaptersReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleAutoDownloadNewChaptersReq build() => _build(); + + _$GToggleAutoDownloadNewChaptersReq _build() { + _$GToggleAutoDownloadNewChaptersReq _$result; + try { + _$result = _$v ?? + new _$GToggleAutoDownloadNewChaptersReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleAutoDownloadNewChaptersReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleAutoDownloadNewChaptersReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleAutoDownloadNewChaptersReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.dart new file mode 100644 index 00000000..fe6d411a --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_auto_download_new_chapters.var.gql.g.dart'; + +abstract class GToggleAutoDownloadNewChaptersVars + implements + Built { + GToggleAutoDownloadNewChaptersVars._(); + + factory GToggleAutoDownloadNewChaptersVars( + [void Function(GToggleAutoDownloadNewChaptersVarsBuilder b) + updates]) = _$GToggleAutoDownloadNewChaptersVars; + + bool? get autoDownloadNewChapters; + static Serializer get serializer => + _$gToggleAutoDownloadNewChaptersVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleAutoDownloadNewChaptersVars.serializer, + this, + ) as Map); + + static GToggleAutoDownloadNewChaptersVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleAutoDownloadNewChaptersVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.g.dart new file mode 100644 index 00000000..490ef0b7 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.g.dart @@ -0,0 +1,155 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_auto_download_new_chapters.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleAutoDownloadNewChaptersVarsSerializer = + new _$GToggleAutoDownloadNewChaptersVarsSerializer(); + +class _$GToggleAutoDownloadNewChaptersVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleAutoDownloadNewChaptersVars, + _$GToggleAutoDownloadNewChaptersVars + ]; + @override + final String wireName = 'GToggleAutoDownloadNewChaptersVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleAutoDownloadNewChaptersVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.autoDownloadNewChapters; + if (value != null) { + result + ..add('autoDownloadNewChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleAutoDownloadNewChaptersVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleAutoDownloadNewChaptersVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleAutoDownloadNewChaptersVars + extends GToggleAutoDownloadNewChaptersVars { + @override + final bool? autoDownloadNewChapters; + + factory _$GToggleAutoDownloadNewChaptersVars( + [void Function(GToggleAutoDownloadNewChaptersVarsBuilder)? + updates]) => + (new GToggleAutoDownloadNewChaptersVarsBuilder()..update(updates)) + ._build(); + + _$GToggleAutoDownloadNewChaptersVars._({this.autoDownloadNewChapters}) + : super._(); + + @override + GToggleAutoDownloadNewChaptersVars rebuild( + void Function(GToggleAutoDownloadNewChaptersVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleAutoDownloadNewChaptersVarsBuilder toBuilder() => + new GToggleAutoDownloadNewChaptersVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleAutoDownloadNewChaptersVars && + autoDownloadNewChapters == other.autoDownloadNewChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleAutoDownloadNewChaptersVars') + ..add('autoDownloadNewChapters', autoDownloadNewChapters)) + .toString(); + } +} + +class GToggleAutoDownloadNewChaptersVarsBuilder + implements + Builder { + _$GToggleAutoDownloadNewChaptersVars? _$v; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + GToggleAutoDownloadNewChaptersVarsBuilder(); + + GToggleAutoDownloadNewChaptersVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleAutoDownloadNewChaptersVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleAutoDownloadNewChaptersVars; + } + + @override + void update( + void Function(GToggleAutoDownloadNewChaptersVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleAutoDownloadNewChaptersVars build() => _build(); + + _$GToggleAutoDownloadNewChaptersVars _build() { + final _$result = _$v ?? + new _$GToggleAutoDownloadNewChaptersVars._( + autoDownloadNewChapters: autoDownloadNewChapters, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.ast.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.ast.gql.dart new file mode 100644 index 00000000..70f8356f --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.ast.gql.dart @@ -0,0 +1,93 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleExcludeEntryWithUnreadChapters = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleExcludeEntryWithUnreadChapters'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + value: _i1.VariableNode( + name: _i1.NameNode( + value: 'excludeEntryWithUnreadChapters')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleExcludeEntryWithUnreadChapters, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.dart new file mode 100644 index 00000000..eebfdc5f --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.dart @@ -0,0 +1,189 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_entry_with_unread_chapters.data.gql.g.dart'; + +abstract class GToggleExcludeEntryWithUnreadChaptersData + implements + Built { + GToggleExcludeEntryWithUnreadChaptersData._(); + + factory GToggleExcludeEntryWithUnreadChaptersData( + [void Function(GToggleExcludeEntryWithUnreadChaptersDataBuilder b) + updates]) = _$GToggleExcludeEntryWithUnreadChaptersData; + + static void _initializeBuilder( + GToggleExcludeEntryWithUnreadChaptersDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeEntryWithUnreadChaptersData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleExcludeEntryWithUnreadChaptersDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeEntryWithUnreadChaptersData.serializer, + this, + ) as Map); + + static GToggleExcludeEntryWithUnreadChaptersData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeEntryWithUnreadChaptersData.serializer, + json, + ); +} + +abstract class GToggleExcludeEntryWithUnreadChaptersData_setSettings + implements + Built { + GToggleExcludeEntryWithUnreadChaptersData_setSettings._(); + + factory GToggleExcludeEntryWithUnreadChaptersData_setSettings( + [void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder b) + updates]) = _$GToggleExcludeEntryWithUnreadChaptersData_setSettings; + + static void _initializeBuilder( + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings get settings; + static Serializer + get serializer => + _$gToggleExcludeEntryWithUnreadChaptersDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeEntryWithUnreadChaptersData_setSettings.serializer, + this, + ) as Map); + + static GToggleExcludeEntryWithUnreadChaptersData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeEntryWithUnreadChaptersData_setSettings.serializer, + json, + ); +} + +abstract class GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings._(); + + factory GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings( + [void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder + b) + updates]) = + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings; + + static void _initializeBuilder( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder + b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer< + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings> + get serializer => + _$gToggleExcludeEntryWithUnreadChaptersDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + .serializer, + this, + ) as Map); + + static GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings? + fromJson(Map json) => _i1.serializers.deserializeWith( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + .serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.g.dart new file mode 100644 index 00000000..d3b13463 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.g.dart @@ -0,0 +1,1486 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_entry_with_unread_chapters.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeEntryWithUnreadChaptersDataSerializer = + new _$GToggleExcludeEntryWithUnreadChaptersDataSerializer(); +Serializer + _$gToggleExcludeEntryWithUnreadChaptersDataSetSettingsSerializer = + new _$GToggleExcludeEntryWithUnreadChaptersData_setSettingsSerializer(); +Serializer + _$gToggleExcludeEntryWithUnreadChaptersDataSetSettingsSettingsSerializer = + new _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsSerializer(); + +class _$GToggleExcludeEntryWithUnreadChaptersDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeEntryWithUnreadChaptersData, + _$GToggleExcludeEntryWithUnreadChaptersData + ]; + @override + final String wireName = 'GToggleExcludeEntryWithUnreadChaptersData'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeEntryWithUnreadChaptersData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType( + GToggleExcludeEntryWithUnreadChaptersData_setSettings)), + ]; + + return result; + } + + @override + GToggleExcludeEntryWithUnreadChaptersData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeEntryWithUnreadChaptersDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleExcludeEntryWithUnreadChaptersData_setSettings))! + as GToggleExcludeEntryWithUnreadChaptersData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeEntryWithUnreadChaptersData_setSettingsSerializer + implements + StructuredSerializer< + GToggleExcludeEntryWithUnreadChaptersData_setSettings> { + @override + final Iterable types = const [ + GToggleExcludeEntryWithUnreadChaptersData_setSettings, + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings + ]; + @override + final String wireName = + 'GToggleExcludeEntryWithUnreadChaptersData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GToggleExcludeEntryWithUnreadChaptersData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings))! + as GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsSerializer + implements + StructuredSerializer< + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings> { + @override + final Iterable types = const [ + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings, + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + ]; + @override + final String wireName = + 'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeEntryWithUnreadChaptersData + extends GToggleExcludeEntryWithUnreadChaptersData { + @override + final String G__typename; + @override + final GToggleExcludeEntryWithUnreadChaptersData_setSettings setSettings; + + factory _$GToggleExcludeEntryWithUnreadChaptersData( + [void Function(GToggleExcludeEntryWithUnreadChaptersDataBuilder)? + updates]) => + (new GToggleExcludeEntryWithUnreadChaptersDataBuilder()..update(updates)) + ._build(); + + _$GToggleExcludeEntryWithUnreadChaptersData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeEntryWithUnreadChaptersData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(setSettings, + r'GToggleExcludeEntryWithUnreadChaptersData', 'setSettings'); + } + + @override + GToggleExcludeEntryWithUnreadChaptersData rebuild( + void Function(GToggleExcludeEntryWithUnreadChaptersDataBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeEntryWithUnreadChaptersDataBuilder toBuilder() => + new GToggleExcludeEntryWithUnreadChaptersDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeEntryWithUnreadChaptersData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeEntryWithUnreadChaptersData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleExcludeEntryWithUnreadChaptersDataBuilder + implements + Builder { + _$GToggleExcludeEntryWithUnreadChaptersData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder? _setSettings; + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder + get setSettings => _$this._setSettings ??= + new GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder(); + set setSettings( + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder? + setSettings) => + _$this._setSettings = setSettings; + + GToggleExcludeEntryWithUnreadChaptersDataBuilder() { + GToggleExcludeEntryWithUnreadChaptersData._initializeBuilder(this); + } + + GToggleExcludeEntryWithUnreadChaptersDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeEntryWithUnreadChaptersData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeEntryWithUnreadChaptersData; + } + + @override + void update( + void Function(GToggleExcludeEntryWithUnreadChaptersDataBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeEntryWithUnreadChaptersData build() => _build(); + + _$GToggleExcludeEntryWithUnreadChaptersData _build() { + _$GToggleExcludeEntryWithUnreadChaptersData _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeEntryWithUnreadChaptersData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeEntryWithUnreadChaptersData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeEntryWithUnreadChaptersData', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeEntryWithUnreadChaptersData_setSettings + extends GToggleExcludeEntryWithUnreadChaptersData_setSettings { + @override + final String G__typename; + @override + final GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings settings; + + factory _$GToggleExcludeEntryWithUnreadChaptersData_setSettings( + [void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder)? + updates]) => + (new GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull(settings, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings', 'settings'); + } + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettings rebuild( + void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder toBuilder() => + new GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeEntryWithUnreadChaptersData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder + implements + Builder { + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder? + _settings; + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder + get settings => _$this._settings ??= + new GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder(); + set settings( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder() { + GToggleExcludeEntryWithUnreadChaptersData_setSettings._initializeBuilder( + this); + } + + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeEntryWithUnreadChaptersData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeEntryWithUnreadChaptersData_setSettings; + } + + @override + void update( + void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettings build() => _build(); + + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings _build() { + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeEntryWithUnreadChaptersData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings', + 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + extends GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings( + [void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder)? + updates]) => + (new GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings rebuild( + void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder + toBuilder() => + new GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder + implements + Builder { + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder() { + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + ._initializeBuilder(this); + } + + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other + as _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings; + } + + @override + void update( + void Function( + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings build() => + _build(); + + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings _build() { + _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + ._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.dart new file mode 100644 index 00000000..89c20126 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.dart @@ -0,0 +1,106 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_exclude_entry_with_unread_chapters.req.gql.g.dart'; + +abstract class GToggleExcludeEntryWithUnreadChaptersReq + implements + Built, + _i1.OperationRequest<_i2.GToggleExcludeEntryWithUnreadChaptersData, + _i3.GToggleExcludeEntryWithUnreadChaptersVars> { + GToggleExcludeEntryWithUnreadChaptersReq._(); + + factory GToggleExcludeEntryWithUnreadChaptersReq( + [void Function(GToggleExcludeEntryWithUnreadChaptersReqBuilder b) + updates]) = _$GToggleExcludeEntryWithUnreadChaptersReq; + + static void _initializeBuilder( + GToggleExcludeEntryWithUnreadChaptersReqBuilder b) => + b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleExcludeEntryWithUnreadChapters', + ) + ..executeOnListen = true; + + @override + _i3.GToggleExcludeEntryWithUnreadChaptersVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleExcludeEntryWithUnreadChaptersData? Function( + _i2.GToggleExcludeEntryWithUnreadChaptersData?, + _i2.GToggleExcludeEntryWithUnreadChaptersData?, + )? get updateResult; + @override + _i2.GToggleExcludeEntryWithUnreadChaptersData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleExcludeEntryWithUnreadChaptersData? parseData( + Map json) => + _i2.GToggleExcludeEntryWithUnreadChaptersData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson( + _i2.GToggleExcludeEntryWithUnreadChaptersData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleExcludeEntryWithUnreadChaptersData, + _i3.GToggleExcludeEntryWithUnreadChaptersVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleExcludeEntryWithUnreadChaptersReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleExcludeEntryWithUnreadChaptersReq.serializer, + this, + ) as Map); + + static GToggleExcludeEntryWithUnreadChaptersReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GToggleExcludeEntryWithUnreadChaptersReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.g.dart new file mode 100644 index 00000000..43ddc1ea --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.g.dart @@ -0,0 +1,400 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_entry_with_unread_chapters.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeEntryWithUnreadChaptersReqSerializer = + new _$GToggleExcludeEntryWithUnreadChaptersReqSerializer(); + +class _$GToggleExcludeEntryWithUnreadChaptersReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeEntryWithUnreadChaptersReq, + _$GToggleExcludeEntryWithUnreadChaptersReq + ]; + @override + final String wireName = 'GToggleExcludeEntryWithUnreadChaptersReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeEntryWithUnreadChaptersReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: + const FullType(_i3.GToggleExcludeEntryWithUnreadChaptersVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GToggleExcludeEntryWithUnreadChaptersData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleExcludeEntryWithUnreadChaptersReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeEntryWithUnreadChaptersReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType( + _i3.GToggleExcludeEntryWithUnreadChaptersVars))! + as _i3.GToggleExcludeEntryWithUnreadChaptersVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType( + _i2.GToggleExcludeEntryWithUnreadChaptersData))! + as _i2.GToggleExcludeEntryWithUnreadChaptersData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeEntryWithUnreadChaptersReq + extends GToggleExcludeEntryWithUnreadChaptersReq { + @override + final _i3.GToggleExcludeEntryWithUnreadChaptersVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleExcludeEntryWithUnreadChaptersData? Function( + _i2.GToggleExcludeEntryWithUnreadChaptersData?, + _i2.GToggleExcludeEntryWithUnreadChaptersData?)? updateResult; + @override + final _i2.GToggleExcludeEntryWithUnreadChaptersData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleExcludeEntryWithUnreadChaptersReq( + [void Function(GToggleExcludeEntryWithUnreadChaptersReqBuilder)? + updates]) => + (new GToggleExcludeEntryWithUnreadChaptersReqBuilder()..update(updates)) + ._build(); + + _$GToggleExcludeEntryWithUnreadChaptersReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleExcludeEntryWithUnreadChaptersReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleExcludeEntryWithUnreadChaptersReq', 'operation'); + BuiltValueNullFieldError.checkNotNull(executeOnListen, + r'GToggleExcludeEntryWithUnreadChaptersReq', 'executeOnListen'); + } + + @override + GToggleExcludeEntryWithUnreadChaptersReq rebuild( + void Function(GToggleExcludeEntryWithUnreadChaptersReqBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeEntryWithUnreadChaptersReqBuilder toBuilder() => + new GToggleExcludeEntryWithUnreadChaptersReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleExcludeEntryWithUnreadChaptersReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeEntryWithUnreadChaptersReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleExcludeEntryWithUnreadChaptersReqBuilder + implements + Builder { + _$GToggleExcludeEntryWithUnreadChaptersReq? _$v; + + _i3.GToggleExcludeEntryWithUnreadChaptersVarsBuilder? _vars; + _i3.GToggleExcludeEntryWithUnreadChaptersVarsBuilder get vars => + _$this._vars ??= + new _i3.GToggleExcludeEntryWithUnreadChaptersVarsBuilder(); + set vars(_i3.GToggleExcludeEntryWithUnreadChaptersVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleExcludeEntryWithUnreadChaptersData? Function( + _i2.GToggleExcludeEntryWithUnreadChaptersData?, + _i2.GToggleExcludeEntryWithUnreadChaptersData?)? _updateResult; + _i2.GToggleExcludeEntryWithUnreadChaptersData? Function( + _i2.GToggleExcludeEntryWithUnreadChaptersData?, + _i2.GToggleExcludeEntryWithUnreadChaptersData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleExcludeEntryWithUnreadChaptersData? Function( + _i2.GToggleExcludeEntryWithUnreadChaptersData?, + _i2.GToggleExcludeEntryWithUnreadChaptersData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleExcludeEntryWithUnreadChaptersDataBuilder? _optimisticResponse; + _i2.GToggleExcludeEntryWithUnreadChaptersDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GToggleExcludeEntryWithUnreadChaptersDataBuilder(); + set optimisticResponse( + _i2.GToggleExcludeEntryWithUnreadChaptersDataBuilder? + optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleExcludeEntryWithUnreadChaptersReqBuilder() { + GToggleExcludeEntryWithUnreadChaptersReq._initializeBuilder(this); + } + + GToggleExcludeEntryWithUnreadChaptersReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeEntryWithUnreadChaptersReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeEntryWithUnreadChaptersReq; + } + + @override + void update( + void Function(GToggleExcludeEntryWithUnreadChaptersReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeEntryWithUnreadChaptersReq build() => _build(); + + _$GToggleExcludeEntryWithUnreadChaptersReq _build() { + _$GToggleExcludeEntryWithUnreadChaptersReq _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeEntryWithUnreadChaptersReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull(operation, + r'GToggleExcludeEntryWithUnreadChaptersReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleExcludeEntryWithUnreadChaptersReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeEntryWithUnreadChaptersReq', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.dart new file mode 100644 index 00000000..3e141a94 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_entry_with_unread_chapters.var.gql.g.dart'; + +abstract class GToggleExcludeEntryWithUnreadChaptersVars + implements + Built { + GToggleExcludeEntryWithUnreadChaptersVars._(); + + factory GToggleExcludeEntryWithUnreadChaptersVars( + [void Function(GToggleExcludeEntryWithUnreadChaptersVarsBuilder b) + updates]) = _$GToggleExcludeEntryWithUnreadChaptersVars; + + bool? get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gToggleExcludeEntryWithUnreadChaptersVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeEntryWithUnreadChaptersVars.serializer, + this, + ) as Map); + + static GToggleExcludeEntryWithUnreadChaptersVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeEntryWithUnreadChaptersVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.g.dart new file mode 100644 index 00000000..f6a5f6cf --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.g.dart @@ -0,0 +1,161 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_entry_with_unread_chapters.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeEntryWithUnreadChaptersVarsSerializer = + new _$GToggleExcludeEntryWithUnreadChaptersVarsSerializer(); + +class _$GToggleExcludeEntryWithUnreadChaptersVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeEntryWithUnreadChaptersVars, + _$GToggleExcludeEntryWithUnreadChaptersVars + ]; + @override + final String wireName = 'GToggleExcludeEntryWithUnreadChaptersVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeEntryWithUnreadChaptersVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.excludeEntryWithUnreadChapters; + if (value != null) { + result + ..add('excludeEntryWithUnreadChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleExcludeEntryWithUnreadChaptersVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeEntryWithUnreadChaptersVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeEntryWithUnreadChaptersVars + extends GToggleExcludeEntryWithUnreadChaptersVars { + @override + final bool? excludeEntryWithUnreadChapters; + + factory _$GToggleExcludeEntryWithUnreadChaptersVars( + [void Function(GToggleExcludeEntryWithUnreadChaptersVarsBuilder)? + updates]) => + (new GToggleExcludeEntryWithUnreadChaptersVarsBuilder()..update(updates)) + ._build(); + + _$GToggleExcludeEntryWithUnreadChaptersVars._( + {this.excludeEntryWithUnreadChapters}) + : super._(); + + @override + GToggleExcludeEntryWithUnreadChaptersVars rebuild( + void Function(GToggleExcludeEntryWithUnreadChaptersVarsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeEntryWithUnreadChaptersVarsBuilder toBuilder() => + new GToggleExcludeEntryWithUnreadChaptersVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeEntryWithUnreadChaptersVars && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeEntryWithUnreadChaptersVars') + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleExcludeEntryWithUnreadChaptersVarsBuilder + implements + Builder { + _$GToggleExcludeEntryWithUnreadChaptersVars? _$v; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleExcludeEntryWithUnreadChaptersVarsBuilder(); + + GToggleExcludeEntryWithUnreadChaptersVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeEntryWithUnreadChaptersVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeEntryWithUnreadChaptersVars; + } + + @override + void update( + void Function(GToggleExcludeEntryWithUnreadChaptersVarsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeEntryWithUnreadChaptersVars build() => _build(); + + _$GToggleExcludeEntryWithUnreadChaptersVars _build() { + final _$result = _$v ?? + new _$GToggleExcludeEntryWithUnreadChaptersVars._( + excludeEntryWithUnreadChapters: excludeEntryWithUnreadChapters, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.ast.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.ast.gql.dart new file mode 100644 index 00000000..ea10a95c --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateAutoDownloadNewChaptersLimit = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateAutoDownloadNewChaptersLimit'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '3')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + value: _i1.VariableNode( + name: + _i1.NameNode(value: 'autoDownloadNewChaptersLimit')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateAutoDownloadNewChaptersLimit, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.dart new file mode 100644 index 00000000..21fdff4b --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.dart @@ -0,0 +1,188 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_auto_download_new_chapters_limit.data.gql.g.dart'; + +abstract class GUpdateAutoDownloadNewChaptersLimitData + implements + Built { + GUpdateAutoDownloadNewChaptersLimitData._(); + + factory GUpdateAutoDownloadNewChaptersLimitData( + [void Function(GUpdateAutoDownloadNewChaptersLimitDataBuilder b) + updates]) = _$GUpdateAutoDownloadNewChaptersLimitData; + + static void _initializeBuilder( + GUpdateAutoDownloadNewChaptersLimitDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateAutoDownloadNewChaptersLimitData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateAutoDownloadNewChaptersLimitDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateAutoDownloadNewChaptersLimitData.serializer, + this, + ) as Map); + + static GUpdateAutoDownloadNewChaptersLimitData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateAutoDownloadNewChaptersLimitData.serializer, + json, + ); +} + +abstract class GUpdateAutoDownloadNewChaptersLimitData_setSettings + implements + Built { + GUpdateAutoDownloadNewChaptersLimitData_setSettings._(); + + factory GUpdateAutoDownloadNewChaptersLimitData_setSettings( + [void Function( + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder b) + updates]) = _$GUpdateAutoDownloadNewChaptersLimitData_setSettings; + + static void _initializeBuilder( + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings get settings; + static Serializer + get serializer => + _$gUpdateAutoDownloadNewChaptersLimitDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateAutoDownloadNewChaptersLimitData_setSettings.serializer, + this, + ) as Map); + + static GUpdateAutoDownloadNewChaptersLimitData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateAutoDownloadNewChaptersLimitData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings._(); + + factory GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings( + [void Function( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder + b) + updates]) = + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings; + + static void _initializeBuilder( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder + b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer< + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings> + get serializer => + _$gUpdateAutoDownloadNewChaptersLimitDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.g.dart new file mode 100644 index 00000000..57d65bdb --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.g.dart @@ -0,0 +1,1478 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_auto_download_new_chapters_limit.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateAutoDownloadNewChaptersLimitDataSerializer = + new _$GUpdateAutoDownloadNewChaptersLimitDataSerializer(); +Serializer + _$gUpdateAutoDownloadNewChaptersLimitDataSetSettingsSerializer = + new _$GUpdateAutoDownloadNewChaptersLimitData_setSettingsSerializer(); +Serializer + _$gUpdateAutoDownloadNewChaptersLimitDataSetSettingsSettingsSerializer = + new _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsSerializer(); + +class _$GUpdateAutoDownloadNewChaptersLimitDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateAutoDownloadNewChaptersLimitData, + _$GUpdateAutoDownloadNewChaptersLimitData + ]; + @override + final String wireName = 'GUpdateAutoDownloadNewChaptersLimitData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateAutoDownloadNewChaptersLimitData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType( + GUpdateAutoDownloadNewChaptersLimitData_setSettings)), + ]; + + return result; + } + + @override + GUpdateAutoDownloadNewChaptersLimitData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateAutoDownloadNewChaptersLimitDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateAutoDownloadNewChaptersLimitData_setSettings))! + as GUpdateAutoDownloadNewChaptersLimitData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateAutoDownloadNewChaptersLimitData_setSettingsSerializer + implements + StructuredSerializer< + GUpdateAutoDownloadNewChaptersLimitData_setSettings> { + @override + final Iterable types = const [ + GUpdateAutoDownloadNewChaptersLimitData_setSettings, + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings + ]; + @override + final String wireName = 'GUpdateAutoDownloadNewChaptersLimitData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateAutoDownloadNewChaptersLimitData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings))! + as GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings, + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings + ]; + @override + final String wireName = + 'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateAutoDownloadNewChaptersLimitData + extends GUpdateAutoDownloadNewChaptersLimitData { + @override + final String G__typename; + @override + final GUpdateAutoDownloadNewChaptersLimitData_setSettings setSettings; + + factory _$GUpdateAutoDownloadNewChaptersLimitData( + [void Function(GUpdateAutoDownloadNewChaptersLimitDataBuilder)? + updates]) => + (new GUpdateAutoDownloadNewChaptersLimitDataBuilder()..update(updates)) + ._build(); + + _$GUpdateAutoDownloadNewChaptersLimitData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateAutoDownloadNewChaptersLimitData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateAutoDownloadNewChaptersLimitData', 'setSettings'); + } + + @override + GUpdateAutoDownloadNewChaptersLimitData rebuild( + void Function(GUpdateAutoDownloadNewChaptersLimitDataBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateAutoDownloadNewChaptersLimitDataBuilder toBuilder() => + new GUpdateAutoDownloadNewChaptersLimitDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateAutoDownloadNewChaptersLimitData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateAutoDownloadNewChaptersLimitData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateAutoDownloadNewChaptersLimitDataBuilder + implements + Builder { + _$GUpdateAutoDownloadNewChaptersLimitData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder? _setSettings; + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder(); + set setSettings( + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder? + setSettings) => + _$this._setSettings = setSettings; + + GUpdateAutoDownloadNewChaptersLimitDataBuilder() { + GUpdateAutoDownloadNewChaptersLimitData._initializeBuilder(this); + } + + GUpdateAutoDownloadNewChaptersLimitDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateAutoDownloadNewChaptersLimitData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateAutoDownloadNewChaptersLimitData; + } + + @override + void update( + void Function(GUpdateAutoDownloadNewChaptersLimitDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateAutoDownloadNewChaptersLimitData build() => _build(); + + _$GUpdateAutoDownloadNewChaptersLimitData _build() { + _$GUpdateAutoDownloadNewChaptersLimitData _$result; + try { + _$result = _$v ?? + new _$GUpdateAutoDownloadNewChaptersLimitData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateAutoDownloadNewChaptersLimitData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateAutoDownloadNewChaptersLimitData', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateAutoDownloadNewChaptersLimitData_setSettings + extends GUpdateAutoDownloadNewChaptersLimitData_setSettings { + @override + final String G__typename; + @override + final GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings settings; + + factory _$GUpdateAutoDownloadNewChaptersLimitData_setSettings( + [void Function( + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder)? + updates]) => + (new GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(settings, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings', 'settings'); + } + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettings rebuild( + void Function( + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder toBuilder() => + new GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateAutoDownloadNewChaptersLimitData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder + implements + Builder { + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder? + _settings; + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder + get settings => _$this._settings ??= + new GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder(); + set settings( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder() { + GUpdateAutoDownloadNewChaptersLimitData_setSettings._initializeBuilder( + this); + } + + GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateAutoDownloadNewChaptersLimitData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateAutoDownloadNewChaptersLimitData_setSettings; + } + + @override + void update( + void Function(GUpdateAutoDownloadNewChaptersLimitData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettings build() => _build(); + + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings _build() { + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateAutoDownloadNewChaptersLimitData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings', + 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings + extends GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings( + [void Function( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupTime'); + BuiltValueNullFieldError.checkNotNull(ip, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings rebuild( + void Function( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder + toBuilder() => + new GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other + is GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder() { + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings + ._initializeBuilder(this); + } + + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder + get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = + other as _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings; + } + + @override + void update( + void Function( + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings build() => + _build(); + + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings _build() { + _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.req.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.req.gql.dart new file mode 100644 index 00000000..42e364b3 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.req.gql.dart @@ -0,0 +1,106 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_auto_download_new_chapters_limit.req.gql.g.dart'; + +abstract class GUpdateAutoDownloadNewChaptersLimitReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateAutoDownloadNewChaptersLimitData, + _i3.GUpdateAutoDownloadNewChaptersLimitVars> { + GUpdateAutoDownloadNewChaptersLimitReq._(); + + factory GUpdateAutoDownloadNewChaptersLimitReq( + [void Function(GUpdateAutoDownloadNewChaptersLimitReqBuilder b) + updates]) = _$GUpdateAutoDownloadNewChaptersLimitReq; + + static void _initializeBuilder( + GUpdateAutoDownloadNewChaptersLimitReqBuilder b) => + b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateAutoDownloadNewChaptersLimit', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateAutoDownloadNewChaptersLimitVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateAutoDownloadNewChaptersLimitData? Function( + _i2.GUpdateAutoDownloadNewChaptersLimitData?, + _i2.GUpdateAutoDownloadNewChaptersLimitData?, + )? get updateResult; + @override + _i2.GUpdateAutoDownloadNewChaptersLimitData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateAutoDownloadNewChaptersLimitData? parseData( + Map json) => + _i2.GUpdateAutoDownloadNewChaptersLimitData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson( + _i2.GUpdateAutoDownloadNewChaptersLimitData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateAutoDownloadNewChaptersLimitData, + _i3.GUpdateAutoDownloadNewChaptersLimitVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateAutoDownloadNewChaptersLimitReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateAutoDownloadNewChaptersLimitReq.serializer, + this, + ) as Map); + + static GUpdateAutoDownloadNewChaptersLimitReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GUpdateAutoDownloadNewChaptersLimitReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.req.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.req.gql.g.dart new file mode 100644 index 00000000..cc0d8741 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.req.gql.g.dart @@ -0,0 +1,399 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_auto_download_new_chapters_limit.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateAutoDownloadNewChaptersLimitReqSerializer = + new _$GUpdateAutoDownloadNewChaptersLimitReqSerializer(); + +class _$GUpdateAutoDownloadNewChaptersLimitReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateAutoDownloadNewChaptersLimitReq, + _$GUpdateAutoDownloadNewChaptersLimitReq + ]; + @override + final String wireName = 'GUpdateAutoDownloadNewChaptersLimitReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateAutoDownloadNewChaptersLimitReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: + const FullType(_i3.GUpdateAutoDownloadNewChaptersLimitVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GUpdateAutoDownloadNewChaptersLimitData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateAutoDownloadNewChaptersLimitReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateAutoDownloadNewChaptersLimitReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType( + _i3.GUpdateAutoDownloadNewChaptersLimitVars))! + as _i3.GUpdateAutoDownloadNewChaptersLimitVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType( + _i2.GUpdateAutoDownloadNewChaptersLimitData))! + as _i2.GUpdateAutoDownloadNewChaptersLimitData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateAutoDownloadNewChaptersLimitReq + extends GUpdateAutoDownloadNewChaptersLimitReq { + @override + final _i3.GUpdateAutoDownloadNewChaptersLimitVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateAutoDownloadNewChaptersLimitData? Function( + _i2.GUpdateAutoDownloadNewChaptersLimitData?, + _i2.GUpdateAutoDownloadNewChaptersLimitData?)? updateResult; + @override + final _i2.GUpdateAutoDownloadNewChaptersLimitData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateAutoDownloadNewChaptersLimitReq( + [void Function(GUpdateAutoDownloadNewChaptersLimitReqBuilder)? + updates]) => + (new GUpdateAutoDownloadNewChaptersLimitReqBuilder()..update(updates)) + ._build(); + + _$GUpdateAutoDownloadNewChaptersLimitReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateAutoDownloadNewChaptersLimitReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateAutoDownloadNewChaptersLimitReq', 'operation'); + BuiltValueNullFieldError.checkNotNull(executeOnListen, + r'GUpdateAutoDownloadNewChaptersLimitReq', 'executeOnListen'); + } + + @override + GUpdateAutoDownloadNewChaptersLimitReq rebuild( + void Function(GUpdateAutoDownloadNewChaptersLimitReqBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateAutoDownloadNewChaptersLimitReqBuilder toBuilder() => + new GUpdateAutoDownloadNewChaptersLimitReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateAutoDownloadNewChaptersLimitReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateAutoDownloadNewChaptersLimitReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateAutoDownloadNewChaptersLimitReqBuilder + implements + Builder { + _$GUpdateAutoDownloadNewChaptersLimitReq? _$v; + + _i3.GUpdateAutoDownloadNewChaptersLimitVarsBuilder? _vars; + _i3.GUpdateAutoDownloadNewChaptersLimitVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateAutoDownloadNewChaptersLimitVarsBuilder(); + set vars(_i3.GUpdateAutoDownloadNewChaptersLimitVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateAutoDownloadNewChaptersLimitData? Function( + _i2.GUpdateAutoDownloadNewChaptersLimitData?, + _i2.GUpdateAutoDownloadNewChaptersLimitData?)? _updateResult; + _i2.GUpdateAutoDownloadNewChaptersLimitData? Function( + _i2.GUpdateAutoDownloadNewChaptersLimitData?, + _i2.GUpdateAutoDownloadNewChaptersLimitData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateAutoDownloadNewChaptersLimitData? Function( + _i2.GUpdateAutoDownloadNewChaptersLimitData?, + _i2.GUpdateAutoDownloadNewChaptersLimitData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateAutoDownloadNewChaptersLimitDataBuilder? _optimisticResponse; + _i2.GUpdateAutoDownloadNewChaptersLimitDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateAutoDownloadNewChaptersLimitDataBuilder(); + set optimisticResponse( + _i2.GUpdateAutoDownloadNewChaptersLimitDataBuilder? + optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateAutoDownloadNewChaptersLimitReqBuilder() { + GUpdateAutoDownloadNewChaptersLimitReq._initializeBuilder(this); + } + + GUpdateAutoDownloadNewChaptersLimitReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateAutoDownloadNewChaptersLimitReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateAutoDownloadNewChaptersLimitReq; + } + + @override + void update( + void Function(GUpdateAutoDownloadNewChaptersLimitReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateAutoDownloadNewChaptersLimitReq build() => _build(); + + _$GUpdateAutoDownloadNewChaptersLimitReq _build() { + _$GUpdateAutoDownloadNewChaptersLimitReq _$result; + try { + _$result = _$v ?? + new _$GUpdateAutoDownloadNewChaptersLimitReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull(operation, + r'GUpdateAutoDownloadNewChaptersLimitReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateAutoDownloadNewChaptersLimitReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateAutoDownloadNewChaptersLimitReq', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.dart new file mode 100644 index 00000000..06283497 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_auto_download_new_chapters_limit.var.gql.g.dart'; + +abstract class GUpdateAutoDownloadNewChaptersLimitVars + implements + Built { + GUpdateAutoDownloadNewChaptersLimitVars._(); + + factory GUpdateAutoDownloadNewChaptersLimitVars( + [void Function(GUpdateAutoDownloadNewChaptersLimitVarsBuilder b) + updates]) = _$GUpdateAutoDownloadNewChaptersLimitVars; + + int? get autoDownloadNewChaptersLimit; + static Serializer get serializer => + _$gUpdateAutoDownloadNewChaptersLimitVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateAutoDownloadNewChaptersLimitVars.serializer, + this, + ) as Map); + + static GUpdateAutoDownloadNewChaptersLimitVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateAutoDownloadNewChaptersLimitVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.g.dart new file mode 100644 index 00000000..adbde68a --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.g.dart @@ -0,0 +1,157 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_auto_download_new_chapters_limit.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateAutoDownloadNewChaptersLimitVarsSerializer = + new _$GUpdateAutoDownloadNewChaptersLimitVarsSerializer(); + +class _$GUpdateAutoDownloadNewChaptersLimitVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateAutoDownloadNewChaptersLimitVars, + _$GUpdateAutoDownloadNewChaptersLimitVars + ]; + @override + final String wireName = 'GUpdateAutoDownloadNewChaptersLimitVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateAutoDownloadNewChaptersLimitVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.autoDownloadNewChaptersLimit; + if (value != null) { + result + ..add('autoDownloadNewChaptersLimit') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateAutoDownloadNewChaptersLimitVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateAutoDownloadNewChaptersLimitVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateAutoDownloadNewChaptersLimitVars + extends GUpdateAutoDownloadNewChaptersLimitVars { + @override + final int? autoDownloadNewChaptersLimit; + + factory _$GUpdateAutoDownloadNewChaptersLimitVars( + [void Function(GUpdateAutoDownloadNewChaptersLimitVarsBuilder)? + updates]) => + (new GUpdateAutoDownloadNewChaptersLimitVarsBuilder()..update(updates)) + ._build(); + + _$GUpdateAutoDownloadNewChaptersLimitVars._( + {this.autoDownloadNewChaptersLimit}) + : super._(); + + @override + GUpdateAutoDownloadNewChaptersLimitVars rebuild( + void Function(GUpdateAutoDownloadNewChaptersLimitVarsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateAutoDownloadNewChaptersLimitVarsBuilder toBuilder() => + new GUpdateAutoDownloadNewChaptersLimitVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateAutoDownloadNewChaptersLimitVars && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateAutoDownloadNewChaptersLimitVars') + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit)) + .toString(); + } +} + +class GUpdateAutoDownloadNewChaptersLimitVarsBuilder + implements + Builder { + _$GUpdateAutoDownloadNewChaptersLimitVars? _$v; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + GUpdateAutoDownloadNewChaptersLimitVarsBuilder(); + + GUpdateAutoDownloadNewChaptersLimitVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateAutoDownloadNewChaptersLimitVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateAutoDownloadNewChaptersLimitVars; + } + + @override + void update( + void Function(GUpdateAutoDownloadNewChaptersLimitVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateAutoDownloadNewChaptersLimitVars build() => _build(); + + _$GUpdateAutoDownloadNewChaptersLimitVars _build() { + final _$result = _$v ?? + new _$GUpdateAutoDownloadNewChaptersLimitVars._( + autoDownloadNewChaptersLimit: autoDownloadNewChaptersLimit, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.ast.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.ast.gql.dart new file mode 100644 index 00000000..3825aa32 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateDownloadAsCbz = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateDownloadAsCbz'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'downloadAsCbz')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'downloadAsCbz')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateDownloadAsCbz, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.dart new file mode 100644 index 00000000..0de1e937 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.dart @@ -0,0 +1,177 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_download_as_cbz.data.gql.g.dart'; + +abstract class GUpdateDownloadAsCbzData + implements + Built { + GUpdateDownloadAsCbzData._(); + + factory GUpdateDownloadAsCbzData( + [void Function(GUpdateDownloadAsCbzDataBuilder b) updates]) = + _$GUpdateDownloadAsCbzData; + + static void _initializeBuilder(GUpdateDownloadAsCbzDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateDownloadAsCbzData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateDownloadAsCbzDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadAsCbzData.serializer, + this, + ) as Map); + + static GUpdateDownloadAsCbzData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadAsCbzData.serializer, + json, + ); +} + +abstract class GUpdateDownloadAsCbzData_setSettings + implements + Built { + GUpdateDownloadAsCbzData_setSettings._(); + + factory GUpdateDownloadAsCbzData_setSettings( + [void Function(GUpdateDownloadAsCbzData_setSettingsBuilder b) + updates]) = _$GUpdateDownloadAsCbzData_setSettings; + + static void _initializeBuilder( + GUpdateDownloadAsCbzData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateDownloadAsCbzData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateDownloadAsCbzDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadAsCbzData_setSettings.serializer, + this, + ) as Map); + + static GUpdateDownloadAsCbzData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadAsCbzData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateDownloadAsCbzData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateDownloadAsCbzData_setSettings_settings._(); + + factory GUpdateDownloadAsCbzData_setSettings_settings( + [void Function(GUpdateDownloadAsCbzData_setSettings_settingsBuilder b) + updates]) = _$GUpdateDownloadAsCbzData_setSettings_settings; + + static void _initializeBuilder( + GUpdateDownloadAsCbzData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gUpdateDownloadAsCbzDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadAsCbzData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateDownloadAsCbzData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadAsCbzData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.g.dart new file mode 100644 index 00000000..1d0dd37d --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.g.dart @@ -0,0 +1,1382 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_download_as_cbz.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateDownloadAsCbzDataSerializer = + new _$GUpdateDownloadAsCbzDataSerializer(); +Serializer + _$gUpdateDownloadAsCbzDataSetSettingsSerializer = + new _$GUpdateDownloadAsCbzData_setSettingsSerializer(); +Serializer + _$gUpdateDownloadAsCbzDataSetSettingsSettingsSerializer = + new _$GUpdateDownloadAsCbzData_setSettings_settingsSerializer(); + +class _$GUpdateDownloadAsCbzDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadAsCbzData, + _$GUpdateDownloadAsCbzData + ]; + @override + final String wireName = 'GUpdateDownloadAsCbzData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadAsCbzData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateDownloadAsCbzData_setSettings)), + ]; + + return result; + } + + @override + GUpdateDownloadAsCbzData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadAsCbzDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateDownloadAsCbzData_setSettings))! + as GUpdateDownloadAsCbzData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadAsCbzData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadAsCbzData_setSettings, + _$GUpdateDownloadAsCbzData_setSettings + ]; + @override + final String wireName = 'GUpdateDownloadAsCbzData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadAsCbzData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateDownloadAsCbzData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateDownloadAsCbzData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadAsCbzData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateDownloadAsCbzData_setSettings_settings))! + as GUpdateDownloadAsCbzData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadAsCbzData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadAsCbzData_setSettings_settings, + _$GUpdateDownloadAsCbzData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateDownloadAsCbzData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateDownloadAsCbzData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateDownloadAsCbzData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadAsCbzData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadAsCbzData extends GUpdateDownloadAsCbzData { + @override + final String G__typename; + @override + final GUpdateDownloadAsCbzData_setSettings setSettings; + + factory _$GUpdateDownloadAsCbzData( + [void Function(GUpdateDownloadAsCbzDataBuilder)? updates]) => + (new GUpdateDownloadAsCbzDataBuilder()..update(updates))._build(); + + _$GUpdateDownloadAsCbzData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateDownloadAsCbzData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateDownloadAsCbzData', 'setSettings'); + } + + @override + GUpdateDownloadAsCbzData rebuild( + void Function(GUpdateDownloadAsCbzDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadAsCbzDataBuilder toBuilder() => + new GUpdateDownloadAsCbzDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadAsCbzData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateDownloadAsCbzData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateDownloadAsCbzDataBuilder + implements + Builder { + _$GUpdateDownloadAsCbzData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateDownloadAsCbzData_setSettingsBuilder? _setSettings; + GUpdateDownloadAsCbzData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateDownloadAsCbzData_setSettingsBuilder(); + set setSettings(GUpdateDownloadAsCbzData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateDownloadAsCbzDataBuilder() { + GUpdateDownloadAsCbzData._initializeBuilder(this); + } + + GUpdateDownloadAsCbzDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadAsCbzData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadAsCbzData; + } + + @override + void update(void Function(GUpdateDownloadAsCbzDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadAsCbzData build() => _build(); + + _$GUpdateDownloadAsCbzData _build() { + _$GUpdateDownloadAsCbzData _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadAsCbzData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateDownloadAsCbzData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadAsCbzData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateDownloadAsCbzData_setSettings + extends GUpdateDownloadAsCbzData_setSettings { + @override + final String G__typename; + @override + final GUpdateDownloadAsCbzData_setSettings_settings settings; + + factory _$GUpdateDownloadAsCbzData_setSettings( + [void Function(GUpdateDownloadAsCbzData_setSettingsBuilder)? + updates]) => + (new GUpdateDownloadAsCbzData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateDownloadAsCbzData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateDownloadAsCbzData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateDownloadAsCbzData_setSettings', 'settings'); + } + + @override + GUpdateDownloadAsCbzData_setSettings rebuild( + void Function(GUpdateDownloadAsCbzData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadAsCbzData_setSettingsBuilder toBuilder() => + new GUpdateDownloadAsCbzData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadAsCbzData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateDownloadAsCbzData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateDownloadAsCbzData_setSettingsBuilder + implements + Builder { + _$GUpdateDownloadAsCbzData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateDownloadAsCbzData_setSettings_settingsBuilder? _settings; + GUpdateDownloadAsCbzData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateDownloadAsCbzData_setSettings_settingsBuilder(); + set settings( + GUpdateDownloadAsCbzData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateDownloadAsCbzData_setSettingsBuilder() { + GUpdateDownloadAsCbzData_setSettings._initializeBuilder(this); + } + + GUpdateDownloadAsCbzData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadAsCbzData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadAsCbzData_setSettings; + } + + @override + void update( + void Function(GUpdateDownloadAsCbzData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadAsCbzData_setSettings build() => _build(); + + _$GUpdateDownloadAsCbzData_setSettings _build() { + _$GUpdateDownloadAsCbzData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadAsCbzData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateDownloadAsCbzData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadAsCbzData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateDownloadAsCbzData_setSettings_settings + extends GUpdateDownloadAsCbzData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateDownloadAsCbzData_setSettings_settings( + [void Function(GUpdateDownloadAsCbzData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateDownloadAsCbzData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateDownloadAsCbzData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateDownloadAsCbzData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateDownloadAsCbzData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateDownloadAsCbzData_setSettings_settings rebuild( + void Function(GUpdateDownloadAsCbzData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadAsCbzData_setSettings_settingsBuilder toBuilder() => + new GUpdateDownloadAsCbzData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadAsCbzData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateDownloadAsCbzData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateDownloadAsCbzData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateDownloadAsCbzData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateDownloadAsCbzData_setSettings_settingsBuilder() { + GUpdateDownloadAsCbzData_setSettings_settings._initializeBuilder(this); + } + + GUpdateDownloadAsCbzData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadAsCbzData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadAsCbzData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateDownloadAsCbzData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadAsCbzData_setSettings_settings build() => _build(); + + _$GUpdateDownloadAsCbzData_setSettings_settings _build() { + _$GUpdateDownloadAsCbzData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadAsCbzData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateDownloadAsCbzData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateDownloadAsCbzData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateDownloadAsCbzData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateDownloadAsCbzData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadAsCbzData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.req.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.req.gql.dart new file mode 100644 index 00000000..9f57cbe3 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_download_as_cbz.req.gql.g.dart'; + +abstract class GUpdateDownloadAsCbzReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateDownloadAsCbzData, + _i3.GUpdateDownloadAsCbzVars> { + GUpdateDownloadAsCbzReq._(); + + factory GUpdateDownloadAsCbzReq( + [void Function(GUpdateDownloadAsCbzReqBuilder b) updates]) = + _$GUpdateDownloadAsCbzReq; + + static void _initializeBuilder(GUpdateDownloadAsCbzReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateDownloadAsCbz', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateDownloadAsCbzVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateDownloadAsCbzData? Function( + _i2.GUpdateDownloadAsCbzData?, + _i2.GUpdateDownloadAsCbzData?, + )? get updateResult; + @override + _i2.GUpdateDownloadAsCbzData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateDownloadAsCbzData? parseData(Map json) => + _i2.GUpdateDownloadAsCbzData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateDownloadAsCbzData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateDownloadAsCbzData, + _i3.GUpdateDownloadAsCbzVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateDownloadAsCbzReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateDownloadAsCbzReq.serializer, + this, + ) as Map); + + static GUpdateDownloadAsCbzReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateDownloadAsCbzReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.req.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.req.gql.g.dart new file mode 100644 index 00000000..13a177a6 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.req.gql.g.dart @@ -0,0 +1,378 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_download_as_cbz.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateDownloadAsCbzReqSerializer = + new _$GUpdateDownloadAsCbzReqSerializer(); + +class _$GUpdateDownloadAsCbzReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadAsCbzReq, + _$GUpdateDownloadAsCbzReq + ]; + @override + final String wireName = 'GUpdateDownloadAsCbzReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadAsCbzReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateDownloadAsCbzVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateDownloadAsCbzData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateDownloadAsCbzReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadAsCbzReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateDownloadAsCbzVars))! + as _i3.GUpdateDownloadAsCbzVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateDownloadAsCbzData))! + as _i2.GUpdateDownloadAsCbzData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadAsCbzReq extends GUpdateDownloadAsCbzReq { + @override + final _i3.GUpdateDownloadAsCbzVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateDownloadAsCbzData? Function( + _i2.GUpdateDownloadAsCbzData?, _i2.GUpdateDownloadAsCbzData?)? + updateResult; + @override + final _i2.GUpdateDownloadAsCbzData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateDownloadAsCbzReq( + [void Function(GUpdateDownloadAsCbzReqBuilder)? updates]) => + (new GUpdateDownloadAsCbzReqBuilder()..update(updates))._build(); + + _$GUpdateDownloadAsCbzReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateDownloadAsCbzReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateDownloadAsCbzReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateDownloadAsCbzReq', 'executeOnListen'); + } + + @override + GUpdateDownloadAsCbzReq rebuild( + void Function(GUpdateDownloadAsCbzReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadAsCbzReqBuilder toBuilder() => + new GUpdateDownloadAsCbzReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateDownloadAsCbzReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateDownloadAsCbzReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateDownloadAsCbzReqBuilder + implements + Builder { + _$GUpdateDownloadAsCbzReq? _$v; + + _i3.GUpdateDownloadAsCbzVarsBuilder? _vars; + _i3.GUpdateDownloadAsCbzVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateDownloadAsCbzVarsBuilder(); + set vars(_i3.GUpdateDownloadAsCbzVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateDownloadAsCbzData? Function( + _i2.GUpdateDownloadAsCbzData?, _i2.GUpdateDownloadAsCbzData?)? + _updateResult; + _i2.GUpdateDownloadAsCbzData? Function( + _i2.GUpdateDownloadAsCbzData?, _i2.GUpdateDownloadAsCbzData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateDownloadAsCbzData? Function( + _i2.GUpdateDownloadAsCbzData?, _i2.GUpdateDownloadAsCbzData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateDownloadAsCbzDataBuilder? _optimisticResponse; + _i2.GUpdateDownloadAsCbzDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateDownloadAsCbzDataBuilder(); + set optimisticResponse( + _i2.GUpdateDownloadAsCbzDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateDownloadAsCbzReqBuilder() { + GUpdateDownloadAsCbzReq._initializeBuilder(this); + } + + GUpdateDownloadAsCbzReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadAsCbzReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadAsCbzReq; + } + + @override + void update(void Function(GUpdateDownloadAsCbzReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadAsCbzReq build() => _build(); + + _$GUpdateDownloadAsCbzReq _build() { + _$GUpdateDownloadAsCbzReq _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadAsCbzReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateDownloadAsCbzReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateDownloadAsCbzReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadAsCbzReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.dart new file mode 100644 index 00000000..4a2cbda7 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_download_as_cbz.var.gql.g.dart'; + +abstract class GUpdateDownloadAsCbzVars + implements + Built { + GUpdateDownloadAsCbzVars._(); + + factory GUpdateDownloadAsCbzVars( + [void Function(GUpdateDownloadAsCbzVarsBuilder b) updates]) = + _$GUpdateDownloadAsCbzVars; + + bool? get downloadAsCbz; + static Serializer get serializer => + _$gUpdateDownloadAsCbzVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadAsCbzVars.serializer, + this, + ) as Map); + + static GUpdateDownloadAsCbzVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadAsCbzVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.g.dart new file mode 100644 index 00000000..76b036e2 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.g.dart @@ -0,0 +1,148 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_download_as_cbz.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateDownloadAsCbzVarsSerializer = + new _$GUpdateDownloadAsCbzVarsSerializer(); + +class _$GUpdateDownloadAsCbzVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadAsCbzVars, + _$GUpdateDownloadAsCbzVars + ]; + @override + final String wireName = 'GUpdateDownloadAsCbzVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadAsCbzVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.downloadAsCbz; + if (value != null) { + result + ..add('downloadAsCbz') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateDownloadAsCbzVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadAsCbzVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadAsCbzVars extends GUpdateDownloadAsCbzVars { + @override + final bool? downloadAsCbz; + + factory _$GUpdateDownloadAsCbzVars( + [void Function(GUpdateDownloadAsCbzVarsBuilder)? updates]) => + (new GUpdateDownloadAsCbzVarsBuilder()..update(updates))._build(); + + _$GUpdateDownloadAsCbzVars._({this.downloadAsCbz}) : super._(); + + @override + GUpdateDownloadAsCbzVars rebuild( + void Function(GUpdateDownloadAsCbzVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadAsCbzVarsBuilder toBuilder() => + new GUpdateDownloadAsCbzVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadAsCbzVars && + downloadAsCbz == other.downloadAsCbz; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateDownloadAsCbzVars') + ..add('downloadAsCbz', downloadAsCbz)) + .toString(); + } +} + +class GUpdateDownloadAsCbzVarsBuilder + implements + Builder { + _$GUpdateDownloadAsCbzVars? _$v; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + GUpdateDownloadAsCbzVarsBuilder(); + + GUpdateDownloadAsCbzVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _downloadAsCbz = $v.downloadAsCbz; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadAsCbzVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadAsCbzVars; + } + + @override + void update(void Function(GUpdateDownloadAsCbzVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadAsCbzVars build() => _build(); + + _$GUpdateDownloadAsCbzVars _build() { + final _$result = _$v ?? + new _$GUpdateDownloadAsCbzVars._( + downloadAsCbz: downloadAsCbz, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.ast.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.ast.gql.dart new file mode 100644 index 00000000..41963eb1 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateDownloadsLocation = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateDownloadsLocation'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'downloadsPath')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'downloadsPath'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'downloadsPath')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateDownloadsLocation, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.dart new file mode 100644 index 00000000..4fb3e33e --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.dart @@ -0,0 +1,179 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_downloads_location.data.gql.g.dart'; + +abstract class GUpdateDownloadsLocationData + implements + Built { + GUpdateDownloadsLocationData._(); + + factory GUpdateDownloadsLocationData( + [void Function(GUpdateDownloadsLocationDataBuilder b) updates]) = + _$GUpdateDownloadsLocationData; + + static void _initializeBuilder(GUpdateDownloadsLocationDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateDownloadsLocationData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateDownloadsLocationDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadsLocationData.serializer, + this, + ) as Map); + + static GUpdateDownloadsLocationData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadsLocationData.serializer, + json, + ); +} + +abstract class GUpdateDownloadsLocationData_setSettings + implements + Built { + GUpdateDownloadsLocationData_setSettings._(); + + factory GUpdateDownloadsLocationData_setSettings( + [void Function(GUpdateDownloadsLocationData_setSettingsBuilder b) + updates]) = _$GUpdateDownloadsLocationData_setSettings; + + static void _initializeBuilder( + GUpdateDownloadsLocationData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateDownloadsLocationData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateDownloadsLocationDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadsLocationData_setSettings.serializer, + this, + ) as Map); + + static GUpdateDownloadsLocationData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadsLocationData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateDownloadsLocationData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateDownloadsLocationData_setSettings_settings._(); + + factory GUpdateDownloadsLocationData_setSettings_settings( + [void Function(GUpdateDownloadsLocationData_setSettings_settingsBuilder b) + updates]) = _$GUpdateDownloadsLocationData_setSettings_settings; + + static void _initializeBuilder( + GUpdateDownloadsLocationData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateDownloadsLocationDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadsLocationData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateDownloadsLocationData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadsLocationData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.g.dart new file mode 100644 index 00000000..6dff90b0 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.g.dart @@ -0,0 +1,1420 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_downloads_location.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateDownloadsLocationDataSerializer = + new _$GUpdateDownloadsLocationDataSerializer(); +Serializer + _$gUpdateDownloadsLocationDataSetSettingsSerializer = + new _$GUpdateDownloadsLocationData_setSettingsSerializer(); +Serializer + _$gUpdateDownloadsLocationDataSetSettingsSettingsSerializer = + new _$GUpdateDownloadsLocationData_setSettings_settingsSerializer(); + +class _$GUpdateDownloadsLocationDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadsLocationData, + _$GUpdateDownloadsLocationData + ]; + @override + final String wireName = 'GUpdateDownloadsLocationData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadsLocationData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateDownloadsLocationData_setSettings)), + ]; + + return result; + } + + @override + GUpdateDownloadsLocationData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadsLocationDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateDownloadsLocationData_setSettings))! + as GUpdateDownloadsLocationData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadsLocationData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadsLocationData_setSettings, + _$GUpdateDownloadsLocationData_setSettings + ]; + @override + final String wireName = 'GUpdateDownloadsLocationData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadsLocationData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateDownloadsLocationData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateDownloadsLocationData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadsLocationData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateDownloadsLocationData_setSettings_settings))! + as GUpdateDownloadsLocationData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadsLocationData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateDownloadsLocationData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateDownloadsLocationData_setSettings_settings, + _$GUpdateDownloadsLocationData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateDownloadsLocationData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateDownloadsLocationData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateDownloadsLocationData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateDownloadsLocationData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadsLocationData extends GUpdateDownloadsLocationData { + @override + final String G__typename; + @override + final GUpdateDownloadsLocationData_setSettings setSettings; + + factory _$GUpdateDownloadsLocationData( + [void Function(GUpdateDownloadsLocationDataBuilder)? updates]) => + (new GUpdateDownloadsLocationDataBuilder()..update(updates))._build(); + + _$GUpdateDownloadsLocationData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateDownloadsLocationData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateDownloadsLocationData', 'setSettings'); + } + + @override + GUpdateDownloadsLocationData rebuild( + void Function(GUpdateDownloadsLocationDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadsLocationDataBuilder toBuilder() => + new GUpdateDownloadsLocationDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadsLocationData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateDownloadsLocationData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateDownloadsLocationDataBuilder + implements + Builder { + _$GUpdateDownloadsLocationData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateDownloadsLocationData_setSettingsBuilder? _setSettings; + GUpdateDownloadsLocationData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateDownloadsLocationData_setSettingsBuilder(); + set setSettings( + GUpdateDownloadsLocationData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateDownloadsLocationDataBuilder() { + GUpdateDownloadsLocationData._initializeBuilder(this); + } + + GUpdateDownloadsLocationDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadsLocationData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadsLocationData; + } + + @override + void update(void Function(GUpdateDownloadsLocationDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadsLocationData build() => _build(); + + _$GUpdateDownloadsLocationData _build() { + _$GUpdateDownloadsLocationData _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadsLocationData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateDownloadsLocationData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadsLocationData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateDownloadsLocationData_setSettings + extends GUpdateDownloadsLocationData_setSettings { + @override + final String G__typename; + @override + final GUpdateDownloadsLocationData_setSettings_settings settings; + + factory _$GUpdateDownloadsLocationData_setSettings( + [void Function(GUpdateDownloadsLocationData_setSettingsBuilder)? + updates]) => + (new GUpdateDownloadsLocationData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateDownloadsLocationData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateDownloadsLocationData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateDownloadsLocationData_setSettings', 'settings'); + } + + @override + GUpdateDownloadsLocationData_setSettings rebuild( + void Function(GUpdateDownloadsLocationData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadsLocationData_setSettingsBuilder toBuilder() => + new GUpdateDownloadsLocationData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadsLocationData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateDownloadsLocationData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateDownloadsLocationData_setSettingsBuilder + implements + Builder { + _$GUpdateDownloadsLocationData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateDownloadsLocationData_setSettings_settingsBuilder? _settings; + GUpdateDownloadsLocationData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateDownloadsLocationData_setSettings_settingsBuilder(); + set settings( + GUpdateDownloadsLocationData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateDownloadsLocationData_setSettingsBuilder() { + GUpdateDownloadsLocationData_setSettings._initializeBuilder(this); + } + + GUpdateDownloadsLocationData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadsLocationData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadsLocationData_setSettings; + } + + @override + void update( + void Function(GUpdateDownloadsLocationData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadsLocationData_setSettings build() => _build(); + + _$GUpdateDownloadsLocationData_setSettings _build() { + _$GUpdateDownloadsLocationData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadsLocationData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateDownloadsLocationData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadsLocationData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateDownloadsLocationData_setSettings_settings + extends GUpdateDownloadsLocationData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateDownloadsLocationData_setSettings_settings( + [void Function( + GUpdateDownloadsLocationData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateDownloadsLocationData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateDownloadsLocationData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateDownloadsLocationData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateDownloadsLocationData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateDownloadsLocationData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateDownloadsLocationData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateDownloadsLocationData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateDownloadsLocationData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateDownloadsLocationData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateDownloadsLocationData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateDownloadsLocationData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateDownloadsLocationData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateDownloadsLocationData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateDownloadsLocationData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateDownloadsLocationData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateDownloadsLocationData_setSettings_settings rebuild( + void Function( + GUpdateDownloadsLocationData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadsLocationData_setSettings_settingsBuilder toBuilder() => + new GUpdateDownloadsLocationData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadsLocationData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateDownloadsLocationData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateDownloadsLocationData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateDownloadsLocationData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateDownloadsLocationData_setSettings_settingsBuilder() { + GUpdateDownloadsLocationData_setSettings_settings._initializeBuilder(this); + } + + GUpdateDownloadsLocationData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadsLocationData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadsLocationData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateDownloadsLocationData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadsLocationData_setSettings_settings build() => _build(); + + _$GUpdateDownloadsLocationData_setSettings_settings _build() { + _$GUpdateDownloadsLocationData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadsLocationData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateDownloadsLocationData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateDownloadsLocationData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateDownloadsLocationData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadsLocationData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.req.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.req.gql.dart new file mode 100644 index 00000000..640b9abb --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_downloads_location.req.gql.g.dart'; + +abstract class GUpdateDownloadsLocationReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateDownloadsLocationData, + _i3.GUpdateDownloadsLocationVars> { + GUpdateDownloadsLocationReq._(); + + factory GUpdateDownloadsLocationReq( + [void Function(GUpdateDownloadsLocationReqBuilder b) updates]) = + _$GUpdateDownloadsLocationReq; + + static void _initializeBuilder(GUpdateDownloadsLocationReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateDownloadsLocation', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateDownloadsLocationVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateDownloadsLocationData? Function( + _i2.GUpdateDownloadsLocationData?, + _i2.GUpdateDownloadsLocationData?, + )? get updateResult; + @override + _i2.GUpdateDownloadsLocationData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateDownloadsLocationData? parseData(Map json) => + _i2.GUpdateDownloadsLocationData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateDownloadsLocationData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateDownloadsLocationData, + _i3.GUpdateDownloadsLocationVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateDownloadsLocationReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateDownloadsLocationReq.serializer, + this, + ) as Map); + + static GUpdateDownloadsLocationReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateDownloadsLocationReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.req.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.req.gql.g.dart new file mode 100644 index 00000000..bf00357e --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.req.gql.g.dart @@ -0,0 +1,387 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_downloads_location.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateDownloadsLocationReqSerializer = + new _$GUpdateDownloadsLocationReqSerializer(); + +class _$GUpdateDownloadsLocationReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadsLocationReq, + _$GUpdateDownloadsLocationReq + ]; + @override + final String wireName = 'GUpdateDownloadsLocationReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadsLocationReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateDownloadsLocationVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateDownloadsLocationData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateDownloadsLocationReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadsLocationReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateDownloadsLocationVars))! + as _i3.GUpdateDownloadsLocationVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateDownloadsLocationData))! + as _i2.GUpdateDownloadsLocationData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadsLocationReq extends GUpdateDownloadsLocationReq { + @override + final _i3.GUpdateDownloadsLocationVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateDownloadsLocationData? Function( + _i2.GUpdateDownloadsLocationData?, _i2.GUpdateDownloadsLocationData?)? + updateResult; + @override + final _i2.GUpdateDownloadsLocationData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateDownloadsLocationReq( + [void Function(GUpdateDownloadsLocationReqBuilder)? updates]) => + (new GUpdateDownloadsLocationReqBuilder()..update(updates))._build(); + + _$GUpdateDownloadsLocationReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateDownloadsLocationReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateDownloadsLocationReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateDownloadsLocationReq', 'executeOnListen'); + } + + @override + GUpdateDownloadsLocationReq rebuild( + void Function(GUpdateDownloadsLocationReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadsLocationReqBuilder toBuilder() => + new GUpdateDownloadsLocationReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateDownloadsLocationReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateDownloadsLocationReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateDownloadsLocationReqBuilder + implements + Builder { + _$GUpdateDownloadsLocationReq? _$v; + + _i3.GUpdateDownloadsLocationVarsBuilder? _vars; + _i3.GUpdateDownloadsLocationVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateDownloadsLocationVarsBuilder(); + set vars(_i3.GUpdateDownloadsLocationVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateDownloadsLocationData? Function( + _i2.GUpdateDownloadsLocationData?, _i2.GUpdateDownloadsLocationData?)? + _updateResult; + _i2.GUpdateDownloadsLocationData? Function( + _i2.GUpdateDownloadsLocationData?, _i2.GUpdateDownloadsLocationData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateDownloadsLocationData? Function( + _i2.GUpdateDownloadsLocationData?, + _i2.GUpdateDownloadsLocationData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateDownloadsLocationDataBuilder? _optimisticResponse; + _i2.GUpdateDownloadsLocationDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateDownloadsLocationDataBuilder(); + set optimisticResponse( + _i2.GUpdateDownloadsLocationDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateDownloadsLocationReqBuilder() { + GUpdateDownloadsLocationReq._initializeBuilder(this); + } + + GUpdateDownloadsLocationReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadsLocationReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadsLocationReq; + } + + @override + void update(void Function(GUpdateDownloadsLocationReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadsLocationReq build() => _build(); + + _$GUpdateDownloadsLocationReq _build() { + _$GUpdateDownloadsLocationReq _$result; + try { + _$result = _$v ?? + new _$GUpdateDownloadsLocationReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateDownloadsLocationReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateDownloadsLocationReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateDownloadsLocationReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.dart new file mode 100644 index 00000000..9c2e6259 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_downloads_location.var.gql.g.dart'; + +abstract class GUpdateDownloadsLocationVars + implements + Built { + GUpdateDownloadsLocationVars._(); + + factory GUpdateDownloadsLocationVars( + [void Function(GUpdateDownloadsLocationVarsBuilder b) updates]) = + _$GUpdateDownloadsLocationVars; + + String get downloadsPath; + static Serializer get serializer => + _$gUpdateDownloadsLocationVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateDownloadsLocationVars.serializer, + this, + ) as Map); + + static GUpdateDownloadsLocationVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateDownloadsLocationVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.g.dart b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.g.dart new file mode 100644 index 00000000..6b9c040f --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.g.dart @@ -0,0 +1,151 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_downloads_location.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateDownloadsLocationVarsSerializer = + new _$GUpdateDownloadsLocationVarsSerializer(); + +class _$GUpdateDownloadsLocationVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateDownloadsLocationVars, + _$GUpdateDownloadsLocationVars + ]; + @override + final String wireName = 'GUpdateDownloadsLocationVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateDownloadsLocationVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateDownloadsLocationVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateDownloadsLocationVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateDownloadsLocationVars extends GUpdateDownloadsLocationVars { + @override + final String downloadsPath; + + factory _$GUpdateDownloadsLocationVars( + [void Function(GUpdateDownloadsLocationVarsBuilder)? updates]) => + (new GUpdateDownloadsLocationVarsBuilder()..update(updates))._build(); + + _$GUpdateDownloadsLocationVars._({required this.downloadsPath}) : super._() { + BuiltValueNullFieldError.checkNotNull( + downloadsPath, r'GUpdateDownloadsLocationVars', 'downloadsPath'); + } + + @override + GUpdateDownloadsLocationVars rebuild( + void Function(GUpdateDownloadsLocationVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateDownloadsLocationVarsBuilder toBuilder() => + new GUpdateDownloadsLocationVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateDownloadsLocationVars && + downloadsPath == other.downloadsPath; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateDownloadsLocationVars') + ..add('downloadsPath', downloadsPath)) + .toString(); + } +} + +class GUpdateDownloadsLocationVarsBuilder + implements + Builder { + _$GUpdateDownloadsLocationVars? _$v; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + GUpdateDownloadsLocationVarsBuilder(); + + GUpdateDownloadsLocationVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _downloadsPath = $v.downloadsPath; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateDownloadsLocationVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateDownloadsLocationVars; + } + + @override + void update(void Function(GUpdateDownloadsLocationVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateDownloadsLocationVars build() => _build(); + + _$GUpdateDownloadsLocationVars _build() { + final _$result = _$v ?? + new _$GUpdateDownloadsLocationVars._( + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, r'GUpdateDownloadsLocationVars', 'downloadsPath'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/toggle_auto_download_new_chapters.graphql b/lib/src/features/settings/presentation/downloads/data/graphql/queries/toggle_auto_download_new_chapters.graphql new file mode 100644 index 00000000..6f8cf079 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/toggle_auto_download_new_chapters.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleAutoDownloadNewChapters($autoDownloadNewChapters: Boolean = false) { + setSettings(input: {settings: {autoDownloadNewChapters: $autoDownloadNewChapters}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/toggle_exclude_entry_with_unread_chapters.graphql b/lib/src/features/settings/presentation/downloads/data/graphql/queries/toggle_exclude_entry_with_unread_chapters.graphql new file mode 100644 index 00000000..eb58f647 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/toggle_exclude_entry_with_unread_chapters.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleExcludeEntryWithUnreadChapters($excludeEntryWithUnreadChapters: Boolean = false) { + setSettings(input: {settings: {excludeEntryWithUnreadChapters: $excludeEntryWithUnreadChapters}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_auto_download_new_chapters_limit.graphql b/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_auto_download_new_chapters_limit.graphql new file mode 100644 index 00000000..8f7f9e93 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_auto_download_new_chapters_limit.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateAutoDownloadNewChaptersLimit($autoDownloadNewChaptersLimit: Int = 3) { + setSettings(input: {settings: {autoDownloadNewChaptersLimit: $autoDownloadNewChaptersLimit}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_download_as_cbz.graphql b/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_download_as_cbz.graphql new file mode 100644 index 00000000..b4b41923 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_download_as_cbz.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateDownloadAsCbz($downloadAsCbz: Boolean = false) { + setSettings(input: {settings: {downloadAsCbz: $downloadAsCbz}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_downloads_location.graphql b/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_downloads_location.graphql new file mode 100644 index 00000000..c1dee609 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/queries/update_downloads_location.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateDownloadsLocation($downloadsPath: String!) { + setSettings(input: {settings: {downloadsPath: $downloadsPath}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/downloads/data/graphql/query.dart b/lib/src/features/settings/presentation/downloads/data/graphql/query.dart new file mode 100644 index 00000000..652a6364 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/data/graphql/query.dart @@ -0,0 +1,28 @@ +import 'queries/__generated__/toggle_auto_download_new_chapters.req.gql.dart'; +import 'queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.dart'; +import 'queries/__generated__/update_auto_download_new_chapters_limit.req.gql.dart'; +import 'queries/__generated__/update_download_as_cbz.req.gql.dart'; +import 'queries/__generated__/update_downloads_location.req.gql.dart'; + +abstract class DownloadsSettingsQuery { + static GUpdateDownloadsLocationReq updateDownloadsLocation(String value) => + GUpdateDownloadsLocationReq((req) => req..vars.downloadsPath = value); + + static GUpdateDownloadAsCbzReq updateDownloadAsCbz(bool value) => + GUpdateDownloadAsCbzReq((req) => req..vars.downloadAsCbz = value); + + static GToggleAutoDownloadNewChaptersReq toggleAutoDownloadNewChapters( + bool value) => + GToggleAutoDownloadNewChaptersReq( + (req) => req..vars.autoDownloadNewChapters = value); + + static GToggleExcludeEntryWithUnreadChaptersReq + toggleExcludeEntryWithUnreadChapters(bool value) => + GToggleExcludeEntryWithUnreadChaptersReq( + (req) => req..vars.excludeEntryWithUnreadChapters = value); + + static GUpdateAutoDownloadNewChaptersLimitReq + updateAutoDownloadNewChaptersLimit(int value) => + GUpdateAutoDownloadNewChaptersLimitReq( + (req) => req..vars.autoDownloadNewChaptersLimit = value); +} diff --git a/lib/src/features/settings/presentation/downloads/downloads_settings_screen.dart b/lib/src/features/settings/presentation/downloads/downloads_settings_screen.dart new file mode 100644 index 00000000..c77e80b7 --- /dev/null +++ b/lib/src/features/settings/presentation/downloads/downloads_settings_screen.dart @@ -0,0 +1,95 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../utils/extensions/custom_extensions.dart'; +import '../../../../widgets/emoticons.dart'; +import '../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../widgets/input_popup/settings_prop_tile.dart'; +import '../../../../widgets/section_title.dart'; +import '../../controller/server_controller.dart'; +import '../../domain/downloads_settings/downloads_settings.dart'; +import 'data/downloads_settings_repository.dart'; + +class DownloadsSettingsScreen extends ConsumerWidget { + const DownloadsSettingsScreen({super.key}); + + @override + Widget build(context, ref) { + final repository = ref.watch(downloadsSettingsRepositoryProvider); + final serverSettings = ref.watch(settingsProvider); + return ListTileTheme( + data: const ListTileThemeData( + subtitleTextStyle: TextStyle(color: Colors.grey), + ), + child: Scaffold( + appBar: AppBar(title: Text(context.l10n.downloads)), + body: RefreshIndicator( + onRefresh: () => ref.refresh(settingsProvider.future), + child: serverSettings.showUiWhenData( + context, + (data) { + final DownloadsSettingsDto? downloadsSettingsDto = data; + if (downloadsSettingsDto == null) { + return Emoticons( + title: context.l10n.noPropFound(context.l10n.settings), + ); + } + return ListView( + children: [ + SectionTitle(title: context.l10n.general), + SettingsPropTile( + title: context.l10n.downloadLocation, + description: context.l10n.downloadLocationHint, + type: SettingsPropType.textField( + hintText: + context.l10n.enterProp(context.l10n.downloadLocation), + value: downloadsSettingsDto.downloadsPath, + onChanged: repository.updateDownloadsLocation, + ), + subtitle: downloadsSettingsDto.downloadsPath, + ), + SettingsPropTile( + title: context.l10n.saveAsCBZArchive, + type: SettingsPropType.switchTile( + value: downloadsSettingsDto.downloadAsCbz, + onChanged: repository.updateDownloadAsCbz, + ), + ), + SectionTitle(title: context.l10n.autoDownload), + SettingsPropTile( + title: context.l10n.autoDownloadNewChapters, + type: SettingsPropType.switchTile( + value: downloadsSettingsDto.autoDownloadNewChapters, + onChanged: repository.toggleAutoDownloadNewChapters, + ), + ), + SettingsPropTile( + title: context.l10n.chapterDownloadLimit, + description: context.l10n.chapterDownloadLimitDesc, + type: SettingsPropType.numberSlider( + value: downloadsSettingsDto.autoDownloadNewChaptersLimit, + min: 0, + max: 20, + onChanged: repository.updateAutoDownloadNewChaptersLimit, + ), + subtitle: context.l10n.nChapters( + downloadsSettingsDto.autoDownloadNewChaptersLimit), + ), + SettingsPropTile( + title: context.l10n.excludeEntryWithUnreadChapters, + type: SettingsPropType.switchTile( + value: + downloadsSettingsDto.excludeEntryWithUnreadChapters, + onChanged: + repository.toggleExcludeEntryWithUnreadChapters, + ), + ), + ], + ); + }, + ), + ), + ), + ); + } +} diff --git a/lib/src/features/settings/presentation/general/general_screen.dart b/lib/src/features/settings/presentation/general/general_screen.dart index 4f2d46bd..5841fe62 100644 --- a/lib/src/features/settings/presentation/general/general_screen.dart +++ b/lib/src/features/settings/presentation/general/general_screen.dart @@ -13,7 +13,7 @@ import '../../../../constants/language_list.dart'; import '../../../../global_providers/global_providers.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/misc/toast/toast.dart'; -import '../../../../widgets/radio_list_popup.dart'; +import '../../../../widgets/popup_widgets/radio_list_popup.dart'; import 'quick_search_toggle/quick_search_toggle_tile.dart'; class GeneralScreen extends ConsumerWidget { @@ -22,17 +22,17 @@ class GeneralScreen extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { return Scaffold( - appBar: AppBar(title: Text(context.l10n!.general)), + appBar: AppBar(title: Text(context.l10n.general)), body: ListView( children: [ ListTile( leading: const Icon(Icons.translate_rounded), - title: Text(context.l10n!.appLanguage), + title: Text(context.l10n.appLanguage), subtitle: Text(getLanguageNameFormLocale(context.currentLocale)), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.appLanguage, + title: context.l10n.appLanguage, optionList: AppLocalizations.supportedLocales, value: context.currentLocale, onChange: (locale) { @@ -46,14 +46,12 @@ class GeneralScreen extends ConsumerWidget { ), ListTile( leading: const Icon(Icons.cleaning_services_rounded), - title: Text(context.l10n!.clearCache), + title: Text(context.l10n.clearCache), onTap: () async { await ref.watch(hiveCacheStoreProvider).clean(); DefaultCacheManager().emptyCache(); if (context.mounted) { - ref - .read(toastProvider(context)) - .show(context.l10n!.cacheCleared); + ref.read(toastProvider)?.show(context.l10n.cacheCleared); } }, ), diff --git a/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart b/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart index e1c76583..bd112e25 100644 --- a/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart +++ b/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.dart @@ -28,7 +28,7 @@ class QuickSearchToggleTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.search_rounded), - title: Text(context.l10n!.quickSearch), + title: Text(context.l10n.quickSearch), onChanged: ref.read(quickSearchToggleProvider.notifier).update, value: ref.watch(quickSearchToggleProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.g.dart b/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.g.dart index cb067edb..3f844a8d 100644 --- a/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.g.dart +++ b/lib/src/features/settings/presentation/general/quick_search_toggle/quick_search_toggle_tile.g.dart @@ -23,4 +23,4 @@ final quickSearchToggleProvider = typedef _$QuickSearchToggle = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.ast.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.ast.gql.dart new file mode 100644 index 00000000..07389946 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleExcludeCompleted = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleExcludeCompleted'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'excludeCompleted')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'excludeCompleted'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'excludeCompleted')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleExcludeCompleted, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.dart new file mode 100644 index 00000000..bb1d61f2 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_completed.data.gql.g.dart'; + +abstract class GToggleExcludeCompletedData + implements + Built { + GToggleExcludeCompletedData._(); + + factory GToggleExcludeCompletedData( + [void Function(GToggleExcludeCompletedDataBuilder b) updates]) = + _$GToggleExcludeCompletedData; + + static void _initializeBuilder(GToggleExcludeCompletedDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeCompletedData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleExcludeCompletedDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeCompletedData.serializer, + this, + ) as Map); + + static GToggleExcludeCompletedData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeCompletedData.serializer, + json, + ); +} + +abstract class GToggleExcludeCompletedData_setSettings + implements + Built { + GToggleExcludeCompletedData_setSettings._(); + + factory GToggleExcludeCompletedData_setSettings( + [void Function(GToggleExcludeCompletedData_setSettingsBuilder b) + updates]) = _$GToggleExcludeCompletedData_setSettings; + + static void _initializeBuilder( + GToggleExcludeCompletedData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeCompletedData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleExcludeCompletedDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeCompletedData_setSettings.serializer, + this, + ) as Map); + + static GToggleExcludeCompletedData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeCompletedData_setSettings.serializer, + json, + ); +} + +abstract class GToggleExcludeCompletedData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleExcludeCompletedData_setSettings_settings._(); + + factory GToggleExcludeCompletedData_setSettings_settings( + [void Function(GToggleExcludeCompletedData_setSettings_settingsBuilder b) + updates]) = _$GToggleExcludeCompletedData_setSettings_settings; + + static void _initializeBuilder( + GToggleExcludeCompletedData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gToggleExcludeCompletedDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeCompletedData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleExcludeCompletedData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeCompletedData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.g.dart new file mode 100644 index 00000000..3737c423 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.g.dart @@ -0,0 +1,1414 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_completed.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeCompletedDataSerializer = + new _$GToggleExcludeCompletedDataSerializer(); +Serializer + _$gToggleExcludeCompletedDataSetSettingsSerializer = + new _$GToggleExcludeCompletedData_setSettingsSerializer(); +Serializer + _$gToggleExcludeCompletedDataSetSettingsSettingsSerializer = + new _$GToggleExcludeCompletedData_setSettings_settingsSerializer(); + +class _$GToggleExcludeCompletedDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeCompletedData, + _$GToggleExcludeCompletedData + ]; + @override + final String wireName = 'GToggleExcludeCompletedData'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeCompletedData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GToggleExcludeCompletedData_setSettings)), + ]; + + return result; + } + + @override + GToggleExcludeCompletedData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeCompletedDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleExcludeCompletedData_setSettings))! + as GToggleExcludeCompletedData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeCompletedData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeCompletedData_setSettings, + _$GToggleExcludeCompletedData_setSettings + ]; + @override + final String wireName = 'GToggleExcludeCompletedData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeCompletedData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleExcludeCompletedData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleExcludeCompletedData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeCompletedData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleExcludeCompletedData_setSettings_settings))! + as GToggleExcludeCompletedData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeCompletedData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeCompletedData_setSettings_settings, + _$GToggleExcludeCompletedData_setSettings_settings + ]; + @override + final String wireName = 'GToggleExcludeCompletedData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleExcludeCompletedData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleExcludeCompletedData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleExcludeCompletedData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeCompletedData extends GToggleExcludeCompletedData { + @override + final String G__typename; + @override + final GToggleExcludeCompletedData_setSettings setSettings; + + factory _$GToggleExcludeCompletedData( + [void Function(GToggleExcludeCompletedDataBuilder)? updates]) => + (new GToggleExcludeCompletedDataBuilder()..update(updates))._build(); + + _$GToggleExcludeCompletedData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleExcludeCompletedData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleExcludeCompletedData', 'setSettings'); + } + + @override + GToggleExcludeCompletedData rebuild( + void Function(GToggleExcludeCompletedDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeCompletedDataBuilder toBuilder() => + new GToggleExcludeCompletedDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeCompletedData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeCompletedData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleExcludeCompletedDataBuilder + implements + Builder { + _$GToggleExcludeCompletedData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeCompletedData_setSettingsBuilder? _setSettings; + GToggleExcludeCompletedData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GToggleExcludeCompletedData_setSettingsBuilder(); + set setSettings( + GToggleExcludeCompletedData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleExcludeCompletedDataBuilder() { + GToggleExcludeCompletedData._initializeBuilder(this); + } + + GToggleExcludeCompletedDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeCompletedData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeCompletedData; + } + + @override + void update(void Function(GToggleExcludeCompletedDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeCompletedData build() => _build(); + + _$GToggleExcludeCompletedData _build() { + _$GToggleExcludeCompletedData _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeCompletedData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleExcludeCompletedData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeCompletedData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeCompletedData_setSettings + extends GToggleExcludeCompletedData_setSettings { + @override + final String G__typename; + @override + final GToggleExcludeCompletedData_setSettings_settings settings; + + factory _$GToggleExcludeCompletedData_setSettings( + [void Function(GToggleExcludeCompletedData_setSettingsBuilder)? + updates]) => + (new GToggleExcludeCompletedData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleExcludeCompletedData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleExcludeCompletedData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleExcludeCompletedData_setSettings', 'settings'); + } + + @override + GToggleExcludeCompletedData_setSettings rebuild( + void Function(GToggleExcludeCompletedData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeCompletedData_setSettingsBuilder toBuilder() => + new GToggleExcludeCompletedData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeCompletedData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeCompletedData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleExcludeCompletedData_setSettingsBuilder + implements + Builder { + _$GToggleExcludeCompletedData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeCompletedData_setSettings_settingsBuilder? _settings; + GToggleExcludeCompletedData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleExcludeCompletedData_setSettings_settingsBuilder(); + set settings( + GToggleExcludeCompletedData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleExcludeCompletedData_setSettingsBuilder() { + GToggleExcludeCompletedData_setSettings._initializeBuilder(this); + } + + GToggleExcludeCompletedData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeCompletedData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeCompletedData_setSettings; + } + + @override + void update( + void Function(GToggleExcludeCompletedData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeCompletedData_setSettings build() => _build(); + + _$GToggleExcludeCompletedData_setSettings _build() { + _$GToggleExcludeCompletedData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeCompletedData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeCompletedData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeCompletedData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeCompletedData_setSettings_settings + extends GToggleExcludeCompletedData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleExcludeCompletedData_setSettings_settings( + [void Function( + GToggleExcludeCompletedData_setSettings_settingsBuilder)? + updates]) => + (new GToggleExcludeCompletedData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleExcludeCompletedData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeCompletedData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleExcludeCompletedData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleExcludeCompletedData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleExcludeCompletedData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleExcludeCompletedData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleExcludeCompletedData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleExcludeCompletedData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleExcludeCompletedData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleExcludeCompletedData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleExcludeCompletedData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleExcludeCompletedData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeCompletedData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleExcludeCompletedData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeCompletedData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleExcludeCompletedData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleExcludeCompletedData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleExcludeCompletedData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeCompletedData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeCompletedData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleExcludeCompletedData_setSettings_settings rebuild( + void Function(GToggleExcludeCompletedData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeCompletedData_setSettings_settingsBuilder toBuilder() => + new GToggleExcludeCompletedData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeCompletedData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeCompletedData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleExcludeCompletedData_setSettings_settingsBuilder + implements + Builder { + _$GToggleExcludeCompletedData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleExcludeCompletedData_setSettings_settingsBuilder() { + GToggleExcludeCompletedData_setSettings_settings._initializeBuilder(this); + } + + GToggleExcludeCompletedData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeCompletedData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeCompletedData_setSettings_settings; + } + + @override + void update( + void Function(GToggleExcludeCompletedData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeCompletedData_setSettings_settings build() => _build(); + + _$GToggleExcludeCompletedData_setSettings_settings _build() { + _$GToggleExcludeCompletedData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeCompletedData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeCompletedData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleExcludeCompletedData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleExcludeCompletedData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleExcludeCompletedData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleExcludeCompletedData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleExcludeCompletedData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GToggleExcludeCompletedData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeCompletedData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleExcludeCompletedData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeCompletedData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeCompletedData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleExcludeCompletedData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeCompletedData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleExcludeCompletedData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleExcludeCompletedData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleExcludeCompletedData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeCompletedData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeCompletedData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeCompletedData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeCompletedData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.req.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.req.gql.dart new file mode 100644 index 00000000..64212d1c --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_exclude_completed.req.gql.g.dart'; + +abstract class GToggleExcludeCompletedReq + implements + Built, + _i1.OperationRequest<_i2.GToggleExcludeCompletedData, + _i3.GToggleExcludeCompletedVars> { + GToggleExcludeCompletedReq._(); + + factory GToggleExcludeCompletedReq( + [void Function(GToggleExcludeCompletedReqBuilder b) updates]) = + _$GToggleExcludeCompletedReq; + + static void _initializeBuilder(GToggleExcludeCompletedReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleExcludeCompleted', + ) + ..executeOnListen = true; + + @override + _i3.GToggleExcludeCompletedVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleExcludeCompletedData? Function( + _i2.GToggleExcludeCompletedData?, + _i2.GToggleExcludeCompletedData?, + )? get updateResult; + @override + _i2.GToggleExcludeCompletedData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleExcludeCompletedData? parseData(Map json) => + _i2.GToggleExcludeCompletedData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleExcludeCompletedData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleExcludeCompletedData, + _i3.GToggleExcludeCompletedVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleExcludeCompletedReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleExcludeCompletedReq.serializer, + this, + ) as Map); + + static GToggleExcludeCompletedReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleExcludeCompletedReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.req.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.req.gql.g.dart new file mode 100644 index 00000000..cba4428d --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.req.gql.g.dart @@ -0,0 +1,384 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_completed.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleExcludeCompletedReqSerializer = + new _$GToggleExcludeCompletedReqSerializer(); + +class _$GToggleExcludeCompletedReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeCompletedReq, + _$GToggleExcludeCompletedReq + ]; + @override + final String wireName = 'GToggleExcludeCompletedReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeCompletedReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleExcludeCompletedVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleExcludeCompletedData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleExcludeCompletedReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeCompletedReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GToggleExcludeCompletedVars))! + as _i3.GToggleExcludeCompletedVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GToggleExcludeCompletedData))! + as _i2.GToggleExcludeCompletedData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeCompletedReq extends GToggleExcludeCompletedReq { + @override + final _i3.GToggleExcludeCompletedVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleExcludeCompletedData? Function( + _i2.GToggleExcludeCompletedData?, _i2.GToggleExcludeCompletedData?)? + updateResult; + @override + final _i2.GToggleExcludeCompletedData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleExcludeCompletedReq( + [void Function(GToggleExcludeCompletedReqBuilder)? updates]) => + (new GToggleExcludeCompletedReqBuilder()..update(updates))._build(); + + _$GToggleExcludeCompletedReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleExcludeCompletedReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleExcludeCompletedReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleExcludeCompletedReq', 'executeOnListen'); + } + + @override + GToggleExcludeCompletedReq rebuild( + void Function(GToggleExcludeCompletedReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeCompletedReqBuilder toBuilder() => + new GToggleExcludeCompletedReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleExcludeCompletedReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeCompletedReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleExcludeCompletedReqBuilder + implements + Builder { + _$GToggleExcludeCompletedReq? _$v; + + _i3.GToggleExcludeCompletedVarsBuilder? _vars; + _i3.GToggleExcludeCompletedVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleExcludeCompletedVarsBuilder(); + set vars(_i3.GToggleExcludeCompletedVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleExcludeCompletedData? Function( + _i2.GToggleExcludeCompletedData?, _i2.GToggleExcludeCompletedData?)? + _updateResult; + _i2.GToggleExcludeCompletedData? Function( + _i2.GToggleExcludeCompletedData?, _i2.GToggleExcludeCompletedData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleExcludeCompletedData? Function( + _i2.GToggleExcludeCompletedData?, + _i2.GToggleExcludeCompletedData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleExcludeCompletedDataBuilder? _optimisticResponse; + _i2.GToggleExcludeCompletedDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GToggleExcludeCompletedDataBuilder(); + set optimisticResponse( + _i2.GToggleExcludeCompletedDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleExcludeCompletedReqBuilder() { + GToggleExcludeCompletedReq._initializeBuilder(this); + } + + GToggleExcludeCompletedReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeCompletedReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeCompletedReq; + } + + @override + void update(void Function(GToggleExcludeCompletedReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeCompletedReq build() => _build(); + + _$GToggleExcludeCompletedReq _build() { + _$GToggleExcludeCompletedReq _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeCompletedReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleExcludeCompletedReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleExcludeCompletedReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeCompletedReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.dart new file mode 100644 index 00000000..68dd716b --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_completed.var.gql.g.dart'; + +abstract class GToggleExcludeCompletedVars + implements + Built { + GToggleExcludeCompletedVars._(); + + factory GToggleExcludeCompletedVars( + [void Function(GToggleExcludeCompletedVarsBuilder b) updates]) = + _$GToggleExcludeCompletedVars; + + bool? get excludeCompleted; + static Serializer get serializer => + _$gToggleExcludeCompletedVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeCompletedVars.serializer, + this, + ) as Map); + + static GToggleExcludeCompletedVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeCompletedVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.g.dart new file mode 100644 index 00000000..1744f3d3 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.g.dart @@ -0,0 +1,150 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_completed.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeCompletedVarsSerializer = + new _$GToggleExcludeCompletedVarsSerializer(); + +class _$GToggleExcludeCompletedVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeCompletedVars, + _$GToggleExcludeCompletedVars + ]; + @override + final String wireName = 'GToggleExcludeCompletedVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeCompletedVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.excludeCompleted; + if (value != null) { + result + ..add('excludeCompleted') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleExcludeCompletedVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeCompletedVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeCompletedVars extends GToggleExcludeCompletedVars { + @override + final bool? excludeCompleted; + + factory _$GToggleExcludeCompletedVars( + [void Function(GToggleExcludeCompletedVarsBuilder)? updates]) => + (new GToggleExcludeCompletedVarsBuilder()..update(updates))._build(); + + _$GToggleExcludeCompletedVars._({this.excludeCompleted}) : super._(); + + @override + GToggleExcludeCompletedVars rebuild( + void Function(GToggleExcludeCompletedVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeCompletedVarsBuilder toBuilder() => + new GToggleExcludeCompletedVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeCompletedVars && + excludeCompleted == other.excludeCompleted; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeCompletedVars') + ..add('excludeCompleted', excludeCompleted)) + .toString(); + } +} + +class GToggleExcludeCompletedVarsBuilder + implements + Builder { + _$GToggleExcludeCompletedVars? _$v; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + GToggleExcludeCompletedVarsBuilder(); + + GToggleExcludeCompletedVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _excludeCompleted = $v.excludeCompleted; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeCompletedVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeCompletedVars; + } + + @override + void update(void Function(GToggleExcludeCompletedVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeCompletedVars build() => _build(); + + _$GToggleExcludeCompletedVars _build() { + final _$result = _$v ?? + new _$GToggleExcludeCompletedVars._( + excludeCompleted: excludeCompleted, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.ast.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.ast.gql.dart new file mode 100644 index 00000000..e642e918 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleExcludeNotStarted = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleExcludeNotStarted'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'excludeNotStarted')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'excludeNotStarted')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleExcludeNotStarted, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.dart new file mode 100644 index 00000000..82dc2e4e --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.dart @@ -0,0 +1,179 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_not_started.data.gql.g.dart'; + +abstract class GToggleExcludeNotStartedData + implements + Built { + GToggleExcludeNotStartedData._(); + + factory GToggleExcludeNotStartedData( + [void Function(GToggleExcludeNotStartedDataBuilder b) updates]) = + _$GToggleExcludeNotStartedData; + + static void _initializeBuilder(GToggleExcludeNotStartedDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeNotStartedData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleExcludeNotStartedDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeNotStartedData.serializer, + this, + ) as Map); + + static GToggleExcludeNotStartedData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeNotStartedData.serializer, + json, + ); +} + +abstract class GToggleExcludeNotStartedData_setSettings + implements + Built { + GToggleExcludeNotStartedData_setSettings._(); + + factory GToggleExcludeNotStartedData_setSettings( + [void Function(GToggleExcludeNotStartedData_setSettingsBuilder b) + updates]) = _$GToggleExcludeNotStartedData_setSettings; + + static void _initializeBuilder( + GToggleExcludeNotStartedData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeNotStartedData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleExcludeNotStartedDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeNotStartedData_setSettings.serializer, + this, + ) as Map); + + static GToggleExcludeNotStartedData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeNotStartedData_setSettings.serializer, + json, + ); +} + +abstract class GToggleExcludeNotStartedData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleExcludeNotStartedData_setSettings_settings._(); + + factory GToggleExcludeNotStartedData_setSettings_settings( + [void Function(GToggleExcludeNotStartedData_setSettings_settingsBuilder b) + updates]) = _$GToggleExcludeNotStartedData_setSettings_settings; + + static void _initializeBuilder( + GToggleExcludeNotStartedData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gToggleExcludeNotStartedDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeNotStartedData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleExcludeNotStartedData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeNotStartedData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.g.dart new file mode 100644 index 00000000..1578d3dd --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.g.dart @@ -0,0 +1,1420 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_not_started.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeNotStartedDataSerializer = + new _$GToggleExcludeNotStartedDataSerializer(); +Serializer + _$gToggleExcludeNotStartedDataSetSettingsSerializer = + new _$GToggleExcludeNotStartedData_setSettingsSerializer(); +Serializer + _$gToggleExcludeNotStartedDataSetSettingsSettingsSerializer = + new _$GToggleExcludeNotStartedData_setSettings_settingsSerializer(); + +class _$GToggleExcludeNotStartedDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeNotStartedData, + _$GToggleExcludeNotStartedData + ]; + @override + final String wireName = 'GToggleExcludeNotStartedData'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeNotStartedData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GToggleExcludeNotStartedData_setSettings)), + ]; + + return result; + } + + @override + GToggleExcludeNotStartedData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeNotStartedDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleExcludeNotStartedData_setSettings))! + as GToggleExcludeNotStartedData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeNotStartedData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeNotStartedData_setSettings, + _$GToggleExcludeNotStartedData_setSettings + ]; + @override + final String wireName = 'GToggleExcludeNotStartedData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeNotStartedData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GToggleExcludeNotStartedData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleExcludeNotStartedData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeNotStartedData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleExcludeNotStartedData_setSettings_settings))! + as GToggleExcludeNotStartedData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeNotStartedData_setSettings_settingsSerializer + implements + StructuredSerializer< + GToggleExcludeNotStartedData_setSettings_settings> { + @override + final Iterable types = const [ + GToggleExcludeNotStartedData_setSettings_settings, + _$GToggleExcludeNotStartedData_setSettings_settings + ]; + @override + final String wireName = 'GToggleExcludeNotStartedData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleExcludeNotStartedData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleExcludeNotStartedData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleExcludeNotStartedData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeNotStartedData extends GToggleExcludeNotStartedData { + @override + final String G__typename; + @override + final GToggleExcludeNotStartedData_setSettings setSettings; + + factory _$GToggleExcludeNotStartedData( + [void Function(GToggleExcludeNotStartedDataBuilder)? updates]) => + (new GToggleExcludeNotStartedDataBuilder()..update(updates))._build(); + + _$GToggleExcludeNotStartedData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleExcludeNotStartedData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleExcludeNotStartedData', 'setSettings'); + } + + @override + GToggleExcludeNotStartedData rebuild( + void Function(GToggleExcludeNotStartedDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeNotStartedDataBuilder toBuilder() => + new GToggleExcludeNotStartedDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeNotStartedData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeNotStartedData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleExcludeNotStartedDataBuilder + implements + Builder { + _$GToggleExcludeNotStartedData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeNotStartedData_setSettingsBuilder? _setSettings; + GToggleExcludeNotStartedData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GToggleExcludeNotStartedData_setSettingsBuilder(); + set setSettings( + GToggleExcludeNotStartedData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleExcludeNotStartedDataBuilder() { + GToggleExcludeNotStartedData._initializeBuilder(this); + } + + GToggleExcludeNotStartedDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeNotStartedData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeNotStartedData; + } + + @override + void update(void Function(GToggleExcludeNotStartedDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeNotStartedData build() => _build(); + + _$GToggleExcludeNotStartedData _build() { + _$GToggleExcludeNotStartedData _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeNotStartedData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleExcludeNotStartedData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeNotStartedData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeNotStartedData_setSettings + extends GToggleExcludeNotStartedData_setSettings { + @override + final String G__typename; + @override + final GToggleExcludeNotStartedData_setSettings_settings settings; + + factory _$GToggleExcludeNotStartedData_setSettings( + [void Function(GToggleExcludeNotStartedData_setSettingsBuilder)? + updates]) => + (new GToggleExcludeNotStartedData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleExcludeNotStartedData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeNotStartedData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleExcludeNotStartedData_setSettings', 'settings'); + } + + @override + GToggleExcludeNotStartedData_setSettings rebuild( + void Function(GToggleExcludeNotStartedData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeNotStartedData_setSettingsBuilder toBuilder() => + new GToggleExcludeNotStartedData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeNotStartedData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeNotStartedData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleExcludeNotStartedData_setSettingsBuilder + implements + Builder { + _$GToggleExcludeNotStartedData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeNotStartedData_setSettings_settingsBuilder? _settings; + GToggleExcludeNotStartedData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleExcludeNotStartedData_setSettings_settingsBuilder(); + set settings( + GToggleExcludeNotStartedData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleExcludeNotStartedData_setSettingsBuilder() { + GToggleExcludeNotStartedData_setSettings._initializeBuilder(this); + } + + GToggleExcludeNotStartedData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeNotStartedData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeNotStartedData_setSettings; + } + + @override + void update( + void Function(GToggleExcludeNotStartedData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeNotStartedData_setSettings build() => _build(); + + _$GToggleExcludeNotStartedData_setSettings _build() { + _$GToggleExcludeNotStartedData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeNotStartedData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeNotStartedData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeNotStartedData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeNotStartedData_setSettings_settings + extends GToggleExcludeNotStartedData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleExcludeNotStartedData_setSettings_settings( + [void Function( + GToggleExcludeNotStartedData_setSettings_settingsBuilder)? + updates]) => + (new GToggleExcludeNotStartedData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleExcludeNotStartedData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeNotStartedData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleExcludeNotStartedData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleExcludeNotStartedData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleExcludeNotStartedData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleExcludeNotStartedData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleExcludeNotStartedData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleExcludeNotStartedData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleExcludeNotStartedData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleExcludeNotStartedData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleExcludeNotStartedData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleExcludeNotStartedData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleExcludeNotStartedData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleExcludeNotStartedData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleExcludeNotStartedData_setSettings_settings rebuild( + void Function( + GToggleExcludeNotStartedData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeNotStartedData_setSettings_settingsBuilder toBuilder() => + new GToggleExcludeNotStartedData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeNotStartedData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeNotStartedData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleExcludeNotStartedData_setSettings_settingsBuilder + implements + Builder { + _$GToggleExcludeNotStartedData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleExcludeNotStartedData_setSettings_settingsBuilder() { + GToggleExcludeNotStartedData_setSettings_settings._initializeBuilder(this); + } + + GToggleExcludeNotStartedData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeNotStartedData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeNotStartedData_setSettings_settings; + } + + @override + void update( + void Function(GToggleExcludeNotStartedData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeNotStartedData_setSettings_settings build() => _build(); + + _$GToggleExcludeNotStartedData_setSettings_settings _build() { + _$GToggleExcludeNotStartedData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeNotStartedData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleExcludeNotStartedData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GToggleExcludeNotStartedData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeNotStartedData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeNotStartedData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.req.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.req.gql.dart new file mode 100644 index 00000000..1aad00d5 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_exclude_not_started.req.gql.g.dart'; + +abstract class GToggleExcludeNotStartedReq + implements + Built, + _i1.OperationRequest<_i2.GToggleExcludeNotStartedData, + _i3.GToggleExcludeNotStartedVars> { + GToggleExcludeNotStartedReq._(); + + factory GToggleExcludeNotStartedReq( + [void Function(GToggleExcludeNotStartedReqBuilder b) updates]) = + _$GToggleExcludeNotStartedReq; + + static void _initializeBuilder(GToggleExcludeNotStartedReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleExcludeNotStarted', + ) + ..executeOnListen = true; + + @override + _i3.GToggleExcludeNotStartedVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleExcludeNotStartedData? Function( + _i2.GToggleExcludeNotStartedData?, + _i2.GToggleExcludeNotStartedData?, + )? get updateResult; + @override + _i2.GToggleExcludeNotStartedData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleExcludeNotStartedData? parseData(Map json) => + _i2.GToggleExcludeNotStartedData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleExcludeNotStartedData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleExcludeNotStartedData, + _i3.GToggleExcludeNotStartedVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleExcludeNotStartedReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleExcludeNotStartedReq.serializer, + this, + ) as Map); + + static GToggleExcludeNotStartedReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleExcludeNotStartedReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.req.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.req.gql.g.dart new file mode 100644 index 00000000..be2a392d --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.req.gql.g.dart @@ -0,0 +1,387 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_not_started.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeNotStartedReqSerializer = + new _$GToggleExcludeNotStartedReqSerializer(); + +class _$GToggleExcludeNotStartedReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeNotStartedReq, + _$GToggleExcludeNotStartedReq + ]; + @override + final String wireName = 'GToggleExcludeNotStartedReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeNotStartedReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleExcludeNotStartedVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleExcludeNotStartedData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleExcludeNotStartedReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeNotStartedReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GToggleExcludeNotStartedVars))! + as _i3.GToggleExcludeNotStartedVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GToggleExcludeNotStartedData))! + as _i2.GToggleExcludeNotStartedData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeNotStartedReq extends GToggleExcludeNotStartedReq { + @override + final _i3.GToggleExcludeNotStartedVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleExcludeNotStartedData? Function( + _i2.GToggleExcludeNotStartedData?, _i2.GToggleExcludeNotStartedData?)? + updateResult; + @override + final _i2.GToggleExcludeNotStartedData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleExcludeNotStartedReq( + [void Function(GToggleExcludeNotStartedReqBuilder)? updates]) => + (new GToggleExcludeNotStartedReqBuilder()..update(updates))._build(); + + _$GToggleExcludeNotStartedReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleExcludeNotStartedReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleExcludeNotStartedReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleExcludeNotStartedReq', 'executeOnListen'); + } + + @override + GToggleExcludeNotStartedReq rebuild( + void Function(GToggleExcludeNotStartedReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeNotStartedReqBuilder toBuilder() => + new GToggleExcludeNotStartedReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleExcludeNotStartedReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeNotStartedReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleExcludeNotStartedReqBuilder + implements + Builder { + _$GToggleExcludeNotStartedReq? _$v; + + _i3.GToggleExcludeNotStartedVarsBuilder? _vars; + _i3.GToggleExcludeNotStartedVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleExcludeNotStartedVarsBuilder(); + set vars(_i3.GToggleExcludeNotStartedVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleExcludeNotStartedData? Function( + _i2.GToggleExcludeNotStartedData?, _i2.GToggleExcludeNotStartedData?)? + _updateResult; + _i2.GToggleExcludeNotStartedData? Function( + _i2.GToggleExcludeNotStartedData?, _i2.GToggleExcludeNotStartedData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleExcludeNotStartedData? Function( + _i2.GToggleExcludeNotStartedData?, + _i2.GToggleExcludeNotStartedData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleExcludeNotStartedDataBuilder? _optimisticResponse; + _i2.GToggleExcludeNotStartedDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GToggleExcludeNotStartedDataBuilder(); + set optimisticResponse( + _i2.GToggleExcludeNotStartedDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleExcludeNotStartedReqBuilder() { + GToggleExcludeNotStartedReq._initializeBuilder(this); + } + + GToggleExcludeNotStartedReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeNotStartedReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeNotStartedReq; + } + + @override + void update(void Function(GToggleExcludeNotStartedReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeNotStartedReq build() => _build(); + + _$GToggleExcludeNotStartedReq _build() { + _$GToggleExcludeNotStartedReq _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeNotStartedReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleExcludeNotStartedReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleExcludeNotStartedReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeNotStartedReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.dart new file mode 100644 index 00000000..42ad0a6a --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_not_started.var.gql.g.dart'; + +abstract class GToggleExcludeNotStartedVars + implements + Built { + GToggleExcludeNotStartedVars._(); + + factory GToggleExcludeNotStartedVars( + [void Function(GToggleExcludeNotStartedVarsBuilder b) updates]) = + _$GToggleExcludeNotStartedVars; + + bool? get excludeNotStarted; + static Serializer get serializer => + _$gToggleExcludeNotStartedVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeNotStartedVars.serializer, + this, + ) as Map); + + static GToggleExcludeNotStartedVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeNotStartedVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.g.dart new file mode 100644 index 00000000..ab6571f9 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.g.dart @@ -0,0 +1,150 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_not_started.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeNotStartedVarsSerializer = + new _$GToggleExcludeNotStartedVarsSerializer(); + +class _$GToggleExcludeNotStartedVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeNotStartedVars, + _$GToggleExcludeNotStartedVars + ]; + @override + final String wireName = 'GToggleExcludeNotStartedVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeNotStartedVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.excludeNotStarted; + if (value != null) { + result + ..add('excludeNotStarted') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleExcludeNotStartedVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeNotStartedVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeNotStartedVars extends GToggleExcludeNotStartedVars { + @override + final bool? excludeNotStarted; + + factory _$GToggleExcludeNotStartedVars( + [void Function(GToggleExcludeNotStartedVarsBuilder)? updates]) => + (new GToggleExcludeNotStartedVarsBuilder()..update(updates))._build(); + + _$GToggleExcludeNotStartedVars._({this.excludeNotStarted}) : super._(); + + @override + GToggleExcludeNotStartedVars rebuild( + void Function(GToggleExcludeNotStartedVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeNotStartedVarsBuilder toBuilder() => + new GToggleExcludeNotStartedVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeNotStartedVars && + excludeNotStarted == other.excludeNotStarted; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeNotStartedVars') + ..add('excludeNotStarted', excludeNotStarted)) + .toString(); + } +} + +class GToggleExcludeNotStartedVarsBuilder + implements + Builder { + _$GToggleExcludeNotStartedVars? _$v; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + GToggleExcludeNotStartedVarsBuilder(); + + GToggleExcludeNotStartedVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _excludeNotStarted = $v.excludeNotStarted; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeNotStartedVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeNotStartedVars; + } + + @override + void update(void Function(GToggleExcludeNotStartedVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeNotStartedVars build() => _build(); + + _$GToggleExcludeNotStartedVars _build() { + final _$result = _$v ?? + new _$GToggleExcludeNotStartedVars._( + excludeNotStarted: excludeNotStarted, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.ast.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.ast.gql.dart new file mode 100644 index 00000000..4cea5e9a --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleExcludeUnreadChapters = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleExcludeUnreadChapters'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'excludeUnreadChapters')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'excludeUnreadChapters')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleExcludeUnreadChapters, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.dart new file mode 100644 index 00000000..778d400a --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.dart @@ -0,0 +1,181 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_unread_chapters.data.gql.g.dart'; + +abstract class GToggleExcludeUnreadChaptersData + implements + Built { + GToggleExcludeUnreadChaptersData._(); + + factory GToggleExcludeUnreadChaptersData( + [void Function(GToggleExcludeUnreadChaptersDataBuilder b) updates]) = + _$GToggleExcludeUnreadChaptersData; + + static void _initializeBuilder(GToggleExcludeUnreadChaptersDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeUnreadChaptersData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleExcludeUnreadChaptersDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeUnreadChaptersData.serializer, + this, + ) as Map); + + static GToggleExcludeUnreadChaptersData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeUnreadChaptersData.serializer, + json, + ); +} + +abstract class GToggleExcludeUnreadChaptersData_setSettings + implements + Built { + GToggleExcludeUnreadChaptersData_setSettings._(); + + factory GToggleExcludeUnreadChaptersData_setSettings( + [void Function(GToggleExcludeUnreadChaptersData_setSettingsBuilder b) + updates]) = _$GToggleExcludeUnreadChaptersData_setSettings; + + static void _initializeBuilder( + GToggleExcludeUnreadChaptersData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleExcludeUnreadChaptersData_setSettings_settings get settings; + static Serializer + get serializer => _$gToggleExcludeUnreadChaptersDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeUnreadChaptersData_setSettings.serializer, + this, + ) as Map); + + static GToggleExcludeUnreadChaptersData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeUnreadChaptersData_setSettings.serializer, + json, + ); +} + +abstract class GToggleExcludeUnreadChaptersData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleExcludeUnreadChaptersData_setSettings_settings._(); + + factory GToggleExcludeUnreadChaptersData_setSettings_settings( + [void Function( + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder b) + updates]) = _$GToggleExcludeUnreadChaptersData_setSettings_settings; + + static void _initializeBuilder( + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gToggleExcludeUnreadChaptersDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeUnreadChaptersData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleExcludeUnreadChaptersData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeUnreadChaptersData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.g.dart new file mode 100644 index 00000000..a33fe80d --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.g.dart @@ -0,0 +1,1446 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_unread_chapters.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeUnreadChaptersDataSerializer = + new _$GToggleExcludeUnreadChaptersDataSerializer(); +Serializer + _$gToggleExcludeUnreadChaptersDataSetSettingsSerializer = + new _$GToggleExcludeUnreadChaptersData_setSettingsSerializer(); +Serializer + _$gToggleExcludeUnreadChaptersDataSetSettingsSettingsSerializer = + new _$GToggleExcludeUnreadChaptersData_setSettings_settingsSerializer(); + +class _$GToggleExcludeUnreadChaptersDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeUnreadChaptersData, + _$GToggleExcludeUnreadChaptersData + ]; + @override + final String wireName = 'GToggleExcludeUnreadChaptersData'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeUnreadChaptersData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GToggleExcludeUnreadChaptersData_setSettings)), + ]; + + return result; + } + + @override + GToggleExcludeUnreadChaptersData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeUnreadChaptersDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleExcludeUnreadChaptersData_setSettings))! + as GToggleExcludeUnreadChaptersData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeUnreadChaptersData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeUnreadChaptersData_setSettings, + _$GToggleExcludeUnreadChaptersData_setSettings + ]; + @override + final String wireName = 'GToggleExcludeUnreadChaptersData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GToggleExcludeUnreadChaptersData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GToggleExcludeUnreadChaptersData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleExcludeUnreadChaptersData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeUnreadChaptersData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleExcludeUnreadChaptersData_setSettings_settings))! + as GToggleExcludeUnreadChaptersData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeUnreadChaptersData_setSettings_settingsSerializer + implements + StructuredSerializer< + GToggleExcludeUnreadChaptersData_setSettings_settings> { + @override + final Iterable types = const [ + GToggleExcludeUnreadChaptersData_setSettings_settings, + _$GToggleExcludeUnreadChaptersData_setSettings_settings + ]; + @override + final String wireName = + 'GToggleExcludeUnreadChaptersData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleExcludeUnreadChaptersData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleExcludeUnreadChaptersData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeUnreadChaptersData + extends GToggleExcludeUnreadChaptersData { + @override + final String G__typename; + @override + final GToggleExcludeUnreadChaptersData_setSettings setSettings; + + factory _$GToggleExcludeUnreadChaptersData( + [void Function(GToggleExcludeUnreadChaptersDataBuilder)? updates]) => + (new GToggleExcludeUnreadChaptersDataBuilder()..update(updates))._build(); + + _$GToggleExcludeUnreadChaptersData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleExcludeUnreadChaptersData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleExcludeUnreadChaptersData', 'setSettings'); + } + + @override + GToggleExcludeUnreadChaptersData rebuild( + void Function(GToggleExcludeUnreadChaptersDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeUnreadChaptersDataBuilder toBuilder() => + new GToggleExcludeUnreadChaptersDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeUnreadChaptersData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeUnreadChaptersData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleExcludeUnreadChaptersDataBuilder + implements + Builder { + _$GToggleExcludeUnreadChaptersData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeUnreadChaptersData_setSettingsBuilder? _setSettings; + GToggleExcludeUnreadChaptersData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GToggleExcludeUnreadChaptersData_setSettingsBuilder(); + set setSettings( + GToggleExcludeUnreadChaptersData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleExcludeUnreadChaptersDataBuilder() { + GToggleExcludeUnreadChaptersData._initializeBuilder(this); + } + + GToggleExcludeUnreadChaptersDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeUnreadChaptersData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeUnreadChaptersData; + } + + @override + void update(void Function(GToggleExcludeUnreadChaptersDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeUnreadChaptersData build() => _build(); + + _$GToggleExcludeUnreadChaptersData _build() { + _$GToggleExcludeUnreadChaptersData _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeUnreadChaptersData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeUnreadChaptersData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeUnreadChaptersData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeUnreadChaptersData_setSettings + extends GToggleExcludeUnreadChaptersData_setSettings { + @override + final String G__typename; + @override + final GToggleExcludeUnreadChaptersData_setSettings_settings settings; + + factory _$GToggleExcludeUnreadChaptersData_setSettings( + [void Function(GToggleExcludeUnreadChaptersData_setSettingsBuilder)? + updates]) => + (new GToggleExcludeUnreadChaptersData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleExcludeUnreadChaptersData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeUnreadChaptersData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleExcludeUnreadChaptersData_setSettings', 'settings'); + } + + @override + GToggleExcludeUnreadChaptersData_setSettings rebuild( + void Function(GToggleExcludeUnreadChaptersData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeUnreadChaptersData_setSettingsBuilder toBuilder() => + new GToggleExcludeUnreadChaptersData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeUnreadChaptersData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeUnreadChaptersData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleExcludeUnreadChaptersData_setSettingsBuilder + implements + Builder { + _$GToggleExcludeUnreadChaptersData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder? _settings; + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder(); + set settings( + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GToggleExcludeUnreadChaptersData_setSettingsBuilder() { + GToggleExcludeUnreadChaptersData_setSettings._initializeBuilder(this); + } + + GToggleExcludeUnreadChaptersData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeUnreadChaptersData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeUnreadChaptersData_setSettings; + } + + @override + void update( + void Function(GToggleExcludeUnreadChaptersData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeUnreadChaptersData_setSettings build() => _build(); + + _$GToggleExcludeUnreadChaptersData_setSettings _build() { + _$GToggleExcludeUnreadChaptersData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeUnreadChaptersData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleExcludeUnreadChaptersData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeUnreadChaptersData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleExcludeUnreadChaptersData_setSettings_settings + extends GToggleExcludeUnreadChaptersData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleExcludeUnreadChaptersData_setSettings_settings( + [void Function( + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder)? + updates]) => + (new GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleExcludeUnreadChaptersData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleExcludeUnreadChaptersData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleExcludeUnreadChaptersData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleExcludeUnreadChaptersData_setSettings_settings rebuild( + void Function( + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder toBuilder() => + new GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeUnreadChaptersData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleExcludeUnreadChaptersData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder + implements + Builder { + _$GToggleExcludeUnreadChaptersData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder() { + GToggleExcludeUnreadChaptersData_setSettings_settings._initializeBuilder( + this); + } + + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeUnreadChaptersData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeUnreadChaptersData_setSettings_settings; + } + + @override + void update( + void Function( + GToggleExcludeUnreadChaptersData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeUnreadChaptersData_setSettings_settings build() => _build(); + + _$GToggleExcludeUnreadChaptersData_setSettings_settings _build() { + _$GToggleExcludeUnreadChaptersData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeUnreadChaptersData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull(ip, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeUnreadChaptersData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.req.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.req.gql.dart new file mode 100644 index 00000000..f9210d8a --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.req.gql.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_exclude_unread_chapters.req.gql.g.dart'; + +abstract class GToggleExcludeUnreadChaptersReq + implements + Built, + _i1.OperationRequest<_i2.GToggleExcludeUnreadChaptersData, + _i3.GToggleExcludeUnreadChaptersVars> { + GToggleExcludeUnreadChaptersReq._(); + + factory GToggleExcludeUnreadChaptersReq( + [void Function(GToggleExcludeUnreadChaptersReqBuilder b) updates]) = + _$GToggleExcludeUnreadChaptersReq; + + static void _initializeBuilder(GToggleExcludeUnreadChaptersReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleExcludeUnreadChapters', + ) + ..executeOnListen = true; + + @override + _i3.GToggleExcludeUnreadChaptersVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleExcludeUnreadChaptersData? Function( + _i2.GToggleExcludeUnreadChaptersData?, + _i2.GToggleExcludeUnreadChaptersData?, + )? get updateResult; + @override + _i2.GToggleExcludeUnreadChaptersData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleExcludeUnreadChaptersData? parseData(Map json) => + _i2.GToggleExcludeUnreadChaptersData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleExcludeUnreadChaptersData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleExcludeUnreadChaptersData, + _i3.GToggleExcludeUnreadChaptersVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleExcludeUnreadChaptersReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleExcludeUnreadChaptersReq.serializer, + this, + ) as Map); + + static GToggleExcludeUnreadChaptersReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleExcludeUnreadChaptersReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.req.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.req.gql.g.dart new file mode 100644 index 00000000..06b9a387 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.req.gql.g.dart @@ -0,0 +1,390 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_unread_chapters.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeUnreadChaptersReqSerializer = + new _$GToggleExcludeUnreadChaptersReqSerializer(); + +class _$GToggleExcludeUnreadChaptersReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeUnreadChaptersReq, + _$GToggleExcludeUnreadChaptersReq + ]; + @override + final String wireName = 'GToggleExcludeUnreadChaptersReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeUnreadChaptersReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleExcludeUnreadChaptersVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GToggleExcludeUnreadChaptersData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleExcludeUnreadChaptersReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeUnreadChaptersReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GToggleExcludeUnreadChaptersVars))! + as _i3.GToggleExcludeUnreadChaptersVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GToggleExcludeUnreadChaptersData))! + as _i2.GToggleExcludeUnreadChaptersData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeUnreadChaptersReq + extends GToggleExcludeUnreadChaptersReq { + @override + final _i3.GToggleExcludeUnreadChaptersVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleExcludeUnreadChaptersData? Function( + _i2.GToggleExcludeUnreadChaptersData?, + _i2.GToggleExcludeUnreadChaptersData?)? updateResult; + @override + final _i2.GToggleExcludeUnreadChaptersData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleExcludeUnreadChaptersReq( + [void Function(GToggleExcludeUnreadChaptersReqBuilder)? updates]) => + (new GToggleExcludeUnreadChaptersReqBuilder()..update(updates))._build(); + + _$GToggleExcludeUnreadChaptersReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleExcludeUnreadChaptersReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleExcludeUnreadChaptersReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleExcludeUnreadChaptersReq', 'executeOnListen'); + } + + @override + GToggleExcludeUnreadChaptersReq rebuild( + void Function(GToggleExcludeUnreadChaptersReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeUnreadChaptersReqBuilder toBuilder() => + new GToggleExcludeUnreadChaptersReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleExcludeUnreadChaptersReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeUnreadChaptersReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleExcludeUnreadChaptersReqBuilder + implements + Builder { + _$GToggleExcludeUnreadChaptersReq? _$v; + + _i3.GToggleExcludeUnreadChaptersVarsBuilder? _vars; + _i3.GToggleExcludeUnreadChaptersVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleExcludeUnreadChaptersVarsBuilder(); + set vars(_i3.GToggleExcludeUnreadChaptersVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleExcludeUnreadChaptersData? Function( + _i2.GToggleExcludeUnreadChaptersData?, + _i2.GToggleExcludeUnreadChaptersData?)? _updateResult; + _i2.GToggleExcludeUnreadChaptersData? Function( + _i2.GToggleExcludeUnreadChaptersData?, + _i2.GToggleExcludeUnreadChaptersData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleExcludeUnreadChaptersData? Function( + _i2.GToggleExcludeUnreadChaptersData?, + _i2.GToggleExcludeUnreadChaptersData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleExcludeUnreadChaptersDataBuilder? _optimisticResponse; + _i2.GToggleExcludeUnreadChaptersDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GToggleExcludeUnreadChaptersDataBuilder(); + set optimisticResponse( + _i2.GToggleExcludeUnreadChaptersDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleExcludeUnreadChaptersReqBuilder() { + GToggleExcludeUnreadChaptersReq._initializeBuilder(this); + } + + GToggleExcludeUnreadChaptersReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeUnreadChaptersReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeUnreadChaptersReq; + } + + @override + void update(void Function(GToggleExcludeUnreadChaptersReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeUnreadChaptersReq build() => _build(); + + _$GToggleExcludeUnreadChaptersReq _build() { + _$GToggleExcludeUnreadChaptersReq _$result; + try { + _$result = _$v ?? + new _$GToggleExcludeUnreadChaptersReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleExcludeUnreadChaptersReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleExcludeUnreadChaptersReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleExcludeUnreadChaptersReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.dart new file mode 100644 index 00000000..7b139559 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_exclude_unread_chapters.var.gql.g.dart'; + +abstract class GToggleExcludeUnreadChaptersVars + implements + Built { + GToggleExcludeUnreadChaptersVars._(); + + factory GToggleExcludeUnreadChaptersVars( + [void Function(GToggleExcludeUnreadChaptersVarsBuilder b) updates]) = + _$GToggleExcludeUnreadChaptersVars; + + bool? get excludeUnreadChapters; + static Serializer get serializer => + _$gToggleExcludeUnreadChaptersVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleExcludeUnreadChaptersVars.serializer, + this, + ) as Map); + + static GToggleExcludeUnreadChaptersVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleExcludeUnreadChaptersVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.g.dart new file mode 100644 index 00000000..c84e612f --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.g.dart @@ -0,0 +1,152 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_exclude_unread_chapters.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleExcludeUnreadChaptersVarsSerializer = + new _$GToggleExcludeUnreadChaptersVarsSerializer(); + +class _$GToggleExcludeUnreadChaptersVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleExcludeUnreadChaptersVars, + _$GToggleExcludeUnreadChaptersVars + ]; + @override + final String wireName = 'GToggleExcludeUnreadChaptersVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleExcludeUnreadChaptersVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.excludeUnreadChapters; + if (value != null) { + result + ..add('excludeUnreadChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleExcludeUnreadChaptersVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleExcludeUnreadChaptersVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleExcludeUnreadChaptersVars + extends GToggleExcludeUnreadChaptersVars { + @override + final bool? excludeUnreadChapters; + + factory _$GToggleExcludeUnreadChaptersVars( + [void Function(GToggleExcludeUnreadChaptersVarsBuilder)? updates]) => + (new GToggleExcludeUnreadChaptersVarsBuilder()..update(updates))._build(); + + _$GToggleExcludeUnreadChaptersVars._({this.excludeUnreadChapters}) + : super._(); + + @override + GToggleExcludeUnreadChaptersVars rebuild( + void Function(GToggleExcludeUnreadChaptersVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleExcludeUnreadChaptersVarsBuilder toBuilder() => + new GToggleExcludeUnreadChaptersVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleExcludeUnreadChaptersVars && + excludeUnreadChapters == other.excludeUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleExcludeUnreadChaptersVars') + ..add('excludeUnreadChapters', excludeUnreadChapters)) + .toString(); + } +} + +class GToggleExcludeUnreadChaptersVarsBuilder + implements + Builder { + _$GToggleExcludeUnreadChaptersVars? _$v; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + GToggleExcludeUnreadChaptersVarsBuilder(); + + GToggleExcludeUnreadChaptersVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _excludeUnreadChapters = $v.excludeUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleExcludeUnreadChaptersVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleExcludeUnreadChaptersVars; + } + + @override + void update(void Function(GToggleExcludeUnreadChaptersVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleExcludeUnreadChaptersVars build() => _build(); + + _$GToggleExcludeUnreadChaptersVars _build() { + final _$result = _$v ?? + new _$GToggleExcludeUnreadChaptersVars._( + excludeUnreadChapters: excludeUnreadChapters, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.ast.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.ast.gql.dart new file mode 100644 index 00000000..053159f6 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateGlobalUpdateInterval = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateGlobalUpdateInterval'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'globalUpdateInterval')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '12')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'globalUpdateInterval')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateGlobalUpdateInterval, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.dart new file mode 100644 index 00000000..6d5b55d7 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.dart @@ -0,0 +1,180 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_global_update_interval.data.gql.g.dart'; + +abstract class GUpdateGlobalUpdateIntervalData + implements + Built { + GUpdateGlobalUpdateIntervalData._(); + + factory GUpdateGlobalUpdateIntervalData( + [void Function(GUpdateGlobalUpdateIntervalDataBuilder b) updates]) = + _$GUpdateGlobalUpdateIntervalData; + + static void _initializeBuilder(GUpdateGlobalUpdateIntervalDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateGlobalUpdateIntervalData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateGlobalUpdateIntervalDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateGlobalUpdateIntervalData.serializer, + this, + ) as Map); + + static GUpdateGlobalUpdateIntervalData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateGlobalUpdateIntervalData.serializer, + json, + ); +} + +abstract class GUpdateGlobalUpdateIntervalData_setSettings + implements + Built { + GUpdateGlobalUpdateIntervalData_setSettings._(); + + factory GUpdateGlobalUpdateIntervalData_setSettings( + [void Function(GUpdateGlobalUpdateIntervalData_setSettingsBuilder b) + updates]) = _$GUpdateGlobalUpdateIntervalData_setSettings; + + static void _initializeBuilder( + GUpdateGlobalUpdateIntervalData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateGlobalUpdateIntervalData_setSettings_settings get settings; + static Serializer + get serializer => _$gUpdateGlobalUpdateIntervalDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateGlobalUpdateIntervalData_setSettings.serializer, + this, + ) as Map); + + static GUpdateGlobalUpdateIntervalData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateGlobalUpdateIntervalData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateGlobalUpdateIntervalData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateGlobalUpdateIntervalData_setSettings_settings._(); + + factory GUpdateGlobalUpdateIntervalData_setSettings_settings( + [void Function( + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder b) + updates]) = _$GUpdateGlobalUpdateIntervalData_setSettings_settings; + + static void _initializeBuilder( + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateGlobalUpdateIntervalDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateGlobalUpdateIntervalData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateGlobalUpdateIntervalData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateGlobalUpdateIntervalData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.g.dart new file mode 100644 index 00000000..09b9715d --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.g.dart @@ -0,0 +1,1444 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_global_update_interval.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateGlobalUpdateIntervalDataSerializer = + new _$GUpdateGlobalUpdateIntervalDataSerializer(); +Serializer + _$gUpdateGlobalUpdateIntervalDataSetSettingsSerializer = + new _$GUpdateGlobalUpdateIntervalData_setSettingsSerializer(); +Serializer + _$gUpdateGlobalUpdateIntervalDataSetSettingsSettingsSerializer = + new _$GUpdateGlobalUpdateIntervalData_setSettings_settingsSerializer(); + +class _$GUpdateGlobalUpdateIntervalDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateGlobalUpdateIntervalData, + _$GUpdateGlobalUpdateIntervalData + ]; + @override + final String wireName = 'GUpdateGlobalUpdateIntervalData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateGlobalUpdateIntervalData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateGlobalUpdateIntervalData_setSettings)), + ]; + + return result; + } + + @override + GUpdateGlobalUpdateIntervalData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateGlobalUpdateIntervalDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateGlobalUpdateIntervalData_setSettings))! + as GUpdateGlobalUpdateIntervalData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateGlobalUpdateIntervalData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateGlobalUpdateIntervalData_setSettings, + _$GUpdateGlobalUpdateIntervalData_setSettings + ]; + @override + final String wireName = 'GUpdateGlobalUpdateIntervalData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateGlobalUpdateIntervalData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateGlobalUpdateIntervalData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateGlobalUpdateIntervalData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateGlobalUpdateIntervalData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateGlobalUpdateIntervalData_setSettings_settings))! + as GUpdateGlobalUpdateIntervalData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateGlobalUpdateIntervalData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateGlobalUpdateIntervalData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateGlobalUpdateIntervalData_setSettings_settings, + _$GUpdateGlobalUpdateIntervalData_setSettings_settings + ]; + @override + final String wireName = + 'GUpdateGlobalUpdateIntervalData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateGlobalUpdateIntervalData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateGlobalUpdateIntervalData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateGlobalUpdateIntervalData + extends GUpdateGlobalUpdateIntervalData { + @override + final String G__typename; + @override + final GUpdateGlobalUpdateIntervalData_setSettings setSettings; + + factory _$GUpdateGlobalUpdateIntervalData( + [void Function(GUpdateGlobalUpdateIntervalDataBuilder)? updates]) => + (new GUpdateGlobalUpdateIntervalDataBuilder()..update(updates))._build(); + + _$GUpdateGlobalUpdateIntervalData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateGlobalUpdateIntervalData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateGlobalUpdateIntervalData', 'setSettings'); + } + + @override + GUpdateGlobalUpdateIntervalData rebuild( + void Function(GUpdateGlobalUpdateIntervalDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateGlobalUpdateIntervalDataBuilder toBuilder() => + new GUpdateGlobalUpdateIntervalDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateGlobalUpdateIntervalData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateGlobalUpdateIntervalData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateGlobalUpdateIntervalDataBuilder + implements + Builder { + _$GUpdateGlobalUpdateIntervalData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateGlobalUpdateIntervalData_setSettingsBuilder? _setSettings; + GUpdateGlobalUpdateIntervalData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateGlobalUpdateIntervalData_setSettingsBuilder(); + set setSettings( + GUpdateGlobalUpdateIntervalData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateGlobalUpdateIntervalDataBuilder() { + GUpdateGlobalUpdateIntervalData._initializeBuilder(this); + } + + GUpdateGlobalUpdateIntervalDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateGlobalUpdateIntervalData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateGlobalUpdateIntervalData; + } + + @override + void update(void Function(GUpdateGlobalUpdateIntervalDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateGlobalUpdateIntervalData build() => _build(); + + _$GUpdateGlobalUpdateIntervalData _build() { + _$GUpdateGlobalUpdateIntervalData _$result; + try { + _$result = _$v ?? + new _$GUpdateGlobalUpdateIntervalData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateGlobalUpdateIntervalData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateGlobalUpdateIntervalData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateGlobalUpdateIntervalData_setSettings + extends GUpdateGlobalUpdateIntervalData_setSettings { + @override + final String G__typename; + @override + final GUpdateGlobalUpdateIntervalData_setSettings_settings settings; + + factory _$GUpdateGlobalUpdateIntervalData_setSettings( + [void Function(GUpdateGlobalUpdateIntervalData_setSettingsBuilder)? + updates]) => + (new GUpdateGlobalUpdateIntervalData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateGlobalUpdateIntervalData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateGlobalUpdateIntervalData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateGlobalUpdateIntervalData_setSettings', 'settings'); + } + + @override + GUpdateGlobalUpdateIntervalData_setSettings rebuild( + void Function(GUpdateGlobalUpdateIntervalData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateGlobalUpdateIntervalData_setSettingsBuilder toBuilder() => + new GUpdateGlobalUpdateIntervalData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateGlobalUpdateIntervalData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateGlobalUpdateIntervalData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateGlobalUpdateIntervalData_setSettingsBuilder + implements + Builder { + _$GUpdateGlobalUpdateIntervalData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder? _settings; + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder(); + set settings( + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateGlobalUpdateIntervalData_setSettingsBuilder() { + GUpdateGlobalUpdateIntervalData_setSettings._initializeBuilder(this); + } + + GUpdateGlobalUpdateIntervalData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateGlobalUpdateIntervalData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateGlobalUpdateIntervalData_setSettings; + } + + @override + void update( + void Function(GUpdateGlobalUpdateIntervalData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateGlobalUpdateIntervalData_setSettings build() => _build(); + + _$GUpdateGlobalUpdateIntervalData_setSettings _build() { + _$GUpdateGlobalUpdateIntervalData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateGlobalUpdateIntervalData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateGlobalUpdateIntervalData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateGlobalUpdateIntervalData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateGlobalUpdateIntervalData_setSettings_settings + extends GUpdateGlobalUpdateIntervalData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateGlobalUpdateIntervalData_setSettings_settings( + [void Function( + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateGlobalUpdateIntervalData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateGlobalUpdateIntervalData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateGlobalUpdateIntervalData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateGlobalUpdateIntervalData_setSettings_settings rebuild( + void Function( + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder toBuilder() => + new GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateGlobalUpdateIntervalData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateGlobalUpdateIntervalData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateGlobalUpdateIntervalData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder() { + GUpdateGlobalUpdateIntervalData_setSettings_settings._initializeBuilder( + this); + } + + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateGlobalUpdateIntervalData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateGlobalUpdateIntervalData_setSettings_settings; + } + + @override + void update( + void Function( + GUpdateGlobalUpdateIntervalData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateGlobalUpdateIntervalData_setSettings_settings build() => _build(); + + _$GUpdateGlobalUpdateIntervalData_setSettings_settings _build() { + _$GUpdateGlobalUpdateIntervalData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateGlobalUpdateIntervalData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull(ip, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateGlobalUpdateIntervalData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.req.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.req.gql.dart new file mode 100644 index 00000000..30a09796 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.req.gql.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_global_update_interval.req.gql.g.dart'; + +abstract class GUpdateGlobalUpdateIntervalReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateGlobalUpdateIntervalData, + _i3.GUpdateGlobalUpdateIntervalVars> { + GUpdateGlobalUpdateIntervalReq._(); + + factory GUpdateGlobalUpdateIntervalReq( + [void Function(GUpdateGlobalUpdateIntervalReqBuilder b) updates]) = + _$GUpdateGlobalUpdateIntervalReq; + + static void _initializeBuilder(GUpdateGlobalUpdateIntervalReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateGlobalUpdateInterval', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateGlobalUpdateIntervalVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateGlobalUpdateIntervalData? Function( + _i2.GUpdateGlobalUpdateIntervalData?, + _i2.GUpdateGlobalUpdateIntervalData?, + )? get updateResult; + @override + _i2.GUpdateGlobalUpdateIntervalData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateGlobalUpdateIntervalData? parseData(Map json) => + _i2.GUpdateGlobalUpdateIntervalData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateGlobalUpdateIntervalData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateGlobalUpdateIntervalData, + _i3.GUpdateGlobalUpdateIntervalVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateGlobalUpdateIntervalReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateGlobalUpdateIntervalReq.serializer, + this, + ) as Map); + + static GUpdateGlobalUpdateIntervalReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateGlobalUpdateIntervalReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.req.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.req.gql.g.dart new file mode 100644 index 00000000..87c2296e --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.req.gql.g.dart @@ -0,0 +1,389 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_global_update_interval.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateGlobalUpdateIntervalReqSerializer = + new _$GUpdateGlobalUpdateIntervalReqSerializer(); + +class _$GUpdateGlobalUpdateIntervalReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateGlobalUpdateIntervalReq, + _$GUpdateGlobalUpdateIntervalReq + ]; + @override + final String wireName = 'GUpdateGlobalUpdateIntervalReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateGlobalUpdateIntervalReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateGlobalUpdateIntervalVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GUpdateGlobalUpdateIntervalData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateGlobalUpdateIntervalReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateGlobalUpdateIntervalReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateGlobalUpdateIntervalVars))! + as _i3.GUpdateGlobalUpdateIntervalVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateGlobalUpdateIntervalData))! + as _i2.GUpdateGlobalUpdateIntervalData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateGlobalUpdateIntervalReq extends GUpdateGlobalUpdateIntervalReq { + @override + final _i3.GUpdateGlobalUpdateIntervalVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateGlobalUpdateIntervalData? Function( + _i2.GUpdateGlobalUpdateIntervalData?, + _i2.GUpdateGlobalUpdateIntervalData?)? updateResult; + @override + final _i2.GUpdateGlobalUpdateIntervalData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateGlobalUpdateIntervalReq( + [void Function(GUpdateGlobalUpdateIntervalReqBuilder)? updates]) => + (new GUpdateGlobalUpdateIntervalReqBuilder()..update(updates))._build(); + + _$GUpdateGlobalUpdateIntervalReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateGlobalUpdateIntervalReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateGlobalUpdateIntervalReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateGlobalUpdateIntervalReq', 'executeOnListen'); + } + + @override + GUpdateGlobalUpdateIntervalReq rebuild( + void Function(GUpdateGlobalUpdateIntervalReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateGlobalUpdateIntervalReqBuilder toBuilder() => + new GUpdateGlobalUpdateIntervalReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateGlobalUpdateIntervalReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateGlobalUpdateIntervalReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateGlobalUpdateIntervalReqBuilder + implements + Builder { + _$GUpdateGlobalUpdateIntervalReq? _$v; + + _i3.GUpdateGlobalUpdateIntervalVarsBuilder? _vars; + _i3.GUpdateGlobalUpdateIntervalVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateGlobalUpdateIntervalVarsBuilder(); + set vars(_i3.GUpdateGlobalUpdateIntervalVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateGlobalUpdateIntervalData? Function( + _i2.GUpdateGlobalUpdateIntervalData?, + _i2.GUpdateGlobalUpdateIntervalData?)? _updateResult; + _i2.GUpdateGlobalUpdateIntervalData? Function( + _i2.GUpdateGlobalUpdateIntervalData?, + _i2.GUpdateGlobalUpdateIntervalData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateGlobalUpdateIntervalData? Function( + _i2.GUpdateGlobalUpdateIntervalData?, + _i2.GUpdateGlobalUpdateIntervalData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateGlobalUpdateIntervalDataBuilder? _optimisticResponse; + _i2.GUpdateGlobalUpdateIntervalDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateGlobalUpdateIntervalDataBuilder(); + set optimisticResponse( + _i2.GUpdateGlobalUpdateIntervalDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateGlobalUpdateIntervalReqBuilder() { + GUpdateGlobalUpdateIntervalReq._initializeBuilder(this); + } + + GUpdateGlobalUpdateIntervalReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateGlobalUpdateIntervalReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateGlobalUpdateIntervalReq; + } + + @override + void update(void Function(GUpdateGlobalUpdateIntervalReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateGlobalUpdateIntervalReq build() => _build(); + + _$GUpdateGlobalUpdateIntervalReq _build() { + _$GUpdateGlobalUpdateIntervalReq _$result; + try { + _$result = _$v ?? + new _$GUpdateGlobalUpdateIntervalReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateGlobalUpdateIntervalReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateGlobalUpdateIntervalReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateGlobalUpdateIntervalReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.dart new file mode 100644 index 00000000..a611de0e --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_global_update_interval.var.gql.g.dart'; + +abstract class GUpdateGlobalUpdateIntervalVars + implements + Built { + GUpdateGlobalUpdateIntervalVars._(); + + factory GUpdateGlobalUpdateIntervalVars( + [void Function(GUpdateGlobalUpdateIntervalVarsBuilder b) updates]) = + _$GUpdateGlobalUpdateIntervalVars; + + double? get globalUpdateInterval; + static Serializer get serializer => + _$gUpdateGlobalUpdateIntervalVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateGlobalUpdateIntervalVars.serializer, + this, + ) as Map); + + static GUpdateGlobalUpdateIntervalVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateGlobalUpdateIntervalVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.g.dart new file mode 100644 index 00000000..05995410 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.g.dart @@ -0,0 +1,151 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_global_update_interval.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateGlobalUpdateIntervalVarsSerializer = + new _$GUpdateGlobalUpdateIntervalVarsSerializer(); + +class _$GUpdateGlobalUpdateIntervalVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateGlobalUpdateIntervalVars, + _$GUpdateGlobalUpdateIntervalVars + ]; + @override + final String wireName = 'GUpdateGlobalUpdateIntervalVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateGlobalUpdateIntervalVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.globalUpdateInterval; + if (value != null) { + result + ..add('globalUpdateInterval') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + return result; + } + + @override + GUpdateGlobalUpdateIntervalVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateGlobalUpdateIntervalVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateGlobalUpdateIntervalVars + extends GUpdateGlobalUpdateIntervalVars { + @override + final double? globalUpdateInterval; + + factory _$GUpdateGlobalUpdateIntervalVars( + [void Function(GUpdateGlobalUpdateIntervalVarsBuilder)? updates]) => + (new GUpdateGlobalUpdateIntervalVarsBuilder()..update(updates))._build(); + + _$GUpdateGlobalUpdateIntervalVars._({this.globalUpdateInterval}) : super._(); + + @override + GUpdateGlobalUpdateIntervalVars rebuild( + void Function(GUpdateGlobalUpdateIntervalVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateGlobalUpdateIntervalVarsBuilder toBuilder() => + new GUpdateGlobalUpdateIntervalVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateGlobalUpdateIntervalVars && + globalUpdateInterval == other.globalUpdateInterval; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateGlobalUpdateIntervalVars') + ..add('globalUpdateInterval', globalUpdateInterval)) + .toString(); + } +} + +class GUpdateGlobalUpdateIntervalVarsBuilder + implements + Builder { + _$GUpdateGlobalUpdateIntervalVars? _$v; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + GUpdateGlobalUpdateIntervalVarsBuilder(); + + GUpdateGlobalUpdateIntervalVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _globalUpdateInterval = $v.globalUpdateInterval; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateGlobalUpdateIntervalVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateGlobalUpdateIntervalVars; + } + + @override + void update(void Function(GUpdateGlobalUpdateIntervalVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateGlobalUpdateIntervalVars build() => _build(); + + _$GUpdateGlobalUpdateIntervalVars _build() { + final _$result = _$v ?? + new _$GUpdateGlobalUpdateIntervalVars._( + globalUpdateInterval: globalUpdateInterval, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.ast.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.ast.gql.dart new file mode 100644 index 00000000..1a2820e7 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateMangaMetaData = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateMangaMetaData'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'updateMangas')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'updateMangas'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'updateMangas')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateMangaMetaData, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.dart new file mode 100644 index 00000000..d56dda1d --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.dart @@ -0,0 +1,177 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_manga_meta_data.data.gql.g.dart'; + +abstract class GUpdateMangaMetaDataData + implements + Built { + GUpdateMangaMetaDataData._(); + + factory GUpdateMangaMetaDataData( + [void Function(GUpdateMangaMetaDataDataBuilder b) updates]) = + _$GUpdateMangaMetaDataData; + + static void _initializeBuilder(GUpdateMangaMetaDataDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateMangaMetaDataData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateMangaMetaDataDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaMetaDataData.serializer, + this, + ) as Map); + + static GUpdateMangaMetaDataData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaMetaDataData.serializer, + json, + ); +} + +abstract class GUpdateMangaMetaDataData_setSettings + implements + Built { + GUpdateMangaMetaDataData_setSettings._(); + + factory GUpdateMangaMetaDataData_setSettings( + [void Function(GUpdateMangaMetaDataData_setSettingsBuilder b) + updates]) = _$GUpdateMangaMetaDataData_setSettings; + + static void _initializeBuilder( + GUpdateMangaMetaDataData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateMangaMetaDataData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateMangaMetaDataDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaMetaDataData_setSettings.serializer, + this, + ) as Map); + + static GUpdateMangaMetaDataData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaMetaDataData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateMangaMetaDataData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateMangaMetaDataData_setSettings_settings._(); + + factory GUpdateMangaMetaDataData_setSettings_settings( + [void Function(GUpdateMangaMetaDataData_setSettings_settingsBuilder b) + updates]) = _$GUpdateMangaMetaDataData_setSettings_settings; + + static void _initializeBuilder( + GUpdateMangaMetaDataData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gUpdateMangaMetaDataDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaMetaDataData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateMangaMetaDataData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaMetaDataData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.g.dart new file mode 100644 index 00000000..099aca70 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.g.dart @@ -0,0 +1,1382 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_manga_meta_data.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateMangaMetaDataDataSerializer = + new _$GUpdateMangaMetaDataDataSerializer(); +Serializer + _$gUpdateMangaMetaDataDataSetSettingsSerializer = + new _$GUpdateMangaMetaDataData_setSettingsSerializer(); +Serializer + _$gUpdateMangaMetaDataDataSetSettingsSettingsSerializer = + new _$GUpdateMangaMetaDataData_setSettings_settingsSerializer(); + +class _$GUpdateMangaMetaDataDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaMetaDataData, + _$GUpdateMangaMetaDataData + ]; + @override + final String wireName = 'GUpdateMangaMetaDataData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaMetaDataData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateMangaMetaDataData_setSettings)), + ]; + + return result; + } + + @override + GUpdateMangaMetaDataData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaMetaDataDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateMangaMetaDataData_setSettings))! + as GUpdateMangaMetaDataData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaMetaDataData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaMetaDataData_setSettings, + _$GUpdateMangaMetaDataData_setSettings + ]; + @override + final String wireName = 'GUpdateMangaMetaDataData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaMetaDataData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateMangaMetaDataData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateMangaMetaDataData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaMetaDataData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateMangaMetaDataData_setSettings_settings))! + as GUpdateMangaMetaDataData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaMetaDataData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaMetaDataData_setSettings_settings, + _$GUpdateMangaMetaDataData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateMangaMetaDataData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateMangaMetaDataData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateMangaMetaDataData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaMetaDataData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaMetaDataData extends GUpdateMangaMetaDataData { + @override + final String G__typename; + @override + final GUpdateMangaMetaDataData_setSettings setSettings; + + factory _$GUpdateMangaMetaDataData( + [void Function(GUpdateMangaMetaDataDataBuilder)? updates]) => + (new GUpdateMangaMetaDataDataBuilder()..update(updates))._build(); + + _$GUpdateMangaMetaDataData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateMangaMetaDataData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateMangaMetaDataData', 'setSettings'); + } + + @override + GUpdateMangaMetaDataData rebuild( + void Function(GUpdateMangaMetaDataDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaMetaDataDataBuilder toBuilder() => + new GUpdateMangaMetaDataDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaMetaDataData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaMetaDataData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateMangaMetaDataDataBuilder + implements + Builder { + _$GUpdateMangaMetaDataData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateMangaMetaDataData_setSettingsBuilder? _setSettings; + GUpdateMangaMetaDataData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateMangaMetaDataData_setSettingsBuilder(); + set setSettings(GUpdateMangaMetaDataData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateMangaMetaDataDataBuilder() { + GUpdateMangaMetaDataData._initializeBuilder(this); + } + + GUpdateMangaMetaDataDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaMetaDataData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaMetaDataData; + } + + @override + void update(void Function(GUpdateMangaMetaDataDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaMetaDataData build() => _build(); + + _$GUpdateMangaMetaDataData _build() { + _$GUpdateMangaMetaDataData _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaMetaDataData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateMangaMetaDataData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaMetaDataData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaMetaDataData_setSettings + extends GUpdateMangaMetaDataData_setSettings { + @override + final String G__typename; + @override + final GUpdateMangaMetaDataData_setSettings_settings settings; + + factory _$GUpdateMangaMetaDataData_setSettings( + [void Function(GUpdateMangaMetaDataData_setSettingsBuilder)? + updates]) => + (new GUpdateMangaMetaDataData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateMangaMetaDataData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateMangaMetaDataData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateMangaMetaDataData_setSettings', 'settings'); + } + + @override + GUpdateMangaMetaDataData_setSettings rebuild( + void Function(GUpdateMangaMetaDataData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaMetaDataData_setSettingsBuilder toBuilder() => + new GUpdateMangaMetaDataData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaMetaDataData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaMetaDataData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateMangaMetaDataData_setSettingsBuilder + implements + Builder { + _$GUpdateMangaMetaDataData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateMangaMetaDataData_setSettings_settingsBuilder? _settings; + GUpdateMangaMetaDataData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateMangaMetaDataData_setSettings_settingsBuilder(); + set settings( + GUpdateMangaMetaDataData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateMangaMetaDataData_setSettingsBuilder() { + GUpdateMangaMetaDataData_setSettings._initializeBuilder(this); + } + + GUpdateMangaMetaDataData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaMetaDataData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaMetaDataData_setSettings; + } + + @override + void update( + void Function(GUpdateMangaMetaDataData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaMetaDataData_setSettings build() => _build(); + + _$GUpdateMangaMetaDataData_setSettings _build() { + _$GUpdateMangaMetaDataData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaMetaDataData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateMangaMetaDataData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaMetaDataData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaMetaDataData_setSettings_settings + extends GUpdateMangaMetaDataData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateMangaMetaDataData_setSettings_settings( + [void Function(GUpdateMangaMetaDataData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateMangaMetaDataData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateMangaMetaDataData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateMangaMetaDataData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateMangaMetaDataData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateMangaMetaDataData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateMangaMetaDataData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateMangaMetaDataData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateMangaMetaDataData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateMangaMetaDataData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateMangaMetaDataData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateMangaMetaDataData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateMangaMetaDataData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateMangaMetaDataData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateMangaMetaDataData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateMangaMetaDataData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateMangaMetaDataData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateMangaMetaDataData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateMangaMetaDataData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateMangaMetaDataData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateMangaMetaDataData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateMangaMetaDataData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateMangaMetaDataData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateMangaMetaDataData_setSettings_settings rebuild( + void Function(GUpdateMangaMetaDataData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaMetaDataData_setSettings_settingsBuilder toBuilder() => + new GUpdateMangaMetaDataData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaMetaDataData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateMangaMetaDataData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateMangaMetaDataData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateMangaMetaDataData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateMangaMetaDataData_setSettings_settingsBuilder() { + GUpdateMangaMetaDataData_setSettings_settings._initializeBuilder(this); + } + + GUpdateMangaMetaDataData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaMetaDataData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaMetaDataData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateMangaMetaDataData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaMetaDataData_setSettings_settings build() => _build(); + + _$GUpdateMangaMetaDataData_setSettings_settings _build() { + _$GUpdateMangaMetaDataData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaMetaDataData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateMangaMetaDataData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateMangaMetaDataData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateMangaMetaDataData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateMangaMetaDataData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateMangaMetaDataData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateMangaMetaDataData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaMetaDataData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.req.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.req.gql.dart new file mode 100644 index 00000000..3fb52a57 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_manga_meta_data.req.gql.g.dart'; + +abstract class GUpdateMangaMetaDataReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateMangaMetaDataData, + _i3.GUpdateMangaMetaDataVars> { + GUpdateMangaMetaDataReq._(); + + factory GUpdateMangaMetaDataReq( + [void Function(GUpdateMangaMetaDataReqBuilder b) updates]) = + _$GUpdateMangaMetaDataReq; + + static void _initializeBuilder(GUpdateMangaMetaDataReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateMangaMetaData', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateMangaMetaDataVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateMangaMetaDataData? Function( + _i2.GUpdateMangaMetaDataData?, + _i2.GUpdateMangaMetaDataData?, + )? get updateResult; + @override + _i2.GUpdateMangaMetaDataData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateMangaMetaDataData? parseData(Map json) => + _i2.GUpdateMangaMetaDataData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateMangaMetaDataData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateMangaMetaDataData, + _i3.GUpdateMangaMetaDataVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateMangaMetaDataReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateMangaMetaDataReq.serializer, + this, + ) as Map); + + static GUpdateMangaMetaDataReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateMangaMetaDataReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.req.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.req.gql.g.dart new file mode 100644 index 00000000..0cf6f598 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.req.gql.g.dart @@ -0,0 +1,378 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_manga_meta_data.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateMangaMetaDataReqSerializer = + new _$GUpdateMangaMetaDataReqSerializer(); + +class _$GUpdateMangaMetaDataReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaMetaDataReq, + _$GUpdateMangaMetaDataReq + ]; + @override + final String wireName = 'GUpdateMangaMetaDataReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaMetaDataReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateMangaMetaDataVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateMangaMetaDataData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateMangaMetaDataReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaMetaDataReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateMangaMetaDataVars))! + as _i3.GUpdateMangaMetaDataVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateMangaMetaDataData))! + as _i2.GUpdateMangaMetaDataData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaMetaDataReq extends GUpdateMangaMetaDataReq { + @override + final _i3.GUpdateMangaMetaDataVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateMangaMetaDataData? Function( + _i2.GUpdateMangaMetaDataData?, _i2.GUpdateMangaMetaDataData?)? + updateResult; + @override + final _i2.GUpdateMangaMetaDataData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateMangaMetaDataReq( + [void Function(GUpdateMangaMetaDataReqBuilder)? updates]) => + (new GUpdateMangaMetaDataReqBuilder()..update(updates))._build(); + + _$GUpdateMangaMetaDataReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateMangaMetaDataReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateMangaMetaDataReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateMangaMetaDataReq', 'executeOnListen'); + } + + @override + GUpdateMangaMetaDataReq rebuild( + void Function(GUpdateMangaMetaDataReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaMetaDataReqBuilder toBuilder() => + new GUpdateMangaMetaDataReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateMangaMetaDataReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaMetaDataReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateMangaMetaDataReqBuilder + implements + Builder { + _$GUpdateMangaMetaDataReq? _$v; + + _i3.GUpdateMangaMetaDataVarsBuilder? _vars; + _i3.GUpdateMangaMetaDataVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateMangaMetaDataVarsBuilder(); + set vars(_i3.GUpdateMangaMetaDataVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateMangaMetaDataData? Function( + _i2.GUpdateMangaMetaDataData?, _i2.GUpdateMangaMetaDataData?)? + _updateResult; + _i2.GUpdateMangaMetaDataData? Function( + _i2.GUpdateMangaMetaDataData?, _i2.GUpdateMangaMetaDataData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateMangaMetaDataData? Function( + _i2.GUpdateMangaMetaDataData?, _i2.GUpdateMangaMetaDataData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateMangaMetaDataDataBuilder? _optimisticResponse; + _i2.GUpdateMangaMetaDataDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateMangaMetaDataDataBuilder(); + set optimisticResponse( + _i2.GUpdateMangaMetaDataDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateMangaMetaDataReqBuilder() { + GUpdateMangaMetaDataReq._initializeBuilder(this); + } + + GUpdateMangaMetaDataReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaMetaDataReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaMetaDataReq; + } + + @override + void update(void Function(GUpdateMangaMetaDataReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaMetaDataReq build() => _build(); + + _$GUpdateMangaMetaDataReq _build() { + _$GUpdateMangaMetaDataReq _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaMetaDataReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateMangaMetaDataReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateMangaMetaDataReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaMetaDataReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.dart new file mode 100644 index 00000000..b0f8e800 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_manga_meta_data.var.gql.g.dart'; + +abstract class GUpdateMangaMetaDataVars + implements + Built { + GUpdateMangaMetaDataVars._(); + + factory GUpdateMangaMetaDataVars( + [void Function(GUpdateMangaMetaDataVarsBuilder b) updates]) = + _$GUpdateMangaMetaDataVars; + + bool? get updateMangas; + static Serializer get serializer => + _$gUpdateMangaMetaDataVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaMetaDataVars.serializer, + this, + ) as Map); + + static GUpdateMangaMetaDataVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaMetaDataVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.g.dart b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.g.dart new file mode 100644 index 00000000..edf06e2c --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_manga_meta_data.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateMangaMetaDataVarsSerializer = + new _$GUpdateMangaMetaDataVarsSerializer(); + +class _$GUpdateMangaMetaDataVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaMetaDataVars, + _$GUpdateMangaMetaDataVars + ]; + @override + final String wireName = 'GUpdateMangaMetaDataVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaMetaDataVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.updateMangas; + if (value != null) { + result + ..add('updateMangas') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateMangaMetaDataVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaMetaDataVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaMetaDataVars extends GUpdateMangaMetaDataVars { + @override + final bool? updateMangas; + + factory _$GUpdateMangaMetaDataVars( + [void Function(GUpdateMangaMetaDataVarsBuilder)? updates]) => + (new GUpdateMangaMetaDataVarsBuilder()..update(updates))._build(); + + _$GUpdateMangaMetaDataVars._({this.updateMangas}) : super._(); + + @override + GUpdateMangaMetaDataVars rebuild( + void Function(GUpdateMangaMetaDataVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaMetaDataVarsBuilder toBuilder() => + new GUpdateMangaMetaDataVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaMetaDataVars && + updateMangas == other.updateMangas; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaMetaDataVars') + ..add('updateMangas', updateMangas)) + .toString(); + } +} + +class GUpdateMangaMetaDataVarsBuilder + implements + Builder { + _$GUpdateMangaMetaDataVars? _$v; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + GUpdateMangaMetaDataVarsBuilder(); + + GUpdateMangaMetaDataVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _updateMangas = $v.updateMangas; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaMetaDataVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaMetaDataVars; + } + + @override + void update(void Function(GUpdateMangaMetaDataVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaMetaDataVars build() => _build(); + + _$GUpdateMangaMetaDataVars _build() { + final _$result = _$v ?? + new _$GUpdateMangaMetaDataVars._( + updateMangas: updateMangas, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_completed.graphql b/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_completed.graphql new file mode 100644 index 00000000..d8b4b815 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_completed.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleExcludeCompleted($excludeCompleted: Boolean = false) { + setSettings(input: {settings: {excludeCompleted: $excludeCompleted}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_not_started.graphql b/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_not_started.graphql new file mode 100644 index 00000000..dbea2313 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_not_started.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleExcludeNotStarted($excludeNotStarted: Boolean = false) { + setSettings(input: {settings: {excludeNotStarted: $excludeNotStarted}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_unread_chapters.graphql b/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_unread_chapters.graphql new file mode 100644 index 00000000..081caf0c --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/toggle_exclude_unread_chapters.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleExcludeUnreadChapters($excludeUnreadChapters: Boolean = false) { + setSettings(input: {settings: {excludeUnreadChapters: $excludeUnreadChapters}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/update_global_update_interval.graphql b/lib/src/features/settings/presentation/library/data/graphql/queries/update_global_update_interval.graphql new file mode 100644 index 00000000..27bcb7d8 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/update_global_update_interval.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateGlobalUpdateInterval($globalUpdateInterval: Float = 12) { + setSettings(input: {settings: {globalUpdateInterval: $globalUpdateInterval}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/queries/update_manga_meta_data.graphql b/lib/src/features/settings/presentation/library/data/graphql/queries/update_manga_meta_data.graphql new file mode 100644 index 00000000..9c669528 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/queries/update_manga_meta_data.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateMangaMetaData($updateMangas: Boolean = false) { + setSettings(input: {settings: {updateMangas: $updateMangas}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/library/data/graphql/query.dart b/lib/src/features/settings/presentation/library/data/graphql/query.dart new file mode 100644 index 00000000..a6c1afe5 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/graphql/query.dart @@ -0,0 +1,26 @@ +import 'queries/__generated__/toggle_exclude_completed.req.gql.dart'; +import 'queries/__generated__/toggle_exclude_not_started.req.gql.dart'; +import 'queries/__generated__/toggle_exclude_unread_chapters.req.gql.dart'; +import 'queries/__generated__/update_global_update_interval.req.gql.dart'; +import 'queries/__generated__/update_manga_meta_data.req.gql.dart'; + +abstract class LibrarySettingsQuery { + static GUpdateGlobalUpdateIntervalReq updateGlobalUpdateInterval( + double value) => + GUpdateGlobalUpdateIntervalReq( + (req) => req..vars.globalUpdateInterval = value); + + static GUpdateMangaMetaDataReq updateMangaMetaData(bool value) => + GUpdateMangaMetaDataReq((req) => req..vars.updateMangas = value); + + static GToggleExcludeCompletedReq toggleExcludeCompleted(bool value) => + GToggleExcludeCompletedReq((req) => req..vars.excludeCompleted = value); + + static GToggleExcludeNotStartedReq toggleExcludeNotStarted(bool value) => + GToggleExcludeNotStartedReq((req) => req..vars.excludeNotStarted = value); + + static GToggleExcludeUnreadChaptersReq toggleExcludeUnreadChapters( + bool value) => + GToggleExcludeUnreadChaptersReq( + (req) => req..vars.excludeUnreadChapters = value); +} diff --git a/lib/src/features/settings/presentation/library/data/library_settings_repository.dart b/lib/src/features/settings/presentation/library/data/library_settings_repository.dart new file mode 100644 index 00000000..6017ec82 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/library_settings_repository.dart @@ -0,0 +1,55 @@ +import 'package:ferry/ferry.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../domain/settings/settings.dart'; +import 'graphql/query.dart'; + +part 'library_settings_repository.g.dart'; + +class LibrarySettingsRepository { + const LibrarySettingsRepository(this.ferryClient); + + final Client ferryClient; + + Future updateGlobalUpdateInterval(double value) => ferryClient + .fetch( + LibrarySettingsQuery.updateGlobalUpdateInterval(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateMangaMetaData(bool value) => ferryClient + .fetch( + LibrarySettingsQuery.updateMangaMetaData(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleExcludeCompleted(bool value) => ferryClient + .fetch( + LibrarySettingsQuery.toggleExcludeCompleted(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleExcludeNotStarted(bool value) => ferryClient + .fetch( + LibrarySettingsQuery.toggleExcludeNotStarted(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleExcludeUnreadChapters(bool value) => ferryClient + .fetch( + LibrarySettingsQuery.toggleExcludeUnreadChapters(value), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +LibrarySettingsRepository librarySettingsRepository(Ref ref) => + LibrarySettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/library/data/library_settings_repository.g.dart b/lib/src/features/settings/presentation/library/data/library_settings_repository.g.dart new file mode 100644 index 00000000..26270c12 --- /dev/null +++ b/lib/src/features/settings/presentation/library/data/library_settings_repository.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'library_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$librarySettingsRepositoryHash() => + r'79285aaf0f6feeb22a09fd4443c513aff27a98d1'; + +/// See also [librarySettingsRepository]. +@ProviderFor(librarySettingsRepository) +final librarySettingsRepositoryProvider = + AutoDisposeProvider.internal( + librarySettingsRepository, + name: r'librarySettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$librarySettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef LibrarySettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/library/library_settings_screen.dart b/lib/src/features/settings/presentation/library/library_settings_screen.dart index 047b32c0..dc82f0b8 100644 --- a/lib/src/features/settings/presentation/library/library_settings_screen.dart +++ b/lib/src/features/settings/presentation/library/library_settings_screen.dart @@ -5,27 +5,135 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../routes/router_config.dart'; import '../../../../utils/extensions/custom_extensions.dart'; +import '../../../../utils/misc/app_utils.dart'; +import '../../../../utils/misc/toast/toast.dart'; +import '../../../../widgets/emoticons.dart'; +import '../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../widgets/input_popup/settings_prop_tile.dart'; +import '../../../../widgets/section_title.dart'; +import '../../controller/server_controller.dart'; +import '../../domain/library_settings/library_settings.dart'; +import 'data/library_settings_repository.dart'; +import 'widgets/skip_updating_entries_popup.dart'; -class LibrarySettingsScreen extends StatelessWidget { +class LibrarySettingsScreen extends ConsumerWidget { const LibrarySettingsScreen({super.key}); @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text(context.l10n!.library), + Widget build(context, ref) { + final repository = ref.watch(librarySettingsRepositoryProvider); + final serverSettings = ref.watch(settingsProvider); + + return ListTileTheme( + data: const ListTileThemeData( + subtitleTextStyle: TextStyle(color: Colors.grey), ), - body: ListView( - children: [ - ListTile( - title: Text(context.l10n!.categories), - leading: const Icon(Icons.label_rounded), - onTap: () => const EditCategoriesRoute().push(context), + child: Scaffold( + appBar: AppBar( + title: Text(context.l10n.library), + ), + body: RefreshIndicator( + onRefresh: () => ref.refresh(settingsProvider.future), + child: serverSettings.showUiWhenData( + context, + (data) { + final LibrarySettingsDto? librarySettingsDto = data; + if (librarySettingsDto == null) { + return Emoticons( + title: context.l10n.noPropFound(context.l10n.settings), + ); + } + final skipUpdatingEntriesList = [ + if (librarySettingsDto.excludeCompleted) + context.l10n.withCompletedStatus, + if (librarySettingsDto.excludeNotStarted) + context.l10n.thatHaventBeenStarted, + if (librarySettingsDto.excludeUnreadChapters) + context.l10n.withUnreadChapter, + ]; + void onAutomaticUpdateIntervalUpdate(int value) async { + final result = await AppUtils.guard( + () => + repository.updateGlobalUpdateInterval(value.toDouble()), + ref.read(toastProvider)); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } + + return ListView( + children: [ + SectionTitle(title: context.l10n.general), + ListTile( + title: Text(context.l10n.categories), + leading: const Icon(Icons.label_rounded), + onTap: () => const EditCategoriesRoute().go(context), + ), + SectionTitle(title: context.l10n.globalUpdate), + SettingsPropTile( + leading: const Icon(Icons.autorenew_rounded), + title: context.l10n.automaticUpdate, + subtitle: librarySettingsDto.globalUpdateInterval.isNotZero + ? context.l10n.nHours( + librarySettingsDto.globalUpdateInterval.toInt()) + : null, + trailing: Switch( + value: librarySettingsDto.globalUpdateInterval.isNotZero, + onChanged: (value) => + onAutomaticUpdateIntervalUpdate(value ? 12 : 0), + ), + onTap: AppUtils.returnIf( + librarySettingsDto.globalUpdateInterval.isZero, + () => onAutomaticUpdateIntervalUpdate(12), + ), + type: SettingsPropType.numberPicker( + min: 1, + max: 10000000, + value: librarySettingsDto.globalUpdateInterval.toInt(), + onChanged: (value) => repository + .updateGlobalUpdateInterval(value.toDouble()), + ), + ), + SettingsPropTile( + title: context.l10n.automaticallyRefreshMetadata, + trailing: const Icon(Icons.now_wallpaper_rounded), + subtitle: context.l10n.automaticallyRefreshMetadataSubtitle, + type: SettingsPropType.switchTile( + value: librarySettingsDto.updateMangas, + onChanged: (value) async { + final result = await AppUtils.guard( + () => repository.updateMangaMetaData(value), + ref.read(toastProvider)); + if (result != null) { + ref + .watch(settingsProvider.notifier) + .updateState(result); + } + }, + ), + ), + ListTile( + title: Text(context.l10n.skipUpdatingEntries), + subtitle: Text( + skipUpdatingEntriesList.isNotBlank + ? skipUpdatingEntriesList.join(", ") + : context.l10n.none, + ), + onTap: () => showDialog( + context: context, + builder: (context) => const SkipUpdatingEntriesPopup(), + ), + ), + // SectionTitle(title: context.l10n.advanced), + ], + ); + }, ), - ], + ), ), ); } diff --git a/lib/src/features/settings/presentation/library/widgets/skip_updating_entries_popup.dart b/lib/src/features/settings/presentation/library/widgets/skip_updating_entries_popup.dart new file mode 100644 index 00000000..014d2e7a --- /dev/null +++ b/lib/src/features/settings/presentation/library/widgets/skip_updating_entries_popup.dart @@ -0,0 +1,83 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../constants/app_sizes.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../utils/misc/app_utils.dart'; +import '../../../../../utils/misc/toast/toast.dart'; +import '../../../controller/server_controller.dart'; +import '../../../domain/library_settings/library_settings.dart'; +import '../data/library_settings_repository.dart'; + +class SkipUpdatingEntriesPopup extends ConsumerWidget { + const SkipUpdatingEntriesPopup({super.key}); + + @override + Widget build(context, ref) { + final settingsDto = ref.watch(settingsProvider); + final repository = ref.watch(librarySettingsRepositoryProvider); + final LibrarySettingsDto? librarySettingsDto = settingsDto.valueOrNull; + return AlertDialog( + title: Text(context.l10n.skipUpdatingEntries), + contentPadding: KEdgeInsets.v8.size, + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + CheckboxListTile( + controlAffinity: ListTileControlAffinity.leading, + activeColor: context.theme.indicatorColor, + title: Text(context.l10n.withCompletedStatus), + value: librarySettingsDto?.excludeCompleted.ifNull(), + onChanged: (value) async { + final result = await AppUtils.guard( + () => repository.toggleExcludeCompleted(value.ifNull()), + ref.read(toastProvider), + ); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + CheckboxListTile( + controlAffinity: ListTileControlAffinity.leading, + activeColor: context.theme.indicatorColor, + title: Text(context.l10n.thatHaventBeenStarted), + value: librarySettingsDto?.excludeNotStarted.ifNull(), + onChanged: (value) async { + final result = await AppUtils.guard( + () => repository.toggleExcludeNotStarted(value.ifNull()), + ref.read(toastProvider), + ); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + CheckboxListTile( + controlAffinity: ListTileControlAffinity.leading, + activeColor: context.theme.indicatorColor, + title: Text(context.l10n.withUnreadChapter), + value: librarySettingsDto?.excludeUnreadChapters.ifNull(), + onChanged: (value) async { + final result = await AppUtils.guard( + () => repository.toggleExcludeUnreadChapters(value.ifNull()), + ref.read(toastProvider), + ); + if (result != null) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + ], + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: Text(context.l10n.close), + ) + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/more/more_screen.dart b/lib/src/features/settings/presentation/more/more_screen.dart index aeb4f91d..d0e119e5 100644 --- a/lib/src/features/settings/presentation/more/more_screen.dart +++ b/lib/src/features/settings/presentation/more/more_screen.dart @@ -14,7 +14,7 @@ import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/launch_url_in_web.dart'; import '../../../../utils/misc/toast/toast.dart'; import '../../widgets/app_theme_mode_tile/app_theme_mode_tile.dart'; -import '../../widgets/server_url_tile/server_url_tile.dart'; +import '../server/widget/client/server_url_tile/server_url_tile.dart'; class MoreScreen extends ConsumerWidget { const MoreScreen({super.key}); @@ -23,7 +23,7 @@ class MoreScreen extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return Scaffold( appBar: AppBar( - title: Text(context.l10n!.more), + title: Text(context.l10n.more), ), body: ListView( children: [ @@ -34,34 +34,34 @@ class MoreScreen extends ConsumerWidget { const Divider(), const ServerUrlTile(), ListTile( - title: Text(context.l10n!.categories), + title: Text(context.l10n.categories), leading: const Icon(Icons.label_rounded), onTap: () => const EditCategoriesRoute().push(context), ), const AppThemeModeTile(), ListTile( - title: Text(context.l10n!.backup), + title: Text(context.l10n.backup), leading: const Icon(Icons.settings_backup_restore_rounded), onTap: () => const BackupRoute().push(context), ), const Divider(), ListTile( - title: Text(context.l10n!.settings), + title: Text(context.l10n.settings), leading: const Icon(Icons.settings_rounded), - onTap: () => const SettingsRoute().push(context), + onTap: () => const SettingsRoute().go(context), ), ListTile( - title: Text(context.l10n!.about), + title: Text(context.l10n.about), leading: const Icon(Icons.info_rounded), - onTap: () => const AboutRoute().push(context), + onTap: () => const AboutRoute().go(context), ), ListTile( - title: Text(context.l10n!.help), + title: Text(context.l10n.help), leading: const Icon(Icons.help_rounded), onTap: () => launchUrlInWeb( context, AppUrls.tachideskHelp.url, - ref.read(toastProvider(context)), + ref.read(toastProvider), ), ), ], diff --git a/lib/src/features/settings/presentation/reader/reader_settings_screen.dart b/lib/src/features/settings/presentation/reader/reader_settings_screen.dart index 374386d4..b0fe87b0 100644 --- a/lib/src/features/settings/presentation/reader/reader_settings_screen.dart +++ b/lib/src/features/settings/presentation/reader/reader_settings_screen.dart @@ -31,7 +31,7 @@ class ReaderSettingsScreen extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final isVolumeTapEnabled = ref.watch(volumeTapProvider).ifNull(); return Scaffold( - appBar: AppBar(title: Text(context.l10n!.reader)), + appBar: AppBar(title: Text(context.l10n.reader)), body: ListView( children: [ const ReaderModeTile(), diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart index 0875d9c9..e0b83a79 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.dart @@ -28,8 +28,8 @@ class ReaderInitialOverlayTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.layers_outlined), - title: Text(context.l10n!.readerOverlay), - subtitle: Text(context.l10n!.readerOverlaySubtitle), + title: Text(context.l10n.readerOverlay), + subtitle: Text(context.l10n.readerOverlaySubtitle), onChanged: ref.read(readerInitialOverlayProvider.notifier).update, value: ref.watch(readerInitialOverlayProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.g.dart index 639bd930..4f505efd 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_initial_overlay_tile/reader_initial_overlay_tile.g.dart @@ -24,4 +24,4 @@ final readerInitialOverlayProvider = typedef _$ReaderInitialOverlay = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart index fd09f8ff..dd0ab05a 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.dart @@ -27,7 +27,7 @@ class ReaderInvertTapTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.switch_left_rounded), - title: Text(context.l10n!.readerNavigationLayoutInvert), + title: Text(context.l10n.readerNavigationLayoutInvert), onChanged: ref.read(invertTapProvider.notifier).update, value: ref.watch(invertTapProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.g.dart index ba1770a3..97f31263 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_invert_tap_tile/reader_invert_tap_tile.g.dart @@ -22,4 +22,4 @@ final invertTapProvider = typedef _$InvertTap = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart index ee81bacb..05177727 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.dart @@ -35,8 +35,8 @@ class ReaderMagnifierSizeSlider extends ConsumerWidget { ref.watch(readerMagnifierSizeKeyProvider) ?? DBKeys.readerMagnifierSize.initial; return SliderSettingTile( - icon: Icons.search, - title: context.l10n!.readerMagnifierSize, + icon: Icons.search_rounded, + title: context.l10n.readerMagnifierSize, value: readerMagnifierSize, getSliderLabel: (val) => val.toStringAsFixed(2), onChanged: ref.read(readerMagnifierSizeKeyProvider.notifier).update, @@ -77,8 +77,8 @@ class AsyncReaderMagnifierSizeSlider extends HookConsumerWidget { [], ); return SliderSettingTile( - icon: Icons.search, - title: context.l10n!.readerMagnifierSize, + icon: Icons.search_rounded, + title: context.l10n.readerMagnifierSize, value: readerMagnifierSize.value, getSliderLabel: (val) => val.toStringAsFixed(2), onChanged: onDebounceChanged, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.g.dart index 37040cb9..825a605e 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_magnifier_size_slider/reader_magnifier_size_slider.g.dart @@ -24,4 +24,4 @@ final readerMagnifierSizeKeyProvider = typedef _$ReaderMagnifierSizeKey = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart index 454133bd..61301551 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.dart @@ -12,7 +12,7 @@ import '../../../../../../constants/db_keys.dart'; import '../../../../../../constants/enum.dart'; import '../../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../../../widgets/radio_list_popup.dart'; +import '../../../../../../widgets/popup_widgets/radio_list_popup.dart'; part 'reader_mode_tile.g.dart'; @@ -33,11 +33,11 @@ class ReaderModeTile extends ConsumerWidget { return ListTile( leading: const Icon(Icons.app_settings_alt_rounded), subtitle: readerMode != null ? Text(readerMode.toLocale(context)) : null, - title: Text(context.l10n!.readerMode), + title: Text(context.l10n.readerMode), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.readerMode, + title: context.l10n.readerMode, optionList: ReaderMode.values.sublist(1), getOptionTitle: (value) => value.toLocale(context), value: readerMode ?? ReaderMode.webtoon, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.g.dart index b0b254f0..0d56251c 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_mode_tile/reader_mode_tile.g.dart @@ -23,4 +23,4 @@ final readerModeKeyProvider = typedef _$ReaderModeKey = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart index 659e3488..cb5704ca 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.dart @@ -12,7 +12,7 @@ import '../../../../../../constants/db_keys.dart'; import '../../../../../../constants/enum.dart'; import '../../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../../../widgets/radio_list_popup.dart'; +import '../../../../../../widgets/popup_widgets/radio_list_popup.dart'; part 'reader_navigation_layout_tile.g.dart'; @@ -37,11 +37,11 @@ class ReaderNavigationLayoutTile extends ConsumerWidget { subtitle: readerNavigationLayout != null ? Text(readerNavigationLayout.toLocale(context)) : null, - title: Text(context.l10n!.readerNavigationLayout), + title: Text(context.l10n.readerNavigationLayout), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.readerNavigationLayout, + title: context.l10n.readerNavigationLayout, optionList: ReaderNavigationLayout.values.sublist(1), getOptionTitle: (value) => value.toLocale(context), value: readerNavigationLayout ?? ReaderNavigationLayout.disabled, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.g.dart index 68b2a74d..c795e5da 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_navigation_layout_tile/reader_navigation_layout_tile.g.dart @@ -25,4 +25,4 @@ final readerNavigationLayoutKeyProvider = AutoDisposeNotifierProvider< typedef _$ReaderNavigationLayoutKey = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart b/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart index d292e7fb..62ffec6c 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.dart @@ -35,7 +35,7 @@ class ReaderPaddingSlider extends ConsumerWidget { ref.watch(readerPaddingKeyProvider) ?? DBKeys.readerPadding.initial; return SliderSettingTile( icon: Icons.width_wide_rounded, - title: context.l10n!.readerPadding, + title: context.l10n.readerPadding, value: readerPadding, getSliderLabel: (val) => (val * 2.5).toStringAsFixed(2), onChanged: ref.read(readerPaddingKeyProvider.notifier).update, @@ -77,7 +77,7 @@ class AsyncReaderPaddingSlider extends HookConsumerWidget { ); return SliderSettingTile( icon: Icons.width_wide_rounded, - title: context.l10n!.readerPadding, + title: context.l10n.readerPadding, value: readerPadding.value, getSliderLabel: (val) => (val * 2.5).toStringAsFixed(2), onChanged: onDebounceChanged, diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.g.dart index 6ca0a9f2..be96a20a 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_padding_slider/reader_padding_slider.g.dart @@ -23,4 +23,4 @@ final readerPaddingKeyProvider = typedef _$ReaderPaddingKey = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart b/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart index 9c2cd2f3..8e7bf369 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.dart @@ -26,7 +26,7 @@ class ReaderPinchToZoom extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.pinch_rounded), - title: Text(context.l10n!.pinchToZoom), + title: Text(context.l10n.pinchToZoom), onChanged: ref.read(pinchToZoomProvider.notifier).update, value: ref.watch(pinchToZoomProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.g.dart index 89dc48ee..db8a995a 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_pinch_to_zoom/reader_pinch_to_zoom.g.dart @@ -22,4 +22,4 @@ final pinchToZoomProvider = typedef _$PinchToZoom = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart index c1bda741..6cb8aa5f 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.dart @@ -28,7 +28,7 @@ class ReaderScrollAnimationTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.animation_rounded), - title: Text(context.l10n!.readerScrollAnimation), + title: Text(context.l10n.readerScrollAnimation), onChanged: ref.read(readerScrollAnimationProvider.notifier).update, value: ref.watch(readerScrollAnimationProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.g.dart index 7fdae799..6e2813a4 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_scroll_animation_tile/reader_scroll_animation_tile.g.dart @@ -24,4 +24,4 @@ final readerScrollAnimationProvider = typedef _$ReaderScrollAnimation = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart index 75b19575..169128bb 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.dart @@ -28,8 +28,8 @@ class SwipeChapterToggleTile extends HookConsumerWidget { return SwitchListTile( controlAffinity: ListTileControlAffinity.trailing, secondary: const Icon(Icons.swipe_rounded), - title: Text(context.l10n!.readerSwipeChapterToggle), - subtitle: Text(context.l10n!.readerSwipeChapterToggleDescription), + title: Text(context.l10n.readerSwipeChapterToggle), + subtitle: Text(context.l10n.readerSwipeChapterToggleDescription), onChanged: ref.read(swipeChapterToggleProvider.notifier).update, value: ref.watch(swipeChapterToggleProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.g.dart index d06363c6..565424e4 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_swipe_toggle_tile/reader_swipe_chapter_toggle_tile.g.dart @@ -24,4 +24,4 @@ final swipeChapterToggleProvider = typedef _$SwipeChapterToggle = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart index d2e00afb..91f1f7d4 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.dart @@ -32,7 +32,7 @@ class ReaderVolumeTapInvertTile extends HookConsumerWidget { angle: -math.pi / 2, child: const Icon(Icons.switch_left_rounded), ), - title: Text(context.l10n!.readerVolumeTapInvert), + title: Text(context.l10n.readerVolumeTapInvert), onChanged: ref.read(volumeTapInvertProvider.notifier).update, value: ref.watch(volumeTapInvertProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.g.dart index d2a26868..2c82de90 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_invert_tile/reader_volume_tap_invert_tile.g.dart @@ -23,4 +23,4 @@ final volumeTapInvertProvider = typedef _$VolumeTapInvert = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart index 892aca33..ca286de5 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.dart @@ -31,8 +31,8 @@ class ReaderVolumeTapTile extends HookConsumerWidget { angle: math.pi / 2, child: const Icon(Icons.switch_left_rounded), ), - title: Text(context.l10n!.readerVolumeTap), - subtitle: Text(context.l10n!.readerVolumeTapSubtitle), + title: Text(context.l10n.readerVolumeTap), + subtitle: Text(context.l10n.readerVolumeTapSubtitle), onChanged: ref.read(volumeTapProvider.notifier).update, value: ref.watch(volumeTapProvider).ifNull(), ); diff --git a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.g.dart b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.g.dart index fb051143..bb62e068 100644 --- a/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.g.dart +++ b/lib/src/features/settings/presentation/reader/widgets/reader_volume_tap_tile/reader_volume_tap_tile.g.dart @@ -22,4 +22,4 @@ final volumeTapProvider = typedef _$VolumeTap = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.ast.gql.dart new file mode 100644 index 00000000..55a1bf81 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleDebugLogs = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleDebugLogs'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'debugLogsEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'debugLogsEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleDebugLogs, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.dart new file mode 100644 index 00000000..ab670c2f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_debug_logs.data.gql.g.dart'; + +abstract class GToggleDebugLogsData + implements Built { + GToggleDebugLogsData._(); + + factory GToggleDebugLogsData( + [void Function(GToggleDebugLogsDataBuilder b) updates]) = + _$GToggleDebugLogsData; + + static void _initializeBuilder(GToggleDebugLogsDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleDebugLogsData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleDebugLogsDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsData.serializer, + this, + ) as Map); + + static GToggleDebugLogsData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsData.serializer, + json, + ); +} + +abstract class GToggleDebugLogsData_setSettings + implements + Built { + GToggleDebugLogsData_setSettings._(); + + factory GToggleDebugLogsData_setSettings( + [void Function(GToggleDebugLogsData_setSettingsBuilder b) updates]) = + _$GToggleDebugLogsData_setSettings; + + static void _initializeBuilder(GToggleDebugLogsData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleDebugLogsData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleDebugLogsDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsData_setSettings.serializer, + this, + ) as Map); + + static GToggleDebugLogsData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsData_setSettings.serializer, + json, + ); +} + +abstract class GToggleDebugLogsData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleDebugLogsData_setSettings_settings._(); + + factory GToggleDebugLogsData_setSettings_settings( + [void Function(GToggleDebugLogsData_setSettings_settingsBuilder b) + updates]) = _$GToggleDebugLogsData_setSettings_settings; + + static void _initializeBuilder( + GToggleDebugLogsData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gToggleDebugLogsDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleDebugLogsData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.g.dart new file mode 100644 index 00000000..80d51f45 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.g.dart @@ -0,0 +1,1351 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_debug_logs.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleDebugLogsDataSerializer = + new _$GToggleDebugLogsDataSerializer(); +Serializer + _$gToggleDebugLogsDataSetSettingsSerializer = + new _$GToggleDebugLogsData_setSettingsSerializer(); +Serializer + _$gToggleDebugLogsDataSetSettingsSettingsSerializer = + new _$GToggleDebugLogsData_setSettings_settingsSerializer(); + +class _$GToggleDebugLogsDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsData, + _$GToggleDebugLogsData + ]; + @override + final String wireName = 'GToggleDebugLogsData'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleDebugLogsData_setSettings)), + ]; + + return result; + } + + @override + GToggleDebugLogsData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleDebugLogsData_setSettings))! + as GToggleDebugLogsData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsData_setSettings, + _$GToggleDebugLogsData_setSettings + ]; + @override + final String wireName = 'GToggleDebugLogsData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleDebugLogsData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleDebugLogsData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleDebugLogsData_setSettings_settings))! + as GToggleDebugLogsData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsData_setSettings_settings, + _$GToggleDebugLogsData_setSettings_settings + ]; + @override + final String wireName = 'GToggleDebugLogsData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleDebugLogsData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsData extends GToggleDebugLogsData { + @override + final String G__typename; + @override + final GToggleDebugLogsData_setSettings setSettings; + + factory _$GToggleDebugLogsData( + [void Function(GToggleDebugLogsDataBuilder)? updates]) => + (new GToggleDebugLogsDataBuilder()..update(updates))._build(); + + _$GToggleDebugLogsData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleDebugLogsData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleDebugLogsData', 'setSettings'); + } + + @override + GToggleDebugLogsData rebuild( + void Function(GToggleDebugLogsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsDataBuilder toBuilder() => + new GToggleDebugLogsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleDebugLogsDataBuilder + implements Builder { + _$GToggleDebugLogsData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleDebugLogsData_setSettingsBuilder? _setSettings; + GToggleDebugLogsData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleDebugLogsData_setSettingsBuilder(); + set setSettings(GToggleDebugLogsData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleDebugLogsDataBuilder() { + GToggleDebugLogsData._initializeBuilder(this); + } + + GToggleDebugLogsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsData; + } + + @override + void update(void Function(GToggleDebugLogsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsData build() => _build(); + + _$GToggleDebugLogsData _build() { + _$GToggleDebugLogsData _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleDebugLogsData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleDebugLogsData_setSettings + extends GToggleDebugLogsData_setSettings { + @override + final String G__typename; + @override + final GToggleDebugLogsData_setSettings_settings settings; + + factory _$GToggleDebugLogsData_setSettings( + [void Function(GToggleDebugLogsData_setSettingsBuilder)? updates]) => + (new GToggleDebugLogsData_setSettingsBuilder()..update(updates))._build(); + + _$GToggleDebugLogsData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleDebugLogsData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleDebugLogsData_setSettings', 'settings'); + } + + @override + GToggleDebugLogsData_setSettings rebuild( + void Function(GToggleDebugLogsData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsData_setSettingsBuilder toBuilder() => + new GToggleDebugLogsData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleDebugLogsData_setSettingsBuilder + implements + Builder { + _$GToggleDebugLogsData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleDebugLogsData_setSettings_settingsBuilder? _settings; + GToggleDebugLogsData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleDebugLogsData_setSettings_settingsBuilder(); + set settings(GToggleDebugLogsData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleDebugLogsData_setSettingsBuilder() { + GToggleDebugLogsData_setSettings._initializeBuilder(this); + } + + GToggleDebugLogsData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsData_setSettings; + } + + @override + void update(void Function(GToggleDebugLogsData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsData_setSettings build() => _build(); + + _$GToggleDebugLogsData_setSettings _build() { + _$GToggleDebugLogsData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleDebugLogsData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleDebugLogsData_setSettings_settings + extends GToggleDebugLogsData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleDebugLogsData_setSettings_settings( + [void Function(GToggleDebugLogsData_setSettings_settingsBuilder)? + updates]) => + (new GToggleDebugLogsData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GToggleDebugLogsData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleDebugLogsData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleDebugLogsData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GToggleDebugLogsData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleDebugLogsData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GToggleDebugLogsData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleDebugLogsData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleDebugLogsData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleDebugLogsData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleDebugLogsData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleDebugLogsData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleDebugLogsData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleDebugLogsData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GToggleDebugLogsData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleDebugLogsData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GToggleDebugLogsData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleDebugLogsData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GToggleDebugLogsData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GToggleDebugLogsData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GToggleDebugLogsData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleDebugLogsData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleDebugLogsData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleDebugLogsData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleDebugLogsData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleDebugLogsData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleDebugLogsData_setSettings_settings rebuild( + void Function(GToggleDebugLogsData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsData_setSettings_settingsBuilder toBuilder() => + new GToggleDebugLogsData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleDebugLogsData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleDebugLogsData_setSettings_settingsBuilder + implements + Builder { + _$GToggleDebugLogsData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleDebugLogsData_setSettings_settingsBuilder() { + GToggleDebugLogsData_setSettings_settings._initializeBuilder(this); + } + + GToggleDebugLogsData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsData_setSettings_settings; + } + + @override + void update( + void Function(GToggleDebugLogsData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsData_setSettings_settings build() => _build(); + + _$GToggleDebugLogsData_setSettings_settings _build() { + _$GToggleDebugLogsData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleDebugLogsData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleDebugLogsData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleDebugLogsData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleDebugLogsData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleDebugLogsData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleDebugLogsData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GToggleDebugLogsData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleDebugLogsData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleDebugLogsData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleDebugLogsData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleDebugLogsData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleDebugLogsData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleDebugLogsData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleDebugLogsData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleDebugLogsData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleDebugLogsData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleDebugLogsData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleDebugLogsData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleDebugLogsData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleDebugLogsData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleDebugLogsData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleDebugLogsData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleDebugLogsData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleDebugLogsData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleDebugLogsData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleDebugLogsData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleDebugLogsData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleDebugLogsData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleDebugLogsData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleDebugLogsData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleDebugLogsData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleDebugLogsData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleDebugLogsData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.req.gql.dart new file mode 100644 index 00000000..95322a67 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_debug_logs.req.gql.g.dart'; + +abstract class GToggleDebugLogsReq + implements + Built, + _i1 + .OperationRequest<_i2.GToggleDebugLogsData, _i3.GToggleDebugLogsVars> { + GToggleDebugLogsReq._(); + + factory GToggleDebugLogsReq( + [void Function(GToggleDebugLogsReqBuilder b) updates]) = + _$GToggleDebugLogsReq; + + static void _initializeBuilder(GToggleDebugLogsReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleDebugLogs', + ) + ..executeOnListen = true; + + @override + _i3.GToggleDebugLogsVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, + _i2.GToggleDebugLogsData?, + )? get updateResult; + @override + _i2.GToggleDebugLogsData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleDebugLogsData? parseData(Map json) => + _i2.GToggleDebugLogsData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleDebugLogsData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleDebugLogsData, _i3.GToggleDebugLogsVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleDebugLogsReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleDebugLogsReq.serializer, + this, + ) as Map); + + static GToggleDebugLogsReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleDebugLogsReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.req.gql.g.dart new file mode 100644 index 00000000..e9eb7f86 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.req.gql.g.dart @@ -0,0 +1,373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_debug_logs.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleDebugLogsReqSerializer = + new _$GToggleDebugLogsReqSerializer(); + +class _$GToggleDebugLogsReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsReq, + _$GToggleDebugLogsReq + ]; + @override + final String wireName = 'GToggleDebugLogsReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleDebugLogsVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleDebugLogsData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleDebugLogsReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleDebugLogsVars))! + as _i3.GToggleDebugLogsVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleDebugLogsData))! + as _i2.GToggleDebugLogsData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsReq extends GToggleDebugLogsReq { + @override + final _i3.GToggleDebugLogsVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? updateResult; + @override + final _i2.GToggleDebugLogsData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleDebugLogsReq( + [void Function(GToggleDebugLogsReqBuilder)? updates]) => + (new GToggleDebugLogsReqBuilder()..update(updates))._build(); + + _$GToggleDebugLogsReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GToggleDebugLogsReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleDebugLogsReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleDebugLogsReq', 'executeOnListen'); + } + + @override + GToggleDebugLogsReq rebuild( + void Function(GToggleDebugLogsReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsReqBuilder toBuilder() => + new GToggleDebugLogsReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleDebugLogsReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleDebugLogsReqBuilder + implements Builder { + _$GToggleDebugLogsReq? _$v; + + _i3.GToggleDebugLogsVarsBuilder? _vars; + _i3.GToggleDebugLogsVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleDebugLogsVarsBuilder(); + set vars(_i3.GToggleDebugLogsVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? _updateResult; + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleDebugLogsData? Function( + _i2.GToggleDebugLogsData?, _i2.GToggleDebugLogsData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleDebugLogsDataBuilder? _optimisticResponse; + _i2.GToggleDebugLogsDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleDebugLogsDataBuilder(); + set optimisticResponse(_i2.GToggleDebugLogsDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleDebugLogsReqBuilder() { + GToggleDebugLogsReq._initializeBuilder(this); + } + + GToggleDebugLogsReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsReq; + } + + @override + void update(void Function(GToggleDebugLogsReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsReq build() => _build(); + + _$GToggleDebugLogsReq _build() { + _$GToggleDebugLogsReq _$result; + try { + _$result = _$v ?? + new _$GToggleDebugLogsReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleDebugLogsReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleDebugLogsReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleDebugLogsReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.dart new file mode 100644 index 00000000..9253c430 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_debug_logs.var.gql.g.dart'; + +abstract class GToggleDebugLogsVars + implements Built { + GToggleDebugLogsVars._(); + + factory GToggleDebugLogsVars( + [void Function(GToggleDebugLogsVarsBuilder b) updates]) = + _$GToggleDebugLogsVars; + + bool? get debugLogsEnabled; + static Serializer get serializer => + _$gToggleDebugLogsVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleDebugLogsVars.serializer, + this, + ) as Map); + + static GToggleDebugLogsVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleDebugLogsVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.g.dart new file mode 100644 index 00000000..fc841cf3 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_debug_logs.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleDebugLogsVarsSerializer = + new _$GToggleDebugLogsVarsSerializer(); + +class _$GToggleDebugLogsVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleDebugLogsVars, + _$GToggleDebugLogsVars + ]; + @override + final String wireName = 'GToggleDebugLogsVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleDebugLogsVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.debugLogsEnabled; + if (value != null) { + result + ..add('debugLogsEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleDebugLogsVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleDebugLogsVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleDebugLogsVars extends GToggleDebugLogsVars { + @override + final bool? debugLogsEnabled; + + factory _$GToggleDebugLogsVars( + [void Function(GToggleDebugLogsVarsBuilder)? updates]) => + (new GToggleDebugLogsVarsBuilder()..update(updates))._build(); + + _$GToggleDebugLogsVars._({this.debugLogsEnabled}) : super._(); + + @override + GToggleDebugLogsVars rebuild( + void Function(GToggleDebugLogsVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleDebugLogsVarsBuilder toBuilder() => + new GToggleDebugLogsVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleDebugLogsVars && + debugLogsEnabled == other.debugLogsEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleDebugLogsVars') + ..add('debugLogsEnabled', debugLogsEnabled)) + .toString(); + } +} + +class GToggleDebugLogsVarsBuilder + implements Builder { + _$GToggleDebugLogsVars? _$v; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + GToggleDebugLogsVarsBuilder(); + + GToggleDebugLogsVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _debugLogsEnabled = $v.debugLogsEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleDebugLogsVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleDebugLogsVars; + } + + @override + void update(void Function(GToggleDebugLogsVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleDebugLogsVars build() => _build(); + + _$GToggleDebugLogsVars _build() { + final _$result = _$v ?? + new _$GToggleDebugLogsVars._( + debugLogsEnabled: debugLogsEnabled, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.ast.gql.dart new file mode 100644 index 00000000..74abd14f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleFlareSolverr = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleFlareSolverr'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleFlareSolverr, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.dart new file mode 100644 index 00000000..71f2ccf3 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.dart @@ -0,0 +1,176 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_flare_solverr.data.gql.g.dart'; + +abstract class GToggleFlareSolverrData + implements Built { + GToggleFlareSolverrData._(); + + factory GToggleFlareSolverrData( + [void Function(GToggleFlareSolverrDataBuilder b) updates]) = + _$GToggleFlareSolverrData; + + static void _initializeBuilder(GToggleFlareSolverrDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleFlareSolverrData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleFlareSolverrDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrData.serializer, + this, + ) as Map); + + static GToggleFlareSolverrData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrData.serializer, + json, + ); +} + +abstract class GToggleFlareSolverrData_setSettings + implements + Built { + GToggleFlareSolverrData_setSettings._(); + + factory GToggleFlareSolverrData_setSettings( + [void Function(GToggleFlareSolverrData_setSettingsBuilder b) + updates]) = _$GToggleFlareSolverrData_setSettings; + + static void _initializeBuilder( + GToggleFlareSolverrData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleFlareSolverrData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleFlareSolverrDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrData_setSettings.serializer, + this, + ) as Map); + + static GToggleFlareSolverrData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrData_setSettings.serializer, + json, + ); +} + +abstract class GToggleFlareSolverrData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleFlareSolverrData_setSettings_settings._(); + + factory GToggleFlareSolverrData_setSettings_settings( + [void Function(GToggleFlareSolverrData_setSettings_settingsBuilder b) + updates]) = _$GToggleFlareSolverrData_setSettings_settings; + + static void _initializeBuilder( + GToggleFlareSolverrData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gToggleFlareSolverrDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleFlareSolverrData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.g.dart new file mode 100644 index 00000000..281241bd --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.g.dart @@ -0,0 +1,1373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_flare_solverr.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleFlareSolverrDataSerializer = + new _$GToggleFlareSolverrDataSerializer(); +Serializer + _$gToggleFlareSolverrDataSetSettingsSerializer = + new _$GToggleFlareSolverrData_setSettingsSerializer(); +Serializer + _$gToggleFlareSolverrDataSetSettingsSettingsSerializer = + new _$GToggleFlareSolverrData_setSettings_settingsSerializer(); + +class _$GToggleFlareSolverrDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrData, + _$GToggleFlareSolverrData + ]; + @override + final String wireName = 'GToggleFlareSolverrData'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleFlareSolverrData_setSettings)), + ]; + + return result; + } + + @override + GToggleFlareSolverrData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleFlareSolverrData_setSettings))! + as GToggleFlareSolverrData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrData_setSettings, + _$GToggleFlareSolverrData_setSettings + ]; + @override + final String wireName = 'GToggleFlareSolverrData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleFlareSolverrData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleFlareSolverrData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleFlareSolverrData_setSettings_settings))! + as GToggleFlareSolverrData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrData_setSettings_settings, + _$GToggleFlareSolverrData_setSettings_settings + ]; + @override + final String wireName = 'GToggleFlareSolverrData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleFlareSolverrData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleFlareSolverrData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrData extends GToggleFlareSolverrData { + @override + final String G__typename; + @override + final GToggleFlareSolverrData_setSettings setSettings; + + factory _$GToggleFlareSolverrData( + [void Function(GToggleFlareSolverrDataBuilder)? updates]) => + (new GToggleFlareSolverrDataBuilder()..update(updates))._build(); + + _$GToggleFlareSolverrData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleFlareSolverrData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleFlareSolverrData', 'setSettings'); + } + + @override + GToggleFlareSolverrData rebuild( + void Function(GToggleFlareSolverrDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrDataBuilder toBuilder() => + new GToggleFlareSolverrDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleFlareSolverrDataBuilder + implements + Builder { + _$GToggleFlareSolverrData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleFlareSolverrData_setSettingsBuilder? _setSettings; + GToggleFlareSolverrData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleFlareSolverrData_setSettingsBuilder(); + set setSettings(GToggleFlareSolverrData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleFlareSolverrDataBuilder() { + GToggleFlareSolverrData._initializeBuilder(this); + } + + GToggleFlareSolverrDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrData; + } + + @override + void update(void Function(GToggleFlareSolverrDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrData build() => _build(); + + _$GToggleFlareSolverrData _build() { + _$GToggleFlareSolverrData _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleFlareSolverrData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleFlareSolverrData_setSettings + extends GToggleFlareSolverrData_setSettings { + @override + final String G__typename; + @override + final GToggleFlareSolverrData_setSettings_settings settings; + + factory _$GToggleFlareSolverrData_setSettings( + [void Function(GToggleFlareSolverrData_setSettingsBuilder)? + updates]) => + (new GToggleFlareSolverrData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleFlareSolverrData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleFlareSolverrData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleFlareSolverrData_setSettings', 'settings'); + } + + @override + GToggleFlareSolverrData_setSettings rebuild( + void Function(GToggleFlareSolverrData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrData_setSettingsBuilder toBuilder() => + new GToggleFlareSolverrData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleFlareSolverrData_setSettingsBuilder + implements + Builder { + _$GToggleFlareSolverrData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleFlareSolverrData_setSettings_settingsBuilder? _settings; + GToggleFlareSolverrData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleFlareSolverrData_setSettings_settingsBuilder(); + set settings(GToggleFlareSolverrData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleFlareSolverrData_setSettingsBuilder() { + GToggleFlareSolverrData_setSettings._initializeBuilder(this); + } + + GToggleFlareSolverrData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrData_setSettings; + } + + @override + void update( + void Function(GToggleFlareSolverrData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrData_setSettings build() => _build(); + + _$GToggleFlareSolverrData_setSettings _build() { + _$GToggleFlareSolverrData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleFlareSolverrData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleFlareSolverrData_setSettings_settings + extends GToggleFlareSolverrData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleFlareSolverrData_setSettings_settings( + [void Function(GToggleFlareSolverrData_setSettings_settingsBuilder)? + updates]) => + (new GToggleFlareSolverrData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleFlareSolverrData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleFlareSolverrData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleFlareSolverrData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleFlareSolverrData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleFlareSolverrData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleFlareSolverrData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleFlareSolverrData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleFlareSolverrData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleFlareSolverrData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleFlareSolverrData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleFlareSolverrData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleFlareSolverrData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleFlareSolverrData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleFlareSolverrData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleFlareSolverrData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleFlareSolverrData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GToggleFlareSolverrData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GToggleFlareSolverrData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleFlareSolverrData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleFlareSolverrData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleFlareSolverrData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleFlareSolverrData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleFlareSolverrData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleFlareSolverrData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleFlareSolverrData_setSettings_settings rebuild( + void Function(GToggleFlareSolverrData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrData_setSettings_settingsBuilder toBuilder() => + new GToggleFlareSolverrData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleFlareSolverrData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleFlareSolverrData_setSettings_settingsBuilder + implements + Builder { + _$GToggleFlareSolverrData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleFlareSolverrData_setSettings_settingsBuilder() { + GToggleFlareSolverrData_setSettings_settings._initializeBuilder(this); + } + + GToggleFlareSolverrData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrData_setSettings_settings; + } + + @override + void update( + void Function(GToggleFlareSolverrData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrData_setSettings_settings build() => _build(); + + _$GToggleFlareSolverrData_setSettings_settings _build() { + _$GToggleFlareSolverrData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleFlareSolverrData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleFlareSolverrData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleFlareSolverrData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleFlareSolverrData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleFlareSolverrData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleFlareSolverrData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GToggleFlareSolverrData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleFlareSolverrData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleFlareSolverrData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleFlareSolverrData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleFlareSolverrData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleFlareSolverrData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleFlareSolverrData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleFlareSolverrData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleFlareSolverrData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleFlareSolverrData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleFlareSolverrData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleFlareSolverrData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleFlareSolverrData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleFlareSolverrData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleFlareSolverrData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleFlareSolverrData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleFlareSolverrData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleFlareSolverrData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleFlareSolverrData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleFlareSolverrData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleFlareSolverrData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleFlareSolverrData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleFlareSolverrData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.req.gql.dart new file mode 100644 index 00000000..17ddd691 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_flare_solverr.req.gql.g.dart'; + +abstract class GToggleFlareSolverrReq + implements + Built, + _i1.OperationRequest<_i2.GToggleFlareSolverrData, + _i3.GToggleFlareSolverrVars> { + GToggleFlareSolverrReq._(); + + factory GToggleFlareSolverrReq( + [void Function(GToggleFlareSolverrReqBuilder b) updates]) = + _$GToggleFlareSolverrReq; + + static void _initializeBuilder(GToggleFlareSolverrReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleFlareSolverr', + ) + ..executeOnListen = true; + + @override + _i3.GToggleFlareSolverrVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, + _i2.GToggleFlareSolverrData?, + )? get updateResult; + @override + _i2.GToggleFlareSolverrData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleFlareSolverrData? parseData(Map json) => + _i2.GToggleFlareSolverrData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleFlareSolverrData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleFlareSolverrData, _i3.GToggleFlareSolverrVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleFlareSolverrReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleFlareSolverrReq.serializer, + this, + ) as Map); + + static GToggleFlareSolverrReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleFlareSolverrReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.req.gql.g.dart new file mode 100644 index 00000000..bdd6e556 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.req.gql.g.dart @@ -0,0 +1,376 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_flare_solverr.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleFlareSolverrReqSerializer = + new _$GToggleFlareSolverrReqSerializer(); + +class _$GToggleFlareSolverrReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrReq, + _$GToggleFlareSolverrReq + ]; + @override + final String wireName = 'GToggleFlareSolverrReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleFlareSolverrVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleFlareSolverrData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleFlareSolverrReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleFlareSolverrVars))! + as _i3.GToggleFlareSolverrVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleFlareSolverrData))! + as _i2.GToggleFlareSolverrData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrReq extends GToggleFlareSolverrReq { + @override + final _i3.GToggleFlareSolverrVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? updateResult; + @override + final _i2.GToggleFlareSolverrData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleFlareSolverrReq( + [void Function(GToggleFlareSolverrReqBuilder)? updates]) => + (new GToggleFlareSolverrReqBuilder()..update(updates))._build(); + + _$GToggleFlareSolverrReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleFlareSolverrReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleFlareSolverrReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleFlareSolverrReq', 'executeOnListen'); + } + + @override + GToggleFlareSolverrReq rebuild( + void Function(GToggleFlareSolverrReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrReqBuilder toBuilder() => + new GToggleFlareSolverrReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleFlareSolverrReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleFlareSolverrReqBuilder + implements Builder { + _$GToggleFlareSolverrReq? _$v; + + _i3.GToggleFlareSolverrVarsBuilder? _vars; + _i3.GToggleFlareSolverrVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleFlareSolverrVarsBuilder(); + set vars(_i3.GToggleFlareSolverrVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? + _updateResult; + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleFlareSolverrData? Function( + _i2.GToggleFlareSolverrData?, _i2.GToggleFlareSolverrData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleFlareSolverrDataBuilder? _optimisticResponse; + _i2.GToggleFlareSolverrDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleFlareSolverrDataBuilder(); + set optimisticResponse( + _i2.GToggleFlareSolverrDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleFlareSolverrReqBuilder() { + GToggleFlareSolverrReq._initializeBuilder(this); + } + + GToggleFlareSolverrReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrReq; + } + + @override + void update(void Function(GToggleFlareSolverrReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrReq build() => _build(); + + _$GToggleFlareSolverrReq _build() { + _$GToggleFlareSolverrReq _$result; + try { + _$result = _$v ?? + new _$GToggleFlareSolverrReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleFlareSolverrReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleFlareSolverrReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleFlareSolverrReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.dart new file mode 100644 index 00000000..1c37537d --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_flare_solverr.var.gql.g.dart'; + +abstract class GToggleFlareSolverrVars + implements Built { + GToggleFlareSolverrVars._(); + + factory GToggleFlareSolverrVars( + [void Function(GToggleFlareSolverrVarsBuilder b) updates]) = + _$GToggleFlareSolverrVars; + + bool? get flareSolverrEnabled; + static Serializer get serializer => + _$gToggleFlareSolverrVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleFlareSolverrVars.serializer, + this, + ) as Map); + + static GToggleFlareSolverrVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleFlareSolverrVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.g.dart new file mode 100644 index 00000000..90fab77f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.g.dart @@ -0,0 +1,148 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_flare_solverr.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleFlareSolverrVarsSerializer = + new _$GToggleFlareSolverrVarsSerializer(); + +class _$GToggleFlareSolverrVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleFlareSolverrVars, + _$GToggleFlareSolverrVars + ]; + @override + final String wireName = 'GToggleFlareSolverrVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleFlareSolverrVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrEnabled; + if (value != null) { + result + ..add('flareSolverrEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleFlareSolverrVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleFlareSolverrVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleFlareSolverrVars extends GToggleFlareSolverrVars { + @override + final bool? flareSolverrEnabled; + + factory _$GToggleFlareSolverrVars( + [void Function(GToggleFlareSolverrVarsBuilder)? updates]) => + (new GToggleFlareSolverrVarsBuilder()..update(updates))._build(); + + _$GToggleFlareSolverrVars._({this.flareSolverrEnabled}) : super._(); + + @override + GToggleFlareSolverrVars rebuild( + void Function(GToggleFlareSolverrVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleFlareSolverrVarsBuilder toBuilder() => + new GToggleFlareSolverrVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleFlareSolverrVars && + flareSolverrEnabled == other.flareSolverrEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleFlareSolverrVars') + ..add('flareSolverrEnabled', flareSolverrEnabled)) + .toString(); + } +} + +class GToggleFlareSolverrVarsBuilder + implements + Builder { + _$GToggleFlareSolverrVars? _$v; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + GToggleFlareSolverrVarsBuilder(); + + GToggleFlareSolverrVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrEnabled = $v.flareSolverrEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleFlareSolverrVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleFlareSolverrVars; + } + + @override + void update(void Function(GToggleFlareSolverrVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleFlareSolverrVars build() => _build(); + + _$GToggleFlareSolverrVars _build() { + final _$result = _$v ?? + new _$GToggleFlareSolverrVars._( + flareSolverrEnabled: flareSolverrEnabled, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.ast.gql.dart new file mode 100644 index 00000000..afff4695 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleGqlDebugLogs = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleGqlDebugLogs'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'gqlDebugLogsEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleGqlDebugLogs, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.dart new file mode 100644 index 00000000..d827ead6 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.dart @@ -0,0 +1,176 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_gql_debug_logs.data.gql.g.dart'; + +abstract class GToggleGqlDebugLogsData + implements Built { + GToggleGqlDebugLogsData._(); + + factory GToggleGqlDebugLogsData( + [void Function(GToggleGqlDebugLogsDataBuilder b) updates]) = + _$GToggleGqlDebugLogsData; + + static void _initializeBuilder(GToggleGqlDebugLogsDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleGqlDebugLogsData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleGqlDebugLogsDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsData.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsData.serializer, + json, + ); +} + +abstract class GToggleGqlDebugLogsData_setSettings + implements + Built { + GToggleGqlDebugLogsData_setSettings._(); + + factory GToggleGqlDebugLogsData_setSettings( + [void Function(GToggleGqlDebugLogsData_setSettingsBuilder b) + updates]) = _$GToggleGqlDebugLogsData_setSettings; + + static void _initializeBuilder( + GToggleGqlDebugLogsData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleGqlDebugLogsData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleGqlDebugLogsDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsData_setSettings.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsData_setSettings.serializer, + json, + ); +} + +abstract class GToggleGqlDebugLogsData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleGqlDebugLogsData_setSettings_settings._(); + + factory GToggleGqlDebugLogsData_setSettings_settings( + [void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder b) + updates]) = _$GToggleGqlDebugLogsData_setSettings_settings; + + static void _initializeBuilder( + GToggleGqlDebugLogsData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gToggleGqlDebugLogsDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.g.dart new file mode 100644 index 00000000..b0ccfedb --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.g.dart @@ -0,0 +1,1373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_gql_debug_logs.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleGqlDebugLogsDataSerializer = + new _$GToggleGqlDebugLogsDataSerializer(); +Serializer + _$gToggleGqlDebugLogsDataSetSettingsSerializer = + new _$GToggleGqlDebugLogsData_setSettingsSerializer(); +Serializer + _$gToggleGqlDebugLogsDataSetSettingsSettingsSerializer = + new _$GToggleGqlDebugLogsData_setSettings_settingsSerializer(); + +class _$GToggleGqlDebugLogsDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsData, + _$GToggleGqlDebugLogsData + ]; + @override + final String wireName = 'GToggleGqlDebugLogsData'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleGqlDebugLogsData_setSettings)), + ]; + + return result; + } + + @override + GToggleGqlDebugLogsData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleGqlDebugLogsData_setSettings))! + as GToggleGqlDebugLogsData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsData_setSettings, + _$GToggleGqlDebugLogsData_setSettings + ]; + @override + final String wireName = 'GToggleGqlDebugLogsData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleGqlDebugLogsData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleGqlDebugLogsData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleGqlDebugLogsData_setSettings_settings))! + as GToggleGqlDebugLogsData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsData_setSettings_settings, + _$GToggleGqlDebugLogsData_setSettings_settings + ]; + @override + final String wireName = 'GToggleGqlDebugLogsData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleGqlDebugLogsData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleGqlDebugLogsData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsData extends GToggleGqlDebugLogsData { + @override + final String G__typename; + @override + final GToggleGqlDebugLogsData_setSettings setSettings; + + factory _$GToggleGqlDebugLogsData( + [void Function(GToggleGqlDebugLogsDataBuilder)? updates]) => + (new GToggleGqlDebugLogsDataBuilder()..update(updates))._build(); + + _$GToggleGqlDebugLogsData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleGqlDebugLogsData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleGqlDebugLogsData', 'setSettings'); + } + + @override + GToggleGqlDebugLogsData rebuild( + void Function(GToggleGqlDebugLogsDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsDataBuilder toBuilder() => + new GToggleGqlDebugLogsDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleGqlDebugLogsDataBuilder + implements + Builder { + _$GToggleGqlDebugLogsData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleGqlDebugLogsData_setSettingsBuilder? _setSettings; + GToggleGqlDebugLogsData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleGqlDebugLogsData_setSettingsBuilder(); + set setSettings(GToggleGqlDebugLogsData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleGqlDebugLogsDataBuilder() { + GToggleGqlDebugLogsData._initializeBuilder(this); + } + + GToggleGqlDebugLogsDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsData; + } + + @override + void update(void Function(GToggleGqlDebugLogsDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsData build() => _build(); + + _$GToggleGqlDebugLogsData _build() { + _$GToggleGqlDebugLogsData _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleGqlDebugLogsData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleGqlDebugLogsData_setSettings + extends GToggleGqlDebugLogsData_setSettings { + @override + final String G__typename; + @override + final GToggleGqlDebugLogsData_setSettings_settings settings; + + factory _$GToggleGqlDebugLogsData_setSettings( + [void Function(GToggleGqlDebugLogsData_setSettingsBuilder)? + updates]) => + (new GToggleGqlDebugLogsData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleGqlDebugLogsData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleGqlDebugLogsData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleGqlDebugLogsData_setSettings', 'settings'); + } + + @override + GToggleGqlDebugLogsData_setSettings rebuild( + void Function(GToggleGqlDebugLogsData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsData_setSettingsBuilder toBuilder() => + new GToggleGqlDebugLogsData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleGqlDebugLogsData_setSettingsBuilder + implements + Builder { + _$GToggleGqlDebugLogsData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleGqlDebugLogsData_setSettings_settingsBuilder? _settings; + GToggleGqlDebugLogsData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleGqlDebugLogsData_setSettings_settingsBuilder(); + set settings(GToggleGqlDebugLogsData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleGqlDebugLogsData_setSettingsBuilder() { + GToggleGqlDebugLogsData_setSettings._initializeBuilder(this); + } + + GToggleGqlDebugLogsData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsData_setSettings; + } + + @override + void update( + void Function(GToggleGqlDebugLogsData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsData_setSettings build() => _build(); + + _$GToggleGqlDebugLogsData_setSettings _build() { + _$GToggleGqlDebugLogsData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleGqlDebugLogsData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleGqlDebugLogsData_setSettings_settings + extends GToggleGqlDebugLogsData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleGqlDebugLogsData_setSettings_settings( + [void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder)? + updates]) => + (new GToggleGqlDebugLogsData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleGqlDebugLogsData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleGqlDebugLogsData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleGqlDebugLogsData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleGqlDebugLogsData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleGqlDebugLogsData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleGqlDebugLogsData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleGqlDebugLogsData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleGqlDebugLogsData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleGqlDebugLogsData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GToggleGqlDebugLogsData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GToggleGqlDebugLogsData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleGqlDebugLogsData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleGqlDebugLogsData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleGqlDebugLogsData_setSettings_settings rebuild( + void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsData_setSettings_settingsBuilder toBuilder() => + new GToggleGqlDebugLogsData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleGqlDebugLogsData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleGqlDebugLogsData_setSettings_settingsBuilder + implements + Builder { + _$GToggleGqlDebugLogsData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleGqlDebugLogsData_setSettings_settingsBuilder() { + GToggleGqlDebugLogsData_setSettings_settings._initializeBuilder(this); + } + + GToggleGqlDebugLogsData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsData_setSettings_settings; + } + + @override + void update( + void Function(GToggleGqlDebugLogsData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsData_setSettings_settings build() => _build(); + + _$GToggleGqlDebugLogsData_setSettings_settings _build() { + _$GToggleGqlDebugLogsData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleGqlDebugLogsData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleGqlDebugLogsData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleGqlDebugLogsData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GToggleGqlDebugLogsData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleGqlDebugLogsData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.req.gql.dart new file mode 100644 index 00000000..d2b59e02 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_gql_debug_logs.req.gql.g.dart'; + +abstract class GToggleGqlDebugLogsReq + implements + Built, + _i1.OperationRequest<_i2.GToggleGqlDebugLogsData, + _i3.GToggleGqlDebugLogsVars> { + GToggleGqlDebugLogsReq._(); + + factory GToggleGqlDebugLogsReq( + [void Function(GToggleGqlDebugLogsReqBuilder b) updates]) = + _$GToggleGqlDebugLogsReq; + + static void _initializeBuilder(GToggleGqlDebugLogsReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleGqlDebugLogs', + ) + ..executeOnListen = true; + + @override + _i3.GToggleGqlDebugLogsVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, + _i2.GToggleGqlDebugLogsData?, + )? get updateResult; + @override + _i2.GToggleGqlDebugLogsData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleGqlDebugLogsData? parseData(Map json) => + _i2.GToggleGqlDebugLogsData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleGqlDebugLogsData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleGqlDebugLogsData, _i3.GToggleGqlDebugLogsVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleGqlDebugLogsReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleGqlDebugLogsReq.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleGqlDebugLogsReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.req.gql.g.dart new file mode 100644 index 00000000..941f04d4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.req.gql.g.dart @@ -0,0 +1,376 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_gql_debug_logs.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleGqlDebugLogsReqSerializer = + new _$GToggleGqlDebugLogsReqSerializer(); + +class _$GToggleGqlDebugLogsReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsReq, + _$GToggleGqlDebugLogsReq + ]; + @override + final String wireName = 'GToggleGqlDebugLogsReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleGqlDebugLogsVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleGqlDebugLogsData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleGqlDebugLogsReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleGqlDebugLogsVars))! + as _i3.GToggleGqlDebugLogsVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleGqlDebugLogsData))! + as _i2.GToggleGqlDebugLogsData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsReq extends GToggleGqlDebugLogsReq { + @override + final _i3.GToggleGqlDebugLogsVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? updateResult; + @override + final _i2.GToggleGqlDebugLogsData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleGqlDebugLogsReq( + [void Function(GToggleGqlDebugLogsReqBuilder)? updates]) => + (new GToggleGqlDebugLogsReqBuilder()..update(updates))._build(); + + _$GToggleGqlDebugLogsReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleGqlDebugLogsReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleGqlDebugLogsReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleGqlDebugLogsReq', 'executeOnListen'); + } + + @override + GToggleGqlDebugLogsReq rebuild( + void Function(GToggleGqlDebugLogsReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsReqBuilder toBuilder() => + new GToggleGqlDebugLogsReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleGqlDebugLogsReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleGqlDebugLogsReqBuilder + implements Builder { + _$GToggleGqlDebugLogsReq? _$v; + + _i3.GToggleGqlDebugLogsVarsBuilder? _vars; + _i3.GToggleGqlDebugLogsVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleGqlDebugLogsVarsBuilder(); + set vars(_i3.GToggleGqlDebugLogsVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? + _updateResult; + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleGqlDebugLogsData? Function( + _i2.GToggleGqlDebugLogsData?, _i2.GToggleGqlDebugLogsData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleGqlDebugLogsDataBuilder? _optimisticResponse; + _i2.GToggleGqlDebugLogsDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleGqlDebugLogsDataBuilder(); + set optimisticResponse( + _i2.GToggleGqlDebugLogsDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleGqlDebugLogsReqBuilder() { + GToggleGqlDebugLogsReq._initializeBuilder(this); + } + + GToggleGqlDebugLogsReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsReq; + } + + @override + void update(void Function(GToggleGqlDebugLogsReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsReq build() => _build(); + + _$GToggleGqlDebugLogsReq _build() { + _$GToggleGqlDebugLogsReq _$result; + try { + _$result = _$v ?? + new _$GToggleGqlDebugLogsReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleGqlDebugLogsReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleGqlDebugLogsReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleGqlDebugLogsReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.dart new file mode 100644 index 00000000..adfa2c27 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_gql_debug_logs.var.gql.g.dart'; + +abstract class GToggleGqlDebugLogsVars + implements Built { + GToggleGqlDebugLogsVars._(); + + factory GToggleGqlDebugLogsVars( + [void Function(GToggleGqlDebugLogsVarsBuilder b) updates]) = + _$GToggleGqlDebugLogsVars; + + bool? get gqlDebugLogsEnabled; + static Serializer get serializer => + _$gToggleGqlDebugLogsVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleGqlDebugLogsVars.serializer, + this, + ) as Map); + + static GToggleGqlDebugLogsVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleGqlDebugLogsVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.g.dart new file mode 100644 index 00000000..12f41e9b --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.g.dart @@ -0,0 +1,148 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_gql_debug_logs.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleGqlDebugLogsVarsSerializer = + new _$GToggleGqlDebugLogsVarsSerializer(); + +class _$GToggleGqlDebugLogsVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleGqlDebugLogsVars, + _$GToggleGqlDebugLogsVars + ]; + @override + final String wireName = 'GToggleGqlDebugLogsVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleGqlDebugLogsVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.gqlDebugLogsEnabled; + if (value != null) { + result + ..add('gqlDebugLogsEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleGqlDebugLogsVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleGqlDebugLogsVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleGqlDebugLogsVars extends GToggleGqlDebugLogsVars { + @override + final bool? gqlDebugLogsEnabled; + + factory _$GToggleGqlDebugLogsVars( + [void Function(GToggleGqlDebugLogsVarsBuilder)? updates]) => + (new GToggleGqlDebugLogsVarsBuilder()..update(updates))._build(); + + _$GToggleGqlDebugLogsVars._({this.gqlDebugLogsEnabled}) : super._(); + + @override + GToggleGqlDebugLogsVars rebuild( + void Function(GToggleGqlDebugLogsVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleGqlDebugLogsVarsBuilder toBuilder() => + new GToggleGqlDebugLogsVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleGqlDebugLogsVars && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleGqlDebugLogsVars') + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled)) + .toString(); + } +} + +class GToggleGqlDebugLogsVarsBuilder + implements + Builder { + _$GToggleGqlDebugLogsVars? _$v; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + GToggleGqlDebugLogsVarsBuilder(); + + GToggleGqlDebugLogsVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleGqlDebugLogsVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleGqlDebugLogsVars; + } + + @override + void update(void Function(GToggleGqlDebugLogsVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleGqlDebugLogsVars build() => _build(); + + _$GToggleGqlDebugLogsVars _build() { + final _$result = _$v ?? + new _$GToggleGqlDebugLogsVars._( + gqlDebugLogsEnabled: gqlDebugLogsEnabled, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.ast.gql.dart new file mode 100644 index 00000000..c71d365a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleSocksProxy = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleSocksProxy'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleSocksProxy, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.dart new file mode 100644 index 00000000..87cefcb8 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_socks_proxy.data.gql.g.dart'; + +abstract class GToggleSocksProxyData + implements Built { + GToggleSocksProxyData._(); + + factory GToggleSocksProxyData( + [void Function(GToggleSocksProxyDataBuilder b) updates]) = + _$GToggleSocksProxyData; + + static void _initializeBuilder(GToggleSocksProxyDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSocksProxyData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleSocksProxyDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyData.serializer, + this, + ) as Map); + + static GToggleSocksProxyData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyData.serializer, + json, + ); +} + +abstract class GToggleSocksProxyData_setSettings + implements + Built { + GToggleSocksProxyData_setSettings._(); + + factory GToggleSocksProxyData_setSettings( + [void Function(GToggleSocksProxyData_setSettingsBuilder b) updates]) = + _$GToggleSocksProxyData_setSettings; + + static void _initializeBuilder(GToggleSocksProxyData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSocksProxyData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleSocksProxyDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyData_setSettings.serializer, + this, + ) as Map); + + static GToggleSocksProxyData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyData_setSettings.serializer, + json, + ); +} + +abstract class GToggleSocksProxyData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleSocksProxyData_setSettings_settings._(); + + factory GToggleSocksProxyData_setSettings_settings( + [void Function(GToggleSocksProxyData_setSettings_settingsBuilder b) + updates]) = _$GToggleSocksProxyData_setSettings_settings; + + static void _initializeBuilder( + GToggleSocksProxyData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gToggleSocksProxyDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleSocksProxyData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.g.dart new file mode 100644 index 00000000..9b3e30d1 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.g.dart @@ -0,0 +1,1356 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_socks_proxy.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleSocksProxyDataSerializer = + new _$GToggleSocksProxyDataSerializer(); +Serializer + _$gToggleSocksProxyDataSetSettingsSerializer = + new _$GToggleSocksProxyData_setSettingsSerializer(); +Serializer + _$gToggleSocksProxyDataSetSettingsSettingsSerializer = + new _$GToggleSocksProxyData_setSettings_settingsSerializer(); + +class _$GToggleSocksProxyDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyData, + _$GToggleSocksProxyData + ]; + @override + final String wireName = 'GToggleSocksProxyData'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GToggleSocksProxyData_setSettings)), + ]; + + return result; + } + + @override + GToggleSocksProxyData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleSocksProxyData_setSettings))! + as GToggleSocksProxyData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyData_setSettings, + _$GToggleSocksProxyData_setSettings + ]; + @override + final String wireName = 'GToggleSocksProxyData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GToggleSocksProxyData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleSocksProxyData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleSocksProxyData_setSettings_settings))! + as GToggleSocksProxyData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyData_setSettings_settings, + _$GToggleSocksProxyData_setSettings_settings + ]; + @override + final String wireName = 'GToggleSocksProxyData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleSocksProxyData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleSocksProxyData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyData extends GToggleSocksProxyData { + @override + final String G__typename; + @override + final GToggleSocksProxyData_setSettings setSettings; + + factory _$GToggleSocksProxyData( + [void Function(GToggleSocksProxyDataBuilder)? updates]) => + (new GToggleSocksProxyDataBuilder()..update(updates))._build(); + + _$GToggleSocksProxyData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSocksProxyData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleSocksProxyData', 'setSettings'); + } + + @override + GToggleSocksProxyData rebuild( + void Function(GToggleSocksProxyDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyDataBuilder toBuilder() => + new GToggleSocksProxyDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleSocksProxyDataBuilder + implements Builder { + _$GToggleSocksProxyData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSocksProxyData_setSettingsBuilder? _setSettings; + GToggleSocksProxyData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GToggleSocksProxyData_setSettingsBuilder(); + set setSettings(GToggleSocksProxyData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleSocksProxyDataBuilder() { + GToggleSocksProxyData._initializeBuilder(this); + } + + GToggleSocksProxyDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyData; + } + + @override + void update(void Function(GToggleSocksProxyDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyData build() => _build(); + + _$GToggleSocksProxyData _build() { + _$GToggleSocksProxyData _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSocksProxyData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSocksProxyData_setSettings + extends GToggleSocksProxyData_setSettings { + @override + final String G__typename; + @override + final GToggleSocksProxyData_setSettings_settings settings; + + factory _$GToggleSocksProxyData_setSettings( + [void Function(GToggleSocksProxyData_setSettingsBuilder)? updates]) => + (new GToggleSocksProxyData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleSocksProxyData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSocksProxyData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleSocksProxyData_setSettings', 'settings'); + } + + @override + GToggleSocksProxyData_setSettings rebuild( + void Function(GToggleSocksProxyData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyData_setSettingsBuilder toBuilder() => + new GToggleSocksProxyData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleSocksProxyData_setSettingsBuilder + implements + Builder { + _$GToggleSocksProxyData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSocksProxyData_setSettings_settingsBuilder? _settings; + GToggleSocksProxyData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleSocksProxyData_setSettings_settingsBuilder(); + set settings(GToggleSocksProxyData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleSocksProxyData_setSettingsBuilder() { + GToggleSocksProxyData_setSettings._initializeBuilder(this); + } + + GToggleSocksProxyData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyData_setSettings; + } + + @override + void update( + void Function(GToggleSocksProxyData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyData_setSettings build() => _build(); + + _$GToggleSocksProxyData_setSettings _build() { + _$GToggleSocksProxyData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSocksProxyData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSocksProxyData_setSettings_settings + extends GToggleSocksProxyData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleSocksProxyData_setSettings_settings( + [void Function(GToggleSocksProxyData_setSettings_settingsBuilder)? + updates]) => + (new GToggleSocksProxyData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GToggleSocksProxyData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSocksProxyData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleSocksProxyData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleSocksProxyData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GToggleSocksProxyData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleSocksProxyData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSocksProxyData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleSocksProxyData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GToggleSocksProxyData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GToggleSocksProxyData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GToggleSocksProxyData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleSocksProxyData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GToggleSocksProxyData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GToggleSocksProxyData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GToggleSocksProxyData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleSocksProxyData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GToggleSocksProxyData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GToggleSocksProxyData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GToggleSocksProxyData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleSocksProxyData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleSocksProxyData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleSocksProxyData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleSocksProxyData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleSocksProxyData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleSocksProxyData_setSettings_settings rebuild( + void Function(GToggleSocksProxyData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyData_setSettings_settingsBuilder toBuilder() => + new GToggleSocksProxyData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleSocksProxyData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleSocksProxyData_setSettings_settingsBuilder + implements + Builder { + _$GToggleSocksProxyData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleSocksProxyData_setSettings_settingsBuilder() { + GToggleSocksProxyData_setSettings_settings._initializeBuilder(this); + } + + GToggleSocksProxyData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyData_setSettings_settings; + } + + @override + void update( + void Function(GToggleSocksProxyData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyData_setSettings_settings build() => _build(); + + _$GToggleSocksProxyData_setSettings_settings _build() { + _$GToggleSocksProxyData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSocksProxyData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleSocksProxyData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleSocksProxyData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleSocksProxyData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleSocksProxyData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSocksProxyData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GToggleSocksProxyData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleSocksProxyData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleSocksProxyData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleSocksProxyData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleSocksProxyData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleSocksProxyData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleSocksProxyData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleSocksProxyData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleSocksProxyData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleSocksProxyData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleSocksProxyData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleSocksProxyData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleSocksProxyData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleSocksProxyData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleSocksProxyData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleSocksProxyData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleSocksProxyData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleSocksProxyData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleSocksProxyData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleSocksProxyData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleSocksProxyData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleSocksProxyData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleSocksProxyData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.req.gql.dart new file mode 100644 index 00000000..52ba9b49 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_socks_proxy.req.gql.g.dart'; + +abstract class GToggleSocksProxyReq + implements + Built, + _i1.OperationRequest<_i2.GToggleSocksProxyData, + _i3.GToggleSocksProxyVars> { + GToggleSocksProxyReq._(); + + factory GToggleSocksProxyReq( + [void Function(GToggleSocksProxyReqBuilder b) updates]) = + _$GToggleSocksProxyReq; + + static void _initializeBuilder(GToggleSocksProxyReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleSocksProxy', + ) + ..executeOnListen = true; + + @override + _i3.GToggleSocksProxyVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, + _i2.GToggleSocksProxyData?, + )? get updateResult; + @override + _i2.GToggleSocksProxyData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleSocksProxyData? parseData(Map json) => + _i2.GToggleSocksProxyData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleSocksProxyData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleSocksProxyData, _i3.GToggleSocksProxyVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleSocksProxyReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleSocksProxyReq.serializer, + this, + ) as Map); + + static GToggleSocksProxyReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleSocksProxyReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.req.gql.g.dart new file mode 100644 index 00000000..a38bfe62 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.req.gql.g.dart @@ -0,0 +1,375 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_socks_proxy.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleSocksProxyReqSerializer = + new _$GToggleSocksProxyReqSerializer(); + +class _$GToggleSocksProxyReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyReq, + _$GToggleSocksProxyReq + ]; + @override + final String wireName = 'GToggleSocksProxyReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleSocksProxyVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleSocksProxyData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleSocksProxyReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GToggleSocksProxyVars))! + as _i3.GToggleSocksProxyVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GToggleSocksProxyData))! + as _i2.GToggleSocksProxyData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyReq extends GToggleSocksProxyReq { + @override + final _i3.GToggleSocksProxyVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? updateResult; + @override + final _i2.GToggleSocksProxyData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleSocksProxyReq( + [void Function(GToggleSocksProxyReqBuilder)? updates]) => + (new GToggleSocksProxyReqBuilder()..update(updates))._build(); + + _$GToggleSocksProxyReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleSocksProxyReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSocksProxyReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleSocksProxyReq', 'executeOnListen'); + } + + @override + GToggleSocksProxyReq rebuild( + void Function(GToggleSocksProxyReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyReqBuilder toBuilder() => + new GToggleSocksProxyReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleSocksProxyReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleSocksProxyReqBuilder + implements Builder { + _$GToggleSocksProxyReq? _$v; + + _i3.GToggleSocksProxyVarsBuilder? _vars; + _i3.GToggleSocksProxyVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleSocksProxyVarsBuilder(); + set vars(_i3.GToggleSocksProxyVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? _updateResult; + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleSocksProxyData? Function( + _i2.GToggleSocksProxyData?, _i2.GToggleSocksProxyData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleSocksProxyDataBuilder? _optimisticResponse; + _i2.GToggleSocksProxyDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GToggleSocksProxyDataBuilder(); + set optimisticResponse( + _i2.GToggleSocksProxyDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleSocksProxyReqBuilder() { + GToggleSocksProxyReq._initializeBuilder(this); + } + + GToggleSocksProxyReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyReq; + } + + @override + void update(void Function(GToggleSocksProxyReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyReq build() => _build(); + + _$GToggleSocksProxyReq _build() { + _$GToggleSocksProxyReq _$result; + try { + _$result = _$v ?? + new _$GToggleSocksProxyReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSocksProxyReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleSocksProxyReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSocksProxyReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.dart new file mode 100644 index 00000000..0d938860 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_socks_proxy.var.gql.g.dart'; + +abstract class GToggleSocksProxyVars + implements Built { + GToggleSocksProxyVars._(); + + factory GToggleSocksProxyVars( + [void Function(GToggleSocksProxyVarsBuilder b) updates]) = + _$GToggleSocksProxyVars; + + bool? get socksProxyEnabled; + static Serializer get serializer => + _$gToggleSocksProxyVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSocksProxyVars.serializer, + this, + ) as Map); + + static GToggleSocksProxyVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSocksProxyVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.g.dart new file mode 100644 index 00000000..9459b06d --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_socks_proxy.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gToggleSocksProxyVarsSerializer = + new _$GToggleSocksProxyVarsSerializer(); + +class _$GToggleSocksProxyVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSocksProxyVars, + _$GToggleSocksProxyVars + ]; + @override + final String wireName = 'GToggleSocksProxyVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleSocksProxyVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyEnabled; + if (value != null) { + result + ..add('socksProxyEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleSocksProxyVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSocksProxyVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSocksProxyVars extends GToggleSocksProxyVars { + @override + final bool? socksProxyEnabled; + + factory _$GToggleSocksProxyVars( + [void Function(GToggleSocksProxyVarsBuilder)? updates]) => + (new GToggleSocksProxyVarsBuilder()..update(updates))._build(); + + _$GToggleSocksProxyVars._({this.socksProxyEnabled}) : super._(); + + @override + GToggleSocksProxyVars rebuild( + void Function(GToggleSocksProxyVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSocksProxyVarsBuilder toBuilder() => + new GToggleSocksProxyVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSocksProxyVars && + socksProxyEnabled == other.socksProxyEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSocksProxyVars') + ..add('socksProxyEnabled', socksProxyEnabled)) + .toString(); + } +} + +class GToggleSocksProxyVarsBuilder + implements Builder { + _$GToggleSocksProxyVars? _$v; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + GToggleSocksProxyVarsBuilder(); + + GToggleSocksProxyVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyEnabled = $v.socksProxyEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSocksProxyVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSocksProxyVars; + } + + @override + void update(void Function(GToggleSocksProxyVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSocksProxyVars build() => _build(); + + _$GToggleSocksProxyVars _build() { + final _$result = _$v ?? + new _$GToggleSocksProxyVars._( + socksProxyEnabled: socksProxyEnabled, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.ast.gql.dart new file mode 100644 index 00000000..5a753446 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.ast.gql.dart @@ -0,0 +1,92 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const ToggleSystemTrayEnabled = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'ToggleSystemTrayEnabled'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'systemTrayEnabled')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.BooleanValueNode(value: false)), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'systemTrayEnabled')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + ToggleSystemTrayEnabled, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.dart new file mode 100644 index 00000000..0550eab0 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.dart @@ -0,0 +1,179 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_system_tray_enabled.data.gql.g.dart'; + +abstract class GToggleSystemTrayEnabledData + implements + Built { + GToggleSystemTrayEnabledData._(); + + factory GToggleSystemTrayEnabledData( + [void Function(GToggleSystemTrayEnabledDataBuilder b) updates]) = + _$GToggleSystemTrayEnabledData; + + static void _initializeBuilder(GToggleSystemTrayEnabledDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSystemTrayEnabledData_setSettings get setSettings; + static Serializer get serializer => + _$gToggleSystemTrayEnabledDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledData.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledData.serializer, + json, + ); +} + +abstract class GToggleSystemTrayEnabledData_setSettings + implements + Built { + GToggleSystemTrayEnabledData_setSettings._(); + + factory GToggleSystemTrayEnabledData_setSettings( + [void Function(GToggleSystemTrayEnabledData_setSettingsBuilder b) + updates]) = _$GToggleSystemTrayEnabledData_setSettings; + + static void _initializeBuilder( + GToggleSystemTrayEnabledData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GToggleSystemTrayEnabledData_setSettings_settings get settings; + static Serializer get serializer => + _$gToggleSystemTrayEnabledDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledData_setSettings.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledData_setSettings.serializer, + json, + ); +} + +abstract class GToggleSystemTrayEnabledData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GToggleSystemTrayEnabledData_setSettings_settings._(); + + factory GToggleSystemTrayEnabledData_setSettings_settings( + [void Function(GToggleSystemTrayEnabledData_setSettings_settingsBuilder b) + updates]) = _$GToggleSystemTrayEnabledData_setSettings_settings; + + static void _initializeBuilder( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gToggleSystemTrayEnabledDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledData_setSettings_settings.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.g.dart new file mode 100644 index 00000000..7056b8b4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.g.dart @@ -0,0 +1,1420 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_system_tray_enabled.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleSystemTrayEnabledDataSerializer = + new _$GToggleSystemTrayEnabledDataSerializer(); +Serializer + _$gToggleSystemTrayEnabledDataSetSettingsSerializer = + new _$GToggleSystemTrayEnabledData_setSettingsSerializer(); +Serializer + _$gToggleSystemTrayEnabledDataSetSettingsSettingsSerializer = + new _$GToggleSystemTrayEnabledData_setSettings_settingsSerializer(); + +class _$GToggleSystemTrayEnabledDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledData, + _$GToggleSystemTrayEnabledData + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledData'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GToggleSystemTrayEnabledData_setSettings)), + ]; + + return result; + } + + @override + GToggleSystemTrayEnabledData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GToggleSystemTrayEnabledData_setSettings))! + as GToggleSystemTrayEnabledData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledData_setSettings, + _$GToggleSystemTrayEnabledData_setSettings + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GToggleSystemTrayEnabledData_setSettings_settings)), + ]; + + return result; + } + + @override + GToggleSystemTrayEnabledData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GToggleSystemTrayEnabledData_setSettings_settings))! + as GToggleSystemTrayEnabledData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledData_setSettings_settingsSerializer + implements + StructuredSerializer< + GToggleSystemTrayEnabledData_setSettings_settings> { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledData_setSettings_settings, + _$GToggleSystemTrayEnabledData_setSettings_settings + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GToggleSystemTrayEnabledData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GToggleSystemTrayEnabledData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GToggleSystemTrayEnabledData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledData extends GToggleSystemTrayEnabledData { + @override + final String G__typename; + @override + final GToggleSystemTrayEnabledData_setSettings setSettings; + + factory _$GToggleSystemTrayEnabledData( + [void Function(GToggleSystemTrayEnabledDataBuilder)? updates]) => + (new GToggleSystemTrayEnabledDataBuilder()..update(updates))._build(); + + _$GToggleSystemTrayEnabledData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSystemTrayEnabledData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GToggleSystemTrayEnabledData', 'setSettings'); + } + + @override + GToggleSystemTrayEnabledData rebuild( + void Function(GToggleSystemTrayEnabledDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledDataBuilder toBuilder() => + new GToggleSystemTrayEnabledDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSystemTrayEnabledData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GToggleSystemTrayEnabledDataBuilder + implements + Builder { + _$GToggleSystemTrayEnabledData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSystemTrayEnabledData_setSettingsBuilder? _setSettings; + GToggleSystemTrayEnabledData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GToggleSystemTrayEnabledData_setSettingsBuilder(); + set setSettings( + GToggleSystemTrayEnabledData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GToggleSystemTrayEnabledDataBuilder() { + GToggleSystemTrayEnabledData._initializeBuilder(this); + } + + GToggleSystemTrayEnabledDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledData; + } + + @override + void update(void Function(GToggleSystemTrayEnabledDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledData build() => _build(); + + _$GToggleSystemTrayEnabledData _build() { + _$GToggleSystemTrayEnabledData _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GToggleSystemTrayEnabledData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSystemTrayEnabledData_setSettings + extends GToggleSystemTrayEnabledData_setSettings { + @override + final String G__typename; + @override + final GToggleSystemTrayEnabledData_setSettings_settings settings; + + factory _$GToggleSystemTrayEnabledData_setSettings( + [void Function(GToggleSystemTrayEnabledData_setSettingsBuilder)? + updates]) => + (new GToggleSystemTrayEnabledData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GToggleSystemTrayEnabledData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSystemTrayEnabledData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GToggleSystemTrayEnabledData_setSettings', 'settings'); + } + + @override + GToggleSystemTrayEnabledData_setSettings rebuild( + void Function(GToggleSystemTrayEnabledData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledData_setSettingsBuilder toBuilder() => + new GToggleSystemTrayEnabledData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleSystemTrayEnabledData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GToggleSystemTrayEnabledData_setSettingsBuilder + implements + Builder { + _$GToggleSystemTrayEnabledData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GToggleSystemTrayEnabledData_setSettings_settingsBuilder? _settings; + GToggleSystemTrayEnabledData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GToggleSystemTrayEnabledData_setSettings_settingsBuilder(); + set settings( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GToggleSystemTrayEnabledData_setSettingsBuilder() { + GToggleSystemTrayEnabledData_setSettings._initializeBuilder(this); + } + + GToggleSystemTrayEnabledData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledData_setSettings; + } + + @override + void update( + void Function(GToggleSystemTrayEnabledData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledData_setSettings build() => _build(); + + _$GToggleSystemTrayEnabledData_setSettings _build() { + _$GToggleSystemTrayEnabledData_setSettings _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSystemTrayEnabledData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GToggleSystemTrayEnabledData_setSettings_settings + extends GToggleSystemTrayEnabledData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GToggleSystemTrayEnabledData_setSettings_settings( + [void Function( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder)? + updates]) => + (new GToggleSystemTrayEnabledData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GToggleSystemTrayEnabledData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSystemTrayEnabledData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GToggleSystemTrayEnabledData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GToggleSystemTrayEnabledData_setSettings_settings rebuild( + void Function( + GToggleSystemTrayEnabledData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledData_setSettings_settingsBuilder toBuilder() => + new GToggleSystemTrayEnabledData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GToggleSystemTrayEnabledData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GToggleSystemTrayEnabledData_setSettings_settingsBuilder + implements + Builder { + _$GToggleSystemTrayEnabledData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GToggleSystemTrayEnabledData_setSettings_settingsBuilder() { + GToggleSystemTrayEnabledData_setSettings_settings._initializeBuilder(this); + } + + GToggleSystemTrayEnabledData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledData_setSettings_settings; + } + + @override + void update( + void Function(GToggleSystemTrayEnabledData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledData_setSettings_settings build() => _build(); + + _$GToggleSystemTrayEnabledData_setSettings_settings _build() { + _$GToggleSystemTrayEnabledData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GToggleSystemTrayEnabledData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GToggleSystemTrayEnabledData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GToggleSystemTrayEnabledData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.req.gql.dart new file mode 100644 index 00000000..11697d3e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'toggle_system_tray_enabled.req.gql.g.dart'; + +abstract class GToggleSystemTrayEnabledReq + implements + Built, + _i1.OperationRequest<_i2.GToggleSystemTrayEnabledData, + _i3.GToggleSystemTrayEnabledVars> { + GToggleSystemTrayEnabledReq._(); + + factory GToggleSystemTrayEnabledReq( + [void Function(GToggleSystemTrayEnabledReqBuilder b) updates]) = + _$GToggleSystemTrayEnabledReq; + + static void _initializeBuilder(GToggleSystemTrayEnabledReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'ToggleSystemTrayEnabled', + ) + ..executeOnListen = true; + + @override + _i3.GToggleSystemTrayEnabledVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, + _i2.GToggleSystemTrayEnabledData?, + )? get updateResult; + @override + _i2.GToggleSystemTrayEnabledData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GToggleSystemTrayEnabledData? parseData(Map json) => + _i2.GToggleSystemTrayEnabledData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GToggleSystemTrayEnabledData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GToggleSystemTrayEnabledData, + _i3.GToggleSystemTrayEnabledVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gToggleSystemTrayEnabledReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GToggleSystemTrayEnabledReq.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GToggleSystemTrayEnabledReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.req.gql.g.dart new file mode 100644 index 00000000..8364661d --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.req.gql.g.dart @@ -0,0 +1,387 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_system_tray_enabled.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleSystemTrayEnabledReqSerializer = + new _$GToggleSystemTrayEnabledReqSerializer(); + +class _$GToggleSystemTrayEnabledReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledReq, + _$GToggleSystemTrayEnabledReq + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledReq'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GToggleSystemTrayEnabledVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GToggleSystemTrayEnabledData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GToggleSystemTrayEnabledReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GToggleSystemTrayEnabledVars))! + as _i3.GToggleSystemTrayEnabledVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GToggleSystemTrayEnabledData))! + as _i2.GToggleSystemTrayEnabledData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledReq extends GToggleSystemTrayEnabledReq { + @override + final _i3.GToggleSystemTrayEnabledVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, _i2.GToggleSystemTrayEnabledData?)? + updateResult; + @override + final _i2.GToggleSystemTrayEnabledData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GToggleSystemTrayEnabledReq( + [void Function(GToggleSystemTrayEnabledReqBuilder)? updates]) => + (new GToggleSystemTrayEnabledReqBuilder()..update(updates))._build(); + + _$GToggleSystemTrayEnabledReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GToggleSystemTrayEnabledReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSystemTrayEnabledReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GToggleSystemTrayEnabledReq', 'executeOnListen'); + } + + @override + GToggleSystemTrayEnabledReq rebuild( + void Function(GToggleSystemTrayEnabledReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledReqBuilder toBuilder() => + new GToggleSystemTrayEnabledReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GToggleSystemTrayEnabledReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSystemTrayEnabledReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GToggleSystemTrayEnabledReqBuilder + implements + Builder { + _$GToggleSystemTrayEnabledReq? _$v; + + _i3.GToggleSystemTrayEnabledVarsBuilder? _vars; + _i3.GToggleSystemTrayEnabledVarsBuilder get vars => + _$this._vars ??= new _i3.GToggleSystemTrayEnabledVarsBuilder(); + set vars(_i3.GToggleSystemTrayEnabledVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, _i2.GToggleSystemTrayEnabledData?)? + _updateResult; + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, _i2.GToggleSystemTrayEnabledData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GToggleSystemTrayEnabledData? Function( + _i2.GToggleSystemTrayEnabledData?, + _i2.GToggleSystemTrayEnabledData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GToggleSystemTrayEnabledDataBuilder? _optimisticResponse; + _i2.GToggleSystemTrayEnabledDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GToggleSystemTrayEnabledDataBuilder(); + set optimisticResponse( + _i2.GToggleSystemTrayEnabledDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GToggleSystemTrayEnabledReqBuilder() { + GToggleSystemTrayEnabledReq._initializeBuilder(this); + } + + GToggleSystemTrayEnabledReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledReq; + } + + @override + void update(void Function(GToggleSystemTrayEnabledReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledReq build() => _build(); + + _$GToggleSystemTrayEnabledReq _build() { + _$GToggleSystemTrayEnabledReq _$result; + try { + _$result = _$v ?? + new _$GToggleSystemTrayEnabledReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GToggleSystemTrayEnabledReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GToggleSystemTrayEnabledReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GToggleSystemTrayEnabledReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.dart new file mode 100644 index 00000000..c815fec8 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'toggle_system_tray_enabled.var.gql.g.dart'; + +abstract class GToggleSystemTrayEnabledVars + implements + Built { + GToggleSystemTrayEnabledVars._(); + + factory GToggleSystemTrayEnabledVars( + [void Function(GToggleSystemTrayEnabledVarsBuilder b) updates]) = + _$GToggleSystemTrayEnabledVars; + + bool? get systemTrayEnabled; + static Serializer get serializer => + _$gToggleSystemTrayEnabledVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GToggleSystemTrayEnabledVars.serializer, + this, + ) as Map); + + static GToggleSystemTrayEnabledVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GToggleSystemTrayEnabledVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.g.dart new file mode 100644 index 00000000..acbe1e5c --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.g.dart @@ -0,0 +1,150 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'toggle_system_tray_enabled.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gToggleSystemTrayEnabledVarsSerializer = + new _$GToggleSystemTrayEnabledVarsSerializer(); + +class _$GToggleSystemTrayEnabledVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GToggleSystemTrayEnabledVars, + _$GToggleSystemTrayEnabledVars + ]; + @override + final String wireName = 'GToggleSystemTrayEnabledVars'; + + @override + Iterable serialize( + Serializers serializers, GToggleSystemTrayEnabledVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.systemTrayEnabled; + if (value != null) { + result + ..add('systemTrayEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GToggleSystemTrayEnabledVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GToggleSystemTrayEnabledVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GToggleSystemTrayEnabledVars extends GToggleSystemTrayEnabledVars { + @override + final bool? systemTrayEnabled; + + factory _$GToggleSystemTrayEnabledVars( + [void Function(GToggleSystemTrayEnabledVarsBuilder)? updates]) => + (new GToggleSystemTrayEnabledVarsBuilder()..update(updates))._build(); + + _$GToggleSystemTrayEnabledVars._({this.systemTrayEnabled}) : super._(); + + @override + GToggleSystemTrayEnabledVars rebuild( + void Function(GToggleSystemTrayEnabledVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GToggleSystemTrayEnabledVarsBuilder toBuilder() => + new GToggleSystemTrayEnabledVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GToggleSystemTrayEnabledVars && + systemTrayEnabled == other.systemTrayEnabled; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GToggleSystemTrayEnabledVars') + ..add('systemTrayEnabled', systemTrayEnabled)) + .toString(); + } +} + +class GToggleSystemTrayEnabledVarsBuilder + implements + Builder { + _$GToggleSystemTrayEnabledVars? _$v; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + GToggleSystemTrayEnabledVarsBuilder(); + + GToggleSystemTrayEnabledVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _systemTrayEnabled = $v.systemTrayEnabled; + _$v = null; + } + return this; + } + + @override + void replace(GToggleSystemTrayEnabledVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GToggleSystemTrayEnabledVars; + } + + @override + void update(void Function(GToggleSystemTrayEnabledVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GToggleSystemTrayEnabledVars build() => _build(); + + _$GToggleSystemTrayEnabledVars _build() { + final _$result = _$v ?? + new _$GToggleSystemTrayEnabledVars._( + systemTrayEnabled: systemTrayEnabled, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.ast.gql.dart new file mode 100644 index 00000000..31c6396b --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateFlareSolverrSessionName = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrSessionName'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrSessionName')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrSessionName')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateFlareSolverrSessionName, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.dart new file mode 100644 index 00000000..6e9b2095 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.dart @@ -0,0 +1,182 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_session_name.data.gql.g.dart'; + +abstract class GUpdateFlareSolverrSessionNameData + implements + Built { + GUpdateFlareSolverrSessionNameData._(); + + factory GUpdateFlareSolverrSessionNameData( + [void Function(GUpdateFlareSolverrSessionNameDataBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameData; + + static void _initializeBuilder(GUpdateFlareSolverrSessionNameDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionNameData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionNameDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionNameData_setSettings + implements + Built { + GUpdateFlareSolverrSessionNameData_setSettings._(); + + factory GUpdateFlareSolverrSessionNameData_setSettings( + [void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionNameData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionNameData_setSettings_settings get settings; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionNameDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionNameData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrSessionNameData_setSettings_settings._(); + + factory GUpdateFlareSolverrSessionNameData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionNameDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.g.dart new file mode 100644 index 00000000..4f798ceb --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.g.dart @@ -0,0 +1,1460 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_session_name.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrSessionNameDataSerializer = + new _$GUpdateFlareSolverrSessionNameDataSerializer(); +Serializer + _$gUpdateFlareSolverrSessionNameDataSetSettingsSerializer = + new _$GUpdateFlareSolverrSessionNameData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionNameDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrSessionNameData_setSettings_settingsSerializer(); + +class _$GUpdateFlareSolverrSessionNameDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameData, + _$GUpdateFlareSolverrSessionNameData + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionNameData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrSessionNameData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionNameData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionNameData_setSettings))! + as GUpdateFlareSolverrSessionNameData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameData_setSettings, + _$GUpdateFlareSolverrSessionNameData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionNameData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateFlareSolverrSessionNameData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionNameData_setSettings_settings))! + as GUpdateFlareSolverrSessionNameData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateFlareSolverrSessionNameData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameData_setSettings_settings, + _$GUpdateFlareSolverrSessionNameData_setSettings_settings + ]; + @override + final String wireName = + 'GUpdateFlareSolverrSessionNameData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionNameData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameData + extends GUpdateFlareSolverrSessionNameData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionNameData_setSettings setSettings; + + factory _$GUpdateFlareSolverrSessionNameData( + [void Function(GUpdateFlareSolverrSessionNameDataBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameDataBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrSessionNameData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrSessionNameData', 'setSettings'); + } + + @override + GUpdateFlareSolverrSessionNameData rebuild( + void Function(GUpdateFlareSolverrSessionNameDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameDataBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionNameData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameDataBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionNameData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrSessionNameData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrSessionNameData_setSettingsBuilder(); + set setSettings( + GUpdateFlareSolverrSessionNameData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrSessionNameDataBuilder() { + GUpdateFlareSolverrSessionNameData._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionNameDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameData; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameData build() => _build(); + + _$GUpdateFlareSolverrSessionNameData _build() { + _$GUpdateFlareSolverrSessionNameData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionNameData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettings + extends GUpdateFlareSolverrSessionNameData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionNameData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrSessionNameData_setSettings( + [void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(settings, + r'GUpdateFlareSolverrSessionNameData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings rebuild( + void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameData_setSettingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionNameData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateFlareSolverrSessionNameData_setSettingsBuilder() { + GUpdateFlareSolverrSessionNameData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionNameData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings build() => _build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings _build() { + _$GUpdateFlareSolverrSessionNameData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings', + 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionNameData_setSettings_settings + extends GUpdateFlareSolverrSessionNameData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateFlareSolverrSessionNameData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settings rebuild( + void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionNameData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder() { + GUpdateFlareSolverrSessionNameData_setSettings_settings._initializeBuilder( + this); + } + + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameData_setSettings_settings; + } + + @override + void update( + void Function( + GUpdateFlareSolverrSessionNameData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrSessionNameData_setSettings_settings _build() { + _$GUpdateFlareSolverrSessionNameData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.req.gql.dart new file mode 100644 index 00000000..2b07d815 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.req.gql.dart @@ -0,0 +1,105 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_flare_solverr_session_name.req.gql.g.dart'; + +abstract class GUpdateFlareSolverrSessionNameReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionNameData, + _i3.GUpdateFlareSolverrSessionNameVars> { + GUpdateFlareSolverrSessionNameReq._(); + + factory GUpdateFlareSolverrSessionNameReq( + [void Function(GUpdateFlareSolverrSessionNameReqBuilder b) updates]) = + _$GUpdateFlareSolverrSessionNameReq; + + static void _initializeBuilder(GUpdateFlareSolverrSessionNameReqBuilder b) => + b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrSessionName', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrSessionNameVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrSessionNameData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrSessionNameData? parseData( + Map json) => + _i2.GUpdateFlareSolverrSessionNameData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson( + _i2.GUpdateFlareSolverrSessionNameData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionNameData, + _i3.GUpdateFlareSolverrSessionNameVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrSessionNameReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrSessionNameReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.req.gql.g.dart new file mode 100644 index 00000000..c5103b18 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.req.gql.g.dart @@ -0,0 +1,393 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_session_name.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrSessionNameReqSerializer = + new _$GUpdateFlareSolverrSessionNameReqSerializer(); + +class _$GUpdateFlareSolverrSessionNameReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameReq, + _$GUpdateFlareSolverrSessionNameReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionNameReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrSessionNameVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionNameData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrSessionNameReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrSessionNameVars))! + as _i3.GUpdateFlareSolverrSessionNameVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionNameData))! + as _i2.GUpdateFlareSolverrSessionNameData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameReq + extends GUpdateFlareSolverrSessionNameReq { + @override + final _i3.GUpdateFlareSolverrSessionNameVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? updateResult; + @override + final _i2.GUpdateFlareSolverrSessionNameData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrSessionNameReq( + [void Function(GUpdateFlareSolverrSessionNameReqBuilder)? updates]) => + (new GUpdateFlareSolverrSessionNameReqBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrSessionNameReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionNameReq', 'operation'); + BuiltValueNullFieldError.checkNotNull(executeOnListen, + r'GUpdateFlareSolverrSessionNameReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrSessionNameReq rebuild( + void Function(GUpdateFlareSolverrSessionNameReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameReqBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrSessionNameReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionNameReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameReqBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameReq? _$v; + + _i3.GUpdateFlareSolverrSessionNameVarsBuilder? _vars; + _i3.GUpdateFlareSolverrSessionNameVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrSessionNameVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrSessionNameVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? _updateResult; + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrSessionNameData? Function( + _i2.GUpdateFlareSolverrSessionNameData?, + _i2.GUpdateFlareSolverrSessionNameData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrSessionNameDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrSessionNameDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrSessionNameDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrSessionNameDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrSessionNameReqBuilder() { + GUpdateFlareSolverrSessionNameReq._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionNameReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameReq; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameReq build() => _build(); + + _$GUpdateFlareSolverrSessionNameReq _build() { + _$GUpdateFlareSolverrSessionNameReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionNameReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrSessionNameReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionNameReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.dart new file mode 100644 index 00000000..661c531f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_session_name.var.gql.g.dart'; + +abstract class GUpdateFlareSolverrSessionNameVars + implements + Built { + GUpdateFlareSolverrSessionNameVars._(); + + factory GUpdateFlareSolverrSessionNameVars( + [void Function(GUpdateFlareSolverrSessionNameVarsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionNameVars; + + String get flareSolverrSessionName; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionNameVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionNameVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionNameVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionNameVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.g.dart new file mode 100644 index 00000000..9ba7556f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.g.dart @@ -0,0 +1,159 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_session_name.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrSessionNameVarsSerializer = + new _$GUpdateFlareSolverrSessionNameVarsSerializer(); + +class _$GUpdateFlareSolverrSessionNameVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionNameVars, + _$GUpdateFlareSolverrSessionNameVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionNameVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionNameVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionNameVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionNameVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionNameVars + extends GUpdateFlareSolverrSessionNameVars { + @override + final String flareSolverrSessionName; + + factory _$GUpdateFlareSolverrSessionNameVars( + [void Function(GUpdateFlareSolverrSessionNameVarsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionNameVarsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionNameVars._( + {required this.flareSolverrSessionName}) + : super._() { + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GUpdateFlareSolverrSessionNameVars', 'flareSolverrSessionName'); + } + + @override + GUpdateFlareSolverrSessionNameVars rebuild( + void Function(GUpdateFlareSolverrSessionNameVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionNameVarsBuilder toBuilder() => + new GUpdateFlareSolverrSessionNameVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionNameVars && + flareSolverrSessionName == other.flareSolverrSessionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionNameVars') + ..add('flareSolverrSessionName', flareSolverrSessionName)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionNameVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionNameVars? _$v; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + GUpdateFlareSolverrSessionNameVarsBuilder(); + + GUpdateFlareSolverrSessionNameVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrSessionName = $v.flareSolverrSessionName; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionNameVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionNameVars; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionNameVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionNameVars build() => _build(); + + _$GUpdateFlareSolverrSessionNameVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrSessionNameVars._( + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrSessionNameVars', + 'flareSolverrSessionName'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.ast.gql.dart new file mode 100644 index 00000000..3e273d88 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateFlareSolverrSessionTtl = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrSessionTtl'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrSessionTtl')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '10')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateFlareSolverrSessionTtl, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.dart new file mode 100644 index 00000000..0e386071 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.dart @@ -0,0 +1,182 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_session_ttl.data.gql.g.dart'; + +abstract class GUpdateFlareSolverrSessionTtlData + implements + Built { + GUpdateFlareSolverrSessionTtlData._(); + + factory GUpdateFlareSolverrSessionTtlData( + [void Function(GUpdateFlareSolverrSessionTtlDataBuilder b) updates]) = + _$GUpdateFlareSolverrSessionTtlData; + + static void _initializeBuilder(GUpdateFlareSolverrSessionTtlDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionTtlData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionTtlDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlData? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionTtlData_setSettings + implements + Built { + GUpdateFlareSolverrSessionTtlData_setSettings._(); + + factory GUpdateFlareSolverrSessionTtlData_setSettings( + [void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionTtlData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrSessionTtlData_setSettings_settings get settings; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrSessionTtlData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrSessionTtlData_setSettings_settings._(); + + factory GUpdateFlareSolverrSessionTtlData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrSessionTtlData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.g.dart new file mode 100644 index 00000000..ed78eefa --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.g.dart @@ -0,0 +1,1456 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_session_ttl.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrSessionTtlDataSerializer = + new _$GUpdateFlareSolverrSessionTtlDataSerializer(); +Serializer + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSerializer = + new _$GUpdateFlareSolverrSessionTtlData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrSessionTtlDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrSessionTtlData_setSettings_settingsSerializer(); + +class _$GUpdateFlareSolverrSessionTtlDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlData, + _$GUpdateFlareSolverrSessionTtlData + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionTtlData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrSessionTtlData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionTtlData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionTtlData_setSettings))! + as GUpdateFlareSolverrSessionTtlData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlData_setSettings, + _$GUpdateFlareSolverrSessionTtlData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionTtlData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateFlareSolverrSessionTtlData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrSessionTtlData_setSettings_settings))! + as GUpdateFlareSolverrSessionTtlData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateFlareSolverrSessionTtlData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlData_setSettings_settings, + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings + ]; + @override + final String wireName = + 'GUpdateFlareSolverrSessionTtlData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrSessionTtlData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlData + extends GUpdateFlareSolverrSessionTtlData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionTtlData_setSettings setSettings; + + factory _$GUpdateFlareSolverrSessionTtlData( + [void Function(GUpdateFlareSolverrSessionTtlDataBuilder)? updates]) => + (new GUpdateFlareSolverrSessionTtlDataBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrSessionTtlData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrSessionTtlData', 'setSettings'); + } + + @override + GUpdateFlareSolverrSessionTtlData rebuild( + void Function(GUpdateFlareSolverrSessionTtlDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlDataBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionTtlData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlDataBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder(); + set setSettings( + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrSessionTtlDataBuilder() { + GUpdateFlareSolverrSessionTtlData._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionTtlDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlData; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionTtlDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlData build() => _build(); + + _$GUpdateFlareSolverrSessionTtlData _build() { + _$GUpdateFlareSolverrSessionTtlData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlData._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionTtlData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettings + extends GUpdateFlareSolverrSessionTtlData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrSessionTtlData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrSessionTtlData_setSettings( + [void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateFlareSolverrSessionTtlData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings rebuild( + void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionTtlData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder() { + GUpdateFlareSolverrSessionTtlData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionTtlData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionTtlData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings build() => _build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings _build() { + _$GUpdateFlareSolverrSessionTtlData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings', + 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrSessionTtlData_setSettings_settings + extends GUpdateFlareSolverrSessionTtlData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateFlareSolverrSessionTtlData_setSettings_settings( + [void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settings rebuild( + void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder() { + GUpdateFlareSolverrSessionTtlData_setSettings_settings._initializeBuilder( + this); + } + + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlData_setSettings_settings; + } + + @override + void update( + void Function( + GUpdateFlareSolverrSessionTtlData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings _build() { + _$GUpdateFlareSolverrSessionTtlData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.req.gql.dart new file mode 100644 index 00000000..cfe75fd7 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.req.gql.dart @@ -0,0 +1,102 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_flare_solverr_session_ttl.req.gql.g.dart'; + +abstract class GUpdateFlareSolverrSessionTtlReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionTtlData, + _i3.GUpdateFlareSolverrSessionTtlVars> { + GUpdateFlareSolverrSessionTtlReq._(); + + factory GUpdateFlareSolverrSessionTtlReq( + [void Function(GUpdateFlareSolverrSessionTtlReqBuilder b) updates]) = + _$GUpdateFlareSolverrSessionTtlReq; + + static void _initializeBuilder(GUpdateFlareSolverrSessionTtlReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrSessionTtl', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrSessionTtlVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrSessionTtlData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrSessionTtlData? parseData(Map json) => + _i2.GUpdateFlareSolverrSessionTtlData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateFlareSolverrSessionTtlData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrSessionTtlData, + _i3.GUpdateFlareSolverrSessionTtlVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrSessionTtlReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlReq? fromJson( + Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.req.gql.g.dart new file mode 100644 index 00000000..5186306f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.req.gql.g.dart @@ -0,0 +1,390 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_session_ttl.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrSessionTtlReqSerializer = + new _$GUpdateFlareSolverrSessionTtlReqSerializer(); + +class _$GUpdateFlareSolverrSessionTtlReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlReq, + _$GUpdateFlareSolverrSessionTtlReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionTtlReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateFlareSolverrSessionTtlVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionTtlData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrSessionTtlReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrSessionTtlVars))! + as _i3.GUpdateFlareSolverrSessionTtlVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrSessionTtlData))! + as _i2.GUpdateFlareSolverrSessionTtlData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlReq + extends GUpdateFlareSolverrSessionTtlReq { + @override + final _i3.GUpdateFlareSolverrSessionTtlVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? updateResult; + @override + final _i2.GUpdateFlareSolverrSessionTtlData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrSessionTtlReq( + [void Function(GUpdateFlareSolverrSessionTtlReqBuilder)? updates]) => + (new GUpdateFlareSolverrSessionTtlReqBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrSessionTtlReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrSessionTtlReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionTtlReq', 'operation'); + BuiltValueNullFieldError.checkNotNull(executeOnListen, + r'GUpdateFlareSolverrSessionTtlReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrSessionTtlReq rebuild( + void Function(GUpdateFlareSolverrSessionTtlReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlReqBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrSessionTtlReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionTtlReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlReqBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlReq? _$v; + + _i3.GUpdateFlareSolverrSessionTtlVarsBuilder? _vars; + _i3.GUpdateFlareSolverrSessionTtlVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrSessionTtlVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrSessionTtlVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? _updateResult; + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrSessionTtlData? Function( + _i2.GUpdateFlareSolverrSessionTtlData?, + _i2.GUpdateFlareSolverrSessionTtlData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrSessionTtlDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrSessionTtlDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrSessionTtlDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrSessionTtlDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrSessionTtlReqBuilder() { + GUpdateFlareSolverrSessionTtlReq._initializeBuilder(this); + } + + GUpdateFlareSolverrSessionTtlReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlReq; + } + + @override + void update(void Function(GUpdateFlareSolverrSessionTtlReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlReq build() => _build(); + + _$GUpdateFlareSolverrSessionTtlReq _build() { + _$GUpdateFlareSolverrSessionTtlReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrSessionTtlReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrSessionTtlReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrSessionTtlReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.dart new file mode 100644 index 00000000..3c91654a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.dart @@ -0,0 +1,37 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_session_ttl.var.gql.g.dart'; + +abstract class GUpdateFlareSolverrSessionTtlVars + implements + Built { + GUpdateFlareSolverrSessionTtlVars._(); + + factory GUpdateFlareSolverrSessionTtlVars( + [void Function(GUpdateFlareSolverrSessionTtlVarsBuilder b) updates]) = + _$GUpdateFlareSolverrSessionTtlVars; + + int? get flareSolverrSessionTtl; + static Serializer get serializer => + _$gUpdateFlareSolverrSessionTtlVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrSessionTtlVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrSessionTtlVars? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrSessionTtlVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.g.dart new file mode 100644 index 00000000..9638e7fc --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.g.dart @@ -0,0 +1,153 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_session_ttl.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrSessionTtlVarsSerializer = + new _$GUpdateFlareSolverrSessionTtlVarsSerializer(); + +class _$GUpdateFlareSolverrSessionTtlVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrSessionTtlVars, + _$GUpdateFlareSolverrSessionTtlVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrSessionTtlVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrSessionTtlVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrSessionTtl; + if (value != null) { + result + ..add('flareSolverrSessionTtl') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateFlareSolverrSessionTtlVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrSessionTtlVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrSessionTtlVars + extends GUpdateFlareSolverrSessionTtlVars { + @override + final int? flareSolverrSessionTtl; + + factory _$GUpdateFlareSolverrSessionTtlVars( + [void Function(GUpdateFlareSolverrSessionTtlVarsBuilder)? updates]) => + (new GUpdateFlareSolverrSessionTtlVarsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrSessionTtlVars._({this.flareSolverrSessionTtl}) + : super._(); + + @override + GUpdateFlareSolverrSessionTtlVars rebuild( + void Function(GUpdateFlareSolverrSessionTtlVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrSessionTtlVarsBuilder toBuilder() => + new GUpdateFlareSolverrSessionTtlVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrSessionTtlVars && + flareSolverrSessionTtl == other.flareSolverrSessionTtl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrSessionTtlVars') + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl)) + .toString(); + } +} + +class GUpdateFlareSolverrSessionTtlVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrSessionTtlVars? _$v; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + GUpdateFlareSolverrSessionTtlVarsBuilder(); + + GUpdateFlareSolverrSessionTtlVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrSessionTtlVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrSessionTtlVars; + } + + @override + void update( + void Function(GUpdateFlareSolverrSessionTtlVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrSessionTtlVars build() => _build(); + + _$GUpdateFlareSolverrSessionTtlVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrSessionTtlVars._( + flareSolverrSessionTtl: flareSolverrSessionTtl, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.ast.gql.dart new file mode 100644 index 00000000..de8d0c4f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateFlareSolverrTimeout = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrTimeout'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrTimeout')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '10')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrTimeout')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateFlareSolverrTimeout, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.dart new file mode 100644 index 00000000..c8a7e484 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.dart @@ -0,0 +1,180 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_timeout.data.gql.g.dart'; + +abstract class GUpdateFlareSolverrTimeoutData + implements + Built { + GUpdateFlareSolverrTimeoutData._(); + + factory GUpdateFlareSolverrTimeoutData( + [void Function(GUpdateFlareSolverrTimeoutDataBuilder b) updates]) = + _$GUpdateFlareSolverrTimeoutData; + + static void _initializeBuilder(GUpdateFlareSolverrTimeoutDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrTimeoutData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrTimeoutDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrTimeoutData_setSettings + implements + Built { + GUpdateFlareSolverrTimeoutData_setSettings._(); + + factory GUpdateFlareSolverrTimeoutData_setSettings( + [void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrTimeoutData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrTimeoutData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrTimeoutData_setSettings_settings get settings; + static Serializer + get serializer => _$gUpdateFlareSolverrTimeoutDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrTimeoutData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrTimeoutData_setSettings_settings._(); + + factory GUpdateFlareSolverrTimeoutData_setSettings_settings( + [void Function( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrTimeoutData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateFlareSolverrTimeoutDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.g.dart new file mode 100644 index 00000000..3c5dfea0 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.g.dart @@ -0,0 +1,1436 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_timeout.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrTimeoutDataSerializer = + new _$GUpdateFlareSolverrTimeoutDataSerializer(); +Serializer + _$gUpdateFlareSolverrTimeoutDataSetSettingsSerializer = + new _$GUpdateFlareSolverrTimeoutData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrTimeoutDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrTimeoutData_setSettings_settingsSerializer(); + +class _$GUpdateFlareSolverrTimeoutDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutData, + _$GUpdateFlareSolverrTimeoutData + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrTimeoutData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrTimeoutData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrTimeoutData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrTimeoutData_setSettings))! + as GUpdateFlareSolverrTimeoutData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutData_setSettings, + _$GUpdateFlareSolverrTimeoutData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutData_setSettings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrTimeoutData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType( + GUpdateFlareSolverrTimeoutData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrTimeoutData_setSettings_settings))! + as GUpdateFlareSolverrTimeoutData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettings_settingsSerializer + implements + StructuredSerializer< + GUpdateFlareSolverrTimeoutData_setSettings_settings> { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutData_setSettings_settings, + _$GUpdateFlareSolverrTimeoutData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrTimeoutData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = + new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutData extends GUpdateFlareSolverrTimeoutData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrTimeoutData_setSettings setSettings; + + factory _$GUpdateFlareSolverrTimeoutData( + [void Function(GUpdateFlareSolverrTimeoutDataBuilder)? updates]) => + (new GUpdateFlareSolverrTimeoutDataBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrTimeoutData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrTimeoutData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrTimeoutData', 'setSettings'); + } + + @override + GUpdateFlareSolverrTimeoutData rebuild( + void Function(GUpdateFlareSolverrTimeoutDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutDataBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrTimeoutData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutDataBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrTimeoutData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrTimeoutData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrTimeoutData_setSettingsBuilder(); + set setSettings( + GUpdateFlareSolverrTimeoutData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrTimeoutDataBuilder() { + GUpdateFlareSolverrTimeoutData._initializeBuilder(this); + } + + GUpdateFlareSolverrTimeoutDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutData; + } + + @override + void update(void Function(GUpdateFlareSolverrTimeoutDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutData build() => _build(); + + _$GUpdateFlareSolverrTimeoutData _build() { + _$GUpdateFlareSolverrTimeoutData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrTimeoutData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettings + extends GUpdateFlareSolverrTimeoutData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrTimeoutData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrTimeoutData_setSettings( + [void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrTimeoutData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateFlareSolverrTimeoutData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings rebuild( + void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrTimeoutData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder? + settings) => + _$this._settings = settings; + + GUpdateFlareSolverrTimeoutData_setSettingsBuilder() { + GUpdateFlareSolverrTimeoutData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrTimeoutData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrTimeoutData_setSettingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings build() => _build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings _build() { + _$GUpdateFlareSolverrTimeoutData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrTimeoutData_setSettings_settings + extends GUpdateFlareSolverrTimeoutData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateFlareSolverrTimeoutData_setSettings_settings( + [void Function( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + extensionRepos, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settings rebuild( + void Function( + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrTimeoutData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder() { + GUpdateFlareSolverrTimeoutData_setSettings_settings._initializeBuilder( + this); + } + + GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateFlareSolverrTimeoutData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrTimeoutData_setSettings_settings _build() { + _$GUpdateFlareSolverrTimeoutData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull(ip, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.req.gql.dart new file mode 100644 index 00000000..4f46d6ff --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.req.gql.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_flare_solverr_timeout.req.gql.g.dart'; + +abstract class GUpdateFlareSolverrTimeoutReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrTimeoutData, + _i3.GUpdateFlareSolverrTimeoutVars> { + GUpdateFlareSolverrTimeoutReq._(); + + factory GUpdateFlareSolverrTimeoutReq( + [void Function(GUpdateFlareSolverrTimeoutReqBuilder b) updates]) = + _$GUpdateFlareSolverrTimeoutReq; + + static void _initializeBuilder(GUpdateFlareSolverrTimeoutReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrTimeout', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrTimeoutVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrTimeoutData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrTimeoutData? parseData(Map json) => + _i2.GUpdateFlareSolverrTimeoutData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateFlareSolverrTimeoutData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrTimeoutData, + _i3.GUpdateFlareSolverrTimeoutVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrTimeoutReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrTimeoutReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.req.gql.g.dart new file mode 100644 index 00000000..6904b6e2 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.req.gql.g.dart @@ -0,0 +1,388 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_timeout.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrTimeoutReqSerializer = + new _$GUpdateFlareSolverrTimeoutReqSerializer(); + +class _$GUpdateFlareSolverrTimeoutReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutReq, + _$GUpdateFlareSolverrTimeoutReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrTimeoutReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateFlareSolverrTimeoutVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateFlareSolverrTimeoutData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrTimeoutReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrTimeoutVars))! + as _i3.GUpdateFlareSolverrTimeoutVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrTimeoutData))! + as _i2.GUpdateFlareSolverrTimeoutData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutReq extends GUpdateFlareSolverrTimeoutReq { + @override + final _i3.GUpdateFlareSolverrTimeoutVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? updateResult; + @override + final _i2.GUpdateFlareSolverrTimeoutData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrTimeoutReq( + [void Function(GUpdateFlareSolverrTimeoutReqBuilder)? updates]) => + (new GUpdateFlareSolverrTimeoutReqBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrTimeoutReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrTimeoutReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrTimeoutReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateFlareSolverrTimeoutReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrTimeoutReq rebuild( + void Function(GUpdateFlareSolverrTimeoutReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutReqBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrTimeoutReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrTimeoutReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutReqBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutReq? _$v; + + _i3.GUpdateFlareSolverrTimeoutVarsBuilder? _vars; + _i3.GUpdateFlareSolverrTimeoutVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrTimeoutVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrTimeoutVarsBuilder? vars) => + _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? _updateResult; + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrTimeoutData? Function( + _i2.GUpdateFlareSolverrTimeoutData?, + _i2.GUpdateFlareSolverrTimeoutData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrTimeoutDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrTimeoutDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrTimeoutDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrTimeoutDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrTimeoutReqBuilder() { + GUpdateFlareSolverrTimeoutReq._initializeBuilder(this); + } + + GUpdateFlareSolverrTimeoutReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutReq; + } + + @override + void update(void Function(GUpdateFlareSolverrTimeoutReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutReq build() => _build(); + + _$GUpdateFlareSolverrTimeoutReq _build() { + _$GUpdateFlareSolverrTimeoutReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrTimeoutReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrTimeoutReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrTimeoutReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.dart new file mode 100644 index 00000000..60045ab9 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_timeout.var.gql.g.dart'; + +abstract class GUpdateFlareSolverrTimeoutVars + implements + Built { + GUpdateFlareSolverrTimeoutVars._(); + + factory GUpdateFlareSolverrTimeoutVars( + [void Function(GUpdateFlareSolverrTimeoutVarsBuilder b) updates]) = + _$GUpdateFlareSolverrTimeoutVars; + + int? get flareSolverrTimeout; + static Serializer get serializer => + _$gUpdateFlareSolverrTimeoutVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrTimeoutVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrTimeoutVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrTimeoutVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.g.dart new file mode 100644 index 00000000..7c0414f3 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.g.dart @@ -0,0 +1,149 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_timeout.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer + _$gUpdateFlareSolverrTimeoutVarsSerializer = + new _$GUpdateFlareSolverrTimeoutVarsSerializer(); + +class _$GUpdateFlareSolverrTimeoutVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrTimeoutVars, + _$GUpdateFlareSolverrTimeoutVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrTimeoutVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrTimeoutVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.flareSolverrTimeout; + if (value != null) { + result + ..add('flareSolverrTimeout') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateFlareSolverrTimeoutVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrTimeoutVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrTimeoutVars extends GUpdateFlareSolverrTimeoutVars { + @override + final int? flareSolverrTimeout; + + factory _$GUpdateFlareSolverrTimeoutVars( + [void Function(GUpdateFlareSolverrTimeoutVarsBuilder)? updates]) => + (new GUpdateFlareSolverrTimeoutVarsBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrTimeoutVars._({this.flareSolverrTimeout}) : super._(); + + @override + GUpdateFlareSolverrTimeoutVars rebuild( + void Function(GUpdateFlareSolverrTimeoutVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrTimeoutVarsBuilder toBuilder() => + new GUpdateFlareSolverrTimeoutVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrTimeoutVars && + flareSolverrTimeout == other.flareSolverrTimeout; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrTimeoutVars') + ..add('flareSolverrTimeout', flareSolverrTimeout)) + .toString(); + } +} + +class GUpdateFlareSolverrTimeoutVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrTimeoutVars? _$v; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + GUpdateFlareSolverrTimeoutVarsBuilder(); + + GUpdateFlareSolverrTimeoutVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrTimeout = $v.flareSolverrTimeout; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrTimeoutVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrTimeoutVars; + } + + @override + void update(void Function(GUpdateFlareSolverrTimeoutVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrTimeoutVars build() => _build(); + + _$GUpdateFlareSolverrTimeoutVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrTimeoutVars._( + flareSolverrTimeout: flareSolverrTimeout, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.ast.gql.dart new file mode 100644 index 00000000..382491e0 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateFlareSolverrUrl = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateFlareSolverrUrl'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'flareSolverrUrl')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'flareSolverrUrl')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateFlareSolverrUrl, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.dart new file mode 100644 index 00000000..4a8ed0c4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.dart @@ -0,0 +1,178 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_url.data.gql.g.dart'; + +abstract class GUpdateFlareSolverrUrlData + implements + Built { + GUpdateFlareSolverrUrlData._(); + + factory GUpdateFlareSolverrUrlData( + [void Function(GUpdateFlareSolverrUrlDataBuilder b) updates]) = + _$GUpdateFlareSolverrUrlData; + + static void _initializeBuilder(GUpdateFlareSolverrUrlDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrUrlData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateFlareSolverrUrlDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlData.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlData.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrUrlData_setSettings + implements + Built { + GUpdateFlareSolverrUrlData_setSettings._(); + + factory GUpdateFlareSolverrUrlData_setSettings( + [void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder b) + updates]) = _$GUpdateFlareSolverrUrlData_setSettings; + + static void _initializeBuilder( + GUpdateFlareSolverrUrlData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateFlareSolverrUrlData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateFlareSolverrUrlDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlData_setSettings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateFlareSolverrUrlData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateFlareSolverrUrlData_setSettings_settings._(); + + factory GUpdateFlareSolverrUrlData_setSettings_settings( + [void Function(GUpdateFlareSolverrUrlData_setSettings_settingsBuilder b) + updates]) = _$GUpdateFlareSolverrUrlData_setSettings_settings; + + static void _initializeBuilder( + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => + _$gUpdateFlareSolverrUrlDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.g.dart new file mode 100644 index 00000000..979ba38e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.g.dart @@ -0,0 +1,1406 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_url.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateFlareSolverrUrlDataSerializer = + new _$GUpdateFlareSolverrUrlDataSerializer(); +Serializer + _$gUpdateFlareSolverrUrlDataSetSettingsSerializer = + new _$GUpdateFlareSolverrUrlData_setSettingsSerializer(); +Serializer + _$gUpdateFlareSolverrUrlDataSetSettingsSettingsSerializer = + new _$GUpdateFlareSolverrUrlData_setSettings_settingsSerializer(); + +class _$GUpdateFlareSolverrUrlDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlData, + _$GUpdateFlareSolverrUrlData + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: + const FullType(GUpdateFlareSolverrUrlData_setSettings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrUrlData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateFlareSolverrUrlData_setSettings))! + as GUpdateFlareSolverrUrlData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlData_setSettings, + _$GUpdateFlareSolverrUrlData_setSettings + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateFlareSolverrUrlData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrUrlData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateFlareSolverrUrlData_setSettings_settings))! + as GUpdateFlareSolverrUrlData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlData_setSettings_settings, + _$GUpdateFlareSolverrUrlData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateFlareSolverrUrlData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrUrlData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlData extends GUpdateFlareSolverrUrlData { + @override + final String G__typename; + @override + final GUpdateFlareSolverrUrlData_setSettings setSettings; + + factory _$GUpdateFlareSolverrUrlData( + [void Function(GUpdateFlareSolverrUrlDataBuilder)? updates]) => + (new GUpdateFlareSolverrUrlDataBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrUrlData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrUrlData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateFlareSolverrUrlData', 'setSettings'); + } + + @override + GUpdateFlareSolverrUrlData rebuild( + void Function(GUpdateFlareSolverrUrlDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlDataBuilder toBuilder() => + new GUpdateFlareSolverrUrlDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrUrlData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlDataBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrUrlData_setSettingsBuilder? _setSettings; + GUpdateFlareSolverrUrlData_setSettingsBuilder get setSettings => + _$this._setSettings ??= + new GUpdateFlareSolverrUrlData_setSettingsBuilder(); + set setSettings(GUpdateFlareSolverrUrlData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateFlareSolverrUrlDataBuilder() { + GUpdateFlareSolverrUrlData._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlData; + } + + @override + void update(void Function(GUpdateFlareSolverrUrlDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlData build() => _build(); + + _$GUpdateFlareSolverrUrlData _build() { + _$GUpdateFlareSolverrUrlData _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrUrlData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrUrlData_setSettings + extends GUpdateFlareSolverrUrlData_setSettings { + @override + final String G__typename; + @override + final GUpdateFlareSolverrUrlData_setSettings_settings settings; + + factory _$GUpdateFlareSolverrUrlData_setSettings( + [void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder)? + updates]) => + (new GUpdateFlareSolverrUrlData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateFlareSolverrUrlData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateFlareSolverrUrlData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateFlareSolverrUrlData_setSettings', 'settings'); + } + + @override + GUpdateFlareSolverrUrlData_setSettings rebuild( + void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlData_setSettingsBuilder toBuilder() => + new GUpdateFlareSolverrUrlData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrUrlData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlData_setSettingsBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder? _settings; + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder(); + set settings( + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateFlareSolverrUrlData_setSettingsBuilder() { + GUpdateFlareSolverrUrlData_setSettings._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlData_setSettings; + } + + @override + void update( + void Function(GUpdateFlareSolverrUrlData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlData_setSettings build() => _build(); + + _$GUpdateFlareSolverrUrlData_setSettings _build() { + _$GUpdateFlareSolverrUrlData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrUrlData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateFlareSolverrUrlData_setSettings_settings + extends GUpdateFlareSolverrUrlData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateFlareSolverrUrlData_setSettings_settings( + [void Function( + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateFlareSolverrUrlData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateFlareSolverrUrlData_setSettings_settings rebuild( + void Function(GUpdateFlareSolverrUrlData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder toBuilder() => + new GUpdateFlareSolverrUrlData_setSettings_settingsBuilder() + ..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateFlareSolverrUrlData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder() { + GUpdateFlareSolverrUrlData_setSettings_settings._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateFlareSolverrUrlData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlData_setSettings_settings build() => _build(); + + _$GUpdateFlareSolverrUrlData_setSettings_settings _build() { + _$GUpdateFlareSolverrUrlData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull( + backupPath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull( + backupTTL, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull( + backupTime, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateFlareSolverrUrlData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull(port, + r'GUpdateFlareSolverrUrlData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateFlareSolverrUrlData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.req.gql.dart new file mode 100644 index 00000000..6457dcd9 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_flare_solverr_url.req.gql.g.dart'; + +abstract class GUpdateFlareSolverrUrlReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateFlareSolverrUrlData, + _i3.GUpdateFlareSolverrUrlVars> { + GUpdateFlareSolverrUrlReq._(); + + factory GUpdateFlareSolverrUrlReq( + [void Function(GUpdateFlareSolverrUrlReqBuilder b) updates]) = + _$GUpdateFlareSolverrUrlReq; + + static void _initializeBuilder(GUpdateFlareSolverrUrlReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateFlareSolverrUrl', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateFlareSolverrUrlVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, + _i2.GUpdateFlareSolverrUrlData?, + )? get updateResult; + @override + _i2.GUpdateFlareSolverrUrlData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateFlareSolverrUrlData? parseData(Map json) => + _i2.GUpdateFlareSolverrUrlData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateFlareSolverrUrlData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateFlareSolverrUrlData, + _i3.GUpdateFlareSolverrUrlVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateFlareSolverrUrlReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateFlareSolverrUrlReq.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateFlareSolverrUrlReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.req.gql.g.dart new file mode 100644 index 00000000..04d7c3c6 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.req.gql.g.dart @@ -0,0 +1,384 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_url.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateFlareSolverrUrlReqSerializer = + new _$GUpdateFlareSolverrUrlReqSerializer(); + +class _$GUpdateFlareSolverrUrlReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlReq, + _$GUpdateFlareSolverrUrlReq + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateFlareSolverrUrlVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateFlareSolverrUrlData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateFlareSolverrUrlReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i3.GUpdateFlareSolverrUrlVars))! + as _i3.GUpdateFlareSolverrUrlVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: + const FullType(_i2.GUpdateFlareSolverrUrlData))! + as _i2.GUpdateFlareSolverrUrlData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlReq extends GUpdateFlareSolverrUrlReq { + @override + final _i3.GUpdateFlareSolverrUrlVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, _i2.GUpdateFlareSolverrUrlData?)? + updateResult; + @override + final _i2.GUpdateFlareSolverrUrlData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateFlareSolverrUrlReq( + [void Function(GUpdateFlareSolverrUrlReqBuilder)? updates]) => + (new GUpdateFlareSolverrUrlReqBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrUrlReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateFlareSolverrUrlReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrUrlReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateFlareSolverrUrlReq', 'executeOnListen'); + } + + @override + GUpdateFlareSolverrUrlReq rebuild( + void Function(GUpdateFlareSolverrUrlReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlReqBuilder toBuilder() => + new GUpdateFlareSolverrUrlReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateFlareSolverrUrlReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrUrlReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlReqBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlReq? _$v; + + _i3.GUpdateFlareSolverrUrlVarsBuilder? _vars; + _i3.GUpdateFlareSolverrUrlVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateFlareSolverrUrlVarsBuilder(); + set vars(_i3.GUpdateFlareSolverrUrlVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, _i2.GUpdateFlareSolverrUrlData?)? + _updateResult; + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, _i2.GUpdateFlareSolverrUrlData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateFlareSolverrUrlData? Function( + _i2.GUpdateFlareSolverrUrlData?, + _i2.GUpdateFlareSolverrUrlData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateFlareSolverrUrlDataBuilder? _optimisticResponse; + _i2.GUpdateFlareSolverrUrlDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= + new _i2.GUpdateFlareSolverrUrlDataBuilder(); + set optimisticResponse( + _i2.GUpdateFlareSolverrUrlDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateFlareSolverrUrlReqBuilder() { + GUpdateFlareSolverrUrlReq._initializeBuilder(this); + } + + GUpdateFlareSolverrUrlReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlReq; + } + + @override + void update(void Function(GUpdateFlareSolverrUrlReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlReq build() => _build(); + + _$GUpdateFlareSolverrUrlReq _build() { + _$GUpdateFlareSolverrUrlReq _$result; + try { + _$result = _$v ?? + new _$GUpdateFlareSolverrUrlReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateFlareSolverrUrlReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, + r'GUpdateFlareSolverrUrlReq', + 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateFlareSolverrUrlReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.dart new file mode 100644 index 00000000..7168817a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_flare_solverr_url.var.gql.g.dart'; + +abstract class GUpdateFlareSolverrUrlVars + implements + Built { + GUpdateFlareSolverrUrlVars._(); + + factory GUpdateFlareSolverrUrlVars( + [void Function(GUpdateFlareSolverrUrlVarsBuilder b) updates]) = + _$GUpdateFlareSolverrUrlVars; + + String get flareSolverrUrl; + static Serializer get serializer => + _$gUpdateFlareSolverrUrlVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateFlareSolverrUrlVars.serializer, + this, + ) as Map); + + static GUpdateFlareSolverrUrlVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateFlareSolverrUrlVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.g.dart new file mode 100644 index 00000000..1bb1dc34 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.g.dart @@ -0,0 +1,151 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_flare_solverr_url.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateFlareSolverrUrlVarsSerializer = + new _$GUpdateFlareSolverrUrlVarsSerializer(); + +class _$GUpdateFlareSolverrUrlVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateFlareSolverrUrlVars, + _$GUpdateFlareSolverrUrlVars + ]; + @override + final String wireName = 'GUpdateFlareSolverrUrlVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateFlareSolverrUrlVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateFlareSolverrUrlVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateFlareSolverrUrlVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateFlareSolverrUrlVars extends GUpdateFlareSolverrUrlVars { + @override + final String flareSolverrUrl; + + factory _$GUpdateFlareSolverrUrlVars( + [void Function(GUpdateFlareSolverrUrlVarsBuilder)? updates]) => + (new GUpdateFlareSolverrUrlVarsBuilder()..update(updates))._build(); + + _$GUpdateFlareSolverrUrlVars._({required this.flareSolverrUrl}) : super._() { + BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, r'GUpdateFlareSolverrUrlVars', 'flareSolverrUrl'); + } + + @override + GUpdateFlareSolverrUrlVars rebuild( + void Function(GUpdateFlareSolverrUrlVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateFlareSolverrUrlVarsBuilder toBuilder() => + new GUpdateFlareSolverrUrlVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateFlareSolverrUrlVars && + flareSolverrUrl == other.flareSolverrUrl; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateFlareSolverrUrlVars') + ..add('flareSolverrUrl', flareSolverrUrl)) + .toString(); + } +} + +class GUpdateFlareSolverrUrlVarsBuilder + implements + Builder { + _$GUpdateFlareSolverrUrlVars? _$v; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + GUpdateFlareSolverrUrlVarsBuilder(); + + GUpdateFlareSolverrUrlVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _flareSolverrUrl = $v.flareSolverrUrl; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateFlareSolverrUrlVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateFlareSolverrUrlVars; + } + + @override + void update(void Function(GUpdateFlareSolverrUrlVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateFlareSolverrUrlVars build() => _build(); + + _$GUpdateFlareSolverrUrlVars _build() { + final _$result = _$v ?? + new _$GUpdateFlareSolverrUrlVars._( + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateFlareSolverrUrlVars', + 'flareSolverrUrl'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.ast.gql.dart new file mode 100644 index 00000000..0cf3d6d8 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdatePort = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdatePort'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'port')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: + _i1.DefaultValueNode(value: _i1.IntValueNode(value: '4567')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'port'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'port')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdatePort, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.dart new file mode 100644 index 00000000..4447889e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.dart @@ -0,0 +1,172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_port.data.gql.g.dart'; + +abstract class GUpdatePortData + implements Built { + GUpdatePortData._(); + + factory GUpdatePortData([void Function(GUpdatePortDataBuilder b) updates]) = + _$GUpdatePortData; + + static void _initializeBuilder(GUpdatePortDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdatePortData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdatePortDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortData.serializer, + this, + ) as Map); + + static GUpdatePortData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdatePortData.serializer, + json, + ); +} + +abstract class GUpdatePortData_setSettings + implements + Built { + GUpdatePortData_setSettings._(); + + factory GUpdatePortData_setSettings( + [void Function(GUpdatePortData_setSettingsBuilder b) updates]) = + _$GUpdatePortData_setSettings; + + static void _initializeBuilder(GUpdatePortData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdatePortData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdatePortDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortData_setSettings.serializer, + this, + ) as Map); + + static GUpdatePortData_setSettings? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdatePortData_setSettings.serializer, + json, + ); +} + +abstract class GUpdatePortData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdatePortData_setSettings_settings._(); + + factory GUpdatePortData_setSettings_settings( + [void Function(GUpdatePortData_setSettings_settingsBuilder b) + updates]) = _$GUpdatePortData_setSettings_settings; + + static void _initializeBuilder( + GUpdatePortData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gUpdatePortDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdatePortData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdatePortData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.g.dart new file mode 100644 index 00000000..ae1731fc --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.g.dart @@ -0,0 +1,1332 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_port.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdatePortDataSerializer = + new _$GUpdatePortDataSerializer(); +Serializer _$gUpdatePortDataSetSettingsSerializer = + new _$GUpdatePortData_setSettingsSerializer(); +Serializer + _$gUpdatePortDataSetSettingsSettingsSerializer = + new _$GUpdatePortData_setSettings_settingsSerializer(); + +class _$GUpdatePortDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdatePortData, _$GUpdatePortData]; + @override + final String wireName = 'GUpdatePortData'; + + @override + Iterable serialize(Serializers serializers, GUpdatePortData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdatePortData_setSettings)), + ]; + + return result; + } + + @override + GUpdatePortData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdatePortData_setSettings))! + as GUpdatePortData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdatePortData_setSettings, + _$GUpdatePortData_setSettings + ]; + @override + final String wireName = 'GUpdatePortData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdatePortData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType(GUpdatePortData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdatePortData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdatePortData_setSettings_settings))! + as GUpdatePortData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdatePortData_setSettings_settings, + _$GUpdatePortData_setSettings_settings + ]; + @override + final String wireName = 'GUpdatePortData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdatePortData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdatePortData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortData extends GUpdatePortData { + @override + final String G__typename; + @override + final GUpdatePortData_setSettings setSettings; + + factory _$GUpdatePortData([void Function(GUpdatePortDataBuilder)? updates]) => + (new GUpdatePortDataBuilder()..update(updates))._build(); + + _$GUpdatePortData._({required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdatePortData', 'setSettings'); + } + + @override + GUpdatePortData rebuild(void Function(GUpdatePortDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortDataBuilder toBuilder() => + new GUpdatePortDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdatePortDataBuilder + implements Builder { + _$GUpdatePortData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdatePortData_setSettingsBuilder? _setSettings; + GUpdatePortData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdatePortData_setSettingsBuilder(); + set setSettings(GUpdatePortData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdatePortDataBuilder() { + GUpdatePortData._initializeBuilder(this); + } + + GUpdatePortDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortData; + } + + @override + void update(void Function(GUpdatePortDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortData build() => _build(); + + _$GUpdatePortData _build() { + _$GUpdatePortData _$result; + try { + _$result = _$v ?? + new _$GUpdatePortData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdatePortData_setSettings extends GUpdatePortData_setSettings { + @override + final String G__typename; + @override + final GUpdatePortData_setSettings_settings settings; + + factory _$GUpdatePortData_setSettings( + [void Function(GUpdatePortData_setSettingsBuilder)? updates]) => + (new GUpdatePortData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdatePortData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdatePortData_setSettings', 'settings'); + } + + @override + GUpdatePortData_setSettings rebuild( + void Function(GUpdatePortData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortData_setSettingsBuilder toBuilder() => + new GUpdatePortData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdatePortData_setSettingsBuilder + implements + Builder { + _$GUpdatePortData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdatePortData_setSettings_settingsBuilder? _settings; + GUpdatePortData_setSettings_settingsBuilder get settings => + _$this._settings ??= new GUpdatePortData_setSettings_settingsBuilder(); + set settings(GUpdatePortData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdatePortData_setSettingsBuilder() { + GUpdatePortData_setSettings._initializeBuilder(this); + } + + GUpdatePortData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortData_setSettings; + } + + @override + void update(void Function(GUpdatePortData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortData_setSettings build() => _build(); + + _$GUpdatePortData_setSettings _build() { + _$GUpdatePortData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdatePortData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdatePortData_setSettings_settings + extends GUpdatePortData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdatePortData_setSettings_settings( + [void Function(GUpdatePortData_setSettings_settingsBuilder)? + updates]) => + (new GUpdatePortData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdatePortData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdatePortData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdatePortData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdatePortData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdatePortData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdatePortData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdatePortData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdatePortData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdatePortData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdatePortData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdatePortData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdatePortData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdatePortData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdatePortData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdatePortData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GUpdatePortData_setSettings_settings', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdatePortData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdatePortData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdatePortData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdatePortData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdatePortData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdatePortData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdatePortData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdatePortData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdatePortData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GUpdatePortData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull( + updateMangas, r'GUpdatePortData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdatePortData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdatePortData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GUpdatePortData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdatePortData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdatePortData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChapters, + r'GUpdatePortData_setSettings_settings', 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdatePortData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdatePortData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdatePortData_setSettings_settings rebuild( + void Function(GUpdatePortData_setSettings_settingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortData_setSettings_settingsBuilder toBuilder() => + new GUpdatePortData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdatePortData_setSettings_settingsBuilder + implements + Builder { + _$GUpdatePortData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdatePortData_setSettings_settingsBuilder() { + GUpdatePortData_setSettings_settings._initializeBuilder(this); + } + + GUpdatePortData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortData_setSettings_settings; + } + + @override + void update( + void Function(GUpdatePortData_setSettings_settingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortData_setSettings_settings build() => _build(); + + _$GUpdatePortData_setSettings_settings _build() { + _$GUpdatePortData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdatePortData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdatePortData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdatePortData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdatePortData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdatePortData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdatePortData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdatePortData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdatePortData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdatePortData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdatePortData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdatePortData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdatePortData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdatePortData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdatePortData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdatePortData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdatePortData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdatePortData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdatePortData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdatePortData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdatePortData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdatePortData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdatePortData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdatePortData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdatePortData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdatePortData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdatePortData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdatePortData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdatePortData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdatePortData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdatePortData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdatePortData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdatePortData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdatePortData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdatePortData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.req.gql.dart new file mode 100644 index 00000000..6b4cd5c7 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.req.gql.dart @@ -0,0 +1,96 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_port.req.gql.g.dart'; + +abstract class GUpdatePortReq + implements + Built, + _i1.OperationRequest<_i2.GUpdatePortData, _i3.GUpdatePortVars> { + GUpdatePortReq._(); + + factory GUpdatePortReq([void Function(GUpdatePortReqBuilder b) updates]) = + _$GUpdatePortReq; + + static void _initializeBuilder(GUpdatePortReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdatePort', + ) + ..executeOnListen = true; + + @override + _i3.GUpdatePortVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdatePortData? Function( + _i2.GUpdatePortData?, + _i2.GUpdatePortData?, + )? get updateResult; + @override + _i2.GUpdatePortData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdatePortData? parseData(Map json) => + _i2.GUpdatePortData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdatePortData data) => data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdatePortData, _i3.GUpdatePortVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdatePortReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdatePortReq.serializer, + this, + ) as Map); + + static GUpdatePortReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdatePortReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.req.gql.g.dart new file mode 100644 index 00000000..b2c2e5f4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.req.gql.g.dart @@ -0,0 +1,366 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_port.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdatePortReqSerializer = + new _$GUpdatePortReqSerializer(); + +class _$GUpdatePortReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdatePortReq, _$GUpdatePortReq]; + @override + final String wireName = 'GUpdatePortReq'; + + @override + Iterable serialize(Serializers serializers, GUpdatePortReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdatePortVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdatePortData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdatePortReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdatePortVars))! + as _i3.GUpdatePortVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdatePortData))! + as _i2.GUpdatePortData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortReq extends GUpdatePortReq { + @override + final _i3.GUpdatePortVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdatePortData? Function( + _i2.GUpdatePortData?, _i2.GUpdatePortData?)? updateResult; + @override + final _i2.GUpdatePortData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdatePortReq([void Function(GUpdatePortReqBuilder)? updates]) => + (new GUpdatePortReqBuilder()..update(updates))._build(); + + _$GUpdatePortReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdatePortReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdatePortReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdatePortReq', 'executeOnListen'); + } + + @override + GUpdatePortReq rebuild(void Function(GUpdatePortReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortReqBuilder toBuilder() => + new GUpdatePortReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdatePortReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdatePortReqBuilder + implements Builder { + _$GUpdatePortReq? _$v; + + _i3.GUpdatePortVarsBuilder? _vars; + _i3.GUpdatePortVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdatePortVarsBuilder(); + set vars(_i3.GUpdatePortVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdatePortData? Function(_i2.GUpdatePortData?, _i2.GUpdatePortData?)? + _updateResult; + _i2.GUpdatePortData? Function(_i2.GUpdatePortData?, _i2.GUpdatePortData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdatePortData? Function( + _i2.GUpdatePortData?, _i2.GUpdatePortData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdatePortDataBuilder? _optimisticResponse; + _i2.GUpdatePortDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdatePortDataBuilder(); + set optimisticResponse(_i2.GUpdatePortDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdatePortReqBuilder() { + GUpdatePortReq._initializeBuilder(this); + } + + GUpdatePortReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortReq; + } + + @override + void update(void Function(GUpdatePortReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortReq build() => _build(); + + _$GUpdatePortReq _build() { + _$GUpdatePortReq _$result; + try { + _$result = _$v ?? + new _$GUpdatePortReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdatePortReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdatePortReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdatePortReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.dart new file mode 100644 index 00000000..54653ca7 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_port.var.gql.g.dart'; + +abstract class GUpdatePortVars + implements Built { + GUpdatePortVars._(); + + factory GUpdatePortVars([void Function(GUpdatePortVarsBuilder b) updates]) = + _$GUpdatePortVars; + + int? get port; + static Serializer get serializer => + _$gUpdatePortVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdatePortVars.serializer, + this, + ) as Map); + + static GUpdatePortVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdatePortVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.g.dart new file mode 100644 index 00000000..f99c2a5a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.g.dart @@ -0,0 +1,137 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_port.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdatePortVarsSerializer = + new _$GUpdatePortVarsSerializer(); + +class _$GUpdatePortVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdatePortVars, _$GUpdatePortVars]; + @override + final String wireName = 'GUpdatePortVars'; + + @override + Iterable serialize(Serializers serializers, GUpdatePortVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.port; + if (value != null) { + result + ..add('port') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdatePortVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdatePortVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdatePortVars extends GUpdatePortVars { + @override + final int? port; + + factory _$GUpdatePortVars([void Function(GUpdatePortVarsBuilder)? updates]) => + (new GUpdatePortVarsBuilder()..update(updates))._build(); + + _$GUpdatePortVars._({this.port}) : super._(); + + @override + GUpdatePortVars rebuild(void Function(GUpdatePortVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdatePortVarsBuilder toBuilder() => + new GUpdatePortVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdatePortVars && port == other.port; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdatePortVars')..add('port', port)) + .toString(); + } +} + +class GUpdatePortVarsBuilder + implements Builder { + _$GUpdatePortVars? _$v; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + GUpdatePortVarsBuilder(); + + GUpdatePortVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _port = $v.port; + _$v = null; + } + return this; + } + + @override + void replace(GUpdatePortVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdatePortVars; + } + + @override + void update(void Function(GUpdatePortVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdatePortVars build() => _build(); + + _$GUpdatePortVars _build() { + final _$result = _$v ?? + new _$GUpdatePortVars._( + port: port, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.ast.gql.dart new file mode 100644 index 00000000..ede90216 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.ast.gql.dart @@ -0,0 +1,89 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateServerIp = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateServerIp'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'ip')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'ip'), + value: _i1.VariableNode(name: _i1.NameNode(value: 'ip')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateServerIp, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.dart new file mode 100644 index 00000000..95754c59 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.dart @@ -0,0 +1,174 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_server_ip.data.gql.g.dart'; + +abstract class GUpdateServerIpData + implements Built { + GUpdateServerIpData._(); + + factory GUpdateServerIpData( + [void Function(GUpdateServerIpDataBuilder b) updates]) = + _$GUpdateServerIpData; + + static void _initializeBuilder(GUpdateServerIpDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateServerIpData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateServerIpDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpData.serializer, + this, + ) as Map); + + static GUpdateServerIpData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpData.serializer, + json, + ); +} + +abstract class GUpdateServerIpData_setSettings + implements + Built { + GUpdateServerIpData_setSettings._(); + + factory GUpdateServerIpData_setSettings( + [void Function(GUpdateServerIpData_setSettingsBuilder b) updates]) = + _$GUpdateServerIpData_setSettings; + + static void _initializeBuilder(GUpdateServerIpData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateServerIpData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateServerIpDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpData_setSettings.serializer, + this, + ) as Map); + + static GUpdateServerIpData_setSettings? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateServerIpData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateServerIpData_setSettings_settings._(); + + factory GUpdateServerIpData_setSettings_settings( + [void Function(GUpdateServerIpData_setSettings_settingsBuilder b) + updates]) = _$GUpdateServerIpData_setSettings_settings; + + static void _initializeBuilder( + GUpdateServerIpData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gUpdateServerIpDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateServerIpData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.g.dart new file mode 100644 index 00000000..73550877 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.g.dart @@ -0,0 +1,1346 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_server_ip.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateServerIpDataSerializer = + new _$GUpdateServerIpDataSerializer(); +Serializer + _$gUpdateServerIpDataSetSettingsSerializer = + new _$GUpdateServerIpData_setSettingsSerializer(); +Serializer + _$gUpdateServerIpDataSetSettingsSettingsSerializer = + new _$GUpdateServerIpData_setSettings_settingsSerializer(); + +class _$GUpdateServerIpDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpData, + _$GUpdateServerIpData + ]; + @override + final String wireName = 'GUpdateServerIpData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateServerIpData_setSettings)), + ]; + + return result; + } + + @override + GUpdateServerIpData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateServerIpData_setSettings))! + as GUpdateServerIpData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpData_setSettings, + _$GUpdateServerIpData_setSettings + ]; + @override + final String wireName = 'GUpdateServerIpData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateServerIpData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateServerIpData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateServerIpData_setSettings_settings))! + as GUpdateServerIpData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpData_setSettings_settings, + _$GUpdateServerIpData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateServerIpData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateServerIpData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpData extends GUpdateServerIpData { + @override + final String G__typename; + @override + final GUpdateServerIpData_setSettings setSettings; + + factory _$GUpdateServerIpData( + [void Function(GUpdateServerIpDataBuilder)? updates]) => + (new GUpdateServerIpDataBuilder()..update(updates))._build(); + + _$GUpdateServerIpData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateServerIpData', 'setSettings'); + } + + @override + GUpdateServerIpData rebuild( + void Function(GUpdateServerIpDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpDataBuilder toBuilder() => + new GUpdateServerIpDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateServerIpDataBuilder + implements Builder { + _$GUpdateServerIpData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateServerIpData_setSettingsBuilder? _setSettings; + GUpdateServerIpData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateServerIpData_setSettingsBuilder(); + set setSettings(GUpdateServerIpData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateServerIpDataBuilder() { + GUpdateServerIpData._initializeBuilder(this); + } + + GUpdateServerIpDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpData; + } + + @override + void update(void Function(GUpdateServerIpDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpData build() => _build(); + + _$GUpdateServerIpData _build() { + _$GUpdateServerIpData _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateServerIpData_setSettings + extends GUpdateServerIpData_setSettings { + @override + final String G__typename; + @override + final GUpdateServerIpData_setSettings_settings settings; + + factory _$GUpdateServerIpData_setSettings( + [void Function(GUpdateServerIpData_setSettingsBuilder)? updates]) => + (new GUpdateServerIpData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateServerIpData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateServerIpData_setSettings', 'settings'); + } + + @override + GUpdateServerIpData_setSettings rebuild( + void Function(GUpdateServerIpData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpData_setSettingsBuilder toBuilder() => + new GUpdateServerIpData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateServerIpData_setSettingsBuilder + implements + Builder { + _$GUpdateServerIpData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateServerIpData_setSettings_settingsBuilder? _settings; + GUpdateServerIpData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateServerIpData_setSettings_settingsBuilder(); + set settings(GUpdateServerIpData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateServerIpData_setSettingsBuilder() { + GUpdateServerIpData_setSettings._initializeBuilder(this); + } + + GUpdateServerIpData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpData_setSettings; + } + + @override + void update(void Function(GUpdateServerIpData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpData_setSettings build() => _build(); + + _$GUpdateServerIpData_setSettings _build() { + _$GUpdateServerIpData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateServerIpData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateServerIpData_setSettings_settings + extends GUpdateServerIpData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateServerIpData_setSettings_settings( + [void Function(GUpdateServerIpData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateServerIpData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateServerIpData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateServerIpData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateServerIpData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateServerIpData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateServerIpData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateServerIpData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateServerIpData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateServerIpData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateServerIpData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionName, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateServerIpData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateServerIpData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateServerIpData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateServerIpData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateServerIpData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateServerIpData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateServerIpData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GUpdateServerIpData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateServerIpData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateServerIpData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateServerIpData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GUpdateServerIpData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateServerIpData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateServerIpData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull(autoDownloadNewChapters, + r'GUpdateServerIpData_setSettings_settings', 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateServerIpData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateServerIpData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateServerIpData_setSettings_settings rebuild( + void Function(GUpdateServerIpData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpData_setSettings_settingsBuilder toBuilder() => + new GUpdateServerIpData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateServerIpData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateServerIpData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateServerIpData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateServerIpData_setSettings_settingsBuilder() { + GUpdateServerIpData_setSettings_settings._initializeBuilder(this); + } + + GUpdateServerIpData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateServerIpData_setSettings_settingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpData_setSettings_settings build() => _build(); + + _$GUpdateServerIpData_setSettings_settings _build() { + _$GUpdateServerIpData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateServerIpData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateServerIpData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateServerIpData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateServerIpData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateServerIpData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateServerIpData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateServerIpData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateServerIpData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateServerIpData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateServerIpData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateServerIpData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateServerIpData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateServerIpData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateServerIpData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateServerIpData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateServerIpData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateServerIpData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateServerIpData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateServerIpData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateServerIpData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateServerIpData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateServerIpData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateServerIpData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateServerIpData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateServerIpData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateServerIpData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateServerIpData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateServerIpData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateServerIpData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateServerIpData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateServerIpData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateServerIpData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateServerIpData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.req.gql.dart new file mode 100644 index 00000000..26328b70 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.req.gql.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_server_ip.req.gql.g.dart'; + +abstract class GUpdateServerIpReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateServerIpData, _i3.GUpdateServerIpVars> { + GUpdateServerIpReq._(); + + factory GUpdateServerIpReq( + [void Function(GUpdateServerIpReqBuilder b) updates]) = + _$GUpdateServerIpReq; + + static void _initializeBuilder(GUpdateServerIpReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateServerIp', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateServerIpVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, + _i2.GUpdateServerIpData?, + )? get updateResult; + @override + _i2.GUpdateServerIpData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateServerIpData? parseData(Map json) => + _i2.GUpdateServerIpData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateServerIpData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateServerIpData, _i3.GUpdateServerIpVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateServerIpReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateServerIpReq.serializer, + this, + ) as Map); + + static GUpdateServerIpReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateServerIpReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.req.gql.g.dart new file mode 100644 index 00000000..0b95909e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.req.gql.g.dart @@ -0,0 +1,370 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_server_ip.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateServerIpReqSerializer = + new _$GUpdateServerIpReqSerializer(); + +class _$GUpdateServerIpReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateServerIpReq, _$GUpdateServerIpReq]; + @override + final String wireName = 'GUpdateServerIpReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateServerIpVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateServerIpData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateServerIpReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateServerIpVars))! + as _i3.GUpdateServerIpVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateServerIpData))! + as _i2.GUpdateServerIpData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpReq extends GUpdateServerIpReq { + @override + final _i3.GUpdateServerIpVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? updateResult; + @override + final _i2.GUpdateServerIpData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateServerIpReq( + [void Function(GUpdateServerIpReqBuilder)? updates]) => + (new GUpdateServerIpReqBuilder()..update(updates))._build(); + + _$GUpdateServerIpReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateServerIpReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateServerIpReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateServerIpReq', 'executeOnListen'); + } + + @override + GUpdateServerIpReq rebuild( + void Function(GUpdateServerIpReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpReqBuilder toBuilder() => + new GUpdateServerIpReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateServerIpReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateServerIpReqBuilder + implements Builder { + _$GUpdateServerIpReq? _$v; + + _i3.GUpdateServerIpVarsBuilder? _vars; + _i3.GUpdateServerIpVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateServerIpVarsBuilder(); + set vars(_i3.GUpdateServerIpVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? _updateResult; + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateServerIpData? Function( + _i2.GUpdateServerIpData?, _i2.GUpdateServerIpData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateServerIpDataBuilder? _optimisticResponse; + _i2.GUpdateServerIpDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateServerIpDataBuilder(); + set optimisticResponse(_i2.GUpdateServerIpDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateServerIpReqBuilder() { + GUpdateServerIpReq._initializeBuilder(this); + } + + GUpdateServerIpReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpReq; + } + + @override + void update(void Function(GUpdateServerIpReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpReq build() => _build(); + + _$GUpdateServerIpReq _build() { + _$GUpdateServerIpReq _$result; + try { + _$result = _$v ?? + new _$GUpdateServerIpReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateServerIpReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateServerIpReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateServerIpReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.dart new file mode 100644 index 00000000..a38d6db3 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_server_ip.var.gql.g.dart'; + +abstract class GUpdateServerIpVars + implements Built { + GUpdateServerIpVars._(); + + factory GUpdateServerIpVars( + [void Function(GUpdateServerIpVarsBuilder b) updates]) = + _$GUpdateServerIpVars; + + String? get ip; + static Serializer get serializer => + _$gUpdateServerIpVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateServerIpVars.serializer, + this, + ) as Map); + + static GUpdateServerIpVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateServerIpVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.g.dart new file mode 100644 index 00000000..5235f035 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.g.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_server_ip.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateServerIpVarsSerializer = + new _$GUpdateServerIpVarsSerializer(); + +class _$GUpdateServerIpVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateServerIpVars, + _$GUpdateServerIpVars + ]; + @override + final String wireName = 'GUpdateServerIpVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateServerIpVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.ip; + if (value != null) { + result + ..add('ip') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateServerIpVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateServerIpVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateServerIpVars extends GUpdateServerIpVars { + @override + final String? ip; + + factory _$GUpdateServerIpVars( + [void Function(GUpdateServerIpVarsBuilder)? updates]) => + (new GUpdateServerIpVarsBuilder()..update(updates))._build(); + + _$GUpdateServerIpVars._({this.ip}) : super._(); + + @override + GUpdateServerIpVars rebuild( + void Function(GUpdateServerIpVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateServerIpVarsBuilder toBuilder() => + new GUpdateServerIpVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateServerIpVars && ip == other.ip; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateServerIpVars')..add('ip', ip)) + .toString(); + } +} + +class GUpdateServerIpVarsBuilder + implements Builder { + _$GUpdateServerIpVars? _$v; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + GUpdateServerIpVarsBuilder(); + + GUpdateServerIpVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ip = $v.ip; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateServerIpVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateServerIpVars; + } + + @override + void update(void Function(GUpdateServerIpVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateServerIpVars build() => _build(); + + _$GUpdateServerIpVars _build() { + final _$result = _$v ?? + new _$GUpdateServerIpVars._( + ip: ip, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.ast.gql.dart new file mode 100644 index 00000000..3d7d8c94 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateSocksHost = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksHost'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyHost')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyHost'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyHost')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateSocksHost, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.dart new file mode 100644 index 00000000..4238608f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_host.data.gql.g.dart'; + +abstract class GUpdateSocksHostData + implements Built { + GUpdateSocksHostData._(); + + factory GUpdateSocksHostData( + [void Function(GUpdateSocksHostDataBuilder b) updates]) = + _$GUpdateSocksHostData; + + static void _initializeBuilder(GUpdateSocksHostDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksHostData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksHostDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostData.serializer, + this, + ) as Map); + + static GUpdateSocksHostData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostData.serializer, + json, + ); +} + +abstract class GUpdateSocksHostData_setSettings + implements + Built { + GUpdateSocksHostData_setSettings._(); + + factory GUpdateSocksHostData_setSettings( + [void Function(GUpdateSocksHostData_setSettingsBuilder b) updates]) = + _$GUpdateSocksHostData_setSettings; + + static void _initializeBuilder(GUpdateSocksHostData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksHostData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksHostDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksHostData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksHostData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksHostData_setSettings_settings._(); + + factory GUpdateSocksHostData_setSettings_settings( + [void Function(GUpdateSocksHostData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksHostData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksHostData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gUpdateSocksHostDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksHostData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.g.dart new file mode 100644 index 00000000..e76f6b3d --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.g.dart @@ -0,0 +1,1351 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_host.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksHostDataSerializer = + new _$GUpdateSocksHostDataSerializer(); +Serializer + _$gUpdateSocksHostDataSetSettingsSerializer = + new _$GUpdateSocksHostData_setSettingsSerializer(); +Serializer + _$gUpdateSocksHostDataSetSettingsSettingsSerializer = + new _$GUpdateSocksHostData_setSettings_settingsSerializer(); + +class _$GUpdateSocksHostDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostData, + _$GUpdateSocksHostData + ]; + @override + final String wireName = 'GUpdateSocksHostData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksHostData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksHostData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksHostData_setSettings))! + as GUpdateSocksHostData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostData_setSettings, + _$GUpdateSocksHostData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksHostData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksHostData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksHostData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksHostData_setSettings_settings))! + as GUpdateSocksHostData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostData_setSettings_settings, + _$GUpdateSocksHostData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksHostData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateSocksHostData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostData extends GUpdateSocksHostData { + @override + final String G__typename; + @override + final GUpdateSocksHostData_setSettings setSettings; + + factory _$GUpdateSocksHostData( + [void Function(GUpdateSocksHostDataBuilder)? updates]) => + (new GUpdateSocksHostDataBuilder()..update(updates))._build(); + + _$GUpdateSocksHostData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksHostData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksHostData', 'setSettings'); + } + + @override + GUpdateSocksHostData rebuild( + void Function(GUpdateSocksHostDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostDataBuilder toBuilder() => + new GUpdateSocksHostDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksHostDataBuilder + implements Builder { + _$GUpdateSocksHostData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksHostData_setSettingsBuilder? _setSettings; + GUpdateSocksHostData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksHostData_setSettingsBuilder(); + set setSettings(GUpdateSocksHostData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksHostDataBuilder() { + GUpdateSocksHostData._initializeBuilder(this); + } + + GUpdateSocksHostDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostData; + } + + @override + void update(void Function(GUpdateSocksHostDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostData build() => _build(); + + _$GUpdateSocksHostData _build() { + _$GUpdateSocksHostData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksHostData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksHostData_setSettings + extends GUpdateSocksHostData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksHostData_setSettings_settings settings; + + factory _$GUpdateSocksHostData_setSettings( + [void Function(GUpdateSocksHostData_setSettingsBuilder)? updates]) => + (new GUpdateSocksHostData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateSocksHostData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksHostData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksHostData_setSettings', 'settings'); + } + + @override + GUpdateSocksHostData_setSettings rebuild( + void Function(GUpdateSocksHostData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostData_setSettingsBuilder toBuilder() => + new GUpdateSocksHostData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksHostData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksHostData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksHostData_setSettings_settingsBuilder? _settings; + GUpdateSocksHostData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksHostData_setSettings_settingsBuilder(); + set settings(GUpdateSocksHostData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksHostData_setSettingsBuilder() { + GUpdateSocksHostData_setSettings._initializeBuilder(this); + } + + GUpdateSocksHostData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostData_setSettings; + } + + @override + void update(void Function(GUpdateSocksHostData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostData_setSettings build() => _build(); + + _$GUpdateSocksHostData_setSettings _build() { + _$GUpdateSocksHostData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksHostData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksHostData_setSettings_settings + extends GUpdateSocksHostData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateSocksHostData_setSettings_settings( + [void Function(GUpdateSocksHostData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksHostData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksHostData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksHostData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksHostData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksHostData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksHostData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksHostData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksHostData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksHostData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksHostData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksHostData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksHostData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateSocksHostData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksHostData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateSocksHostData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksHostData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GUpdateSocksHostData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSocksHostData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateSocksHostData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateSocksHostData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GUpdateSocksHostData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSocksHostData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSocksHostData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksHostData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksHostData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksHostData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateSocksHostData_setSettings_settings rebuild( + void Function(GUpdateSocksHostData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksHostData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksHostData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateSocksHostData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksHostData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateSocksHostData_setSettings_settingsBuilder() { + GUpdateSocksHostData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksHostData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksHostData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostData_setSettings_settings build() => _build(); + + _$GUpdateSocksHostData_setSettings_settings _build() { + _$GUpdateSocksHostData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksHostData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksHostData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksHostData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksHostData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksHostData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksHostData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksHostData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSocksHostData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateSocksHostData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSocksHostData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateSocksHostData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSocksHostData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSocksHostData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksHostData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksHostData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksHostData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksHostData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateSocksHostData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSocksHostData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSocksHostData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksHostData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksHostData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateSocksHostData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksHostData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSocksHostData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateSocksHostData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateSocksHostData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksHostData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSocksHostData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSocksHostData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksHostData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksHostData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksHostData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.req.gql.dart new file mode 100644 index 00000000..fef65fa1 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_socks_host.req.gql.g.dart'; + +abstract class GUpdateSocksHostReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateSocksHostData, _i3.GUpdateSocksHostVars> { + GUpdateSocksHostReq._(); + + factory GUpdateSocksHostReq( + [void Function(GUpdateSocksHostReqBuilder b) updates]) = + _$GUpdateSocksHostReq; + + static void _initializeBuilder(GUpdateSocksHostReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksHost', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksHostVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, + _i2.GUpdateSocksHostData?, + )? get updateResult; + @override + _i2.GUpdateSocksHostData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksHostData? parseData(Map json) => + _i2.GUpdateSocksHostData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksHostData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksHostData, _i3.GUpdateSocksHostVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksHostReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksHostReq.serializer, + this, + ) as Map); + + static GUpdateSocksHostReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksHostReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.req.gql.g.dart new file mode 100644 index 00000000..1c6ae3cb --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.req.gql.g.dart @@ -0,0 +1,373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_host.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksHostReqSerializer = + new _$GUpdateSocksHostReqSerializer(); + +class _$GUpdateSocksHostReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostReq, + _$GUpdateSocksHostReq + ]; + @override + final String wireName = 'GUpdateSocksHostReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksHostVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksHostData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksHostReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksHostVars))! + as _i3.GUpdateSocksHostVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksHostData))! + as _i2.GUpdateSocksHostData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostReq extends GUpdateSocksHostReq { + @override + final _i3.GUpdateSocksHostVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? updateResult; + @override + final _i2.GUpdateSocksHostData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksHostReq( + [void Function(GUpdateSocksHostReqBuilder)? updates]) => + (new GUpdateSocksHostReqBuilder()..update(updates))._build(); + + _$GUpdateSocksHostReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateSocksHostReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksHostReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksHostReq', 'executeOnListen'); + } + + @override + GUpdateSocksHostReq rebuild( + void Function(GUpdateSocksHostReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostReqBuilder toBuilder() => + new GUpdateSocksHostReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksHostReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksHostReqBuilder + implements Builder { + _$GUpdateSocksHostReq? _$v; + + _i3.GUpdateSocksHostVarsBuilder? _vars; + _i3.GUpdateSocksHostVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksHostVarsBuilder(); + set vars(_i3.GUpdateSocksHostVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? _updateResult; + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksHostData? Function( + _i2.GUpdateSocksHostData?, _i2.GUpdateSocksHostData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksHostDataBuilder? _optimisticResponse; + _i2.GUpdateSocksHostDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksHostDataBuilder(); + set optimisticResponse(_i2.GUpdateSocksHostDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksHostReqBuilder() { + GUpdateSocksHostReq._initializeBuilder(this); + } + + GUpdateSocksHostReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostReq; + } + + @override + void update(void Function(GUpdateSocksHostReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostReq build() => _build(); + + _$GUpdateSocksHostReq _build() { + _$GUpdateSocksHostReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksHostReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksHostReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksHostReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksHostReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.dart new file mode 100644 index 00000000..33aadb0c --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_host.var.gql.g.dart'; + +abstract class GUpdateSocksHostVars + implements Built { + GUpdateSocksHostVars._(); + + factory GUpdateSocksHostVars( + [void Function(GUpdateSocksHostVarsBuilder b) updates]) = + _$GUpdateSocksHostVars; + + String get socksProxyHost; + static Serializer get serializer => + _$gUpdateSocksHostVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksHostVars.serializer, + this, + ) as Map); + + static GUpdateSocksHostVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksHostVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.g.dart new file mode 100644 index 00000000..80e30899 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.g.dart @@ -0,0 +1,148 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_host.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksHostVarsSerializer = + new _$GUpdateSocksHostVarsSerializer(); + +class _$GUpdateSocksHostVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksHostVars, + _$GUpdateSocksHostVars + ]; + @override + final String wireName = 'GUpdateSocksHostVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksHostVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksHostVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksHostVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksHostVars extends GUpdateSocksHostVars { + @override + final String socksProxyHost; + + factory _$GUpdateSocksHostVars( + [void Function(GUpdateSocksHostVarsBuilder)? updates]) => + (new GUpdateSocksHostVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksHostVars._({required this.socksProxyHost}) : super._() { + BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GUpdateSocksHostVars', 'socksProxyHost'); + } + + @override + GUpdateSocksHostVars rebuild( + void Function(GUpdateSocksHostVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksHostVarsBuilder toBuilder() => + new GUpdateSocksHostVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksHostVars && + socksProxyHost == other.socksProxyHost; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksHostVars') + ..add('socksProxyHost', socksProxyHost)) + .toString(); + } +} + +class GUpdateSocksHostVarsBuilder + implements Builder { + _$GUpdateSocksHostVars? _$v; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + GUpdateSocksHostVarsBuilder(); + + GUpdateSocksHostVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyHost = $v.socksProxyHost; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksHostVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksHostVars; + } + + @override + void update(void Function(GUpdateSocksHostVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksHostVars build() => _build(); + + _$GUpdateSocksHostVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksHostVars._( + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, r'GUpdateSocksHostVars', 'socksProxyHost'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.ast.gql.dart new file mode 100644 index 00000000..2ba77f5f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateSocksPassword = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksPassword'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyPassword')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyPassword')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateSocksPassword, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.dart new file mode 100644 index 00000000..b5790326 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.dart @@ -0,0 +1,177 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_password.data.gql.g.dart'; + +abstract class GUpdateSocksPasswordData + implements + Built { + GUpdateSocksPasswordData._(); + + factory GUpdateSocksPasswordData( + [void Function(GUpdateSocksPasswordDataBuilder b) updates]) = + _$GUpdateSocksPasswordData; + + static void _initializeBuilder(GUpdateSocksPasswordDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPasswordData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksPasswordDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordData.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordData.serializer, + json, + ); +} + +abstract class GUpdateSocksPasswordData_setSettings + implements + Built { + GUpdateSocksPasswordData_setSettings._(); + + factory GUpdateSocksPasswordData_setSettings( + [void Function(GUpdateSocksPasswordData_setSettingsBuilder b) + updates]) = _$GUpdateSocksPasswordData_setSettings; + + static void _initializeBuilder( + GUpdateSocksPasswordData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPasswordData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksPasswordDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksPasswordData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksPasswordData_setSettings_settings._(); + + factory GUpdateSocksPasswordData_setSettings_settings( + [void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksPasswordData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksPasswordData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gUpdateSocksPasswordDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.g.dart new file mode 100644 index 00000000..6cfc2f11 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.g.dart @@ -0,0 +1,1382 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_password.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksPasswordDataSerializer = + new _$GUpdateSocksPasswordDataSerializer(); +Serializer + _$gUpdateSocksPasswordDataSetSettingsSerializer = + new _$GUpdateSocksPasswordData_setSettingsSerializer(); +Serializer + _$gUpdateSocksPasswordDataSetSettingsSettingsSerializer = + new _$GUpdateSocksPasswordData_setSettings_settingsSerializer(); + +class _$GUpdateSocksPasswordDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordData, + _$GUpdateSocksPasswordData + ]; + @override + final String wireName = 'GUpdateSocksPasswordData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksPasswordData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksPasswordData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksPasswordData_setSettings))! + as GUpdateSocksPasswordData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordData_setSettings, + _$GUpdateSocksPasswordData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksPasswordData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksPasswordData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksPasswordData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksPasswordData_setSettings_settings))! + as GUpdateSocksPasswordData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordData_setSettings_settings, + _$GUpdateSocksPasswordData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksPasswordData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSocksPasswordData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateSocksPasswordData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordData extends GUpdateSocksPasswordData { + @override + final String G__typename; + @override + final GUpdateSocksPasswordData_setSettings setSettings; + + factory _$GUpdateSocksPasswordData( + [void Function(GUpdateSocksPasswordDataBuilder)? updates]) => + (new GUpdateSocksPasswordDataBuilder()..update(updates))._build(); + + _$GUpdateSocksPasswordData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPasswordData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksPasswordData', 'setSettings'); + } + + @override + GUpdateSocksPasswordData rebuild( + void Function(GUpdateSocksPasswordDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordDataBuilder toBuilder() => + new GUpdateSocksPasswordDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksPasswordDataBuilder + implements + Builder { + _$GUpdateSocksPasswordData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPasswordData_setSettingsBuilder? _setSettings; + GUpdateSocksPasswordData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksPasswordData_setSettingsBuilder(); + set setSettings(GUpdateSocksPasswordData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksPasswordDataBuilder() { + GUpdateSocksPasswordData._initializeBuilder(this); + } + + GUpdateSocksPasswordDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordData; + } + + @override + void update(void Function(GUpdateSocksPasswordDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordData build() => _build(); + + _$GUpdateSocksPasswordData _build() { + _$GUpdateSocksPasswordData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPasswordData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPasswordData_setSettings + extends GUpdateSocksPasswordData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksPasswordData_setSettings_settings settings; + + factory _$GUpdateSocksPasswordData_setSettings( + [void Function(GUpdateSocksPasswordData_setSettingsBuilder)? + updates]) => + (new GUpdateSocksPasswordData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksPasswordData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPasswordData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksPasswordData_setSettings', 'settings'); + } + + @override + GUpdateSocksPasswordData_setSettings rebuild( + void Function(GUpdateSocksPasswordData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordData_setSettingsBuilder toBuilder() => + new GUpdateSocksPasswordData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksPasswordData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksPasswordData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPasswordData_setSettings_settingsBuilder? _settings; + GUpdateSocksPasswordData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksPasswordData_setSettings_settingsBuilder(); + set settings( + GUpdateSocksPasswordData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksPasswordData_setSettingsBuilder() { + GUpdateSocksPasswordData_setSettings._initializeBuilder(this); + } + + GUpdateSocksPasswordData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordData_setSettings; + } + + @override + void update( + void Function(GUpdateSocksPasswordData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordData_setSettings build() => _build(); + + _$GUpdateSocksPasswordData_setSettings _build() { + _$GUpdateSocksPasswordData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPasswordData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPasswordData_setSettings_settings + extends GUpdateSocksPasswordData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateSocksPasswordData_setSettings_settings( + [void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksPasswordData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSocksPasswordData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPasswordData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPasswordData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksPasswordData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksPasswordData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksPasswordData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksPasswordData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksPasswordData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksPasswordData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksPasswordData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSocksPasswordData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateSocksPasswordData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateSocksPasswordData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksPasswordData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSocksPasswordData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSocksPasswordData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksPasswordData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksPasswordData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksPasswordData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateSocksPasswordData_setSettings_settings rebuild( + void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksPasswordData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksPasswordData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateSocksPasswordData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksPasswordData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateSocksPasswordData_setSettings_settingsBuilder() { + GUpdateSocksPasswordData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksPasswordData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksPasswordData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordData_setSettings_settings build() => _build(); + + _$GUpdateSocksPasswordData_setSettings_settings _build() { + _$GUpdateSocksPasswordData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateSocksPasswordData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksPasswordData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksPasswordData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPasswordData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksPasswordData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateSocksPasswordData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSocksPasswordData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateSocksPasswordData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSocksPasswordData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSocksPasswordData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateSocksPasswordData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksPasswordData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksPasswordData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateSocksPasswordData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksPasswordData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateSocksPasswordData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateSocksPasswordData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateSocksPasswordData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksPasswordData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateSocksPasswordData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateSocksPasswordData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksPasswordData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksPasswordData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksPasswordData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.req.gql.dart new file mode 100644 index 00000000..6f29a80b --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_socks_password.req.gql.g.dart'; + +abstract class GUpdateSocksPasswordReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSocksPasswordData, + _i3.GUpdateSocksPasswordVars> { + GUpdateSocksPasswordReq._(); + + factory GUpdateSocksPasswordReq( + [void Function(GUpdateSocksPasswordReqBuilder b) updates]) = + _$GUpdateSocksPasswordReq; + + static void _initializeBuilder(GUpdateSocksPasswordReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksPassword', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksPasswordVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, + _i2.GUpdateSocksPasswordData?, + )? get updateResult; + @override + _i2.GUpdateSocksPasswordData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksPasswordData? parseData(Map json) => + _i2.GUpdateSocksPasswordData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksPasswordData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksPasswordData, + _i3.GUpdateSocksPasswordVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksPasswordReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksPasswordReq.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksPasswordReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.req.gql.g.dart new file mode 100644 index 00000000..823c5ae7 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.req.gql.g.dart @@ -0,0 +1,378 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_password.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksPasswordReqSerializer = + new _$GUpdateSocksPasswordReqSerializer(); + +class _$GUpdateSocksPasswordReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordReq, + _$GUpdateSocksPasswordReq + ]; + @override + final String wireName = 'GUpdateSocksPasswordReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksPasswordVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPasswordData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksPasswordReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksPasswordVars))! + as _i3.GUpdateSocksPasswordVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPasswordData))! + as _i2.GUpdateSocksPasswordData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordReq extends GUpdateSocksPasswordReq { + @override + final _i3.GUpdateSocksPasswordVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + updateResult; + @override + final _i2.GUpdateSocksPasswordData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksPasswordReq( + [void Function(GUpdateSocksPasswordReqBuilder)? updates]) => + (new GUpdateSocksPasswordReqBuilder()..update(updates))._build(); + + _$GUpdateSocksPasswordReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSocksPasswordReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPasswordReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksPasswordReq', 'executeOnListen'); + } + + @override + GUpdateSocksPasswordReq rebuild( + void Function(GUpdateSocksPasswordReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordReqBuilder toBuilder() => + new GUpdateSocksPasswordReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksPasswordReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksPasswordReqBuilder + implements + Builder { + _$GUpdateSocksPasswordReq? _$v; + + _i3.GUpdateSocksPasswordVarsBuilder? _vars; + _i3.GUpdateSocksPasswordVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksPasswordVarsBuilder(); + set vars(_i3.GUpdateSocksPasswordVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + _updateResult; + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksPasswordData? Function( + _i2.GUpdateSocksPasswordData?, _i2.GUpdateSocksPasswordData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksPasswordDataBuilder? _optimisticResponse; + _i2.GUpdateSocksPasswordDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksPasswordDataBuilder(); + set optimisticResponse( + _i2.GUpdateSocksPasswordDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksPasswordReqBuilder() { + GUpdateSocksPasswordReq._initializeBuilder(this); + } + + GUpdateSocksPasswordReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordReq; + } + + @override + void update(void Function(GUpdateSocksPasswordReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordReq build() => _build(); + + _$GUpdateSocksPasswordReq _build() { + _$GUpdateSocksPasswordReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPasswordReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPasswordReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksPasswordReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPasswordReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.dart new file mode 100644 index 00000000..477b1609 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_password.var.gql.g.dart'; + +abstract class GUpdateSocksPasswordVars + implements + Built { + GUpdateSocksPasswordVars._(); + + factory GUpdateSocksPasswordVars( + [void Function(GUpdateSocksPasswordVarsBuilder b) updates]) = + _$GUpdateSocksPasswordVars; + + String get socksProxyPassword; + static Serializer get serializer => + _$gUpdateSocksPasswordVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPasswordVars.serializer, + this, + ) as Map); + + static GUpdateSocksPasswordVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPasswordVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.g.dart new file mode 100644 index 00000000..0652ddc1 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.g.dart @@ -0,0 +1,151 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_password.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksPasswordVarsSerializer = + new _$GUpdateSocksPasswordVarsSerializer(); + +class _$GUpdateSocksPasswordVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPasswordVars, + _$GUpdateSocksPasswordVars + ]; + @override + final String wireName = 'GUpdateSocksPasswordVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPasswordVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksPasswordVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPasswordVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPasswordVars extends GUpdateSocksPasswordVars { + @override + final String socksProxyPassword; + + factory _$GUpdateSocksPasswordVars( + [void Function(GUpdateSocksPasswordVarsBuilder)? updates]) => + (new GUpdateSocksPasswordVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksPasswordVars._({required this.socksProxyPassword}) : super._() { + BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, r'GUpdateSocksPasswordVars', 'socksProxyPassword'); + } + + @override + GUpdateSocksPasswordVars rebuild( + void Function(GUpdateSocksPasswordVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPasswordVarsBuilder toBuilder() => + new GUpdateSocksPasswordVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPasswordVars && + socksProxyPassword == other.socksProxyPassword; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPasswordVars') + ..add('socksProxyPassword', socksProxyPassword)) + .toString(); + } +} + +class GUpdateSocksPasswordVarsBuilder + implements + Builder { + _$GUpdateSocksPasswordVars? _$v; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + GUpdateSocksPasswordVarsBuilder(); + + GUpdateSocksPasswordVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyPassword = $v.socksProxyPassword; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPasswordVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPasswordVars; + } + + @override + void update(void Function(GUpdateSocksPasswordVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPasswordVars build() => _build(); + + _$GUpdateSocksPasswordVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksPasswordVars._( + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSocksPasswordVars', + 'socksProxyPassword'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.ast.gql.dart new file mode 100644 index 00000000..1a3f6c2a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.ast.gql.dart @@ -0,0 +1,90 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateSocksPort = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksPort'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyPort')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyPort'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyPort')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateSocksPort, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.dart new file mode 100644 index 00000000..13a205f8 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.dart @@ -0,0 +1,175 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_port.data.gql.g.dart'; + +abstract class GUpdateSocksPortData + implements Built { + GUpdateSocksPortData._(); + + factory GUpdateSocksPortData( + [void Function(GUpdateSocksPortDataBuilder b) updates]) = + _$GUpdateSocksPortData; + + static void _initializeBuilder(GUpdateSocksPortDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPortData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksPortDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortData.serializer, + this, + ) as Map); + + static GUpdateSocksPortData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortData.serializer, + json, + ); +} + +abstract class GUpdateSocksPortData_setSettings + implements + Built { + GUpdateSocksPortData_setSettings._(); + + factory GUpdateSocksPortData_setSettings( + [void Function(GUpdateSocksPortData_setSettingsBuilder b) updates]) = + _$GUpdateSocksPortData_setSettings; + + static void _initializeBuilder(GUpdateSocksPortData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksPortData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksPortDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksPortData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksPortData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksPortData_setSettings_settings._(); + + factory GUpdateSocksPortData_setSettings_settings( + [void Function(GUpdateSocksPortData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksPortData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksPortData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer get serializer => + _$gUpdateSocksPortDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksPortData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.g.dart new file mode 100644 index 00000000..034976fd --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.g.dart @@ -0,0 +1,1351 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_port.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksPortDataSerializer = + new _$GUpdateSocksPortDataSerializer(); +Serializer + _$gUpdateSocksPortDataSetSettingsSerializer = + new _$GUpdateSocksPortData_setSettingsSerializer(); +Serializer + _$gUpdateSocksPortDataSetSettingsSettingsSerializer = + new _$GUpdateSocksPortData_setSettings_settingsSerializer(); + +class _$GUpdateSocksPortDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortData, + _$GUpdateSocksPortData + ]; + @override + final String wireName = 'GUpdateSocksPortData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksPortData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksPortData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksPortData_setSettings))! + as GUpdateSocksPortData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortData_setSettings, + _$GUpdateSocksPortData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksPortData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksPortData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksPortData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksPortData_setSettings_settings))! + as GUpdateSocksPortData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortData_setSettings_settingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortData_setSettings_settings, + _$GUpdateSocksPortData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksPortData_setSettings_settings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateSocksPortData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortData extends GUpdateSocksPortData { + @override + final String G__typename; + @override + final GUpdateSocksPortData_setSettings setSettings; + + factory _$GUpdateSocksPortData( + [void Function(GUpdateSocksPortDataBuilder)? updates]) => + (new GUpdateSocksPortDataBuilder()..update(updates))._build(); + + _$GUpdateSocksPortData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPortData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksPortData', 'setSettings'); + } + + @override + GUpdateSocksPortData rebuild( + void Function(GUpdateSocksPortDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortDataBuilder toBuilder() => + new GUpdateSocksPortDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksPortDataBuilder + implements Builder { + _$GUpdateSocksPortData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPortData_setSettingsBuilder? _setSettings; + GUpdateSocksPortData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksPortData_setSettingsBuilder(); + set setSettings(GUpdateSocksPortData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksPortDataBuilder() { + GUpdateSocksPortData._initializeBuilder(this); + } + + GUpdateSocksPortDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortData; + } + + @override + void update(void Function(GUpdateSocksPortDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortData build() => _build(); + + _$GUpdateSocksPortData _build() { + _$GUpdateSocksPortData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPortData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPortData_setSettings + extends GUpdateSocksPortData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksPortData_setSettings_settings settings; + + factory _$GUpdateSocksPortData_setSettings( + [void Function(GUpdateSocksPortData_setSettingsBuilder)? updates]) => + (new GUpdateSocksPortData_setSettingsBuilder()..update(updates))._build(); + + _$GUpdateSocksPortData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksPortData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksPortData_setSettings', 'settings'); + } + + @override + GUpdateSocksPortData_setSettings rebuild( + void Function(GUpdateSocksPortData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortData_setSettingsBuilder toBuilder() => + new GUpdateSocksPortData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksPortData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksPortData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksPortData_setSettings_settingsBuilder? _settings; + GUpdateSocksPortData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksPortData_setSettings_settingsBuilder(); + set settings(GUpdateSocksPortData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksPortData_setSettingsBuilder() { + GUpdateSocksPortData_setSettings._initializeBuilder(this); + } + + GUpdateSocksPortData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortData_setSettings; + } + + @override + void update(void Function(GUpdateSocksPortData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortData_setSettings build() => _build(); + + _$GUpdateSocksPortData_setSettings _build() { + _$GUpdateSocksPortData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPortData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortData_setSettings', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksPortData_setSettings_settings + extends GUpdateSocksPortData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateSocksPortData_setSettings_settings( + [void Function(GUpdateSocksPortData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksPortData_setSettings_settingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksPortData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPortData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksPortData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull( + backupPath, r'GUpdateSocksPortData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull( + backupTTL, r'GUpdateSocksPortData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull( + backupTime, r'GUpdateSocksPortData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPortData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksPortData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksPortData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksPortData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull(flareSolverrSessionTtl, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksPortData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateSocksPortData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksPortData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull(maxSourcesInParallel, + r'GUpdateSocksPortData_setSettings_settings', 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksPortData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull(globalUpdateInterval, + r'GUpdateSocksPortData_setSettings_settings', 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSocksPortData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateSocksPortData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateSocksPortData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull(excludeUnreadChapters, + r'GUpdateSocksPortData_setSettings_settings', 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSocksPortData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSocksPortData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksPortData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksPortData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksPortData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateSocksPortData_setSettings_settings rebuild( + void Function(GUpdateSocksPortData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksPortData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksPortData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateSocksPortData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksPortData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateSocksPortData_setSettings_settingsBuilder() { + GUpdateSocksPortData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksPortData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksPortData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortData_setSettings_settings build() => _build(); + + _$GUpdateSocksPortData_setSettings_settings _build() { + _$GUpdateSocksPortData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksPortData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksPortData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksPortData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksPortData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksPortData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksPortData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksPortData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSocksPortData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateSocksPortData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSocksPortData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateSocksPortData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSocksPortData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSocksPortData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksPortData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksPortData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksPortData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksPortData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateSocksPortData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSocksPortData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSocksPortData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksPortData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksPortData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateSocksPortData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksPortData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSocksPortData_setSettings_settings', 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateSocksPortData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateSocksPortData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksPortData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSocksPortData_setSettings_settings', 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSocksPortData_setSettings_settings', 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksPortData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksPortData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksPortData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.req.gql.dart new file mode 100644 index 00000000..94a83f87 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_socks_port.req.gql.g.dart'; + +abstract class GUpdateSocksPortReq + implements + Built, + _i1 + .OperationRequest<_i2.GUpdateSocksPortData, _i3.GUpdateSocksPortVars> { + GUpdateSocksPortReq._(); + + factory GUpdateSocksPortReq( + [void Function(GUpdateSocksPortReqBuilder b) updates]) = + _$GUpdateSocksPortReq; + + static void _initializeBuilder(GUpdateSocksPortReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksPort', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksPortVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, + _i2.GUpdateSocksPortData?, + )? get updateResult; + @override + _i2.GUpdateSocksPortData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksPortData? parseData(Map json) => + _i2.GUpdateSocksPortData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksPortData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksPortData, _i3.GUpdateSocksPortVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksPortReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksPortReq.serializer, + this, + ) as Map); + + static GUpdateSocksPortReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksPortReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.req.gql.g.dart new file mode 100644 index 00000000..af4f5535 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.req.gql.g.dart @@ -0,0 +1,373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_port.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksPortReqSerializer = + new _$GUpdateSocksPortReqSerializer(); + +class _$GUpdateSocksPortReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortReq, + _$GUpdateSocksPortReq + ]; + @override + final String wireName = 'GUpdateSocksPortReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksPortVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPortData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksPortReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksPortVars))! + as _i3.GUpdateSocksPortVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksPortData))! + as _i2.GUpdateSocksPortData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortReq extends GUpdateSocksPortReq { + @override + final _i3.GUpdateSocksPortVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? updateResult; + @override + final _i2.GUpdateSocksPortData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksPortReq( + [void Function(GUpdateSocksPortReqBuilder)? updates]) => + (new GUpdateSocksPortReqBuilder()..update(updates))._build(); + + _$GUpdateSocksPortReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull(vars, r'GUpdateSocksPortReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPortReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksPortReq', 'executeOnListen'); + } + + @override + GUpdateSocksPortReq rebuild( + void Function(GUpdateSocksPortReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortReqBuilder toBuilder() => + new GUpdateSocksPortReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksPortReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksPortReqBuilder + implements Builder { + _$GUpdateSocksPortReq? _$v; + + _i3.GUpdateSocksPortVarsBuilder? _vars; + _i3.GUpdateSocksPortVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksPortVarsBuilder(); + set vars(_i3.GUpdateSocksPortVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? _updateResult; + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksPortData? Function( + _i2.GUpdateSocksPortData?, _i2.GUpdateSocksPortData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksPortDataBuilder? _optimisticResponse; + _i2.GUpdateSocksPortDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksPortDataBuilder(); + set optimisticResponse(_i2.GUpdateSocksPortDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksPortReqBuilder() { + GUpdateSocksPortReq._initializeBuilder(this); + } + + GUpdateSocksPortReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortReq; + } + + @override + void update(void Function(GUpdateSocksPortReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortReq build() => _build(); + + _$GUpdateSocksPortReq _build() { + _$GUpdateSocksPortReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksPortReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksPortReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksPortReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksPortReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.dart new file mode 100644 index 00000000..8062e10e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_port.var.gql.g.dart'; + +abstract class GUpdateSocksPortVars + implements Built { + GUpdateSocksPortVars._(); + + factory GUpdateSocksPortVars( + [void Function(GUpdateSocksPortVarsBuilder b) updates]) = + _$GUpdateSocksPortVars; + + String get socksProxyPort; + static Serializer get serializer => + _$gUpdateSocksPortVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksPortVars.serializer, + this, + ) as Map); + + static GUpdateSocksPortVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksPortVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.g.dart new file mode 100644 index 00000000..5a38a15d --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.g.dart @@ -0,0 +1,148 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_port.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksPortVarsSerializer = + new _$GUpdateSocksPortVarsSerializer(); + +class _$GUpdateSocksPortVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksPortVars, + _$GUpdateSocksPortVars + ]; + @override + final String wireName = 'GUpdateSocksPortVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksPortVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksPortVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksPortVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksPortVars extends GUpdateSocksPortVars { + @override + final String socksProxyPort; + + factory _$GUpdateSocksPortVars( + [void Function(GUpdateSocksPortVarsBuilder)? updates]) => + (new GUpdateSocksPortVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksPortVars._({required this.socksProxyPort}) : super._() { + BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GUpdateSocksPortVars', 'socksProxyPort'); + } + + @override + GUpdateSocksPortVars rebuild( + void Function(GUpdateSocksPortVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksPortVarsBuilder toBuilder() => + new GUpdateSocksPortVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksPortVars && + socksProxyPort == other.socksProxyPort; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksPortVars') + ..add('socksProxyPort', socksProxyPort)) + .toString(); + } +} + +class GUpdateSocksPortVarsBuilder + implements Builder { + _$GUpdateSocksPortVars? _$v; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + GUpdateSocksPortVarsBuilder(); + + GUpdateSocksPortVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyPort = $v.socksProxyPort; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksPortVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksPortVars; + } + + @override + void update(void Function(GUpdateSocksPortVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksPortVars build() => _build(); + + _$GUpdateSocksPortVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksPortVars._( + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, r'GUpdateSocksPortVars', 'socksProxyPort'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.ast.gql.dart new file mode 100644 index 00000000..0ed9d4b6 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateSocksUserName = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksUserName'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyUsername')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: _i1.DefaultValueNode(value: null), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyUsername')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateSocksUserName, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.dart new file mode 100644 index 00000000..79695e9a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.dart @@ -0,0 +1,177 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_user_name.data.gql.g.dart'; + +abstract class GUpdateSocksUserNameData + implements + Built { + GUpdateSocksUserNameData._(); + + factory GUpdateSocksUserNameData( + [void Function(GUpdateSocksUserNameDataBuilder b) updates]) = + _$GUpdateSocksUserNameData; + + static void _initializeBuilder(GUpdateSocksUserNameDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksUserNameData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksUserNameDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameData.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameData.serializer, + json, + ); +} + +abstract class GUpdateSocksUserNameData_setSettings + implements + Built { + GUpdateSocksUserNameData_setSettings._(); + + factory GUpdateSocksUserNameData_setSettings( + [void Function(GUpdateSocksUserNameData_setSettingsBuilder b) + updates]) = _$GUpdateSocksUserNameData_setSettings; + + static void _initializeBuilder( + GUpdateSocksUserNameData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksUserNameData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksUserNameDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksUserNameData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksUserNameData_setSettings_settings._(); + + factory GUpdateSocksUserNameData_setSettings_settings( + [void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksUserNameData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksUserNameData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gUpdateSocksUserNameDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.g.dart new file mode 100644 index 00000000..83d767bc --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.g.dart @@ -0,0 +1,1382 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_user_name.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksUserNameDataSerializer = + new _$GUpdateSocksUserNameDataSerializer(); +Serializer + _$gUpdateSocksUserNameDataSetSettingsSerializer = + new _$GUpdateSocksUserNameData_setSettingsSerializer(); +Serializer + _$gUpdateSocksUserNameDataSetSettingsSettingsSerializer = + new _$GUpdateSocksUserNameData_setSettings_settingsSerializer(); + +class _$GUpdateSocksUserNameDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameData, + _$GUpdateSocksUserNameData + ]; + @override + final String wireName = 'GUpdateSocksUserNameData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksUserNameData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksUserNameData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksUserNameData_setSettings))! + as GUpdateSocksUserNameData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameData_setSettings, + _$GUpdateSocksUserNameData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksUserNameData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksUserNameData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksUserNameData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksUserNameData_setSettings_settings))! + as GUpdateSocksUserNameData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameData_setSettings_settings, + _$GUpdateSocksUserNameData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksUserNameData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSocksUserNameData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateSocksUserNameData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameData extends GUpdateSocksUserNameData { + @override + final String G__typename; + @override + final GUpdateSocksUserNameData_setSettings setSettings; + + factory _$GUpdateSocksUserNameData( + [void Function(GUpdateSocksUserNameDataBuilder)? updates]) => + (new GUpdateSocksUserNameDataBuilder()..update(updates))._build(); + + _$GUpdateSocksUserNameData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksUserNameData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksUserNameData', 'setSettings'); + } + + @override + GUpdateSocksUserNameData rebuild( + void Function(GUpdateSocksUserNameDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameDataBuilder toBuilder() => + new GUpdateSocksUserNameDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksUserNameDataBuilder + implements + Builder { + _$GUpdateSocksUserNameData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksUserNameData_setSettingsBuilder? _setSettings; + GUpdateSocksUserNameData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksUserNameData_setSettingsBuilder(); + set setSettings(GUpdateSocksUserNameData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksUserNameDataBuilder() { + GUpdateSocksUserNameData._initializeBuilder(this); + } + + GUpdateSocksUserNameDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameData; + } + + @override + void update(void Function(GUpdateSocksUserNameDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameData build() => _build(); + + _$GUpdateSocksUserNameData _build() { + _$GUpdateSocksUserNameData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksUserNameData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksUserNameData_setSettings + extends GUpdateSocksUserNameData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksUserNameData_setSettings_settings settings; + + factory _$GUpdateSocksUserNameData_setSettings( + [void Function(GUpdateSocksUserNameData_setSettingsBuilder)? + updates]) => + (new GUpdateSocksUserNameData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksUserNameData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksUserNameData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksUserNameData_setSettings', 'settings'); + } + + @override + GUpdateSocksUserNameData_setSettings rebuild( + void Function(GUpdateSocksUserNameData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameData_setSettingsBuilder toBuilder() => + new GUpdateSocksUserNameData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksUserNameData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksUserNameData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksUserNameData_setSettings_settingsBuilder? _settings; + GUpdateSocksUserNameData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksUserNameData_setSettings_settingsBuilder(); + set settings( + GUpdateSocksUserNameData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksUserNameData_setSettingsBuilder() { + GUpdateSocksUserNameData_setSettings._initializeBuilder(this); + } + + GUpdateSocksUserNameData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameData_setSettings; + } + + @override + void update( + void Function(GUpdateSocksUserNameData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameData_setSettings build() => _build(); + + _$GUpdateSocksUserNameData_setSettings _build() { + _$GUpdateSocksUserNameData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksUserNameData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksUserNameData_setSettings_settings + extends GUpdateSocksUserNameData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateSocksUserNameData_setSettings_settings( + [void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksUserNameData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSocksUserNameData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksUserNameData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksUserNameData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksUserNameData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksUserNameData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksUserNameData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksUserNameData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksUserNameData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksUserNameData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksUserNameData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSocksUserNameData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateSocksUserNameData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateSocksUserNameData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksUserNameData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSocksUserNameData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSocksUserNameData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksUserNameData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksUserNameData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksUserNameData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateSocksUserNameData_setSettings_settings rebuild( + void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksUserNameData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksUserNameData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateSocksUserNameData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksUserNameData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateSocksUserNameData_setSettings_settingsBuilder() { + GUpdateSocksUserNameData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksUserNameData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksUserNameData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameData_setSettings_settings build() => _build(); + + _$GUpdateSocksUserNameData_setSettings_settings _build() { + _$GUpdateSocksUserNameData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, + r'GUpdateSocksUserNameData_setSettings_settings', + 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksUserNameData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksUserNameData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksUserNameData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksUserNameData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateSocksUserNameData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSocksUserNameData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateSocksUserNameData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSocksUserNameData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSocksUserNameData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateSocksUserNameData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksUserNameData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksUserNameData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateSocksUserNameData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksUserNameData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateSocksUserNameData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateSocksUserNameData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateSocksUserNameData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksUserNameData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateSocksUserNameData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateSocksUserNameData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksUserNameData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksUserNameData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksUserNameData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.req.gql.dart new file mode 100644 index 00000000..83790f82 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.req.gql.dart @@ -0,0 +1,100 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_socks_user_name.req.gql.g.dart'; + +abstract class GUpdateSocksUserNameReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSocksUserNameData, + _i3.GUpdateSocksUserNameVars> { + GUpdateSocksUserNameReq._(); + + factory GUpdateSocksUserNameReq( + [void Function(GUpdateSocksUserNameReqBuilder b) updates]) = + _$GUpdateSocksUserNameReq; + + static void _initializeBuilder(GUpdateSocksUserNameReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksUserName', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksUserNameVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, + _i2.GUpdateSocksUserNameData?, + )? get updateResult; + @override + _i2.GUpdateSocksUserNameData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksUserNameData? parseData(Map json) => + _i2.GUpdateSocksUserNameData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksUserNameData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksUserNameData, + _i3.GUpdateSocksUserNameVars> transformOperation( + _i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksUserNameReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksUserNameReq.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksUserNameReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.req.gql.g.dart new file mode 100644 index 00000000..0e4388fd --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.req.gql.g.dart @@ -0,0 +1,378 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_user_name.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksUserNameReqSerializer = + new _$GUpdateSocksUserNameReqSerializer(); + +class _$GUpdateSocksUserNameReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameReq, + _$GUpdateSocksUserNameReq + ]; + @override + final String wireName = 'GUpdateSocksUserNameReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksUserNameVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksUserNameData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksUserNameReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksUserNameVars))! + as _i3.GUpdateSocksUserNameVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksUserNameData))! + as _i2.GUpdateSocksUserNameData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameReq extends GUpdateSocksUserNameReq { + @override + final _i3.GUpdateSocksUserNameVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + updateResult; + @override + final _i2.GUpdateSocksUserNameData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksUserNameReq( + [void Function(GUpdateSocksUserNameReqBuilder)? updates]) => + (new GUpdateSocksUserNameReqBuilder()..update(updates))._build(); + + _$GUpdateSocksUserNameReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSocksUserNameReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksUserNameReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksUserNameReq', 'executeOnListen'); + } + + @override + GUpdateSocksUserNameReq rebuild( + void Function(GUpdateSocksUserNameReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameReqBuilder toBuilder() => + new GUpdateSocksUserNameReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksUserNameReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksUserNameReqBuilder + implements + Builder { + _$GUpdateSocksUserNameReq? _$v; + + _i3.GUpdateSocksUserNameVarsBuilder? _vars; + _i3.GUpdateSocksUserNameVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksUserNameVarsBuilder(); + set vars(_i3.GUpdateSocksUserNameVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + _updateResult; + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksUserNameData? Function( + _i2.GUpdateSocksUserNameData?, _i2.GUpdateSocksUserNameData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksUserNameDataBuilder? _optimisticResponse; + _i2.GUpdateSocksUserNameDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksUserNameDataBuilder(); + set optimisticResponse( + _i2.GUpdateSocksUserNameDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksUserNameReqBuilder() { + GUpdateSocksUserNameReq._initializeBuilder(this); + } + + GUpdateSocksUserNameReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameReq; + } + + @override + void update(void Function(GUpdateSocksUserNameReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameReq build() => _build(); + + _$GUpdateSocksUserNameReq _build() { + _$GUpdateSocksUserNameReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksUserNameReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksUserNameReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksUserNameReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksUserNameReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.dart new file mode 100644 index 00000000..8d94e07d --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_user_name.var.gql.g.dart'; + +abstract class GUpdateSocksUserNameVars + implements + Built { + GUpdateSocksUserNameVars._(); + + factory GUpdateSocksUserNameVars( + [void Function(GUpdateSocksUserNameVarsBuilder b) updates]) = + _$GUpdateSocksUserNameVars; + + String get socksProxyUsername; + static Serializer get serializer => + _$gUpdateSocksUserNameVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksUserNameVars.serializer, + this, + ) as Map); + + static GUpdateSocksUserNameVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksUserNameVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.g.dart new file mode 100644 index 00000000..cf506efd --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.g.dart @@ -0,0 +1,151 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_user_name.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksUserNameVarsSerializer = + new _$GUpdateSocksUserNameVarsSerializer(); + +class _$GUpdateSocksUserNameVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksUserNameVars, + _$GUpdateSocksUserNameVars + ]; + @override + final String wireName = 'GUpdateSocksUserNameVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksUserNameVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GUpdateSocksUserNameVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksUserNameVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksUserNameVars extends GUpdateSocksUserNameVars { + @override + final String socksProxyUsername; + + factory _$GUpdateSocksUserNameVars( + [void Function(GUpdateSocksUserNameVarsBuilder)? updates]) => + (new GUpdateSocksUserNameVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksUserNameVars._({required this.socksProxyUsername}) : super._() { + BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, r'GUpdateSocksUserNameVars', 'socksProxyUsername'); + } + + @override + GUpdateSocksUserNameVars rebuild( + void Function(GUpdateSocksUserNameVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksUserNameVarsBuilder toBuilder() => + new GUpdateSocksUserNameVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksUserNameVars && + socksProxyUsername == other.socksProxyUsername; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksUserNameVars') + ..add('socksProxyUsername', socksProxyUsername)) + .toString(); + } +} + +class GUpdateSocksUserNameVarsBuilder + implements + Builder { + _$GUpdateSocksUserNameVars? _$v; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + GUpdateSocksUserNameVarsBuilder(); + + GUpdateSocksUserNameVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyUsername = $v.socksProxyUsername; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksUserNameVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksUserNameVars; + } + + @override + void update(void Function(GUpdateSocksUserNameVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksUserNameVars build() => _build(); + + _$GUpdateSocksUserNameVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksUserNameVars._( + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSocksUserNameVars', + 'socksProxyUsername'), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.ast.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.ast.gql.dart new file mode 100644 index 00000000..5ff0e346 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.ast.gql.dart @@ -0,0 +1,91 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.ast.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.ast.gql.dart' + as _i10; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.ast.gql.dart' + as _i6; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i8; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i7; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.ast.gql.dart' + as _i9; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.ast.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.ast.gql.dart' + as _i5; + +const UpdateSocksVersion = _i1.OperationDefinitionNode( + type: _i1.OperationType.mutation, + name: _i1.NameNode(value: 'UpdateSocksVersion'), + variableDefinitions: [ + _i1.VariableDefinitionNode( + variable: + _i1.VariableNode(name: _i1.NameNode(value: 'socksProxyVersion')), + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: _i1.DefaultValueNode(value: _i1.IntValueNode(value: '10')), + directives: [], + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'setSettings'), + alias: null, + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'input'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'settings'), + value: _i1.ObjectValueNode(fields: [ + _i1.ObjectFieldNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + value: _i1.VariableNode( + name: _i1.NameNode(value: 'socksProxyVersion')), + ) + ]), + ) + ]), + ) + ], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'settings'), + alias: null, + arguments: [], + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FragmentSpreadNode( + name: _i1.NameNode(value: 'SettingsFragment'), + directives: [], + ) + ]), + ) + ]), + ) + ]), +); +const document = _i1.DocumentNode(definitions: [ + UpdateSocksVersion, + _i2.SettingsFragment, + _i3.AutomaticBackupSettingsFragment, + _i4.ServerBindingFragment, + _i5.SocksProxyFragment, + _i6.CloudFlareBypassFragment, + _i7.LibrarySettingsFragment, + _i8.DownloadsSettingsFragment, + _i9.MiscSettingsFragment, + _i10.BrowserSettingsFragment, +]); diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.dart new file mode 100644 index 00000000..40838044 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.dart @@ -0,0 +1,176 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_version.data.gql.g.dart'; + +abstract class GUpdateSocksVersionData + implements Built { + GUpdateSocksVersionData._(); + + factory GUpdateSocksVersionData( + [void Function(GUpdateSocksVersionDataBuilder b) updates]) = + _$GUpdateSocksVersionData; + + static void _initializeBuilder(GUpdateSocksVersionDataBuilder b) => + b..G__typename = 'Mutation'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksVersionData_setSettings get setSettings; + static Serializer get serializer => + _$gUpdateSocksVersionDataSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionData.serializer, + this, + ) as Map); + + static GUpdateSocksVersionData? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionData.serializer, + json, + ); +} + +abstract class GUpdateSocksVersionData_setSettings + implements + Built { + GUpdateSocksVersionData_setSettings._(); + + factory GUpdateSocksVersionData_setSettings( + [void Function(GUpdateSocksVersionData_setSettingsBuilder b) + updates]) = _$GUpdateSocksVersionData_setSettings; + + static void _initializeBuilder( + GUpdateSocksVersionData_setSettingsBuilder b) => + b..G__typename = 'SetSettingsPayload'; + + @BuiltValueField(wireName: '__typename') + String get G__typename; + GUpdateSocksVersionData_setSettings_settings get settings; + static Serializer get serializer => + _$gUpdateSocksVersionDataSetSettingsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionData_setSettings.serializer, + this, + ) as Map); + + static GUpdateSocksVersionData_setSettings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionData_setSettings.serializer, + json, + ); +} + +abstract class GUpdateSocksVersionData_setSettings_settings + implements + Built, + _i2.GSettingsFragment { + GUpdateSocksVersionData_setSettings_settings._(); + + factory GUpdateSocksVersionData_setSettings_settings( + [void Function(GUpdateSocksVersionData_setSettings_settingsBuilder b) + updates]) = _$GUpdateSocksVersionData_setSettings_settings; + + static void _initializeBuilder( + GUpdateSocksVersionData_setSettings_settingsBuilder b) => + b..G__typename = 'SettingsType'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + int get backupInterval; + @override + String get backupPath; + @override + int get backupTTL; + @override + String get backupTime; + @override + String get ip; + @override + int get port; + @override + bool get socksProxyEnabled; + @override + String get socksProxyHost; + @override + String get socksProxyPassword; + @override + String get socksProxyPort; + @override + String get socksProxyUsername; + @override + int get socksProxyVersion; + @override + bool get flareSolverrEnabled; + @override + String get flareSolverrSessionName; + @override + int get flareSolverrSessionTtl; + @override + int get flareSolverrTimeout; + @override + String get flareSolverrUrl; + @override + bool get debugLogsEnabled; + @override + bool get systemTrayEnabled; + @override + bool get gqlDebugLogsEnabled; + @override + BuiltList get extensionRepos; + @override + int get maxSourcesInParallel; + @override + String get localSourcePath; + @override + double get globalUpdateInterval; + @override + bool get updateMangas; + @override + bool get excludeCompleted; + @override + bool get excludeNotStarted; + @override + bool get excludeUnreadChapters; + @override + bool get downloadAsCbz; + @override + String get downloadsPath; + @override + bool get autoDownloadNewChapters; + @override + int get autoDownloadNewChaptersLimit; + @override + bool get excludeEntryWithUnreadChapters; + static Serializer + get serializer => _$gUpdateSocksVersionDataSetSettingsSettingsSerializer; + + @override + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionData_setSettings_settings.serializer, + this, + ) as Map); + + static GUpdateSocksVersionData_setSettings_settings? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionData_setSettings_settings.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.g.dart new file mode 100644 index 00000000..66357e5a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.g.dart @@ -0,0 +1,1373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_version.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksVersionDataSerializer = + new _$GUpdateSocksVersionDataSerializer(); +Serializer + _$gUpdateSocksVersionDataSetSettingsSerializer = + new _$GUpdateSocksVersionData_setSettingsSerializer(); +Serializer + _$gUpdateSocksVersionDataSetSettingsSettingsSerializer = + new _$GUpdateSocksVersionData_setSettings_settingsSerializer(); + +class _$GUpdateSocksVersionDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionData, + _$GUpdateSocksVersionData + ]; + @override + final String wireName = 'GUpdateSocksVersionData'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'setSettings', + serializers.serialize(object.setSettings, + specifiedType: const FullType(GUpdateSocksVersionData_setSettings)), + ]; + + return result; + } + + @override + GUpdateSocksVersionData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'setSettings': + result.setSettings.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateSocksVersionData_setSettings))! + as GUpdateSocksVersionData_setSettings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionData_setSettingsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionData_setSettings, + _$GUpdateSocksVersionData_setSettings + ]; + @override + final String wireName = 'GUpdateSocksVersionData_setSettings'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionData_setSettings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'settings', + serializers.serialize(object.settings, + specifiedType: + const FullType(GUpdateSocksVersionData_setSettings_settings)), + ]; + + return result; + } + + @override + GUpdateSocksVersionData_setSettings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionData_setSettingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType( + GUpdateSocksVersionData_setSettings_settings))! + as GUpdateSocksVersionData_setSettings_settings); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionData_setSettings_settingsSerializer + implements + StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionData_setSettings_settings, + _$GUpdateSocksVersionData_setSettings_settings + ]; + @override + final String wireName = 'GUpdateSocksVersionData_setSettings_settings'; + + @override + Iterable serialize(Serializers serializers, + GUpdateSocksVersionData_setSettings_settings object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'backupInterval', + serializers.serialize(object.backupInterval, + specifiedType: const FullType(int)), + 'backupPath', + serializers.serialize(object.backupPath, + specifiedType: const FullType(String)), + 'backupTTL', + serializers.serialize(object.backupTTL, + specifiedType: const FullType(int)), + 'backupTime', + serializers.serialize(object.backupTime, + specifiedType: const FullType(String)), + 'ip', + serializers.serialize(object.ip, specifiedType: const FullType(String)), + 'port', + serializers.serialize(object.port, specifiedType: const FullType(int)), + 'socksProxyEnabled', + serializers.serialize(object.socksProxyEnabled, + specifiedType: const FullType(bool)), + 'socksProxyHost', + serializers.serialize(object.socksProxyHost, + specifiedType: const FullType(String)), + 'socksProxyPassword', + serializers.serialize(object.socksProxyPassword, + specifiedType: const FullType(String)), + 'socksProxyPort', + serializers.serialize(object.socksProxyPort, + specifiedType: const FullType(String)), + 'socksProxyUsername', + serializers.serialize(object.socksProxyUsername, + specifiedType: const FullType(String)), + 'socksProxyVersion', + serializers.serialize(object.socksProxyVersion, + specifiedType: const FullType(int)), + 'flareSolverrEnabled', + serializers.serialize(object.flareSolverrEnabled, + specifiedType: const FullType(bool)), + 'flareSolverrSessionName', + serializers.serialize(object.flareSolverrSessionName, + specifiedType: const FullType(String)), + 'flareSolverrSessionTtl', + serializers.serialize(object.flareSolverrSessionTtl, + specifiedType: const FullType(int)), + 'flareSolverrTimeout', + serializers.serialize(object.flareSolverrTimeout, + specifiedType: const FullType(int)), + 'flareSolverrUrl', + serializers.serialize(object.flareSolverrUrl, + specifiedType: const FullType(String)), + 'debugLogsEnabled', + serializers.serialize(object.debugLogsEnabled, + specifiedType: const FullType(bool)), + 'systemTrayEnabled', + serializers.serialize(object.systemTrayEnabled, + specifiedType: const FullType(bool)), + 'gqlDebugLogsEnabled', + serializers.serialize(object.gqlDebugLogsEnabled, + specifiedType: const FullType(bool)), + 'extensionRepos', + serializers.serialize(object.extensionRepos, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'maxSourcesInParallel', + serializers.serialize(object.maxSourcesInParallel, + specifiedType: const FullType(int)), + 'localSourcePath', + serializers.serialize(object.localSourcePath, + specifiedType: const FullType(String)), + 'globalUpdateInterval', + serializers.serialize(object.globalUpdateInterval, + specifiedType: const FullType(double)), + 'updateMangas', + serializers.serialize(object.updateMangas, + specifiedType: const FullType(bool)), + 'excludeCompleted', + serializers.serialize(object.excludeCompleted, + specifiedType: const FullType(bool)), + 'excludeNotStarted', + serializers.serialize(object.excludeNotStarted, + specifiedType: const FullType(bool)), + 'excludeUnreadChapters', + serializers.serialize(object.excludeUnreadChapters, + specifiedType: const FullType(bool)), + 'downloadAsCbz', + serializers.serialize(object.downloadAsCbz, + specifiedType: const FullType(bool)), + 'downloadsPath', + serializers.serialize(object.downloadsPath, + specifiedType: const FullType(String)), + 'autoDownloadNewChapters', + serializers.serialize(object.autoDownloadNewChapters, + specifiedType: const FullType(bool)), + 'autoDownloadNewChaptersLimit', + serializers.serialize(object.autoDownloadNewChaptersLimit, + specifiedType: const FullType(int)), + 'excludeEntryWithUnreadChapters', + serializers.serialize(object.excludeEntryWithUnreadChapters, + specifiedType: const FullType(bool)), + ]; + + return result; + } + + @override + GUpdateSocksVersionData_setSettings_settings deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionData_setSettings_settingsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'gqlDebugLogsEnabled': + result.gqlDebugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double))! as double; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionData extends GUpdateSocksVersionData { + @override + final String G__typename; + @override + final GUpdateSocksVersionData_setSettings setSettings; + + factory _$GUpdateSocksVersionData( + [void Function(GUpdateSocksVersionDataBuilder)? updates]) => + (new GUpdateSocksVersionDataBuilder()..update(updates))._build(); + + _$GUpdateSocksVersionData._( + {required this.G__typename, required this.setSettings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksVersionData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + setSettings, r'GUpdateSocksVersionData', 'setSettings'); + } + + @override + GUpdateSocksVersionData rebuild( + void Function(GUpdateSocksVersionDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionDataBuilder toBuilder() => + new GUpdateSocksVersionDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionData && + G__typename == other.G__typename && + setSettings == other.setSettings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, setSettings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionData') + ..add('G__typename', G__typename) + ..add('setSettings', setSettings)) + .toString(); + } +} + +class GUpdateSocksVersionDataBuilder + implements + Builder { + _$GUpdateSocksVersionData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksVersionData_setSettingsBuilder? _setSettings; + GUpdateSocksVersionData_setSettingsBuilder get setSettings => + _$this._setSettings ??= new GUpdateSocksVersionData_setSettingsBuilder(); + set setSettings(GUpdateSocksVersionData_setSettingsBuilder? setSettings) => + _$this._setSettings = setSettings; + + GUpdateSocksVersionDataBuilder() { + GUpdateSocksVersionData._initializeBuilder(this); + } + + GUpdateSocksVersionDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _setSettings = $v.setSettings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionData; + } + + @override + void update(void Function(GUpdateSocksVersionDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionData build() => _build(); + + _$GUpdateSocksVersionData _build() { + _$GUpdateSocksVersionData _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksVersionData', 'G__typename'), + setSettings: setSettings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'setSettings'; + setSettings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksVersionData_setSettings + extends GUpdateSocksVersionData_setSettings { + @override + final String G__typename; + @override + final GUpdateSocksVersionData_setSettings_settings settings; + + factory _$GUpdateSocksVersionData_setSettings( + [void Function(GUpdateSocksVersionData_setSettingsBuilder)? + updates]) => + (new GUpdateSocksVersionData_setSettingsBuilder()..update(updates)) + ._build(); + + _$GUpdateSocksVersionData_setSettings._( + {required this.G__typename, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GUpdateSocksVersionData_setSettings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + settings, r'GUpdateSocksVersionData_setSettings', 'settings'); + } + + @override + GUpdateSocksVersionData_setSettings rebuild( + void Function(GUpdateSocksVersionData_setSettingsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionData_setSettingsBuilder toBuilder() => + new GUpdateSocksVersionData_setSettingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionData_setSettings && + G__typename == other.G__typename && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionData_setSettings') + ..add('G__typename', G__typename) + ..add('settings', settings)) + .toString(); + } +} + +class GUpdateSocksVersionData_setSettingsBuilder + implements + Builder { + _$GUpdateSocksVersionData_setSettings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + GUpdateSocksVersionData_setSettings_settingsBuilder? _settings; + GUpdateSocksVersionData_setSettings_settingsBuilder get settings => + _$this._settings ??= + new GUpdateSocksVersionData_setSettings_settingsBuilder(); + set settings(GUpdateSocksVersionData_setSettings_settingsBuilder? settings) => + _$this._settings = settings; + + GUpdateSocksVersionData_setSettingsBuilder() { + GUpdateSocksVersionData_setSettings._initializeBuilder(this); + } + + GUpdateSocksVersionData_setSettingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionData_setSettings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionData_setSettings; + } + + @override + void update( + void Function(GUpdateSocksVersionData_setSettingsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionData_setSettings build() => _build(); + + _$GUpdateSocksVersionData_setSettings _build() { + _$GUpdateSocksVersionData_setSettings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionData_setSettings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksVersionData_setSettings', 'G__typename'), + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionData_setSettings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSocksVersionData_setSettings_settings + extends GUpdateSocksVersionData_setSettings_settings { + @override + final String G__typename; + @override + final int backupInterval; + @override + final String backupPath; + @override + final int backupTTL; + @override + final String backupTime; + @override + final String ip; + @override + final int port; + @override + final bool socksProxyEnabled; + @override + final String socksProxyHost; + @override + final String socksProxyPassword; + @override + final String socksProxyPort; + @override + final String socksProxyUsername; + @override + final int socksProxyVersion; + @override + final bool flareSolverrEnabled; + @override + final String flareSolverrSessionName; + @override + final int flareSolverrSessionTtl; + @override + final int flareSolverrTimeout; + @override + final String flareSolverrUrl; + @override + final bool debugLogsEnabled; + @override + final bool systemTrayEnabled; + @override + final bool gqlDebugLogsEnabled; + @override + final BuiltList extensionRepos; + @override + final int maxSourcesInParallel; + @override + final String localSourcePath; + @override + final double globalUpdateInterval; + @override + final bool updateMangas; + @override + final bool excludeCompleted; + @override + final bool excludeNotStarted; + @override + final bool excludeUnreadChapters; + @override + final bool downloadAsCbz; + @override + final String downloadsPath; + @override + final bool autoDownloadNewChapters; + @override + final int autoDownloadNewChaptersLimit; + @override + final bool excludeEntryWithUnreadChapters; + + factory _$GUpdateSocksVersionData_setSettings_settings( + [void Function(GUpdateSocksVersionData_setSettings_settingsBuilder)? + updates]) => + (new GUpdateSocksVersionData_setSettings_settingsBuilder() + ..update(updates)) + ._build(); + + _$GUpdateSocksVersionData_setSettings_settings._( + {required this.G__typename, + required this.backupInterval, + required this.backupPath, + required this.backupTTL, + required this.backupTime, + required this.ip, + required this.port, + required this.socksProxyEnabled, + required this.socksProxyHost, + required this.socksProxyPassword, + required this.socksProxyPort, + required this.socksProxyUsername, + required this.socksProxyVersion, + required this.flareSolverrEnabled, + required this.flareSolverrSessionName, + required this.flareSolverrSessionTtl, + required this.flareSolverrTimeout, + required this.flareSolverrUrl, + required this.debugLogsEnabled, + required this.systemTrayEnabled, + required this.gqlDebugLogsEnabled, + required this.extensionRepos, + required this.maxSourcesInParallel, + required this.localSourcePath, + required this.globalUpdateInterval, + required this.updateMangas, + required this.excludeCompleted, + required this.excludeNotStarted, + required this.excludeUnreadChapters, + required this.downloadAsCbz, + required this.downloadsPath, + required this.autoDownloadNewChapters, + required this.autoDownloadNewChaptersLimit, + required this.excludeEntryWithUnreadChapters}) + : super._() { + BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksVersionData_setSettings_settings', 'G__typename'); + BuiltValueNullFieldError.checkNotNull(backupInterval, + r'GUpdateSocksVersionData_setSettings_settings', 'backupInterval'); + BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksVersionData_setSettings_settings', 'backupPath'); + BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksVersionData_setSettings_settings', 'backupTTL'); + BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksVersionData_setSettings_settings', 'backupTime'); + BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksVersionData_setSettings_settings', 'ip'); + BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksVersionData_setSettings_settings', 'port'); + BuiltValueNullFieldError.checkNotNull(socksProxyEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyEnabled'); + BuiltValueNullFieldError.checkNotNull(socksProxyHost, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyHost'); + BuiltValueNullFieldError.checkNotNull(socksProxyPassword, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyPassword'); + BuiltValueNullFieldError.checkNotNull(socksProxyPort, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyPort'); + BuiltValueNullFieldError.checkNotNull(socksProxyUsername, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyUsername'); + BuiltValueNullFieldError.checkNotNull(socksProxyVersion, + r'GUpdateSocksVersionData_setSettings_settings', 'socksProxyVersion'); + BuiltValueNullFieldError.checkNotNull(flareSolverrEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrEnabled'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrSessionName'); + BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrSessionTtl'); + BuiltValueNullFieldError.checkNotNull(flareSolverrTimeout, + r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrTimeout'); + BuiltValueNullFieldError.checkNotNull(flareSolverrUrl, + r'GUpdateSocksVersionData_setSettings_settings', 'flareSolverrUrl'); + BuiltValueNullFieldError.checkNotNull(debugLogsEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'debugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(systemTrayEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'systemTrayEnabled'); + BuiltValueNullFieldError.checkNotNull(gqlDebugLogsEnabled, + r'GUpdateSocksVersionData_setSettings_settings', 'gqlDebugLogsEnabled'); + BuiltValueNullFieldError.checkNotNull(extensionRepos, + r'GUpdateSocksVersionData_setSettings_settings', 'extensionRepos'); + BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksVersionData_setSettings_settings', + 'maxSourcesInParallel'); + BuiltValueNullFieldError.checkNotNull(localSourcePath, + r'GUpdateSocksVersionData_setSettings_settings', 'localSourcePath'); + BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksVersionData_setSettings_settings', + 'globalUpdateInterval'); + BuiltValueNullFieldError.checkNotNull(updateMangas, + r'GUpdateSocksVersionData_setSettings_settings', 'updateMangas'); + BuiltValueNullFieldError.checkNotNull(excludeCompleted, + r'GUpdateSocksVersionData_setSettings_settings', 'excludeCompleted'); + BuiltValueNullFieldError.checkNotNull(excludeNotStarted, + r'GUpdateSocksVersionData_setSettings_settings', 'excludeNotStarted'); + BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksVersionData_setSettings_settings', + 'excludeUnreadChapters'); + BuiltValueNullFieldError.checkNotNull(downloadAsCbz, + r'GUpdateSocksVersionData_setSettings_settings', 'downloadAsCbz'); + BuiltValueNullFieldError.checkNotNull(downloadsPath, + r'GUpdateSocksVersionData_setSettings_settings', 'downloadsPath'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksVersionData_setSettings_settings', + 'autoDownloadNewChapters'); + BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksVersionData_setSettings_settings', + 'autoDownloadNewChaptersLimit'); + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksVersionData_setSettings_settings', + 'excludeEntryWithUnreadChapters'); + } + + @override + GUpdateSocksVersionData_setSettings_settings rebuild( + void Function(GUpdateSocksVersionData_setSettings_settingsBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionData_setSettings_settingsBuilder toBuilder() => + new GUpdateSocksVersionData_setSettings_settingsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionData_setSettings_settings && + G__typename == other.G__typename && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + ip == other.ip && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + debugLogsEnabled == other.debugLogsEnabled && + systemTrayEnabled == other.systemTrayEnabled && + gqlDebugLogsEnabled == other.gqlDebugLogsEnabled && + extensionRepos == other.extensionRepos && + maxSourcesInParallel == other.maxSourcesInParallel && + localSourcePath == other.localSourcePath && + globalUpdateInterval == other.globalUpdateInterval && + updateMangas == other.updateMangas && + excludeCompleted == other.excludeCompleted && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + excludeEntryWithUnreadChapters == other.excludeEntryWithUnreadChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, gqlDebugLogsEnabled.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'GUpdateSocksVersionData_setSettings_settings') + ..add('G__typename', G__typename) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('ip', ip) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('gqlDebugLogsEnabled', gqlDebugLogsEnabled) + ..add('extensionRepos', extensionRepos) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('localSourcePath', localSourcePath) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('updateMangas', updateMangas) + ..add('excludeCompleted', excludeCompleted) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters)) + .toString(); + } +} + +class GUpdateSocksVersionData_setSettings_settingsBuilder + implements + Builder { + _$GUpdateSocksVersionData_setSettings_settings? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _gqlDebugLogsEnabled; + bool? get gqlDebugLogsEnabled => _$this._gqlDebugLogsEnabled; + set gqlDebugLogsEnabled(bool? gqlDebugLogsEnabled) => + _$this._gqlDebugLogsEnabled = gqlDebugLogsEnabled; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + GUpdateSocksVersionData_setSettings_settingsBuilder() { + GUpdateSocksVersionData_setSettings_settings._initializeBuilder(this); + } + + GUpdateSocksVersionData_setSettings_settingsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _ip = $v.ip; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _debugLogsEnabled = $v.debugLogsEnabled; + _systemTrayEnabled = $v.systemTrayEnabled; + _gqlDebugLogsEnabled = $v.gqlDebugLogsEnabled; + _extensionRepos = $v.extensionRepos.toBuilder(); + _maxSourcesInParallel = $v.maxSourcesInParallel; + _localSourcePath = $v.localSourcePath; + _globalUpdateInterval = $v.globalUpdateInterval; + _updateMangas = $v.updateMangas; + _excludeCompleted = $v.excludeCompleted; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionData_setSettings_settings other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionData_setSettings_settings; + } + + @override + void update( + void Function(GUpdateSocksVersionData_setSettings_settingsBuilder)? + updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionData_setSettings_settings build() => _build(); + + _$GUpdateSocksVersionData_setSettings_settings _build() { + _$GUpdateSocksVersionData_setSettings_settings _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionData_setSettings_settings._( + G__typename: BuiltValueNullFieldError.checkNotNull(G__typename, + r'GUpdateSocksVersionData_setSettings_settings', 'G__typename'), + backupInterval: BuiltValueNullFieldError.checkNotNull( + backupInterval, + r'GUpdateSocksVersionData_setSettings_settings', + 'backupInterval'), + backupPath: BuiltValueNullFieldError.checkNotNull(backupPath, + r'GUpdateSocksVersionData_setSettings_settings', 'backupPath'), + backupTTL: BuiltValueNullFieldError.checkNotNull(backupTTL, + r'GUpdateSocksVersionData_setSettings_settings', 'backupTTL'), + backupTime: BuiltValueNullFieldError.checkNotNull(backupTime, + r'GUpdateSocksVersionData_setSettings_settings', 'backupTime'), + ip: BuiltValueNullFieldError.checkNotNull( + ip, r'GUpdateSocksVersionData_setSettings_settings', 'ip'), + port: BuiltValueNullFieldError.checkNotNull( + port, r'GUpdateSocksVersionData_setSettings_settings', 'port'), + socksProxyEnabled: BuiltValueNullFieldError.checkNotNull( + socksProxyEnabled, + r'GUpdateSocksVersionData_setSettings_settings', + 'socksProxyEnabled'), + socksProxyHost: BuiltValueNullFieldError.checkNotNull( + socksProxyHost, + r'GUpdateSocksVersionData_setSettings_settings', + 'socksProxyHost'), + socksProxyPassword: BuiltValueNullFieldError.checkNotNull( + socksProxyPassword, + r'GUpdateSocksVersionData_setSettings_settings', + 'socksProxyPassword'), + socksProxyPort: BuiltValueNullFieldError.checkNotNull( + socksProxyPort, + r'GUpdateSocksVersionData_setSettings_settings', + 'socksProxyPort'), + socksProxyUsername: BuiltValueNullFieldError.checkNotNull( + socksProxyUsername, + r'GUpdateSocksVersionData_setSettings_settings', + 'socksProxyUsername'), + socksProxyVersion: BuiltValueNullFieldError.checkNotNull( + socksProxyVersion, + r'GUpdateSocksVersionData_setSettings_settings', + 'socksProxyVersion'), + flareSolverrEnabled: BuiltValueNullFieldError.checkNotNull( + flareSolverrEnabled, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrEnabled'), + flareSolverrSessionName: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionName, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrSessionName'), + flareSolverrSessionTtl: BuiltValueNullFieldError.checkNotNull( + flareSolverrSessionTtl, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrSessionTtl'), + flareSolverrTimeout: BuiltValueNullFieldError.checkNotNull( + flareSolverrTimeout, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrTimeout'), + flareSolverrUrl: BuiltValueNullFieldError.checkNotNull( + flareSolverrUrl, + r'GUpdateSocksVersionData_setSettings_settings', + 'flareSolverrUrl'), + debugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + debugLogsEnabled, + r'GUpdateSocksVersionData_setSettings_settings', + 'debugLogsEnabled'), + systemTrayEnabled: BuiltValueNullFieldError.checkNotNull( + systemTrayEnabled, + r'GUpdateSocksVersionData_setSettings_settings', + 'systemTrayEnabled'), + gqlDebugLogsEnabled: BuiltValueNullFieldError.checkNotNull( + gqlDebugLogsEnabled, + r'GUpdateSocksVersionData_setSettings_settings', + 'gqlDebugLogsEnabled'), + extensionRepos: extensionRepos.build(), + maxSourcesInParallel: BuiltValueNullFieldError.checkNotNull( + maxSourcesInParallel, + r'GUpdateSocksVersionData_setSettings_settings', + 'maxSourcesInParallel'), + localSourcePath: BuiltValueNullFieldError.checkNotNull( + localSourcePath, + r'GUpdateSocksVersionData_setSettings_settings', + 'localSourcePath'), + globalUpdateInterval: BuiltValueNullFieldError.checkNotNull( + globalUpdateInterval, + r'GUpdateSocksVersionData_setSettings_settings', + 'globalUpdateInterval'), + updateMangas: BuiltValueNullFieldError.checkNotNull( + updateMangas, + r'GUpdateSocksVersionData_setSettings_settings', + 'updateMangas'), + excludeCompleted: BuiltValueNullFieldError.checkNotNull( + excludeCompleted, + r'GUpdateSocksVersionData_setSettings_settings', + 'excludeCompleted'), + excludeNotStarted: BuiltValueNullFieldError.checkNotNull( + excludeNotStarted, + r'GUpdateSocksVersionData_setSettings_settings', + 'excludeNotStarted'), + excludeUnreadChapters: BuiltValueNullFieldError.checkNotNull( + excludeUnreadChapters, + r'GUpdateSocksVersionData_setSettings_settings', + 'excludeUnreadChapters'), + downloadAsCbz: BuiltValueNullFieldError.checkNotNull( + downloadAsCbz, + r'GUpdateSocksVersionData_setSettings_settings', + 'downloadAsCbz'), + downloadsPath: BuiltValueNullFieldError.checkNotNull( + downloadsPath, + r'GUpdateSocksVersionData_setSettings_settings', + 'downloadsPath'), + autoDownloadNewChapters: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChapters, + r'GUpdateSocksVersionData_setSettings_settings', + 'autoDownloadNewChapters'), + autoDownloadNewChaptersLimit: BuiltValueNullFieldError.checkNotNull( + autoDownloadNewChaptersLimit, + r'GUpdateSocksVersionData_setSettings_settings', + 'autoDownloadNewChaptersLimit'), + excludeEntryWithUnreadChapters: + BuiltValueNullFieldError.checkNotNull( + excludeEntryWithUnreadChapters, + r'GUpdateSocksVersionData_setSettings_settings', + 'excludeEntryWithUnreadChapters'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + extensionRepos.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionData_setSettings_settings', + _$failedField, + e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.req.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.req.gql.dart new file mode 100644 index 00000000..ad2ce63a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.req.gql.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql_exec/gql_exec.dart' as _i4; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.ast.gql.dart' + as _i5; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'update_socks_version.req.gql.g.dart'; + +abstract class GUpdateSocksVersionReq + implements + Built, + _i1.OperationRequest<_i2.GUpdateSocksVersionData, + _i3.GUpdateSocksVersionVars> { + GUpdateSocksVersionReq._(); + + factory GUpdateSocksVersionReq( + [void Function(GUpdateSocksVersionReqBuilder b) updates]) = + _$GUpdateSocksVersionReq; + + static void _initializeBuilder(GUpdateSocksVersionReqBuilder b) => b + ..operation = _i4.Operation( + document: _i5.document, + operationName: 'UpdateSocksVersion', + ) + ..executeOnListen = true; + + @override + _i3.GUpdateSocksVersionVars get vars; + @override + _i4.Operation get operation; + @override + _i4.Request get execRequest => _i4.Request( + operation: operation, + variables: vars.toJson(), + context: context ?? const _i4.Context(), + ); + + @override + String? get requestId; + @override + @BuiltValueField(serialize: false) + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, + _i2.GUpdateSocksVersionData?, + )? get updateResult; + @override + _i2.GUpdateSocksVersionData? get optimisticResponse; + @override + String? get updateCacheHandlerKey; + @override + Map? get updateCacheHandlerContext; + @override + _i1.FetchPolicy? get fetchPolicy; + @override + bool get executeOnListen; + @override + @BuiltValueField(serialize: false) + _i4.Context? get context; + @override + _i2.GUpdateSocksVersionData? parseData(Map json) => + _i2.GUpdateSocksVersionData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GUpdateSocksVersionData data) => + data.toJson(); + + @override + _i1.OperationRequest<_i2.GUpdateSocksVersionData, _i3.GUpdateSocksVersionVars> + transformOperation(_i4.Operation Function(_i4.Operation) transform) => + this.rebuild((b) => b..operation = transform(operation)); + + static Serializer get serializer => + _$gUpdateSocksVersionReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GUpdateSocksVersionReq.serializer, + this, + ) as Map); + + static GUpdateSocksVersionReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GUpdateSocksVersionReq.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.req.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.req.gql.g.dart new file mode 100644 index 00000000..992f1fc9 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.req.gql.g.dart @@ -0,0 +1,376 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_version.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksVersionReqSerializer = + new _$GUpdateSocksVersionReqSerializer(); + +class _$GUpdateSocksVersionReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionReq, + _$GUpdateSocksVersionReq + ]; + @override + final String wireName = 'GUpdateSocksVersionReq'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GUpdateSocksVersionVars)), + 'operation', + serializers.serialize(object.operation, + specifiedType: const FullType(_i4.Operation)), + 'executeOnListen', + serializers.serialize(object.executeOnListen, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.requestId; + if (value != null) { + result + ..add('requestId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.optimisticResponse; + if (value != null) { + result + ..add('optimisticResponse') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i2.GUpdateSocksVersionData))); + } + value = object.updateCacheHandlerKey; + if (value != null) { + result + ..add('updateCacheHandlerKey') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.updateCacheHandlerContext; + if (value != null) { + result + ..add('updateCacheHandlerContext') + ..add(serializers.serialize(value, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)]))); + } + value = object.fetchPolicy; + if (value != null) { + result + ..add('fetchPolicy') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.FetchPolicy))); + } + return result; + } + + @override + GUpdateSocksVersionReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GUpdateSocksVersionVars))! + as _i3.GUpdateSocksVersionVars); + break; + case 'operation': + result.operation = serializers.deserialize(value, + specifiedType: const FullType(_i4.Operation))! as _i4.Operation; + break; + case 'requestId': + result.requestId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'optimisticResponse': + result.optimisticResponse.replace(serializers.deserialize(value, + specifiedType: const FullType(_i2.GUpdateSocksVersionData))! + as _i2.GUpdateSocksVersionData); + break; + case 'updateCacheHandlerKey': + result.updateCacheHandlerKey = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'updateCacheHandlerContext': + result.updateCacheHandlerContext = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ])) as Map?; + break; + case 'fetchPolicy': + result.fetchPolicy = serializers.deserialize(value, + specifiedType: const FullType(_i1.FetchPolicy)) + as _i1.FetchPolicy?; + break; + case 'executeOnListen': + result.executeOnListen = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionReq extends GUpdateSocksVersionReq { + @override + final _i3.GUpdateSocksVersionVars vars; + @override + final _i4.Operation operation; + @override + final String? requestId; + @override + final _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? updateResult; + @override + final _i2.GUpdateSocksVersionData? optimisticResponse; + @override + final String? updateCacheHandlerKey; + @override + final Map? updateCacheHandlerContext; + @override + final _i1.FetchPolicy? fetchPolicy; + @override + final bool executeOnListen; + @override + final _i4.Context? context; + + factory _$GUpdateSocksVersionReq( + [void Function(GUpdateSocksVersionReqBuilder)? updates]) => + (new GUpdateSocksVersionReqBuilder()..update(updates))._build(); + + _$GUpdateSocksVersionReq._( + {required this.vars, + required this.operation, + this.requestId, + this.updateResult, + this.optimisticResponse, + this.updateCacheHandlerKey, + this.updateCacheHandlerContext, + this.fetchPolicy, + required this.executeOnListen, + this.context}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GUpdateSocksVersionReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksVersionReq', 'operation'); + BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksVersionReq', 'executeOnListen'); + } + + @override + GUpdateSocksVersionReq rebuild( + void Function(GUpdateSocksVersionReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionReqBuilder toBuilder() => + new GUpdateSocksVersionReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + final dynamic _$dynamicOther = other; + return other is GUpdateSocksVersionReq && + vars == other.vars && + operation == other.operation && + requestId == other.requestId && + updateResult == _$dynamicOther.updateResult && + optimisticResponse == other.optimisticResponse && + updateCacheHandlerKey == other.updateCacheHandlerKey && + updateCacheHandlerContext == other.updateCacheHandlerContext && + fetchPolicy == other.fetchPolicy && + executeOnListen == other.executeOnListen && + context == other.context; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, operation.hashCode); + _$hash = $jc(_$hash, requestId.hashCode); + _$hash = $jc(_$hash, updateResult.hashCode); + _$hash = $jc(_$hash, optimisticResponse.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerKey.hashCode); + _$hash = $jc(_$hash, updateCacheHandlerContext.hashCode); + _$hash = $jc(_$hash, fetchPolicy.hashCode); + _$hash = $jc(_$hash, executeOnListen.hashCode); + _$hash = $jc(_$hash, context.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionReq') + ..add('vars', vars) + ..add('operation', operation) + ..add('requestId', requestId) + ..add('updateResult', updateResult) + ..add('optimisticResponse', optimisticResponse) + ..add('updateCacheHandlerKey', updateCacheHandlerKey) + ..add('updateCacheHandlerContext', updateCacheHandlerContext) + ..add('fetchPolicy', fetchPolicy) + ..add('executeOnListen', executeOnListen) + ..add('context', context)) + .toString(); + } +} + +class GUpdateSocksVersionReqBuilder + implements Builder { + _$GUpdateSocksVersionReq? _$v; + + _i3.GUpdateSocksVersionVarsBuilder? _vars; + _i3.GUpdateSocksVersionVarsBuilder get vars => + _$this._vars ??= new _i3.GUpdateSocksVersionVarsBuilder(); + set vars(_i3.GUpdateSocksVersionVarsBuilder? vars) => _$this._vars = vars; + + _i4.Operation? _operation; + _i4.Operation? get operation => _$this._operation; + set operation(_i4.Operation? operation) => _$this._operation = operation; + + String? _requestId; + String? get requestId => _$this._requestId; + set requestId(String? requestId) => _$this._requestId = requestId; + + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? + _updateResult; + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? + get updateResult => _$this._updateResult; + set updateResult( + _i2.GUpdateSocksVersionData? Function( + _i2.GUpdateSocksVersionData?, _i2.GUpdateSocksVersionData?)? + updateResult) => + _$this._updateResult = updateResult; + + _i2.GUpdateSocksVersionDataBuilder? _optimisticResponse; + _i2.GUpdateSocksVersionDataBuilder get optimisticResponse => + _$this._optimisticResponse ??= new _i2.GUpdateSocksVersionDataBuilder(); + set optimisticResponse( + _i2.GUpdateSocksVersionDataBuilder? optimisticResponse) => + _$this._optimisticResponse = optimisticResponse; + + String? _updateCacheHandlerKey; + String? get updateCacheHandlerKey => _$this._updateCacheHandlerKey; + set updateCacheHandlerKey(String? updateCacheHandlerKey) => + _$this._updateCacheHandlerKey = updateCacheHandlerKey; + + Map? _updateCacheHandlerContext; + Map? get updateCacheHandlerContext => + _$this._updateCacheHandlerContext; + set updateCacheHandlerContext( + Map? updateCacheHandlerContext) => + _$this._updateCacheHandlerContext = updateCacheHandlerContext; + + _i1.FetchPolicy? _fetchPolicy; + _i1.FetchPolicy? get fetchPolicy => _$this._fetchPolicy; + set fetchPolicy(_i1.FetchPolicy? fetchPolicy) => + _$this._fetchPolicy = fetchPolicy; + + bool? _executeOnListen; + bool? get executeOnListen => _$this._executeOnListen; + set executeOnListen(bool? executeOnListen) => + _$this._executeOnListen = executeOnListen; + + _i4.Context? _context; + _i4.Context? get context => _$this._context; + set context(_i4.Context? context) => _$this._context = context; + + GUpdateSocksVersionReqBuilder() { + GUpdateSocksVersionReq._initializeBuilder(this); + } + + GUpdateSocksVersionReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _operation = $v.operation; + _requestId = $v.requestId; + _updateResult = $v.updateResult; + _optimisticResponse = $v.optimisticResponse?.toBuilder(); + _updateCacheHandlerKey = $v.updateCacheHandlerKey; + _updateCacheHandlerContext = $v.updateCacheHandlerContext; + _fetchPolicy = $v.fetchPolicy; + _executeOnListen = $v.executeOnListen; + _context = $v.context; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionReq; + } + + @override + void update(void Function(GUpdateSocksVersionReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionReq build() => _build(); + + _$GUpdateSocksVersionReq _build() { + _$GUpdateSocksVersionReq _$result; + try { + _$result = _$v ?? + new _$GUpdateSocksVersionReq._( + vars: vars.build(), + operation: BuiltValueNullFieldError.checkNotNull( + operation, r'GUpdateSocksVersionReq', 'operation'), + requestId: requestId, + updateResult: updateResult, + optimisticResponse: _optimisticResponse?.build(), + updateCacheHandlerKey: updateCacheHandlerKey, + updateCacheHandlerContext: updateCacheHandlerContext, + fetchPolicy: fetchPolicy, + executeOnListen: BuiltValueNullFieldError.checkNotNull( + executeOnListen, r'GUpdateSocksVersionReq', 'executeOnListen'), + context: context, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + + _$failedField = 'optimisticResponse'; + _optimisticResponse?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSocksVersionReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.dart new file mode 100644 index 00000000..7e810dac --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'update_socks_version.var.gql.g.dart'; + +abstract class GUpdateSocksVersionVars + implements Built { + GUpdateSocksVersionVars._(); + + factory GUpdateSocksVersionVars( + [void Function(GUpdateSocksVersionVarsBuilder b) updates]) = + _$GUpdateSocksVersionVars; + + int? get socksProxyVersion; + static Serializer get serializer => + _$gUpdateSocksVersionVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSocksVersionVars.serializer, + this, + ) as Map); + + static GUpdateSocksVersionVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSocksVersionVars.serializer, + json, + ); +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.g.dart b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.g.dart new file mode 100644 index 00000000..4a8de77f --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_socks_version.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gUpdateSocksVersionVarsSerializer = + new _$GUpdateSocksVersionVarsSerializer(); + +class _$GUpdateSocksVersionVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSocksVersionVars, + _$GUpdateSocksVersionVars + ]; + @override + final String wireName = 'GUpdateSocksVersionVars'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSocksVersionVars object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.socksProxyVersion; + if (value != null) { + result + ..add('socksProxyVersion') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateSocksVersionVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSocksVersionVarsBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSocksVersionVars extends GUpdateSocksVersionVars { + @override + final int? socksProxyVersion; + + factory _$GUpdateSocksVersionVars( + [void Function(GUpdateSocksVersionVarsBuilder)? updates]) => + (new GUpdateSocksVersionVarsBuilder()..update(updates))._build(); + + _$GUpdateSocksVersionVars._({this.socksProxyVersion}) : super._(); + + @override + GUpdateSocksVersionVars rebuild( + void Function(GUpdateSocksVersionVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSocksVersionVarsBuilder toBuilder() => + new GUpdateSocksVersionVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSocksVersionVars && + socksProxyVersion == other.socksProxyVersion; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSocksVersionVars') + ..add('socksProxyVersion', socksProxyVersion)) + .toString(); + } +} + +class GUpdateSocksVersionVarsBuilder + implements + Builder { + _$GUpdateSocksVersionVars? _$v; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + GUpdateSocksVersionVarsBuilder(); + + GUpdateSocksVersionVarsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _socksProxyVersion = $v.socksProxyVersion; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSocksVersionVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSocksVersionVars; + } + + @override + void update(void Function(GUpdateSocksVersionVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSocksVersionVars build() => _build(); + + _$GUpdateSocksVersionVars _build() { + final _$result = _$v ?? + new _$GUpdateSocksVersionVars._( + socksProxyVersion: socksProxyVersion, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_debug_logs.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_debug_logs.graphql new file mode 100644 index 00000000..cd35c8d6 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_debug_logs.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleDebugLogs($debugLogsEnabled: Boolean = false) { + setSettings(input: {settings: {debugLogsEnabled: $debugLogsEnabled}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_flare_solverr.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_flare_solverr.graphql new file mode 100644 index 00000000..32481212 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_flare_solverr.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleFlareSolverr($flareSolverrEnabled: Boolean = false) { + setSettings(input: {settings: {flareSolverrEnabled: $flareSolverrEnabled}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_gql_debug_logs.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_gql_debug_logs.graphql new file mode 100644 index 00000000..1aa3b724 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_gql_debug_logs.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleGqlDebugLogs($gqlDebugLogsEnabled: Boolean = false) { + setSettings(input: {settings: {gqlDebugLogsEnabled: $gqlDebugLogsEnabled}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_socks_proxy.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_socks_proxy.graphql new file mode 100644 index 00000000..1a18935a --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_socks_proxy.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleSocksProxy($socksProxyEnabled: Boolean = false) { + setSettings(input: {settings: {socksProxyEnabled: $socksProxyEnabled}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_system_tray_enabled.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_system_tray_enabled.graphql new file mode 100644 index 00000000..ff69fcd4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/toggle_system_tray_enabled.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation ToggleSystemTrayEnabled($systemTrayEnabled: Boolean = false) { + setSettings(input: {settings: {systemTrayEnabled: $systemTrayEnabled}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_session_name.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_session_name.graphql new file mode 100644 index 00000000..ebaed72b --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_session_name.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateFlareSolverrSessionName($flareSolverrSessionName: String!) { + setSettings(input: {settings: {flareSolverrSessionName: $flareSolverrSessionName}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_session_ttl.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_session_ttl.graphql new file mode 100644 index 00000000..13099dd8 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_session_ttl.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateFlareSolverrSessionTtl($flareSolverrSessionTtl: Int = 10) { + setSettings(input: {settings: {flareSolverrSessionTtl: $flareSolverrSessionTtl}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_timeout.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_timeout.graphql new file mode 100644 index 00000000..21c89d6b --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_timeout.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateFlareSolverrTimeout($flareSolverrTimeout: Int = 10) { + setSettings(input: {settings: {flareSolverrTimeout: $flareSolverrTimeout}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_url.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_url.graphql new file mode 100644 index 00000000..2ee6e19d --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_flare_solverr_url.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateFlareSolverrUrl($flareSolverrUrl: String!) { + setSettings(input: {settings: {flareSolverrUrl: $flareSolverrUrl}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_port.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_port.graphql new file mode 100644 index 00000000..65f4c189 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_port.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdatePort($port: Int = 4567) { + setSettings(input: {settings: {port: $port}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_server_ip.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_server_ip.graphql new file mode 100644 index 00000000..19d91d73 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_server_ip.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateServerIp($ip: String) { + setSettings(input: {settings: {ip: $ip}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_host.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_host.graphql new file mode 100644 index 00000000..bb22605c --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_host.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateSocksHost($socksProxyHost: String!) { + setSettings(input: {settings: {socksProxyHost: $socksProxyHost}}) { + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_password.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_password.graphql new file mode 100644 index 00000000..c1961719 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_password.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateSocksPassword($socksProxyPassword: String!) { + setSettings(input: {settings: {socksProxyPassword: $socksProxyPassword}}){ + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_port.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_port.graphql new file mode 100644 index 00000000..781024e9 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_port.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateSocksPort($socksProxyPort: String!) { + setSettings(input: {settings: {socksProxyPort: $socksProxyPort}}){ + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_user_name.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_user_name.graphql new file mode 100644 index 00000000..a097ba52 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_user_name.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateSocksUserName($socksProxyUsername: String!) { + setSettings(input: {settings: {socksProxyUsername: $socksProxyUsername}}){ + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_version.graphql b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_version.graphql new file mode 100644 index 00000000..f69b461e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/queries/update_socks_version.graphql @@ -0,0 +1,9 @@ +# import '/src/features/settings/domain/settings/graphql/settings_fragment.graphql' + +mutation UpdateSocksVersion($socksProxyVersion: Int = 10) { + setSettings(input: {settings: {socksProxyVersion: $socksProxyVersion}}){ + settings { + ...SettingsFragment + } + } +} diff --git a/lib/src/features/settings/presentation/server/data/graphql/query.dart b/lib/src/features/settings/presentation/server/data/graphql/query.dart new file mode 100644 index 00000000..c0c5146e --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/graphql/query.dart @@ -0,0 +1,71 @@ +import 'queries/__generated__/toggle_debug_logs.req.gql.dart'; +import 'queries/__generated__/toggle_flare_solverr.req.gql.dart'; +import 'queries/__generated__/toggle_gql_debug_logs.req.gql.dart'; +import 'queries/__generated__/toggle_socks_proxy.req.gql.dart'; +import 'queries/__generated__/toggle_system_tray_enabled.req.gql.dart'; +import 'queries/__generated__/update_flare_solverr_session_name.req.gql.dart'; +import 'queries/__generated__/update_flare_solverr_session_ttl.req.gql.dart'; +import 'queries/__generated__/update_flare_solverr_timeout.req.gql.dart'; +import 'queries/__generated__/update_flare_solverr_url.req.gql.dart'; +import 'queries/__generated__/update_port.req.gql.dart'; +import 'queries/__generated__/update_server_ip.req.gql.dart'; +import 'queries/__generated__/update_socks_host.req.gql.dart'; +import 'queries/__generated__/update_socks_password.req.gql.dart'; +import 'queries/__generated__/update_socks_port.req.gql.dart'; +import 'queries/__generated__/update_socks_user_name.req.gql.dart'; +import 'queries/__generated__/update_socks_version.req.gql.dart'; + +abstract class ServerSettingsQuery { + static GUpdateServerIpReq updateServerIp(String value) => + GUpdateServerIpReq((req) => req..vars.ip = value); + + static GUpdatePortReq updatePort(int value) => + GUpdatePortReq((req) => req..vars.port = value); + + static GToggleSocksProxyReq toggleSocksProxy(bool value) => + GToggleSocksProxyReq((req) => req..vars.socksProxyEnabled = value); + + static GUpdateSocksVersionReq updateSocksVersion(int value) => + GUpdateSocksVersionReq((req) => req..vars.socksProxyVersion = value); + + static GUpdateSocksHostReq updateSocksHost(String value) => + GUpdateSocksHostReq((req) => req..vars.socksProxyHost = value); + + static GUpdateSocksUserNameReq updateSocksUserName(String value) => + GUpdateSocksUserNameReq((req) => req..vars.socksProxyUsername = value); + + static GUpdateSocksPasswordReq updateSocksPassword(String value) => + GUpdateSocksPasswordReq((req) => req..vars.socksProxyPassword = value); + + static GUpdateSocksPortReq updateSocksPort(String value) => + GUpdateSocksPortReq((req) => req..vars.socksProxyPort = value); + + static GToggleFlareSolverrReq toggleFlareSolverr(bool value) => + GToggleFlareSolverrReq((req) => req..vars.flareSolverrEnabled = value); + + static GUpdateFlareSolverrSessionNameReq updateFlareSolverrSessionName( + String value) => + GUpdateFlareSolverrSessionNameReq( + (req) => req..vars.flareSolverrSessionName = value); + + static GUpdateFlareSolverrSessionTtlReq updateFlareSolverrSessionTtl( + int value) => + GUpdateFlareSolverrSessionTtlReq( + (req) => req..vars.flareSolverrSessionTtl = value); + + static GUpdateFlareSolverrTimeoutReq updateFlareSolverrTimeout(int value) => + GUpdateFlareSolverrTimeoutReq( + (req) => req..vars.flareSolverrTimeout = value); + + static GUpdateFlareSolverrUrlReq updateFlareSolverrUrl(String value) => + GUpdateFlareSolverrUrlReq((req) => req..vars.flareSolverrUrl = value); + + static GToggleDebugLogsReq toggleDebugLogs(bool value) => + GToggleDebugLogsReq((req) => req..vars.debugLogsEnabled = value); + + static GToggleGqlDebugLogsReq toggleGqlDebugLogs(bool value) => + GToggleGqlDebugLogsReq((req) => req..vars.gqlDebugLogsEnabled = value); + + static GToggleSystemTrayEnabledReq toggleSystemTrayEnabled(bool value) => + GToggleSystemTrayEnabledReq((req) => req..vars.systemTrayEnabled = value); +} diff --git a/lib/src/features/settings/presentation/server/data/server_settings_repository.dart b/lib/src/features/settings/presentation/server/data/server_settings_repository.dart new file mode 100644 index 00000000..1ca8fecf --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/server_settings_repository.dart @@ -0,0 +1,133 @@ +import 'package:ferry/ferry.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../global_providers/global_providers.dart'; +import '../../../../../utils/extensions/custom_extensions.dart'; +import '../../../domain/settings/settings.dart'; +import 'graphql/query.dart'; + +part 'server_settings_repository.g.dart'; + +class ServerSettingsRepository { + const ServerSettingsRepository(this.ferryClient); + + final Client ferryClient; + + Future updateIpAddress(String ipAddress) => ferryClient + .fetch( + ServerSettingsQuery.updateServerIp(ipAddress), + (data) => data.setSettings.settings, + ) + .first; + + Future updatePort(int port) => ferryClient + .fetch( + ServerSettingsQuery.updatePort(port), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleSocksProxy(bool isEnabled) => ferryClient + .fetch( + ServerSettingsQuery.toggleSocksProxy(isEnabled), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksVersion(int newVersion) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksVersion(newVersion), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksHost(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksHost(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksUserName(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksUserName(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksPassword(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksPassword(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateSocksPort(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateSocksPort(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleFlareSolverr(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleFlareSolverr(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateFlareSolverrSessionName(String value) => + ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrSessionName(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateFlareSolverrSessionTtl(int value) => ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrSessionTtl(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateFlareSolverrTimeout(int value) => ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrTimeout(value), + (data) => data.setSettings.settings, + ) + .first; + + Future updateFlareSolverrUrl(String value) => ferryClient + .fetch( + ServerSettingsQuery.updateFlareSolverrUrl(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleDebugLogs(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleDebugLogs(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleGqlDebugLogs(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleGqlDebugLogs(value), + (data) => data.setSettings.settings, + ) + .first; + + Future toggleSystemTrayEnabled(bool value) => ferryClient + .fetch( + ServerSettingsQuery.toggleSystemTrayEnabled(value), + (data) => data.setSettings.settings, + ) + .first; +} + +@riverpod +ServerSettingsRepository serverSettingsRepository(Ref ref) => + ServerSettingsRepository(ref.watch(ferryClientProvider)); diff --git a/lib/src/features/settings/presentation/server/data/server_settings_repository.g.dart b/lib/src/features/settings/presentation/server/data/server_settings_repository.g.dart new file mode 100644 index 00000000..77cf5896 --- /dev/null +++ b/lib/src/features/settings/presentation/server/data/server_settings_repository.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'server_settings_repository.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$serverSettingsRepositoryHash() => + r'b51134633a21a065f8deee86bfcaabb4c7a16533'; + +/// See also [serverSettingsRepository]. +@ProviderFor(serverSettingsRepository) +final serverSettingsRepositoryProvider = + AutoDisposeProvider.internal( + serverSettingsRepository, + name: r'serverSettingsRepositoryProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$serverSettingsRepositoryHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef ServerSettingsRepositoryRef + = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/server/server_screen.dart b/lib/src/features/settings/presentation/server/server_screen.dart index 2e5fb366..9aebce60 100644 --- a/lib/src/features/settings/presentation/server/server_screen.dart +++ b/lib/src/features/settings/presentation/server/server_screen.dart @@ -9,63 +9,69 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../../constants/endpoints.dart'; -import '../../../../constants/enum.dart'; -import '../../../../global_providers/global_providers.dart'; - import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/launch_url_in_web.dart'; import '../../../../utils/misc/toast/toast.dart'; -import '../../widgets/server_port_tile/server_port_tile.dart'; -import '../../widgets/server_url_tile/server_url_tile.dart'; -import 'widget/auth_type_tile.dart'; -import 'widget/credential_popup/credentials_popup.dart'; +import '../../controller/server_controller.dart'; +import 'widget/authentication/authentication_section.dart'; +import 'widget/client/client_section.dart'; +import 'widget/client/server_port_tile/server_port_tile.dart'; +import 'widget/client/server_url_tile/server_url_tile.dart'; +import 'widget/cloud_flare/cloud_flare_section.dart'; +import 'widget/misc_settings/misc_settings_section.dart'; +import 'widget/server_binding/server_binding_section.dart'; +import 'widget/socks_proxy/socks_proxy_section.dart'; class ServerScreen extends ConsumerWidget { const ServerScreen({super.key}); + @override Widget build(BuildContext context, WidgetRef ref) { - final authType = ref.watch(authTypeKeyProvider); + final serverSettings = ref.watch(settingsProvider); + onRefresh() => ref.refresh(settingsProvider.future); return Scaffold( appBar: AppBar( - title: Text(context.l10n!.server), + title: Text(context.l10n.server), ), - body: ListView( - children: [ - const ServerUrlTile(), - const ServerPortTile(), - const AuthTypeTile(), - if (authType != null && authType != AuthType.none) - ListTile( - leading: const Icon(Icons.password_rounded), - title: Text(context.l10n!.credentials), - onTap: () { - showDialog( - context: context, - builder: (context) => const CredentialsPopup(), - ); - }, - ), - if (!kIsWeb) - ListTile( - leading: const Icon(Icons.web_rounded), - title: Text(context.l10n!.webUI), - onTap: () { - final url = Endpoints.baseApi( - baseUrl: ref.read(serverUrlProvider), - port: ref.read(serverPortProvider), - addPort: ref.watch(serverPortToggleProvider).ifNull(), - appendApiToUrl: false, - ); - if (url.isNotBlank) { - launchUrlInWeb( - context, - url, - ref.read(toastProvider(context)), - ); - } - }, - ) - ], + body: RefreshIndicator( + onRefresh: onRefresh, + child: ListTileTheme( + data: const ListTileThemeData( + subtitleTextStyle: TextStyle(color: Colors.grey), + ), + child: ListView( + children: [ + const ClientSection(), + const AuthenticationSection(), + if (!kIsWeb) + ListTile( + leading: const Icon(Icons.web_rounded), + title: Text(context.l10n.webUI), + onTap: () { + final url = Endpoints.baseApi( + baseUrl: ref.read(serverUrlProvider), + port: ref.read(serverPortProvider), + addPort: ref.watch(serverPortToggleProvider).ifNull(), + appendApiToUrl: false, + ); + if (url.isNotBlank) { + launchUrlInWeb( + context, + url, + ref.read(toastProvider), + ); + } + }, + ), + if (serverSettings.valueOrNull != null) ...[ + ServerBindingSection(serverBindingDto: serverSettings.value!), + SocksProxySection(socksProxyDto: serverSettings.value!), + CloudFlareSection(cloudFlareDto: serverSettings.value!), + MiscSettingsSection(miscSettingsDto: serverSettings.value!), + ] + ], + ), + ), ), ); } diff --git a/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart b/lib/src/features/settings/presentation/server/widget/authentication/auth_type/auth_type_tile.dart similarity index 76% rename from lib/src/features/settings/presentation/server/widget/auth_type_tile.dart rename to lib/src/features/settings/presentation/server/widget/authentication/auth_type/auth_type_tile.dart index adef0cdb..b7bc0252 100644 --- a/lib/src/features/settings/presentation/server/widget/auth_type_tile.dart +++ b/lib/src/features/settings/presentation/server/widget/authentication/auth_type/auth_type_tile.dart @@ -7,10 +7,10 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; -import '../../../../../constants/enum.dart'; -import '../../../../../global_providers/global_providers.dart'; -import '../../../../../utils/extensions/custom_extensions.dart'; -import '../../../../../widgets/radio_list_popup.dart'; +import '../../../../../../../constants/enum.dart'; +import '../../../../../../../global_providers/global_providers.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../widgets/popup_widgets/radio_list_popup.dart'; class AuthTypeTile extends ConsumerWidget { const AuthTypeTile({super.key}); @@ -22,11 +22,11 @@ class AuthTypeTile extends ConsumerWidget { return ListTile( leading: const Icon(Icons.security_rounded), subtitle: authType != null ? Text(authType.toLocale(context)) : null, - title: Text(context.l10n!.authType), + title: Text(context.l10n.authType), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.authType, + title: context.l10n.authType, optionList: AuthType.values, getOptionTitle: (value) => value.toLocale(context), value: authType ?? AuthType.none, diff --git a/lib/src/features/settings/presentation/server/widget/authentication/authentication_section.dart b/lib/src/features/settings/presentation/server/widget/authentication/authentication_section.dart new file mode 100644 index 00000000..c6f130f9 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/authentication/authentication_section.dart @@ -0,0 +1,36 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../constants/enum.dart'; +import '../../../../../../global_providers/global_providers.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../credential_popup/credentials_popup.dart'; +import 'auth_type/auth_type_tile.dart'; + +class AuthenticationSection extends ConsumerWidget { + const AuthenticationSection({super.key}); + + @override + Widget build(context, ref) { + final authType = ref.watch(authTypeKeyProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.authentication), + const AuthTypeTile(), + if (authType != null && authType != AuthType.none) + ListTile( + leading: const Icon(Icons.password_rounded), + title: Text(context.l10n.credentials), + onTap: () { + showDialog( + context: context, + builder: (context) => const CredentialsPopup(), + ); + }, + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/client/client_section.dart b/lib/src/features/settings/presentation/server/widget/client/client_section.dart new file mode 100644 index 00000000..c0924fa4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/client/client_section.dart @@ -0,0 +1,22 @@ +import 'package:flutter/widgets.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../widgets/section_title.dart'; +import 'server_port_tile/server_port_tile.dart'; +import 'server_url_tile/server_url_tile.dart'; + +class ClientSection extends StatelessWidget { + const ClientSection({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.client), + const ServerUrlTile(), + const ServerPortTile(), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart b/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart new file mode 100644 index 00000000..4cb9c8a4 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart @@ -0,0 +1,64 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../../../constants/db_keys.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; +import '../../../../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../../../../widgets/input_popup/settings_prop_tile.dart'; + +part 'server_port_tile.g.dart'; + +@riverpod +class ServerPort extends _$ServerPort with SharedPreferenceClientMixin { + @override + int? build() => initialize(DBKeys.serverPort); +} + +@riverpod +class ServerPortToggle extends _$ServerPortToggle + with SharedPreferenceClientMixin { + @override + bool? build() => initialize( + DBKeys.serverPortToggle, + initial: kIsWeb ? false : DBKeys.serverPortToggle.initial, + ); +} + +class ServerPortTile extends ConsumerWidget { + const ServerPortTile({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final serverPort = ref.watch(serverPortProvider); + final serverToggle = ref.watch(serverPortToggleProvider).ifNull(); + return SettingsPropTile( + title: context.l10n.serverPort, + subtitle: serverToggle ? serverPort.toString() : null, + leading: const Icon(Icons.dns_rounded), + trailing: Switch( + value: serverToggle, + onChanged: ref.read(serverPortToggleProvider.notifier).update, + ), + type: SettingsPropType.numberPicker( + min: 0, + max: 65535, + value: serverPort, + onChanged: serverToggle + ? (port) async { + ref.read(serverPortProvider.notifier).update(port); + return; + } + : null, + ), + ); + } +} diff --git a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.g.dart b/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.g.dart similarity index 93% rename from lib/src/features/settings/widgets/server_port_tile/server_port_tile.g.dart rename to lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.g.dart index e33726ed..8d45f448 100644 --- a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.g.dart +++ b/lib/src/features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.g.dart @@ -38,4 +38,4 @@ final serverPortToggleProvider = typedef _$ServerPortToggle = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_search_button.dart similarity index 83% rename from lib/src/features/settings/widgets/server_url_tile/server_search_button.dart rename to lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_search_button.dart index 99b88a60..59f07417 100644 --- a/lib/src/features/settings/widgets/server_url_tile/server_search_button.dart +++ b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_search_button.dart @@ -10,10 +10,10 @@ import 'package:flutter/material.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:network_info_plus/network_info_plus.dart'; -import '../../../../constants/db_keys.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/misc/toast/toast.dart'; -import '../../../../widgets/async_buttons/async_text_button.dart'; +import '../../../../../../../constants/db_keys.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../../widgets/async_buttons/async_text_button.dart'; import '../server_port_tile/server_port_tile.dart'; import 'server_url_tile.dart'; @@ -68,7 +68,7 @@ class ServerSearchButton extends ConsumerWidget { final addPort = ref.watch(serverPortToggleProvider).ifNull(); if (!addPort) return const SizedBox.shrink(); return AsyncTextButton( - icon: const Icon(Icons.search), + icon: const Icon(Icons.search_rounded), onPressed: port != null ? () async { final value = await getServerAddress(port); @@ -77,13 +77,13 @@ class ServerSearchButton extends ConsumerWidget { } else { if (context.mounted) { ref - .watch(toastProvider(context)) - .showError(context.l10n!.noServerFound); + .watch(toastProvider) + ?.showError(context.l10n.noServerFound); } } } : null, - child: Text(context.l10n!.findServer), + child: Text(context.l10n.findServer), ); } } diff --git a/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart new file mode 100644 index 00000000..1a0083da --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart @@ -0,0 +1,54 @@ +// Copyright (c) 2022 Contributors to the Suwayomi project +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../../../../../constants/db_keys.dart'; +import '../../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; +import '../../../../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../../../../widgets/input_popup/settings_prop_tile.dart'; +import 'server_search_button.dart'; + +part 'server_url_tile.g.dart'; + +@riverpod +class ServerUrl extends _$ServerUrl with SharedPreferenceClientMixin { + @override + String? build() => initialize( + DBKeys.serverUrl, + initial: kIsWeb ? Uri.base.origin : DBKeys.serverUrl.initial, + ); +} + +class ServerUrlTile extends ConsumerWidget { + const ServerUrlTile({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final serverUrl = ref.watch(serverUrlProvider); + return SettingsPropTile( + title: context.l10n.serverUrl, + subtitle: serverUrl, + leading: const Icon(Icons.computer_rounded), + trailing: !kIsWeb ? const ServerSearchButton() : null, + type: SettingsPropType.textField( + hintText: context.l10n.serverUrlHintText, + value: serverUrl, + onChanged: (value) async { + final tempUrl = value.endsWith('/') + ? value.substring(0, value.length - 1) + : value; + ref.read(serverUrlProvider.notifier).update(tempUrl); + return; + }, + ), + ); + } +} diff --git a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.g.dart b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.g.dart similarity index 89% rename from lib/src/features/settings/widgets/server_url_tile/server_url_tile.g.dart rename to lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.g.dart index 8dc6edfc..7e5b48f0 100644 --- a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.g.dart +++ b/lib/src/features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.g.dart @@ -22,4 +22,4 @@ final serverUrlProvider = typedef _$ServerUrl = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/server/widget/cloud_flare/cloud_flare_section.dart b/lib/src/features/settings/presentation/server/widget/cloud_flare/cloud_flare_section.dart new file mode 100644 index 00000000..4dad5b6c --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/cloud_flare/cloud_flare_section.dart @@ -0,0 +1,95 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../constants/urls.dart'; +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/launch_url_in_web.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../../../widgets/input_popup/settings_prop_tile.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/cloud_flare/cloud_flare.dart'; +import '../../data/server_settings_repository.dart'; + +class CloudFlareSection extends ConsumerWidget { + const CloudFlareSection({super.key, required this.cloudFlareDto}); + + final CloudFlareDto cloudFlareDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.cloudflareBypass), + SettingsPropTile( + titleWidget: Row(children: [ + Text(context.l10n.flareSolverr), + IconButton( + iconSize: 18, + onPressed: () => launchUrlInWeb( + context, AppUrls.flareSolverr.url, ref.read(toastProvider)), + icon: const Icon(Icons.open_in_new_rounded)) + ]), + subtitle: context.l10n.openFlareSolverr, + type: SettingsPropType.switchTile( + value: cloudFlareDto.flareSolverrEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleFlareSolverr(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + ), + if (cloudFlareDto.flareSolverrEnabled) ...[ + SettingsPropTile( + title: context.l10n.flareSolverrServerUrl, + type: SettingsPropType.textField( + hintText: + context.l10n.enterProp(context.l10n.flareSolverrServerUrl), + value: cloudFlareDto.flareSolverrUrl, + onChanged: repository.updateFlareSolverrUrl, + ), + subtitle: cloudFlareDto.flareSolverrUrl, + ), + SettingsPropTile( + title: context.l10n.flareSolverrRequestTimeout, + subtitle: context.l10n.nSeconds(cloudFlareDto.flareSolverrTimeout), + type: SettingsPropType.numberSlider( + min: 20, + max: 300, + value: cloudFlareDto.flareSolverrTimeout, + onChanged: repository.updateFlareSolverrTimeout, + ), + ), + SettingsPropTile( + title: context.l10n.flareSolverrSessionName, + type: SettingsPropType.textField( + hintText: + context.l10n.enterProp(context.l10n.flareSolverrSessionName), + value: cloudFlareDto.flareSolverrSessionName, + onChanged: repository.updateFlareSolverrSessionName, + ), + subtitle: cloudFlareDto.flareSolverrSessionName, + ), + SettingsPropTile( + title: context.l10n.flareSolverrSessionTTL, + subtitle: + context.l10n.nMinutes(cloudFlareDto.flareSolverrSessionTtl), + type: SettingsPropType.numberSlider( + min: 1, + max: 60, + value: cloudFlareDto.flareSolverrSessionTtl, + onChanged: repository.updateFlareSolverrSessionTtl, + ), + ), + ], + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart b/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart index 7d065e37..88a14f7b 100644 --- a/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart +++ b/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.dart @@ -15,7 +15,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../../../constants/db_keys.dart'; import '../../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../../../widgets/pop_button.dart'; +import '../../../../../../widgets/popup_widgets/pop_button.dart'; part 'credentials_popup.g.dart'; @@ -44,7 +44,7 @@ class CredentialsPopup extends HookConsumerWidget { final username = useTextEditingController(); final password = useTextEditingController(); return AlertDialog( - title: Text(context.l10n!.credentials), + title: Text(context.l10n.credentials), content: Form( key: formKey, child: Column( @@ -53,9 +53,9 @@ class CredentialsPopup extends HookConsumerWidget { TextFormField( controller: username, validator: (value) => - value.isBlank ? (context.l10n!.errorUserName) : null, + value.isBlank ? (context.l10n.errorUserName) : null, decoration: InputDecoration( - hintText: context.l10n!.userName, + hintText: context.l10n.userName, border: const OutlineInputBorder(), ), ), @@ -63,10 +63,10 @@ class CredentialsPopup extends HookConsumerWidget { TextFormField( controller: password, validator: (value) => - value.isBlank ? (context.l10n!.errorPassword) : null, + value.isBlank ? (context.l10n.errorPassword) : null, obscureText: true, decoration: InputDecoration( - hintText: context.l10n!.password, + hintText: context.l10n.password, border: const OutlineInputBorder(), ), ), @@ -87,7 +87,7 @@ class CredentialsPopup extends HookConsumerWidget { Navigator.pop(context); } }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ), ], ); diff --git a/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.g.dart b/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.g.dart index 40f7b81d..3275ca41 100644 --- a/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.g.dart +++ b/lib/src/features/settings/presentation/server/widget/credential_popup/credentials_popup.g.dart @@ -22,4 +22,4 @@ final credentialsProvider = typedef _$Credentials = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/presentation/server/widget/misc_settings/misc_settings_section.dart b/lib/src/features/settings/presentation/server/widget/misc_settings/misc_settings_section.dart new file mode 100644 index 00000000..d7617dd3 --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/misc_settings/misc_settings_section.dart @@ -0,0 +1,63 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../utils/misc/app_utils.dart'; +import '../../../../../../utils/misc/toast/toast.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../controller/server_controller.dart'; +import '../../../../domain/misc_settings/misc_settings.dart'; +import '../../data/server_settings_repository.dart'; + +class MiscSettingsSection extends ConsumerWidget { + const MiscSettingsSection({super.key, required this.miscSettingsDto}); + final MiscSettingsDto miscSettingsDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.misc), + SwitchListTile( + title: Text(context.l10n.debugLogs), + value: miscSettingsDto.debugLogsEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleDebugLogs(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + SwitchListTile( + title: Text(context.l10n.gqlDebugLogs), + subtitle: Text(context.l10n.gqlDebugLogsHint), + value: miscSettingsDto.gqlDebugLogsEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleGqlDebugLogs(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + SwitchListTile( + title: Text(context.l10n.systemTrayIcon), + subtitle: Text(context.l10n.systemTrayIcon), + value: miscSettingsDto.systemTrayEnabled, + onChanged: (isEnabled) async { + final value = await AppUtils.guard( + () => repository.toggleSystemTrayEnabled(isEnabled), + ref.read(toastProvider)); + if (value != null) { + ref.read(settingsProvider.notifier).updateState(value); + } + }, + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/server_binding/server_binding_section.dart b/lib/src/features/settings/presentation/server/widget/server_binding/server_binding_section.dart new file mode 100644 index 00000000..1e5ad01b --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/server_binding/server_binding_section.dart @@ -0,0 +1,49 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../../../widgets/input_popup/settings_prop_tile.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../domain/server_binding/server_binding.dart'; +import '../../data/server_settings_repository.dart'; + +class ServerBindingSection extends ConsumerWidget { + const ServerBindingSection({ + super.key, + required this.serverBindingDto, + }); + final ServerBindingDto serverBindingDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.serverBindings), + SettingsPropTile( + title: context.l10n.ip, + leading: const Icon(Icons.computer_rounded), + type: SettingsPropType.textField( + hintText: context.l10n.ipHintText, + value: serverBindingDto.ip, + onChanged: repository.updateIpAddress, + ), + subtitle: serverBindingDto.ip, + ), + SettingsPropTile( + title: context.l10n.serverPort, + subtitle: serverBindingDto.port.toString(), + leading: const Icon(Icons.dns_rounded), + type: SettingsPropType.numberPicker( + min: 0, + max: 65535, + value: serverBindingDto.port, + onChanged: repository.updatePort, + ), + ), + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/server/widget/socks_proxy/socks_proxy_section.dart b/lib/src/features/settings/presentation/server/widget/socks_proxy/socks_proxy_section.dart new file mode 100644 index 00000000..fe5b08fa --- /dev/null +++ b/lib/src/features/settings/presentation/server/widget/socks_proxy/socks_proxy_section.dart @@ -0,0 +1,85 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../../../../../utils/extensions/custom_extensions.dart'; +import '../../../../../../widgets/input_popup/domain/settings_prop_type.dart'; +import '../../../../../../widgets/input_popup/settings_prop_tile.dart'; +import '../../../../../../widgets/section_title.dart'; +import '../../../../domain/settings/settings.dart'; +import '../../../../domain/socks_proxy/socks_proxy.dart'; +import '../../data/server_settings_repository.dart'; + +class SocksProxySection extends ConsumerWidget { + const SocksProxySection({ + super.key, + required this.socksProxyDto, + }); + final SocksProxyDto socksProxyDto; + @override + Widget build(context, ref) { + final repository = ref.watch(serverSettingsRepositoryProvider); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SectionTitle(title: context.l10n.socksProxy), + SettingsPropTile( + title: context.l10n.enableSocksProxy, + type: SettingsPropType.switchTile( + value: socksProxyDto.socksProxyEnabled, + onChanged: repository.toggleSocksProxy, + ), + ), + if (socksProxyDto.socksProxyEnabled) ...[ + SettingsPropTile( + title: context.l10n.socksVersion, + subtitle: socksProxyDto.socksProxyVersion.toString(), + type: SettingsPropType.numberPicker( + min: 4, + max: 5, + value: socksProxyDto.socksProxyVersion, + onChanged: repository.updateSocksVersion, + ), + ), + SettingsPropTile( + title: context.l10n.socksHost, + type: SettingsPropType.textField( + hintText: context.l10n.enterProp(context.l10n.socksHost), + value: socksProxyDto.socksProxyHost, + onChanged: repository.updateSocksHost, + ), + subtitle: socksProxyDto.socksProxyHost, + ), + SettingsPropTile( + title: context.l10n.socksPort, + subtitle: socksProxyDto.socksProxyPort.toString(), + type: SettingsPropType.numberPicker( + min: 0, + max: 65535, + value: int.tryParse(socksProxyDto.socksProxyPort), + onChanged: (port) async => + repository.updateSocksPort(port.toString()), + ), + ), + SettingsPropTile( + title: context.l10n.socksUserName, + type: SettingsPropType.textField( + hintText: context.l10n.enterProp(context.l10n.socksUserName), + value: socksProxyDto.socksProxyUsername, + onChanged: repository.updateSocksUserName, + ), + subtitle: socksProxyDto.socksProxyUsername, + ), + SettingsPropTile( + title: context.l10n.socksPassword, + type: SettingsPropType.textField( + canObscure: true, + hintText: context.l10n.enterProp(context.l10n.socksPassword), + value: socksProxyDto.socksProxyPassword, + onChanged: repository.updateSocksPassword, + ), + ), + ], + ], + ); + } +} diff --git a/lib/src/features/settings/presentation/settings/settings_screen.dart b/lib/src/features/settings/presentation/settings/settings_screen.dart index 372b74b7..524da55d 100644 --- a/lib/src/features/settings/presentation/settings/settings_screen.dart +++ b/lib/src/features/settings/presentation/settings/settings_screen.dart @@ -16,44 +16,49 @@ class SettingsScreen extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text(context.l10n!.settings), + title: Text(context.l10n.settings), ), body: ListView( children: [ ListTile( - title: Text(context.l10n!.general), + title: Text(context.l10n.general), leading: const Icon(Icons.tune_rounded), - onTap: () => const GeneralSettingsRoute().push(context), + onTap: () => const GeneralSettingsRoute().go(context), ), ListTile( - title: Text(context.l10n!.appearance), + title: Text(context.l10n.appearance), leading: const Icon(Icons.color_lens_rounded), - onTap: () => const AppearanceSettingsRoute().push(context), + onTap: () => const AppearanceSettingsRoute().go(context), ), ListTile( - title: Text(context.l10n!.library), + title: Text(context.l10n.library), leading: const Icon(Icons.collections_bookmark_rounded), - onTap: () => const LibrarySettingsRoute().push(context), + onTap: () => const LibrarySettingsRoute().go(context), ), ListTile( - title: Text(context.l10n!.reader), + title: Text(context.l10n.downloads), + leading: const Icon(Icons.download_rounded), + onTap: () => const DownloadsSettingsRoute().go(context), + ), + ListTile( + title: Text(context.l10n.reader), leading: const Icon(Icons.chrome_reader_mode_rounded), - onTap: () => const ReaderSettingsRoute().push(context), + onTap: () => const ReaderSettingsRoute().go(context), ), ListTile( - title: Text(context.l10n!.browse), + title: Text(context.l10n.browse), leading: const Icon(Icons.explore_rounded), - onTap: () => const BrowseSettingsRoute().push(context), + onTap: () => const BrowseSettingsRoute().go(context), ), ListTile( - title: Text(context.l10n!.backup), + title: Text(context.l10n.backup), leading: const Icon(Icons.settings_backup_restore_rounded), - onTap: () => const BackupRoute().push(context), + onTap: () => const BackupRoute().go(context), ), ListTile( - title: Text(context.l10n!.server), + title: Text(context.l10n.server), leading: const Icon(Icons.computer_rounded), - onTap: () => const ServerSettingsRoute().push(context), + onTap: () => const ServerSettingsRoute().go(context), ), ], ), diff --git a/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart b/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart index c5a514e0..26e17f7c 100644 --- a/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart +++ b/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.dart @@ -11,7 +11,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../../constants/db_keys.dart'; import '../../../../utils/extensions/custom_extensions.dart'; import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/radio_list_popup.dart'; +import '../../../../widgets/popup_widgets/radio_list_popup.dart'; part 'app_theme_mode_tile.g.dart'; @@ -27,9 +27,9 @@ class AppThemeMode extends _$AppThemeMode extension ThemeModeExtension on ThemeMode { String toLocale(BuildContext context) => switch (this) { - ThemeMode.system => context.l10n!.themeModeSystem, - ThemeMode.light => context.l10n!.themeModeLight, - ThemeMode.dark => context.l10n!.themeModeDark + ThemeMode.system => context.l10n.themeModeSystem, + ThemeMode.light => context.l10n.themeModeLight, + ThemeMode.dark => context.l10n.themeModeDark }; } @@ -44,11 +44,11 @@ class AppThemeModeTile extends ConsumerWidget { context.isDarkMode ? Icons.dark_mode_rounded : Icons.light_mode_rounded, ), subtitle: themeMode != null ? Text(themeMode.toLocale(context)) : null, - title: Text(context.l10n!.appTheme), + title: Text(context.l10n.appTheme), onTap: () => showDialog( context: context, builder: (context) => RadioListPopup( - title: context.l10n!.appTheme, + title: context.l10n.appTheme, optionList: ThemeMode.values, value: themeMode ?? ThemeMode.system, getOptionTitle: (value) => value.toLocale(context), diff --git a/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.g.dart b/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.g.dart index 1492735b..c6b286e6 100644 --- a/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.g.dart +++ b/lib/src/features/settings/widgets/app_theme_mode_tile/app_theme_mode_tile.g.dart @@ -22,4 +22,4 @@ final appThemeModeProvider = typedef _$AppThemeMode = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart b/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart deleted file mode 100644 index 3b249c56..00000000 --- a/lib/src/features/settings/widgets/server_port_tile/server_port_tile.dart +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; -import 'package:flutter_hooks/flutter_hooks.dart'; -import 'package:hooks_riverpod/hooks_riverpod.dart'; -import 'package:riverpod_annotation/riverpod_annotation.dart'; - -import '../../../../constants/db_keys.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/pop_button.dart'; - -part 'server_port_tile.g.dart'; - -@riverpod -class ServerPort extends _$ServerPort with SharedPreferenceClientMixin { - @override - int? build() => initialize(DBKeys.serverPort); -} - -@riverpod -class ServerPortToggle extends _$ServerPortToggle - with SharedPreferenceClientMixin { - @override - bool? build() => initialize( - DBKeys.serverPortToggle, - initial: kIsWeb ? false : DBKeys.serverPortToggle.initial, - ); -} - -class ServerPortTile extends ConsumerWidget { - const ServerPortTile({super.key}); - - @override - Widget build(BuildContext context, WidgetRef ref) { - final serverPort = ref.watch(serverPortProvider); - final serverToggle = ref.watch(serverPortToggleProvider).ifNull(); - return ListTile( - leading: const Icon(Icons.dns_rounded), - title: Text(context.l10n!.serverPort), - subtitle: (serverToggle && serverPort != null) - ? (Text(serverPort.toString())) - : null, - trailing: Switch( - value: serverToggle, - onChanged: (value) { - ref.read(serverPortToggleProvider.notifier).update(value); - }, - ), - onTap: serverToggle - ? () => showDialog( - context: context, - builder: (context) => ServerPortField(initialPort: serverPort), - ) - : null, - ); - } -} - -class ServerPortField extends HookConsumerWidget { - const ServerPortField({ - this.initialPort, - super.key, - }); - final int? initialPort; - - void _update(int? port, WidgetRef ref) { - ref.read(serverPortProvider.notifier).update(port); - } - - @override - Widget build(BuildContext context, WidgetRef ref) { - final controller = useTextEditingController( - text: (initialPort ?? '').toString(), - ); - return AlertDialog( - title: Text(context.l10n!.serverPort), - content: TextField( - autofocus: true, - controller: controller, - onSubmitted: (value) { - _update(int.tryParse(controller.text), ref); - Navigator.pop(context); - }, - keyboardType: TextInputType.number, - maxLength: 5, - inputFormatters: [FilteringTextInputFormatter.digitsOnly], - decoration: InputDecoration( - counter: const SizedBox.shrink(), - border: const OutlineInputBorder(), - hintText: (context.l10n!.serverPortHintText), - ), - ), - actions: [ - const PopButton(), - ElevatedButton( - onPressed: () { - _update(int.tryParse(controller.text), ref); - Navigator.pop(context); - }, - child: Text(context.l10n!.save), - ), - ], - ); - } -} diff --git a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart b/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart deleted file mode 100644 index 3d4668e9..00000000 --- a/lib/src/features/settings/widgets/server_url_tile/server_url_tile.dart +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_hooks/flutter_hooks.dart'; -import 'package:hooks_riverpod/hooks_riverpod.dart'; -import 'package:riverpod_annotation/riverpod_annotation.dart'; - -import '../../../../constants/db_keys.dart'; -import '../../../../utils/extensions/custom_extensions.dart'; -import '../../../../utils/mixin/shared_preferences_client_mixin.dart'; -import '../../../../widgets/pop_button.dart'; -import 'server_search_button.dart'; - -part 'server_url_tile.g.dart'; - -@riverpod -class ServerUrl extends _$ServerUrl with SharedPreferenceClientMixin { - @override - String? build() => initialize( - DBKeys.serverUrl, - initial: kIsWeb ? Uri.base.origin : DBKeys.serverUrl.initial, - ); -} - -class ServerUrlTile extends ConsumerWidget { - const ServerUrlTile({super.key}); - - @override - Widget build(BuildContext context, WidgetRef ref) { - final serverUrl = ref.watch(serverUrlProvider); - return ListTile( - leading: const Icon(Icons.computer_rounded), - title: Text(context.l10n!.serverUrl), - subtitle: (serverUrl.isNotBlank) ? Text(serverUrl!) : null, - trailing: !kIsWeb ? (const ServerSearchButton()) : null, - onTap: () => showDialog( - context: context, - builder: (context) => ServerUrlField(initialUrl: serverUrl), - ), - ); - } -} - -class ServerUrlField extends HookConsumerWidget { - const ServerUrlField({ - this.initialUrl, - super.key, - }); - final String? initialUrl; - - void _update(String url, WidgetRef ref) { - final tempUrl = url.endsWith('/') ? url.substring(0, url.length - 1) : url; - ref.read(serverUrlProvider.notifier).update(tempUrl); - } - - @override - Widget build(BuildContext context, WidgetRef ref) { - final controller = useTextEditingController(text: initialUrl); - return AlertDialog( - title: Text(context.l10n!.serverUrl), - content: TextField( - autofocus: true, - controller: controller, - onSubmitted: (value) { - _update(controller.text, ref); - Navigator.pop(context); - }, - decoration: InputDecoration( - border: const OutlineInputBorder(), - hintText: (context.l10n!.serverUrlHintText), - ), - ), - actions: [ - const PopButton(), - ElevatedButton( - onPressed: () { - _update(controller.text, ref); - Navigator.pop(context); - }, - child: Text(context.l10n!.save), - ), - ], - ); - } -} diff --git a/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart b/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart index 9fd192fc..68b17079 100644 --- a/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart +++ b/lib/src/features/settings/widgets/slider_setting_tile/slider_setting_tile.dart @@ -36,7 +36,7 @@ class SliderSettingTile extends StatelessWidget { title: Text(title), trailing: IconButton( onPressed: () => onChanged(defaultValue), - icon: const Icon(Icons.refresh), + icon: const Icon(Icons.refresh_rounded), ), subtitle: Row( children: [ diff --git a/lib/src/global_providers/global_providers.dart b/lib/src/global_providers/global_providers.dart index f51b87e9..717eeea9 100644 --- a/lib/src/global_providers/global_providers.dart +++ b/lib/src/global_providers/global_providers.dart @@ -7,25 +7,41 @@ import 'dart:io'; import 'package:dio_cache_interceptor_hive_store/dio_cache_interceptor_hive_store.dart'; +import 'package:ferry/ferry.dart'; +import 'package:ferry_hive_store/ferry_hive_store.dart'; import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:queue/queue.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:shared_preferences/shared_preferences.dart'; import '../constants/db_keys.dart'; import '../constants/enum.dart'; +import '../features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart'; +import '../features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart'; import '../features/settings/presentation/server/widget/credential_popup/credentials_popup.dart'; -import '../features/settings/widgets/server_port_tile/server_port_tile.dart'; -import '../features/settings/widgets/server_url_tile/server_url_tile.dart'; import '../utils/extensions/custom_extensions.dart'; import '../utils/mixin/shared_preferences_client_mixin.dart'; import '../utils/storage/dio/dio_client.dart'; import '../utils/storage/dio/network_module.dart'; +import '../utils/storage/ferry/network_module.dart'; part 'global_providers.g.dart'; @riverpod -DioClient dioClientKey(DioClientKeyRef ref) => DioClient( +Client ferryClient(Ref ref) => + ref.watch(ferryNetworkModuleProvider).provideFerry( + baseUrl: ref.watch(serverUrlProvider) ?? DBKeys.serverUrl.initial, + port: ref.watch(serverPortProvider), + addPort: ref.watch(serverPortToggleProvider).ifNull(), + authType: ref.watch(authTypeKeyProvider) ?? DBKeys.authType.initial, + credentials: ref.watch(credentialsProvider), + hiveStore: ref.watch(hiveStoreProvider), + ); + +//TODO remove +@riverpod +DioClient dioClientKey(Ref ref) => DioClient( dio: ref.watch(networkModuleProvider).provideDio( baseUrl: ref.watch(serverUrlProvider) ?? DBKeys.serverUrl.initial, port: ref.watch(serverPortProvider), @@ -72,15 +88,20 @@ class L10n extends _$L10n with SharedPreferenceClientMixin { @riverpod SharedPreferences sharedPreferences(ref) => throw UnimplementedError(); +//TODO remove @riverpod Directory? appDirectory(ref) => throw UnimplementedError(); +//TODO remove @riverpod -HiveCacheStore hiveCacheStore(HiveCacheStoreRef ref) => +HiveCacheStore hiveCacheStore(Ref ref) => HiveCacheStore(ref.watch(appDirectoryProvider)?.path); @riverpod -Queue rateLimitQueue(RateLimitQueueRef ref, [String? query]) { +HiveStore hiveStore(Ref ref) => throw UnimplementedError(); + +@riverpod +Queue rateLimitQueue(Ref ref, [String? query]) { final queue = Queue( parallel: 3, delay: const Duration(milliseconds: 500), diff --git a/lib/src/global_providers/global_providers.g.dart b/lib/src/global_providers/global_providers.g.dart index 8f316dfd..57c44cb8 100644 --- a/lib/src/global_providers/global_providers.g.dart +++ b/lib/src/global_providers/global_providers.g.dart @@ -6,7 +6,23 @@ part of 'global_providers.dart'; // RiverpodGenerator // ************************************************************************** -String _$dioClientKeyHash() => r'3c0bdf6561be103898cbba24855ca355c5dfba6b'; +String _$ferryClientHash() => r'715836754d4c697becc04e93da3a0ebcb2b9d9ca'; + +/// See also [ferryClient]. +@ProviderFor(ferryClient) +final ferryClientProvider = AutoDisposeProvider.internal( + ferryClient, + name: r'ferryClientProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$ferryClientHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef FerryClientRef = AutoDisposeProviderRef; +String _$dioClientKeyHash() => r'a6ea692d8f08bd920f4f16c43eaefe3732599d51'; /// See also [dioClientKey]. @ProviderFor(dioClientKey) @@ -19,6 +35,8 @@ final dioClientKeyProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef DioClientKeyRef = AutoDisposeProviderRef; String _$sharedPreferencesHash() => r'dd034076f3a6cac11ba173b2ebd1bd0debcadd42'; @@ -35,6 +53,8 @@ final sharedPreferencesProvider = allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef SharedPreferencesRef = AutoDisposeProviderRef; String _$appDirectoryHash() => r'598612365ff87cbdf65761e923161467412ec463'; @@ -49,8 +69,10 @@ final appDirectoryProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef AppDirectoryRef = AutoDisposeProviderRef; -String _$hiveCacheStoreHash() => r'9b2759c40cc610a05bf24953b306f6dec44cb2e6'; +String _$hiveCacheStoreHash() => r'8c025c8de70bbc267813d7213fcf6c5af23da63c'; /// See also [hiveCacheStore]. @ProviderFor(hiveCacheStore) @@ -64,8 +86,26 @@ final hiveCacheStoreProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef HiveCacheStoreRef = AutoDisposeProviderRef; -String _$rateLimitQueueHash() => r'160a82b2737ac46d9dabad1f6ae8f59bfdcb24ca'; +String _$hiveStoreHash() => r'93ba9cf12843b25b6107a3e76f84bd65b7e0c7c1'; + +/// See also [hiveStore]. +@ProviderFor(hiveStore) +final hiveStoreProvider = AutoDisposeProvider.internal( + hiveStore, + name: r'hiveStoreProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$hiveStoreHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef HiveStoreRef = AutoDisposeProviderRef; +String _$rateLimitQueueHash() => r'59e94cb8add92522ec8b8676d88d1852544ad66d'; /// Copied from Dart SDK class _SystemHash { @@ -201,6 +241,8 @@ class RateLimitQueueProvider extends AutoDisposeProvider { } } +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element mixin RateLimitQueueRef on AutoDisposeProviderRef { /// The parameter `query` of this provider. String? get query; @@ -244,4 +286,4 @@ final l10nProvider = AutoDisposeNotifierProvider.internal( typedef _$L10n = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/graphql/__generated__/fragments.ast.gql.dart b/lib/src/graphql/__generated__/fragments.ast.gql.dart new file mode 100644 index 00000000..5796c5fb --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.ast.gql.dart @@ -0,0 +1,46 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const PageInfoFragment = _i1.FragmentDefinitionNode( + name: _i1.NameNode(value: 'PageInfoFragment'), + typeCondition: _i1.TypeConditionNode( + on: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: false, + )), + directives: [], + selectionSet: _i1.SelectionSetNode(selections: [ + _i1.FieldNode( + name: _i1.NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'hasPreviousPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + _i1.FieldNode( + name: _i1.NameNode(value: 'startCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), +); +const document = _i1.DocumentNode(definitions: [PageInfoFragment]); diff --git a/lib/src/graphql/__generated__/fragments.data.gql.dart b/lib/src/graphql/__generated__/fragments.data.gql.dart new file mode 100644 index 00000000..0e524bc0 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.data.gql.dart @@ -0,0 +1,61 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + as _i1; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i2; + +part 'fragments.data.gql.g.dart'; + +abstract class GPageInfoFragment { + String get G__typename; + _i1.GCursor? get endCursor; + bool get hasNextPage; + bool get hasPreviousPage; + _i1.GCursor? get startCursor; + Map toJson(); +} + +abstract class GPageInfoFragmentData + implements + Built, + GPageInfoFragment { + GPageInfoFragmentData._(); + + factory GPageInfoFragmentData( + [void Function(GPageInfoFragmentDataBuilder b) updates]) = + _$GPageInfoFragmentData; + + static void _initializeBuilder(GPageInfoFragmentDataBuilder b) => + b..G__typename = 'PageInfo'; + + @override + @BuiltValueField(wireName: '__typename') + String get G__typename; + @override + _i1.GCursor? get endCursor; + @override + bool get hasNextPage; + @override + bool get hasPreviousPage; + @override + _i1.GCursor? get startCursor; + static Serializer get serializer => + _$gPageInfoFragmentDataSerializer; + + @override + Map toJson() => (_i2.serializers.serializeWith( + GPageInfoFragmentData.serializer, + this, + ) as Map); + + static GPageInfoFragmentData? fromJson(Map json) => + _i2.serializers.deserializeWith( + GPageInfoFragmentData.serializer, + json, + ); +} diff --git a/lib/src/graphql/__generated__/fragments.data.gql.g.dart b/lib/src/graphql/__generated__/fragments.data.gql.g.dart new file mode 100644 index 00000000..80fe966e --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.data.gql.g.dart @@ -0,0 +1,261 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragments.data.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPageInfoFragmentDataSerializer = + new _$GPageInfoFragmentDataSerializer(); + +class _$GPageInfoFragmentDataSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPageInfoFragmentData, + _$GPageInfoFragmentData + ]; + @override + final String wireName = 'GPageInfoFragmentData'; + + @override + Iterable serialize( + Serializers serializers, GPageInfoFragmentData object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + '__typename', + serializers.serialize(object.G__typename, + specifiedType: const FullType(String)), + 'hasNextPage', + serializers.serialize(object.hasNextPage, + specifiedType: const FullType(bool)), + 'hasPreviousPage', + serializers.serialize(object.hasPreviousPage, + specifiedType: const FullType(bool)), + ]; + Object? value; + value = object.endCursor; + if (value != null) { + result + ..add('endCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCursor))); + } + value = object.startCursor; + if (value != null) { + result + ..add('startCursor') + ..add(serializers.serialize(value, + specifiedType: const FullType(_i1.GCursor))); + } + return result; + } + + @override + GPageInfoFragmentData deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPageInfoFragmentDataBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case '__typename': + result.G__typename = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'endCursor': + result.endCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCursor))! as _i1.GCursor); + break; + case 'hasNextPage': + result.hasNextPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'hasPreviousPage': + result.hasPreviousPage = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'startCursor': + result.startCursor.replace(serializers.deserialize(value, + specifiedType: const FullType(_i1.GCursor))! as _i1.GCursor); + break; + } + } + + return result.build(); + } +} + +class _$GPageInfoFragmentData extends GPageInfoFragmentData { + @override + final String G__typename; + @override + final _i1.GCursor? endCursor; + @override + final bool hasNextPage; + @override + final bool hasPreviousPage; + @override + final _i1.GCursor? startCursor; + + factory _$GPageInfoFragmentData( + [void Function(GPageInfoFragmentDataBuilder)? updates]) => + (new GPageInfoFragmentDataBuilder()..update(updates))._build(); + + _$GPageInfoFragmentData._( + {required this.G__typename, + this.endCursor, + required this.hasNextPage, + required this.hasPreviousPage, + this.startCursor}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + G__typename, r'GPageInfoFragmentData', 'G__typename'); + BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GPageInfoFragmentData', 'hasNextPage'); + BuiltValueNullFieldError.checkNotNull( + hasPreviousPage, r'GPageInfoFragmentData', 'hasPreviousPage'); + } + + @override + GPageInfoFragmentData rebuild( + void Function(GPageInfoFragmentDataBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPageInfoFragmentDataBuilder toBuilder() => + new GPageInfoFragmentDataBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPageInfoFragmentData && + G__typename == other.G__typename && + endCursor == other.endCursor && + hasNextPage == other.hasNextPage && + hasPreviousPage == other.hasPreviousPage && + startCursor == other.startCursor; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, G__typename.hashCode); + _$hash = $jc(_$hash, endCursor.hashCode); + _$hash = $jc(_$hash, hasNextPage.hashCode); + _$hash = $jc(_$hash, hasPreviousPage.hashCode); + _$hash = $jc(_$hash, startCursor.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPageInfoFragmentData') + ..add('G__typename', G__typename) + ..add('endCursor', endCursor) + ..add('hasNextPage', hasNextPage) + ..add('hasPreviousPage', hasPreviousPage) + ..add('startCursor', startCursor)) + .toString(); + } +} + +class GPageInfoFragmentDataBuilder + implements Builder { + _$GPageInfoFragmentData? _$v; + + String? _G__typename; + String? get G__typename => _$this._G__typename; + set G__typename(String? G__typename) => _$this._G__typename = G__typename; + + _i1.GCursorBuilder? _endCursor; + _i1.GCursorBuilder get endCursor => + _$this._endCursor ??= new _i1.GCursorBuilder(); + set endCursor(_i1.GCursorBuilder? endCursor) => _$this._endCursor = endCursor; + + bool? _hasNextPage; + bool? get hasNextPage => _$this._hasNextPage; + set hasNextPage(bool? hasNextPage) => _$this._hasNextPage = hasNextPage; + + bool? _hasPreviousPage; + bool? get hasPreviousPage => _$this._hasPreviousPage; + set hasPreviousPage(bool? hasPreviousPage) => + _$this._hasPreviousPage = hasPreviousPage; + + _i1.GCursorBuilder? _startCursor; + _i1.GCursorBuilder get startCursor => + _$this._startCursor ??= new _i1.GCursorBuilder(); + set startCursor(_i1.GCursorBuilder? startCursor) => + _$this._startCursor = startCursor; + + GPageInfoFragmentDataBuilder() { + GPageInfoFragmentData._initializeBuilder(this); + } + + GPageInfoFragmentDataBuilder get _$this { + final $v = _$v; + if ($v != null) { + _G__typename = $v.G__typename; + _endCursor = $v.endCursor?.toBuilder(); + _hasNextPage = $v.hasNextPage; + _hasPreviousPage = $v.hasPreviousPage; + _startCursor = $v.startCursor?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GPageInfoFragmentData other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPageInfoFragmentData; + } + + @override + void update(void Function(GPageInfoFragmentDataBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPageInfoFragmentData build() => _build(); + + _$GPageInfoFragmentData _build() { + _$GPageInfoFragmentData _$result; + try { + _$result = _$v ?? + new _$GPageInfoFragmentData._( + G__typename: BuiltValueNullFieldError.checkNotNull( + G__typename, r'GPageInfoFragmentData', 'G__typename'), + endCursor: _endCursor?.build(), + hasNextPage: BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'GPageInfoFragmentData', 'hasNextPage'), + hasPreviousPage: BuiltValueNullFieldError.checkNotNull( + hasPreviousPage, r'GPageInfoFragmentData', 'hasPreviousPage'), + startCursor: _startCursor?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'endCursor'; + _endCursor?.build(); + + _$failedField = 'startCursor'; + _startCursor?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPageInfoFragmentData', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/fragments.req.gql.dart b/lib/src/graphql/__generated__/fragments.req.gql.dart new file mode 100644 index 00000000..8b7a4688 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.req.gql.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:ferry_exec/ferry_exec.dart' as _i1; +import 'package:gql/ast.dart' as _i5; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.ast.gql.dart' + as _i4; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.data.gql.dart' + as _i2; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.var.gql.dart' + as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i6; + +part 'fragments.req.gql.g.dart'; + +abstract class GPageInfoFragmentReq + implements + Built, + _i1 + .FragmentRequest<_i2.GPageInfoFragmentData, _i3.GPageInfoFragmentVars> { + GPageInfoFragmentReq._(); + + factory GPageInfoFragmentReq( + [void Function(GPageInfoFragmentReqBuilder b) updates]) = + _$GPageInfoFragmentReq; + + static void _initializeBuilder(GPageInfoFragmentReqBuilder b) => b + ..document = _i4.document + ..fragmentName = 'PageInfoFragment'; + + @override + _i3.GPageInfoFragmentVars get vars; + @override + _i5.DocumentNode get document; + @override + String? get fragmentName; + @override + Map get idFields; + @override + _i2.GPageInfoFragmentData? parseData(Map json) => + _i2.GPageInfoFragmentData.fromJson(json); + + @override + Map varsToJson() => vars.toJson(); + + @override + Map dataToJson(_i2.GPageInfoFragmentData data) => + data.toJson(); + + static Serializer get serializer => + _$gPageInfoFragmentReqSerializer; + + Map toJson() => (_i6.serializers.serializeWith( + GPageInfoFragmentReq.serializer, + this, + ) as Map); + + static GPageInfoFragmentReq? fromJson(Map json) => + _i6.serializers.deserializeWith( + GPageInfoFragmentReq.serializer, + json, + ); +} diff --git a/lib/src/graphql/__generated__/fragments.req.gql.g.dart b/lib/src/graphql/__generated__/fragments.req.gql.g.dart new file mode 100644 index 00000000..9d8c6d06 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.req.gql.g.dart @@ -0,0 +1,237 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragments.req.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPageInfoFragmentReqSerializer = + new _$GPageInfoFragmentReqSerializer(); + +class _$GPageInfoFragmentReqSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPageInfoFragmentReq, + _$GPageInfoFragmentReq + ]; + @override + final String wireName = 'GPageInfoFragmentReq'; + + @override + Iterable serialize( + Serializers serializers, GPageInfoFragmentReq object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'vars', + serializers.serialize(object.vars, + specifiedType: const FullType(_i3.GPageInfoFragmentVars)), + 'document', + serializers.serialize(object.document, + specifiedType: const FullType(_i5.DocumentNode)), + 'idFields', + serializers.serialize(object.idFields, + specifiedType: const FullType( + Map, const [const FullType(String), const FullType(dynamic)])), + ]; + Object? value; + value = object.fragmentName; + if (value != null) { + result + ..add('fragmentName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GPageInfoFragmentReq deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPageInfoFragmentReqBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'vars': + result.vars.replace(serializers.deserialize(value, + specifiedType: const FullType(_i3.GPageInfoFragmentVars))! + as _i3.GPageInfoFragmentVars); + break; + case 'document': + result.document = serializers.deserialize(value, + specifiedType: const FullType(_i5.DocumentNode))! + as _i5.DocumentNode; + break; + case 'fragmentName': + result.fragmentName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'idFields': + result.idFields = serializers.deserialize(value, + specifiedType: const FullType(Map, const [ + const FullType(String), + const FullType(dynamic) + ]))! as Map; + break; + } + } + + return result.build(); + } +} + +class _$GPageInfoFragmentReq extends GPageInfoFragmentReq { + @override + final _i3.GPageInfoFragmentVars vars; + @override + final _i5.DocumentNode document; + @override + final String? fragmentName; + @override + final Map idFields; + + factory _$GPageInfoFragmentReq( + [void Function(GPageInfoFragmentReqBuilder)? updates]) => + (new GPageInfoFragmentReqBuilder()..update(updates))._build(); + + _$GPageInfoFragmentReq._( + {required this.vars, + required this.document, + this.fragmentName, + required this.idFields}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + vars, r'GPageInfoFragmentReq', 'vars'); + BuiltValueNullFieldError.checkNotNull( + document, r'GPageInfoFragmentReq', 'document'); + BuiltValueNullFieldError.checkNotNull( + idFields, r'GPageInfoFragmentReq', 'idFields'); + } + + @override + GPageInfoFragmentReq rebuild( + void Function(GPageInfoFragmentReqBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPageInfoFragmentReqBuilder toBuilder() => + new GPageInfoFragmentReqBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPageInfoFragmentReq && + vars == other.vars && + document == other.document && + fragmentName == other.fragmentName && + idFields == other.idFields; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, vars.hashCode); + _$hash = $jc(_$hash, document.hashCode); + _$hash = $jc(_$hash, fragmentName.hashCode); + _$hash = $jc(_$hash, idFields.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPageInfoFragmentReq') + ..add('vars', vars) + ..add('document', document) + ..add('fragmentName', fragmentName) + ..add('idFields', idFields)) + .toString(); + } +} + +class GPageInfoFragmentReqBuilder + implements Builder { + _$GPageInfoFragmentReq? _$v; + + _i3.GPageInfoFragmentVarsBuilder? _vars; + _i3.GPageInfoFragmentVarsBuilder get vars => + _$this._vars ??= new _i3.GPageInfoFragmentVarsBuilder(); + set vars(_i3.GPageInfoFragmentVarsBuilder? vars) => _$this._vars = vars; + + _i5.DocumentNode? _document; + _i5.DocumentNode? get document => _$this._document; + set document(_i5.DocumentNode? document) => _$this._document = document; + + String? _fragmentName; + String? get fragmentName => _$this._fragmentName; + set fragmentName(String? fragmentName) => _$this._fragmentName = fragmentName; + + Map? _idFields; + Map? get idFields => _$this._idFields; + set idFields(Map? idFields) => _$this._idFields = idFields; + + GPageInfoFragmentReqBuilder() { + GPageInfoFragmentReq._initializeBuilder(this); + } + + GPageInfoFragmentReqBuilder get _$this { + final $v = _$v; + if ($v != null) { + _vars = $v.vars.toBuilder(); + _document = $v.document; + _fragmentName = $v.fragmentName; + _idFields = $v.idFields; + _$v = null; + } + return this; + } + + @override + void replace(GPageInfoFragmentReq other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPageInfoFragmentReq; + } + + @override + void update(void Function(GPageInfoFragmentReqBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPageInfoFragmentReq build() => _build(); + + _$GPageInfoFragmentReq _build() { + _$GPageInfoFragmentReq _$result; + try { + _$result = _$v ?? + new _$GPageInfoFragmentReq._( + vars: vars.build(), + document: BuiltValueNullFieldError.checkNotNull( + document, r'GPageInfoFragmentReq', 'document'), + fragmentName: fragmentName, + idFields: BuiltValueNullFieldError.checkNotNull( + idFields, r'GPageInfoFragmentReq', 'idFields'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'vars'; + vars.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPageInfoFragmentReq', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/fragments.var.gql.dart b/lib/src/graphql/__generated__/fragments.var.gql.dart new file mode 100644 index 00000000..828462fb --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.var.gql.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'fragments.var.gql.g.dart'; + +abstract class GPageInfoFragmentVars + implements Built { + GPageInfoFragmentVars._(); + + factory GPageInfoFragmentVars( + [void Function(GPageInfoFragmentVarsBuilder b) updates]) = + _$GPageInfoFragmentVars; + + static Serializer get serializer => + _$gPageInfoFragmentVarsSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GPageInfoFragmentVars.serializer, + this, + ) as Map); + + static GPageInfoFragmentVars? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPageInfoFragmentVars.serializer, + json, + ); +} diff --git a/lib/src/graphql/__generated__/fragments.var.gql.g.dart b/lib/src/graphql/__generated__/fragments.var.gql.g.dart new file mode 100644 index 00000000..a79da3f0 --- /dev/null +++ b/lib/src/graphql/__generated__/fragments.var.gql.g.dart @@ -0,0 +1,97 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'fragments.var.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$gPageInfoFragmentVarsSerializer = + new _$GPageInfoFragmentVarsSerializer(); + +class _$GPageInfoFragmentVarsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPageInfoFragmentVars, + _$GPageInfoFragmentVars + ]; + @override + final String wireName = 'GPageInfoFragmentVars'; + + @override + Iterable serialize( + Serializers serializers, GPageInfoFragmentVars object, + {FullType specifiedType = FullType.unspecified}) { + return []; + } + + @override + GPageInfoFragmentVars deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + return new GPageInfoFragmentVarsBuilder().build(); + } +} + +class _$GPageInfoFragmentVars extends GPageInfoFragmentVars { + factory _$GPageInfoFragmentVars( + [void Function(GPageInfoFragmentVarsBuilder)? updates]) => + (new GPageInfoFragmentVarsBuilder()..update(updates))._build(); + + _$GPageInfoFragmentVars._() : super._(); + + @override + GPageInfoFragmentVars rebuild( + void Function(GPageInfoFragmentVarsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPageInfoFragmentVarsBuilder toBuilder() => + new GPageInfoFragmentVarsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPageInfoFragmentVars; + } + + @override + int get hashCode { + return 859052789; + } + + @override + String toString() { + return newBuiltValueToStringHelper(r'GPageInfoFragmentVars').toString(); + } +} + +class GPageInfoFragmentVarsBuilder + implements Builder { + _$GPageInfoFragmentVars? _$v; + + GPageInfoFragmentVarsBuilder(); + + @override + void replace(GPageInfoFragmentVars other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPageInfoFragmentVars; + } + + @override + void update(void Function(GPageInfoFragmentVarsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPageInfoFragmentVars build() => _build(); + + _$GPageInfoFragmentVars _build() { + final _$result = _$v ?? new _$GPageInfoFragmentVars._(); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/schema.ast.gql.dart b/lib/src/graphql/__generated__/schema.ast.gql.dart new file mode 100644 index 00000000..323ad956 --- /dev/null +++ b/lib/src/graphql/__generated__/schema.ast.gql.dart @@ -0,0 +1,15994 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:gql/ast.dart' as _i1; + +const specifiedBy = _i1.DirectiveDefinitionNode( + name: _i1.NameNode(value: 'specifiedBy'), + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + locations: [_i1.DirectiveLocation.scalar], + repeatable: false, +); +const oneOf = _i1.DirectiveDefinitionNode( + name: _i1.NameNode(value: 'oneOf'), + args: [], + locations: [_i1.DirectiveLocation.inputObject], + repeatable: false, +); +const AboutServerPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'AboutServerPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'buildTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'buildType'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'discord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'github'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'revision'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'version'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const AboutWebUI = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'AboutWebUI'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const BackupRestoreState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'BackupRestoreState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IDLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SUCCESS'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FAILURE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'RESTORING_CATEGORIES'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'RESTORING_MANGA'), + directives: [], + ), + ], +); +const BackupRestoreStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaProgress'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreState'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalManga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const BindTrackInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BindTrackInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const BindTrackPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BindTrackPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + ), + ], +); +const BooleanFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CategoryConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CategoryEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + ], +); +const CategoryFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CategoryMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + ], +); +const CategoryMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const CategoryNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const CategoryOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ORDER'), + directives: [], + ), + ], +); +const CategoryOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CategoryType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CategoryType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'includeInDownload'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'includeInUpdate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const ChapterConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterNumber'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'fetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isDownloaded'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastReadAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pageCount'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'scanlator'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceOrder'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'uploadDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ChapterEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + ], +); +const ChapterFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterNumber'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FloatFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'fetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isDownloaded'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastReadAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pageCount'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'scanlator'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceOrder'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'uploadDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ChapterMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + ], +); +const ChapterMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const ChapterNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const ChapterOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SOURCE_ORDER'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'UPLOAD_DATE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'CHAPTER_NUMBER'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LAST_READ_AT'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FETCHED_AT'), + directives: [], + ), + ], +); +const ChapterOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ChapterType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ChapterType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapterNumber'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchedAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isDownloaded'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastReadAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'scanlator'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sourceOrder'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'uploadDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const CheckBoxFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CheckBoxFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const CheckBoxPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CheckBoxPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const CheckForServerUpdatesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CheckForServerUpdatesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const ClearCachedImagesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearCachedImagesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'cachedPages'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'cachedThumbnails'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'downloadedThumbnails'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ClearCachedImagesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearCachedImagesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cachedPages'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cachedThumbnails'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadedThumbnails'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + ], +); +const ClearDownloaderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearDownloaderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const ClearDownloaderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ClearDownloaderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const CreateBackupInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateBackupInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeCategories'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CreateBackupPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateBackupPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const CreateCategoryInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateCategoryInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInDownload'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const CreateCategoryPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'CreateCategoryPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const Cursor = _i1.ScalarTypeDefinitionNode( + name: _i1.NameNode(value: 'Cursor'), + directives: [], +); +const DeleteCategoryInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const DeleteCategoryMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteCategoryMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteCategoryPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteCategoryPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const DeleteChapterMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteChapterMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteChapterMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteChapterMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteDownloadedChapterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteDownloadedChapterPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const DeleteDownloadedChaptersInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteDownloadedChaptersPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const DeleteGlobalMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteGlobalMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteMangaMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteMangaMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteMangaMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteMangaMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: false, + ), + ), + ], +); +const DeleteSourceMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteSourceMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DeleteSourceMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DeleteSourceMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + ), + ), + ], +); +const DequeueChapterDownloadInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DequeueChapterDownloadPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const DequeueChapterDownloadsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const DequeueChapterDownloadsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const DoubleFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DoubleFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const DownloadChangedInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadChangedInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'maxUpdates'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const DownloadEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + ), + ], +); +const DownloaderState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloaderState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'STARTED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'STOPPED'), + directives: [], + ), + ], +); +const DownloadNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const DownloadState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'QUEUED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DOWNLOADING'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FINISHED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ERROR'), + directives: [], + ), + ], +); +const DownloadStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'queue'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloaderState'), + isNonNull: true, + ), + ), + ], +); +const DownloadType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'position'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'progress'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadState'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tries'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const DownloadUpdate = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadUpdate'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'download'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'type'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadUpdateType'), + isNonNull: true, + ), + ), + ], +); +const DownloadUpdates = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadUpdates'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initial'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'omittedUpdates'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloaderState'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updates'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadUpdate'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const DownloadUpdateType = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'DownloadUpdateType'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'QUEUED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DEQUEUED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PAUSED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'STOPPED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PROGRESS'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FINISHED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ERROR'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'POSITION'), + directives: [], + ), + ], +); +const Edge = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'Edge'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Node'), + isNonNull: true, + ), + ), + ], +); +const EditTextPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EditTextPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogMessage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogTitle'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'text'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const EnqueueChapterDownloadInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const EnqueueChapterDownloadPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const EnqueueChapterDownloadsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const EnqueueChapterDownloadsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const ExtensionConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'apkName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'hasUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isInstalled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isObsolete'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'repo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionCode'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ExtensionEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + ], +); +const ExtensionFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'apkName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'hasUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isInstalled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isObsolete'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'repo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionCode'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'versionName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ExtensionNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const ExtensionOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PKG_NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'APK_NAME'), + directives: [], + ), + ], +); +const ExtensionOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const ExtensionType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ExtensionType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'apkName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasUpdate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isInstalled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isObsolete'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'repo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'versionCode'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'versionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceNodeList'), + isNonNull: true, + ), + ), + ], +); +const FetchChapterPagesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChapterPagesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const FetchChapterPagesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChapterPagesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pages'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const FetchChaptersInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChaptersInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const FetchChaptersPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchChaptersPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const FetchExtensionsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchExtensionsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const FetchExtensionsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchExtensionsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensions'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const FetchMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const FetchMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const FetchSourceMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchSourceMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filters'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FilterChangeInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'page'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'query'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'type'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaType'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const FetchSourceMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchSourceMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasNextPage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const FetchSourceMangaType = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchSourceMangaType'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SEARCH'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'POPULAR'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LATEST'), + directives: [], + ), + ], +); +const FetchTrackInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchTrackInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'recordId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const FetchTrackPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FetchTrackPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + ), + ], +); +const Filter = _i1.UnionTypeDefinitionNode( + name: _i1.NameNode(value: 'Filter'), + directives: [], + types: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GroupFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'HeaderFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SelectFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SeparatorFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TextFilter'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriStateFilter'), + isNonNull: false, + ), + ], +); +const FilterChangeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FilterChangeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'checkBoxState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'groupChange'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FilterChangeInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'position'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'selectState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sortState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortSelectionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'textState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'triState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriState'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const FloatFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'FloatFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const GlobalMetaNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GlobalMetaNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const GlobalMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const GlobalMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GlobalMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const GroupFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'GroupFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'filters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Filter'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const HeaderFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'HeaderFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ) + ], +); +const IncludeOrExclude = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'EXCLUDE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'INCLUDE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'UNSET'), + directives: [], + ), + ], +); +const InstallExternalExtensionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'InstallExternalExtensionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'extensionFile'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const InstallExternalExtensionPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'InstallExternalExtensionPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + ], +); +const IntFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'IntFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const LastUpdateTimestampPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LastUpdateTimestampPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'timestamp'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ) + ], +); +const ListPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ListPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entries'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entryValues'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const LoginTrackerCredentialsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'password'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'username'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const LoginTrackerCredentialsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const LoginTrackerOAuthInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'callbackUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const LoginTrackerOAuthPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const LogoutTrackerInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LogoutTrackerInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const LogoutTrackerPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LogoutTrackerPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const LongFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'LongFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const LongString = _i1.ScalarTypeDefinitionNode( + name: _i1.NameNode(value: 'LongString'), + directives: [], +); +const MangaConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'artist'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'author'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryIds'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'description'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'genre'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibraryAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'initialized'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MangaEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const MangaFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'artist'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'author'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categoryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'description'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'genre'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibraryAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'initialized'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatusFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MangaMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const MangaMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const MangaNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const MangaOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TITLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IN_LIBRARY_AT'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LAST_FETCHED_AT'), + directives: [], + ), + ], +); +const MangaOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MangaStatus = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaStatus'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'UNKNOWN'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ONGOING'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'COMPLETED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LICENSED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PUBLISHING_FINISHED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'CANCELLED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ON_HIATUS'), + directives: [], + ), + ], +); +const MangaStatusFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaStatusFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MangaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MangaType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'artist'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'author'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chaptersLastFetchedAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'description'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'genre'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'inLibraryAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialized'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastFetchedAt'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'realUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'thumbnailUrlLastFetched'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStrategy'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStrategy'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'url'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'age'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'bookmarkCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chaptersAge'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'firstUnreadChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasDuplicateChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastReadChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'latestFetchedChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'latestReadChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'latestUploadedChapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecords'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'unreadCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const MetaConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MetaEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + ), + ], +); +const MetaFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MetaOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'KEY'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'VALUE'), + directives: [], + ), + ], +); +const MetaOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const MetaType = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'MetaType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const MultiSelectListPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'MultiSelectListPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogMessage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dialogTitle'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entries'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'entryValues'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const Mutation = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'Mutation'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'createBackup'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateBackupInput'), + isNonNull: false, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateBackupPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'restoreBackup'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'RestoreBackupInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'RestoreBackupPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'createCategory'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateCategoryInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CreateCategoryPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteCategory'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteCategoryMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteCategoryMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setCategoryMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetCategoryMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetCategoryMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoriesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoriesPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategory'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategoryOrder'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangaCategories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangasCategories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteChapterMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteChapterMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteChapterMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchChapterPages'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChapterPagesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChapterPagesPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchChapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChaptersInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchChaptersPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setChapterMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetChapterMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetChapterMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateChapter'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateChapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChaptersInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChaptersPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clearDownloader'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearDownloaderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearDownloaderPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteDownloadedChapter'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChapterPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteDownloadedChapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteDownloadedChaptersPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dequeueChapterDownload'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'dequeueChapterDownloads'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DequeueChapterDownloadsPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'enqueueChapterDownload'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'enqueueChapterDownloads'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EnqueueChapterDownloadsPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'reorderChapterDownload'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startDownloader'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StartDownloaderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StartDownloaderPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'stopDownloader'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StopDownloaderInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StopDownloaderPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchExtensions'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchExtensionsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchExtensionsPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'installExternalExtension'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'InstallExternalExtensionInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'InstallExternalExtensionPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateExtension'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateExtensions'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionsPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clearCachedImages'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearCachedImagesInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ClearCachedImagesPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'resetWebUIUpdateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateWebUI'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdatePayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteMangaMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteMangaMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteMangaMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchMangaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setMangaMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetMangaMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetMangaMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangasPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteGlobalMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteGlobalMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setGlobalMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetGlobalMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetGlobalMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'resetSettings'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ResetSettingsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ResetSettingsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setSettings'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSettingsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSettingsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'deleteSourceMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteSourceMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DeleteSourceMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchSourceManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchSourceMangaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'setSourceMeta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSourceMetaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SetSourceMetaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateSourcePreference'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateSourcePreferenceInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateSourcePreferencePayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'bindTrack'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BindTrackInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BindTrackPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'fetchTrack'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchTrackInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'FetchTrackPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'loginTrackerCredentials'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerCredentialsPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'loginTrackerOAuth'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LoginTrackerOAuthPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'logoutTracker'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LogoutTrackerInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LogoutTrackerPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackProgress'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackProgressInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackProgressPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'unbindTrack'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UnbindTrackInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UnbindTrackPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateTrack'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateTrackInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateTrackPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateCategoryManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateLibraryManga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaPayload'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStop'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStopInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStopPayload'), + isNonNull: true, + ), + ), + ], +); +const Node = _i1.UnionTypeDefinitionNode( + name: _i1.NameNode(value: 'Node'), + directives: [], + types: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadUpdate'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PartialSettingsType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: false, + ), + ], +); +const NodeList = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'NodeList'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Node'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const PageInfo = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'PageInfo'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'endCursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasNextPage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'hasPreviousPage'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startCursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + ), + ], +); +const PartialSettingsType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'PartialSettingsType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Settings'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadAheadLimit'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: + 'Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadIgnoreReUploads'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrAsResponseFallback'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: 'Removed - does not do anything', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFileSize'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFiles'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFolderSize'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + ], +); +const PartialSettingsTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'PartialSettingsTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadIgnoreReUploads'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrAsResponseFallback'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'maxLogFileSize'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'maxLogFiles'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'maxLogFolderSize'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const Preference = _i1.UnionTypeDefinitionNode( + name: _i1.NameNode(value: 'Preference'), + directives: [], + types: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckBoxPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'EditTextPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ListPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MultiSelectListPreference'), + isNonNull: false, + ), + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SwitchPreference'), + isNonNull: false, + ), + ], +); +const Query = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'Query'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'restoreStatus'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'validateBackup'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ValidateBackupInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ValidateBackupResult'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'pkgName'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensions'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'aboutServer'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'AboutServerPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'aboutWebUI'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'AboutWebUI'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'checkForServerUpdates'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CheckForServerUpdatesPayload'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'checkForWebUIUpdate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateCheck'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'getWebUIUpdateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'metas'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sources'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'searchTracker'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SearchTrackerInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SearchTrackerPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecords'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'filter'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackers'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'condition'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerConditionInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderBy'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerOrderBy'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'orderByType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'order'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerOrderInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'before'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'after'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'first'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'last'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'offset'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastUpdateTimestamp'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LastUpdateTimestampPayload'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const ReorderChapterDownloadInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'chapterId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'to'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const ReorderChapterDownloadPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ReorderChapterDownloadPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const ResetSettingsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ResetSettingsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const ResetSettingsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ResetSettingsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: true, + ), + ), + ], +); +const RestoreBackupInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'RestoreBackupInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backup'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const RestoreBackupPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'RestoreBackupPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BackupRestoreStatus'), + isNonNull: false, + ), + ), + ], +); +const SearchTrackerInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SearchTrackerInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'query'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SearchTrackerPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SearchTrackerPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackSearches'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackSearchType'), + isNonNull: true, + ), + isNonNull: true, + ), + ) + ], +); +const SelectFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SelectFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'values'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const SeparatorFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SeparatorFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ) + ], +); +const SetCategoryMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetCategoryMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetCategoryMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetCategoryMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetChapterMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetChapterMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetChapterMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetChapterMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetGlobalMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetGlobalMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetGlobalMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetGlobalMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'GlobalMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetMangaMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetMangaMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetMangaMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetMangaMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaMetaType'), + isNonNull: true, + ), + ), + ], +); +const SetSettingsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSettingsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PartialSettingsTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetSettingsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSettingsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'settings'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SettingsType'), + isNonNull: true, + ), + ), + ], +); +const SetSourceMetaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSourceMetaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaTypeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SetSourceMetaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SetSourceMetaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: true, + ), + ), + ], +); +const Settings = _i1.InterfaceTypeDefinitionNode( + name: _i1.NameNode(value: 'Settings'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadAheadLimit'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: + 'Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadIgnoreReUploads'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrAsResponseFallback'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: 'Removed - does not do anything', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFileSize'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFiles'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFolderSize'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + ), + ], +); +const SettingsType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SettingsType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Settings'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadAheadLimit'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: + 'Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadIgnoreReUploads'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'autoDownloadNewChaptersLimit'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTTL'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'backupTime'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'basicAuthUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'debugLogsEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadAsCbz'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadsPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'electronPath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeCompleted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeEntryWithUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeNotStarted'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'excludeUnreadChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensionRepos'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrAsResponseFallback'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrSessionTtl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrTimeout'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'flareSolverrUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'globalUpdateInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'gqlDebugLogsEnabled'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: 'Removed - does not do anything', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'initialOpenInBrowserEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ip'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'localSourcePath'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFileSize'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFiles'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxLogFolderSize'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'maxSourcesInParallel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'port'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyHost'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPassword'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyPort'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyUsername'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'socksProxyVersion'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'systemTrayEnabled'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateMangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIChannel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIChannel'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIFlavor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIInterface'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIInterface'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateCheckInterval'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + ], +); +const SortFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SortFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortSelection'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'values'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const SortOrder = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'SortOrder'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ASC'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DESC'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ASC_NULLS_FIRST'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DESC_NULLS_FIRST'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ASC_NULLS_LAST'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DESC_NULLS_LAST'), + directives: [], + ), + ], +); +const SortSelection = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SortSelection'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'ascending'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'index'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const SortSelectionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SortSelectionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ascending'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'index'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SourceConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const SourceEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + ], +); +const SourceFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'BooleanFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const SourceMetaType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceMetaType'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MetaType'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + ], +); +const SourceMetaTypeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceMetaTypeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'sourceId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const SourceNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const SourceOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LANG'), + directives: [], + ), + ], +); +const SourceOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const SourcePreferenceChangeInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourcePreferenceChangeInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'checkBoxState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'editTextState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'listState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'multiSelectState'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'position'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'switchState'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const SourceType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SourceType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'displayName'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'iconUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isConfigurable'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isNsfw'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lang'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'supportsLatest'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'filters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Filter'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'meta'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceMetaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'preferences'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Preference'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const StartDownloaderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StartDownloaderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const StartDownloaderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StartDownloaderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const StopDownloaderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StopDownloaderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const StopDownloaderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StopDownloaderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + ], +); +const StringFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'StringFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'distinctFromInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWithAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWithAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWithInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'endsWithInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'equalTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'greaterThanOrEqualToInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'in'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inInsensitive'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includes'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includesAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includesAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includesInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includesInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includesInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isNull'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThan'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lessThanOrEqualToInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'like'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'likeAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'likeAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'likeInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'likeInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'likeInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFrom'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notDistinctFromInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWithAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWithAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWithInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEndsWithInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualTo'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notEqualToAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIn'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notInInsensitive'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludes'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludesAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludesAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludesInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludesInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notIncludesInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLike'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLikeAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLikeAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLikeInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLikeInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notLikeInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWithAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWithAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWithInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'notStartsWithInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWith'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWithAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWithAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWithInsensitive'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWithInsensitiveAll'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startsWithInsensitiveAny'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const Subscription = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'Subscription'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadChanged'), + directives: [ + _i1.DirectiveNode( + name: _i1.NameNode(value: 'deprecated'), + arguments: [ + _i1.ArgumentNode( + name: _i1.NameNode(value: 'reason'), + value: _i1.StringValueNode( + value: + 'Replaced width downloadStatusChanged, replace with downloadStatusChanged(input)', + isBlock: false, + ), + ) + ], + ) + ], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'downloadStatusChanged'), + directives: [], + args: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'input'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadChangedInput'), + isNonNull: true, + ), + defaultValue: null, + ) + ], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DownloadUpdates'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'webUIUpdateStatusChange'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatusChanged'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const SwitchPreference = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'SwitchPreference'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'currentValue'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'key'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'visible'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const TextFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TextFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const TrackerConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'icon'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackerEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const TrackerNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const TrackerOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'NAME'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IS_LOGGED_IN'), + directives: [], + ), + ], +); +const TrackerOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackerType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackerType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'authUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'icon'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isLoggedIn'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'supportsTrackDeletion'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isTokenExpired'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'scores'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'statuses'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackStatusType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecords'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + isNonNull: true, + ), + ), + ], +); +const TrackProgressInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackProgressInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const TrackProgressPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackProgressPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecords'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const TrackRecordConditionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordConditionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'libraryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'score'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackRecordEdge = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordEdge'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Edge'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'cursor'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Cursor'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'node'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + ), + ], +); +const TrackRecordFilterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'and'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DoubleFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'libraryId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'not'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'or'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordFilterInput'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'remoteUrl'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'score'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'DoubleFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'StringFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IntFilterInput'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackRecordNodeList = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordNodeList'), + directives: [], + interfaces: [ + _i1.NamedTypeNode( + name: _i1.NameNode(value: 'NodeList'), + isNonNull: false, + ) + ], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'edges'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordEdge'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'nodes'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pageInfo'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'PageInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalCount'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const TrackRecordOrderBy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordOrderBy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'MANGA_ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TRACKER_ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'REMOTE_ID'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TITLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'LAST_CHAPTER_READ'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'TOTAL_CHAPTERS'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'SCORE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'START_DATE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FINISH_DATE'), + directives: [], + ), + ], +); +const TrackRecordOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'by'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordOrderBy'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'byType'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SortOrder'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const TrackRecordType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackRecordType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'libraryId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangaId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'remoteUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'score'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'displayScore'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const TrackSearchType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackSearchType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'coverUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'publishingStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'publishingType'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'remoteId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'summary'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'title'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'totalChapters'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackerId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackingUrl'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tracker'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackerType'), + isNonNull: true, + ), + ), + ], +); +const TrackStatusType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TrackStatusType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'value'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + ], +); +const TriState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'TriState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IGNORE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'INCLUDE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'EXCLUDE'), + directives: [], + ), + ], +); +const TriStateFilter = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'TriStateFilter'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TriState'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const UnbindTrackInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UnbindTrackInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'deleteRemoteTrack'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'recordId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UnbindTrackPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UnbindTrackPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: false, + ), + ), + ], +); +const UpdateCategoriesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoriesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoriesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoriesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateCategoryInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateCategoryPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const UpdateCategoryOrderInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'position'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryOrderPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryOrderPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateCategoryPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'default'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInDownload'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'includeInUpdate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'IncludeOrExclude'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateCategoryPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateCategoryPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'category'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateChapterInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChapterInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateChapterPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChapterPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isBookmarked'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'isRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastPageRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateChapterPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChapterPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapter'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateChaptersInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChaptersInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateChapterPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateChaptersPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateChaptersPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'chapters'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ChapterType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + ], +); +const UpdateExtensionInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateExtensionPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'install'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'uninstall'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'update'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateExtensionPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extension'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: false, + ), + ), + ], +); +const UpdateExtensionsInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionsInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateExtensionPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateExtensionsPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateExtensionsPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'extensions'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ExtensionType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const UpdateLibraryMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const UpdateLibraryMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateLibraryMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const UpdateMangaCategoriesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangaCategoriesPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'addToCategories'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clearCategories'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'removeFromCategories'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateMangaCategoriesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const UpdateMangaInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangaPatchInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaPatchInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'inLibrary'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const UpdateMangaPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangaPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'manga'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + ), + ], +); +const UpdateMangasCategoriesInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaCategoriesPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangasCategoriesPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasCategoriesPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const UpdateMangasInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'ids'), + directives: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'patch'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateMangaPatchInput'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateMangasPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateMangasPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaType'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const UpdateSourcePreferenceInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateSourcePreferenceInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'change'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourcePreferenceChangeInput'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + defaultValue: null, + ), + ], +); +const UpdateSourcePreferencePayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateSourcePreferencePayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'preferences'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Preference'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'source'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'SourceType'), + isNonNull: true, + ), + ), + ], +); +const UpdateState = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateState'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'IDLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'DOWNLOADING'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'FINISHED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ERROR'), + directives: [], + ), + ], +); +const UpdateStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'completeJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'failedJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'isRunning'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'pendingJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'runningJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'skippedCategories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusCategoryType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'skippedJobs'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updatingCategories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateStatusCategoryType'), + isNonNull: true, + ), + ), + ], +); +const UpdateStatusCategoryType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStatusCategoryType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'categories'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'CategoryNodeList'), + isNonNull: true, + ), + ) + ], +); +const UpdateStatusType = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStatusType'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'mangas'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'MangaNodeList'), + isNonNull: true, + ), + ) + ], +); +const UpdateStopInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStopInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const UpdateStopPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStopPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ) + ], +); +const UpdateStrategy = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateStrategy'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ALWAYS_UPDATE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ONLY_FETCH_ONCE'), + directives: [], + ), + ], +); +const UpdateTrackInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateTrackInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'finishDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'lastChapterRead'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Float'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'recordId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'scoreString'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'startDate'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: false, + ), + defaultValue: null, + ), + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'status'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: false, + ), + defaultValue: null, + ), + ], +); +const UpdateTrackPayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'UpdateTrackPayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'trackRecord'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'TrackRecordType'), + isNonNull: false, + ), + ), + ], +); +const Upload = _i1.ScalarTypeDefinitionNode( + name: _i1.NameNode(value: 'Upload'), + directives: [], +); +const ValidateBackupInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ValidateBackupInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'backup'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Upload'), + isNonNull: true, + ), + defaultValue: null, + ) + ], +); +const ValidateBackupResult = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ValidateBackupResult'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'missingSources'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ValidateBackupSource'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'missingTrackers'), + directives: [], + args: [], + type: _i1.ListTypeNode( + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'ValidateBackupTracker'), + isNonNull: true, + ), + isNonNull: true, + ), + ), + ], +); +const ValidateBackupSource = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ValidateBackupSource'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'id'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'LongString'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const ValidateBackupTracker = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'ValidateBackupTracker'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'name'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ) + ], +); +const WebUIChannel = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIChannel'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'BUNDLED'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'STABLE'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'PREVIEW'), + directives: [], + ), + ], +); +const WebUIFlavor = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIFlavor'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'WEBUI'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'VUI'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'CUSTOM'), + directives: [], + ), + ], +); +const WebUIInterface = _i1.EnumTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIInterface'), + directives: [], + values: [ + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'BROWSER'), + directives: [], + ), + _i1.EnumValueDefinitionNode( + name: _i1.NameNode(value: 'ELECTRON'), + directives: [], + ), + ], +); +const WebUIUpdateCheck = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateCheck'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateAvailable'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Boolean'), + isNonNull: true, + ), + ), + ], +); +const WebUIUpdateInfo = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateInfo'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'channel'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'tag'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: true, + ), + ), + ], +); +const WebUIUpdateInput = _i1.InputObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateInput'), + directives: [], + fields: [ + _i1.InputValueDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + defaultValue: null, + ) + ], +); +const WebUIUpdatePayload = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdatePayload'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'clientMutationId'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'String'), + isNonNull: false, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'updateStatus'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + isNonNull: true, + ), + ), + ], +); +const WebUIUpdateStatus = _i1.ObjectTypeDefinitionNode( + name: _i1.NameNode(value: 'WebUIUpdateStatus'), + directives: [], + interfaces: [], + fields: [ + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'info'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'WebUIUpdateInfo'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'progress'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'Int'), + isNonNull: true, + ), + ), + _i1.FieldDefinitionNode( + name: _i1.NameNode(value: 'state'), + directives: [], + args: [], + type: _i1.NamedTypeNode( + name: _i1.NameNode(value: 'UpdateState'), + isNonNull: true, + ), + ), + ], +); +const document = _i1.DocumentNode(definitions: [ + specifiedBy, + oneOf, + AboutServerPayload, + AboutWebUI, + BackupRestoreState, + BackupRestoreStatus, + BindTrackInput, + BindTrackPayload, + BooleanFilterInput, + CategoryConditionInput, + CategoryEdge, + CategoryFilterInput, + CategoryMetaType, + CategoryMetaTypeInput, + CategoryNodeList, + CategoryOrderBy, + CategoryOrderInput, + CategoryType, + ChapterConditionInput, + ChapterEdge, + ChapterFilterInput, + ChapterMetaType, + ChapterMetaTypeInput, + ChapterNodeList, + ChapterOrderBy, + ChapterOrderInput, + ChapterType, + CheckBoxFilter, + CheckBoxPreference, + CheckForServerUpdatesPayload, + ClearCachedImagesInput, + ClearCachedImagesPayload, + ClearDownloaderInput, + ClearDownloaderPayload, + CreateBackupInput, + CreateBackupPayload, + CreateCategoryInput, + CreateCategoryPayload, + Cursor, + DeleteCategoryInput, + DeleteCategoryMetaInput, + DeleteCategoryMetaPayload, + DeleteCategoryPayload, + DeleteChapterMetaInput, + DeleteChapterMetaPayload, + DeleteDownloadedChapterInput, + DeleteDownloadedChapterPayload, + DeleteDownloadedChaptersInput, + DeleteDownloadedChaptersPayload, + DeleteGlobalMetaInput, + DeleteGlobalMetaPayload, + DeleteMangaMetaInput, + DeleteMangaMetaPayload, + DeleteSourceMetaInput, + DeleteSourceMetaPayload, + DequeueChapterDownloadInput, + DequeueChapterDownloadPayload, + DequeueChapterDownloadsInput, + DequeueChapterDownloadsPayload, + DoubleFilterInput, + DownloadChangedInput, + DownloadEdge, + DownloaderState, + DownloadNodeList, + DownloadState, + DownloadStatus, + DownloadType, + DownloadUpdate, + DownloadUpdates, + DownloadUpdateType, + Edge, + EditTextPreference, + EnqueueChapterDownloadInput, + EnqueueChapterDownloadPayload, + EnqueueChapterDownloadsInput, + EnqueueChapterDownloadsPayload, + ExtensionConditionInput, + ExtensionEdge, + ExtensionFilterInput, + ExtensionNodeList, + ExtensionOrderBy, + ExtensionOrderInput, + ExtensionType, + FetchChapterPagesInput, + FetchChapterPagesPayload, + FetchChaptersInput, + FetchChaptersPayload, + FetchExtensionsInput, + FetchExtensionsPayload, + FetchMangaInput, + FetchMangaPayload, + FetchSourceMangaInput, + FetchSourceMangaPayload, + FetchSourceMangaType, + FetchTrackInput, + FetchTrackPayload, + Filter, + FilterChangeInput, + FloatFilterInput, + GlobalMetaNodeList, + GlobalMetaType, + GlobalMetaTypeInput, + GroupFilter, + HeaderFilter, + IncludeOrExclude, + InstallExternalExtensionInput, + InstallExternalExtensionPayload, + IntFilterInput, + LastUpdateTimestampPayload, + ListPreference, + LoginTrackerCredentialsInput, + LoginTrackerCredentialsPayload, + LoginTrackerOAuthInput, + LoginTrackerOAuthPayload, + LogoutTrackerInput, + LogoutTrackerPayload, + LongFilterInput, + LongString, + MangaConditionInput, + MangaEdge, + MangaFilterInput, + MangaMetaType, + MangaMetaTypeInput, + MangaNodeList, + MangaOrderBy, + MangaOrderInput, + MangaStatus, + MangaStatusFilterInput, + MangaType, + MetaConditionInput, + MetaEdge, + MetaFilterInput, + MetaOrderBy, + MetaOrderInput, + MetaType, + MultiSelectListPreference, + Mutation, + Node, + NodeList, + PageInfo, + PartialSettingsType, + PartialSettingsTypeInput, + Preference, + Query, + ReorderChapterDownloadInput, + ReorderChapterDownloadPayload, + ResetSettingsInput, + ResetSettingsPayload, + RestoreBackupInput, + RestoreBackupPayload, + SearchTrackerInput, + SearchTrackerPayload, + SelectFilter, + SeparatorFilter, + SetCategoryMetaInput, + SetCategoryMetaPayload, + SetChapterMetaInput, + SetChapterMetaPayload, + SetGlobalMetaInput, + SetGlobalMetaPayload, + SetMangaMetaInput, + SetMangaMetaPayload, + SetSettingsInput, + SetSettingsPayload, + SetSourceMetaInput, + SetSourceMetaPayload, + Settings, + SettingsType, + SortFilter, + SortOrder, + SortSelection, + SortSelectionInput, + SourceConditionInput, + SourceEdge, + SourceFilterInput, + SourceMetaType, + SourceMetaTypeInput, + SourceNodeList, + SourceOrderBy, + SourceOrderInput, + SourcePreferenceChangeInput, + SourceType, + StartDownloaderInput, + StartDownloaderPayload, + StopDownloaderInput, + StopDownloaderPayload, + StringFilterInput, + Subscription, + SwitchPreference, + TextFilter, + TrackerConditionInput, + TrackerEdge, + TrackerNodeList, + TrackerOrderBy, + TrackerOrderInput, + TrackerType, + TrackProgressInput, + TrackProgressPayload, + TrackRecordConditionInput, + TrackRecordEdge, + TrackRecordFilterInput, + TrackRecordNodeList, + TrackRecordOrderBy, + TrackRecordOrderInput, + TrackRecordType, + TrackSearchType, + TrackStatusType, + TriState, + TriStateFilter, + UnbindTrackInput, + UnbindTrackPayload, + UpdateCategoriesInput, + UpdateCategoriesPayload, + UpdateCategoryInput, + UpdateCategoryMangaInput, + UpdateCategoryMangaPayload, + UpdateCategoryOrderInput, + UpdateCategoryOrderPayload, + UpdateCategoryPatchInput, + UpdateCategoryPayload, + UpdateChapterInput, + UpdateChapterPatchInput, + UpdateChapterPayload, + UpdateChaptersInput, + UpdateChaptersPayload, + UpdateExtensionInput, + UpdateExtensionPatchInput, + UpdateExtensionPayload, + UpdateExtensionsInput, + UpdateExtensionsPayload, + UpdateLibraryMangaInput, + UpdateLibraryMangaPayload, + UpdateMangaCategoriesInput, + UpdateMangaCategoriesPatchInput, + UpdateMangaCategoriesPayload, + UpdateMangaInput, + UpdateMangaPatchInput, + UpdateMangaPayload, + UpdateMangasCategoriesInput, + UpdateMangasCategoriesPayload, + UpdateMangasInput, + UpdateMangasPayload, + UpdateSourcePreferenceInput, + UpdateSourcePreferencePayload, + UpdateState, + UpdateStatus, + UpdateStatusCategoryType, + UpdateStatusType, + UpdateStopInput, + UpdateStopPayload, + UpdateStrategy, + UpdateTrackInput, + UpdateTrackPayload, + Upload, + ValidateBackupInput, + ValidateBackupResult, + ValidateBackupSource, + ValidateBackupTracker, + WebUIChannel, + WebUIFlavor, + WebUIInterface, + WebUIUpdateCheck, + WebUIUpdateInfo, + WebUIUpdateInput, + WebUIUpdatePayload, + WebUIUpdateStatus, +]); diff --git a/lib/src/graphql/__generated__/schema.schema.gql.dart b/lib/src/graphql/__generated__/schema.schema.gql.dart new file mode 100644 index 00000000..b7b909db --- /dev/null +++ b/lib/src/graphql/__generated__/schema.schema.gql.dart @@ -0,0 +1,3556 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; +import 'package:gql_code_builder_serializers/gql_code_builder_serializers.dart' + as _i2; +import 'package:http/http.dart' as _i3; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/serializers.gql.dart' + as _i1; + +part 'schema.schema.gql.g.dart'; + +class GBackupRestoreState extends EnumClass { + const GBackupRestoreState._(String name) : super(name); + + static const GBackupRestoreState IDLE = _$gBackupRestoreStateIDLE; + + static const GBackupRestoreState SUCCESS = _$gBackupRestoreStateSUCCESS; + + static const GBackupRestoreState FAILURE = _$gBackupRestoreStateFAILURE; + + static const GBackupRestoreState RESTORING_CATEGORIES = + _$gBackupRestoreStateRESTORING_CATEGORIES; + + static const GBackupRestoreState RESTORING_MANGA = + _$gBackupRestoreStateRESTORING_MANGA; + + static Serializer get serializer => + _$gBackupRestoreStateSerializer; + + static BuiltSet get values => + _$gBackupRestoreStateValues; + + static GBackupRestoreState valueOf(String name) => + _$gBackupRestoreStateValueOf(name); +} + +abstract class GBindTrackInput + implements Built { + GBindTrackInput._(); + + factory GBindTrackInput([void Function(GBindTrackInputBuilder b) updates]) = + _$GBindTrackInput; + + String? get clientMutationId; + int get mangaId; + GLongString get remoteId; + int get trackerId; + static Serializer get serializer => + _$gBindTrackInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GBindTrackInput.serializer, + this, + ) as Map); + + static GBindTrackInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBindTrackInput.serializer, + json, + ); +} + +abstract class GBooleanFilterInput + implements Built { + GBooleanFilterInput._(); + + factory GBooleanFilterInput( + [void Function(GBooleanFilterInputBuilder b) updates]) = + _$GBooleanFilterInput; + + bool? get distinctFrom; + BuiltList? get distinctFromAll; + BuiltList? get distinctFromAny; + bool? get equalTo; + bool? get greaterThan; + bool? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + bool? get lessThan; + bool? get lessThanOrEqualTo; + bool? get notDistinctFrom; + bool? get notEqualTo; + BuiltList? get notEqualToAll; + BuiltList? get notEqualToAny; + BuiltList? get notIn; + static Serializer get serializer => + _$gBooleanFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GBooleanFilterInput.serializer, + this, + ) as Map); + + static GBooleanFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GBooleanFilterInput.serializer, + json, + ); +} + +abstract class GCategoryConditionInput + implements Built { + GCategoryConditionInput._(); + + factory GCategoryConditionInput( + [void Function(GCategoryConditionInputBuilder b) updates]) = + _$GCategoryConditionInput; + + @BuiltValueField(wireName: 'default') + bool? get Gdefault; + int? get id; + String? get name; + int? get order; + static Serializer get serializer => + _$gCategoryConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryConditionInput.serializer, + this, + ) as Map); + + static GCategoryConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryConditionInput.serializer, + json, + ); +} + +abstract class GCategoryFilterInput + implements Built { + GCategoryFilterInput._(); + + factory GCategoryFilterInput( + [void Function(GCategoryFilterInputBuilder b) updates]) = + _$GCategoryFilterInput; + + BuiltList? get and; + @BuiltValueField(wireName: 'default') + GBooleanFilterInput? get Gdefault; + GIntFilterInput? get id; + GStringFilterInput? get name; + GCategoryFilterInput? get not; + BuiltList? get or; + GIntFilterInput? get order; + static Serializer get serializer => + _$gCategoryFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryFilterInput.serializer, + this, + ) as Map); + + static GCategoryFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryFilterInput.serializer, + json, + ); +} + +abstract class GCategoryMetaTypeInput + implements Built { + GCategoryMetaTypeInput._(); + + factory GCategoryMetaTypeInput( + [void Function(GCategoryMetaTypeInputBuilder b) updates]) = + _$GCategoryMetaTypeInput; + + int get categoryId; + String get key; + String get value; + static Serializer get serializer => + _$gCategoryMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryMetaTypeInput.serializer, + this, + ) as Map); + + static GCategoryMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryMetaTypeInput.serializer, + json, + ); +} + +class GCategoryOrderBy extends EnumClass { + const GCategoryOrderBy._(String name) : super(name); + + static const GCategoryOrderBy ID = _$gCategoryOrderByID; + + static const GCategoryOrderBy NAME = _$gCategoryOrderByNAME; + + static const GCategoryOrderBy ORDER = _$gCategoryOrderByORDER; + + static Serializer get serializer => + _$gCategoryOrderBySerializer; + + static BuiltSet get values => _$gCategoryOrderByValues; + + static GCategoryOrderBy valueOf(String name) => + _$gCategoryOrderByValueOf(name); +} + +abstract class GCategoryOrderInput + implements Built { + GCategoryOrderInput._(); + + factory GCategoryOrderInput( + [void Function(GCategoryOrderInputBuilder b) updates]) = + _$GCategoryOrderInput; + + GCategoryOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gCategoryOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCategoryOrderInput.serializer, + this, + ) as Map); + + static GCategoryOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCategoryOrderInput.serializer, + json, + ); +} + +abstract class GChapterConditionInput + implements Built { + GChapterConditionInput._(); + + factory GChapterConditionInput( + [void Function(GChapterConditionInputBuilder b) updates]) = + _$GChapterConditionInput; + + double? get chapterNumber; + GLongString? get fetchedAt; + int? get id; + bool? get isBookmarked; + bool? get isDownloaded; + bool? get isRead; + int? get lastPageRead; + GLongString? get lastReadAt; + int? get mangaId; + String? get name; + int? get pageCount; + String? get realUrl; + String? get scanlator; + int? get sourceOrder; + GLongString? get uploadDate; + String? get url; + static Serializer get serializer => + _$gChapterConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterConditionInput.serializer, + this, + ) as Map); + + static GChapterConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterConditionInput.serializer, + json, + ); +} + +abstract class GChapterFilterInput + implements Built { + GChapterFilterInput._(); + + factory GChapterFilterInput( + [void Function(GChapterFilterInputBuilder b) updates]) = + _$GChapterFilterInput; + + BuiltList? get and; + GFloatFilterInput? get chapterNumber; + GLongFilterInput? get fetchedAt; + GIntFilterInput? get id; + GBooleanFilterInput? get inLibrary; + GBooleanFilterInput? get isBookmarked; + GBooleanFilterInput? get isDownloaded; + GBooleanFilterInput? get isRead; + GIntFilterInput? get lastPageRead; + GLongFilterInput? get lastReadAt; + GIntFilterInput? get mangaId; + GStringFilterInput? get name; + GChapterFilterInput? get not; + BuiltList? get or; + GIntFilterInput? get pageCount; + GStringFilterInput? get realUrl; + GStringFilterInput? get scanlator; + GIntFilterInput? get sourceOrder; + GLongFilterInput? get uploadDate; + GStringFilterInput? get url; + static Serializer get serializer => + _$gChapterFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterFilterInput.serializer, + this, + ) as Map); + + static GChapterFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterFilterInput.serializer, + json, + ); +} + +abstract class GChapterMetaTypeInput + implements Built { + GChapterMetaTypeInput._(); + + factory GChapterMetaTypeInput( + [void Function(GChapterMetaTypeInputBuilder b) updates]) = + _$GChapterMetaTypeInput; + + int get chapterId; + String get key; + String get value; + static Serializer get serializer => + _$gChapterMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterMetaTypeInput.serializer, + this, + ) as Map); + + static GChapterMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterMetaTypeInput.serializer, + json, + ); +} + +class GChapterOrderBy extends EnumClass { + const GChapterOrderBy._(String name) : super(name); + + static const GChapterOrderBy ID = _$gChapterOrderByID; + + static const GChapterOrderBy SOURCE_ORDER = _$gChapterOrderBySOURCE_ORDER; + + static const GChapterOrderBy NAME = _$gChapterOrderByNAME; + + static const GChapterOrderBy UPLOAD_DATE = _$gChapterOrderByUPLOAD_DATE; + + static const GChapterOrderBy CHAPTER_NUMBER = _$gChapterOrderByCHAPTER_NUMBER; + + static const GChapterOrderBy LAST_READ_AT = _$gChapterOrderByLAST_READ_AT; + + static const GChapterOrderBy FETCHED_AT = _$gChapterOrderByFETCHED_AT; + + static Serializer get serializer => + _$gChapterOrderBySerializer; + + static BuiltSet get values => _$gChapterOrderByValues; + + static GChapterOrderBy valueOf(String name) => _$gChapterOrderByValueOf(name); +} + +abstract class GChapterOrderInput + implements Built { + GChapterOrderInput._(); + + factory GChapterOrderInput( + [void Function(GChapterOrderInputBuilder b) updates]) = + _$GChapterOrderInput; + + GChapterOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gChapterOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GChapterOrderInput.serializer, + this, + ) as Map); + + static GChapterOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GChapterOrderInput.serializer, + json, + ); +} + +abstract class GClearCachedImagesInput + implements Built { + GClearCachedImagesInput._(); + + factory GClearCachedImagesInput( + [void Function(GClearCachedImagesInputBuilder b) updates]) = + _$GClearCachedImagesInput; + + bool? get cachedPages; + bool? get cachedThumbnails; + String? get clientMutationId; + bool? get downloadedThumbnails; + static Serializer get serializer => + _$gClearCachedImagesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GClearCachedImagesInput.serializer, + this, + ) as Map); + + static GClearCachedImagesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GClearCachedImagesInput.serializer, + json, + ); +} + +abstract class GClearDownloaderInput + implements Built { + GClearDownloaderInput._(); + + factory GClearDownloaderInput( + [void Function(GClearDownloaderInputBuilder b) updates]) = + _$GClearDownloaderInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gClearDownloaderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GClearDownloaderInput.serializer, + this, + ) as Map); + + static GClearDownloaderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GClearDownloaderInput.serializer, + json, + ); +} + +abstract class GCreateBackupInput + implements Built { + GCreateBackupInput._(); + + factory GCreateBackupInput( + [void Function(GCreateBackupInputBuilder b) updates]) = + _$GCreateBackupInput; + + String? get clientMutationId; + bool? get includeCategories; + bool? get includeChapters; + static Serializer get serializer => + _$gCreateBackupInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateBackupInput.serializer, + this, + ) as Map); + + static GCreateBackupInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateBackupInput.serializer, + json, + ); +} + +abstract class GCreateCategoryInput + implements Built { + GCreateCategoryInput._(); + + factory GCreateCategoryInput( + [void Function(GCreateCategoryInputBuilder b) updates]) = + _$GCreateCategoryInput; + + String? get clientMutationId; + @BuiltValueField(wireName: 'default') + bool? get Gdefault; + GIncludeOrExclude? get includeInDownload; + GIncludeOrExclude? get includeInUpdate; + String get name; + int? get order; + static Serializer get serializer => + _$gCreateCategoryInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GCreateCategoryInput.serializer, + this, + ) as Map); + + static GCreateCategoryInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GCreateCategoryInput.serializer, + json, + ); +} + +abstract class GCursor implements Built { + GCursor._(); + + factory GCursor([String? value]) => + _$GCursor((b) => value != null ? (b..value = value) : b); + + String get value; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _i2.DefaultScalarSerializer( + (Object serialized) => GCursor((serialized as String?))); +} + +abstract class GDeleteCategoryInput + implements Built { + GDeleteCategoryInput._(); + + factory GDeleteCategoryInput( + [void Function(GDeleteCategoryInputBuilder b) updates]) = + _$GDeleteCategoryInput; + + int get categoryId; + String? get clientMutationId; + static Serializer get serializer => + _$gDeleteCategoryInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteCategoryInput.serializer, + this, + ) as Map); + + static GDeleteCategoryInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteCategoryInput.serializer, + json, + ); +} + +abstract class GDeleteCategoryMetaInput + implements + Built { + GDeleteCategoryMetaInput._(); + + factory GDeleteCategoryMetaInput( + [void Function(GDeleteCategoryMetaInputBuilder b) updates]) = + _$GDeleteCategoryMetaInput; + + int get categoryId; + String? get clientMutationId; + String get key; + static Serializer get serializer => + _$gDeleteCategoryMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteCategoryMetaInput.serializer, + this, + ) as Map); + + static GDeleteCategoryMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteCategoryMetaInput.serializer, + json, + ); +} + +abstract class GDeleteChapterMetaInput + implements Built { + GDeleteChapterMetaInput._(); + + factory GDeleteChapterMetaInput( + [void Function(GDeleteChapterMetaInputBuilder b) updates]) = + _$GDeleteChapterMetaInput; + + int get chapterId; + String? get clientMutationId; + String get key; + static Serializer get serializer => + _$gDeleteChapterMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteChapterMetaInput.serializer, + this, + ) as Map); + + static GDeleteChapterMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteChapterMetaInput.serializer, + json, + ); +} + +abstract class GDeleteDownloadedChapterInput + implements + Built { + GDeleteDownloadedChapterInput._(); + + factory GDeleteDownloadedChapterInput( + [void Function(GDeleteDownloadedChapterInputBuilder b) updates]) = + _$GDeleteDownloadedChapterInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gDeleteDownloadedChapterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteDownloadedChapterInput.serializer, + this, + ) as Map); + + static GDeleteDownloadedChapterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteDownloadedChapterInput.serializer, + json, + ); +} + +abstract class GDeleteDownloadedChaptersInput + implements + Built { + GDeleteDownloadedChaptersInput._(); + + factory GDeleteDownloadedChaptersInput( + [void Function(GDeleteDownloadedChaptersInputBuilder b) updates]) = + _$GDeleteDownloadedChaptersInput; + + String? get clientMutationId; + BuiltList get ids; + static Serializer get serializer => + _$gDeleteDownloadedChaptersInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteDownloadedChaptersInput.serializer, + this, + ) as Map); + + static GDeleteDownloadedChaptersInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteDownloadedChaptersInput.serializer, + json, + ); +} + +abstract class GDeleteGlobalMetaInput + implements Built { + GDeleteGlobalMetaInput._(); + + factory GDeleteGlobalMetaInput( + [void Function(GDeleteGlobalMetaInputBuilder b) updates]) = + _$GDeleteGlobalMetaInput; + + String? get clientMutationId; + String get key; + static Serializer get serializer => + _$gDeleteGlobalMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteGlobalMetaInput.serializer, + this, + ) as Map); + + static GDeleteGlobalMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteGlobalMetaInput.serializer, + json, + ); +} + +abstract class GDeleteMangaMetaInput + implements Built { + GDeleteMangaMetaInput._(); + + factory GDeleteMangaMetaInput( + [void Function(GDeleteMangaMetaInputBuilder b) updates]) = + _$GDeleteMangaMetaInput; + + String? get clientMutationId; + String get key; + int get mangaId; + static Serializer get serializer => + _$gDeleteMangaMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteMangaMetaInput.serializer, + this, + ) as Map); + + static GDeleteMangaMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteMangaMetaInput.serializer, + json, + ); +} + +abstract class GDeleteSourceMetaInput + implements Built { + GDeleteSourceMetaInput._(); + + factory GDeleteSourceMetaInput( + [void Function(GDeleteSourceMetaInputBuilder b) updates]) = + _$GDeleteSourceMetaInput; + + String? get clientMutationId; + String get key; + GLongString get sourceId; + static Serializer get serializer => + _$gDeleteSourceMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDeleteSourceMetaInput.serializer, + this, + ) as Map); + + static GDeleteSourceMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDeleteSourceMetaInput.serializer, + json, + ); +} + +abstract class GDequeueChapterDownloadInput + implements + Built { + GDequeueChapterDownloadInput._(); + + factory GDequeueChapterDownloadInput( + [void Function(GDequeueChapterDownloadInputBuilder b) updates]) = + _$GDequeueChapterDownloadInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gDequeueChapterDownloadInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDequeueChapterDownloadInput.serializer, + this, + ) as Map); + + static GDequeueChapterDownloadInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDequeueChapterDownloadInput.serializer, + json, + ); +} + +abstract class GDequeueChapterDownloadsInput + implements + Built { + GDequeueChapterDownloadsInput._(); + + factory GDequeueChapterDownloadsInput( + [void Function(GDequeueChapterDownloadsInputBuilder b) updates]) = + _$GDequeueChapterDownloadsInput; + + String? get clientMutationId; + BuiltList get ids; + static Serializer get serializer => + _$gDequeueChapterDownloadsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDequeueChapterDownloadsInput.serializer, + this, + ) as Map); + + static GDequeueChapterDownloadsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDequeueChapterDownloadsInput.serializer, + json, + ); +} + +abstract class GDoubleFilterInput + implements Built { + GDoubleFilterInput._(); + + factory GDoubleFilterInput( + [void Function(GDoubleFilterInputBuilder b) updates]) = + _$GDoubleFilterInput; + + double? get distinctFrom; + BuiltList? get distinctFromAll; + BuiltList? get distinctFromAny; + double? get equalTo; + double? get greaterThan; + double? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + double? get lessThan; + double? get lessThanOrEqualTo; + double? get notDistinctFrom; + double? get notEqualTo; + BuiltList? get notEqualToAll; + BuiltList? get notEqualToAny; + BuiltList? get notIn; + static Serializer get serializer => + _$gDoubleFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDoubleFilterInput.serializer, + this, + ) as Map); + + static GDoubleFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDoubleFilterInput.serializer, + json, + ); +} + +abstract class GDownloadChangedInput + implements Built { + GDownloadChangedInput._(); + + factory GDownloadChangedInput( + [void Function(GDownloadChangedInputBuilder b) updates]) = + _$GDownloadChangedInput; + + int? get maxUpdates; + static Serializer get serializer => + _$gDownloadChangedInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GDownloadChangedInput.serializer, + this, + ) as Map); + + static GDownloadChangedInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GDownloadChangedInput.serializer, + json, + ); +} + +class GDownloaderState extends EnumClass { + const GDownloaderState._(String name) : super(name); + + static const GDownloaderState STARTED = _$gDownloaderStateSTARTED; + + static const GDownloaderState STOPPED = _$gDownloaderStateSTOPPED; + + static Serializer get serializer => + _$gDownloaderStateSerializer; + + static BuiltSet get values => _$gDownloaderStateValues; + + static GDownloaderState valueOf(String name) => + _$gDownloaderStateValueOf(name); +} + +class GDownloadState extends EnumClass { + const GDownloadState._(String name) : super(name); + + static const GDownloadState QUEUED = _$gDownloadStateQUEUED; + + static const GDownloadState DOWNLOADING = _$gDownloadStateDOWNLOADING; + + static const GDownloadState FINISHED = _$gDownloadStateFINISHED; + + static const GDownloadState ERROR = _$gDownloadStateERROR; + + static Serializer get serializer => + _$gDownloadStateSerializer; + + static BuiltSet get values => _$gDownloadStateValues; + + static GDownloadState valueOf(String name) => _$gDownloadStateValueOf(name); +} + +class GDownloadUpdateType extends EnumClass { + const GDownloadUpdateType._(String name) : super(name); + + static const GDownloadUpdateType QUEUED = _$gDownloadUpdateTypeQUEUED; + + static const GDownloadUpdateType DEQUEUED = _$gDownloadUpdateTypeDEQUEUED; + + static const GDownloadUpdateType PAUSED = _$gDownloadUpdateTypePAUSED; + + static const GDownloadUpdateType STOPPED = _$gDownloadUpdateTypeSTOPPED; + + static const GDownloadUpdateType PROGRESS = _$gDownloadUpdateTypePROGRESS; + + static const GDownloadUpdateType FINISHED = _$gDownloadUpdateTypeFINISHED; + + static const GDownloadUpdateType ERROR = _$gDownloadUpdateTypeERROR; + + static const GDownloadUpdateType POSITION = _$gDownloadUpdateTypePOSITION; + + static Serializer get serializer => + _$gDownloadUpdateTypeSerializer; + + static BuiltSet get values => + _$gDownloadUpdateTypeValues; + + static GDownloadUpdateType valueOf(String name) => + _$gDownloadUpdateTypeValueOf(name); +} + +abstract class GEnqueueChapterDownloadInput + implements + Built { + GEnqueueChapterDownloadInput._(); + + factory GEnqueueChapterDownloadInput( + [void Function(GEnqueueChapterDownloadInputBuilder b) updates]) = + _$GEnqueueChapterDownloadInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gEnqueueChapterDownloadInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GEnqueueChapterDownloadInput.serializer, + this, + ) as Map); + + static GEnqueueChapterDownloadInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GEnqueueChapterDownloadInput.serializer, + json, + ); +} + +abstract class GEnqueueChapterDownloadsInput + implements + Built { + GEnqueueChapterDownloadsInput._(); + + factory GEnqueueChapterDownloadsInput( + [void Function(GEnqueueChapterDownloadsInputBuilder b) updates]) = + _$GEnqueueChapterDownloadsInput; + + String? get clientMutationId; + BuiltList get ids; + static Serializer get serializer => + _$gEnqueueChapterDownloadsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GEnqueueChapterDownloadsInput.serializer, + this, + ) as Map); + + static GEnqueueChapterDownloadsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GEnqueueChapterDownloadsInput.serializer, + json, + ); +} + +abstract class GExtensionConditionInput + implements + Built { + GExtensionConditionInput._(); + + factory GExtensionConditionInput( + [void Function(GExtensionConditionInputBuilder b) updates]) = + _$GExtensionConditionInput; + + String? get apkName; + bool? get hasUpdate; + String? get iconUrl; + bool? get isInstalled; + bool? get isNsfw; + bool? get isObsolete; + String? get lang; + String? get name; + String? get pkgName; + String? get repo; + int? get versionCode; + String? get versionName; + static Serializer get serializer => + _$gExtensionConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GExtensionConditionInput.serializer, + this, + ) as Map); + + static GExtensionConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionConditionInput.serializer, + json, + ); +} + +abstract class GExtensionFilterInput + implements Built { + GExtensionFilterInput._(); + + factory GExtensionFilterInput( + [void Function(GExtensionFilterInputBuilder b) updates]) = + _$GExtensionFilterInput; + + BuiltList? get and; + GStringFilterInput? get apkName; + GBooleanFilterInput? get hasUpdate; + GStringFilterInput? get iconUrl; + GBooleanFilterInput? get isInstalled; + GBooleanFilterInput? get isNsfw; + GBooleanFilterInput? get isObsolete; + GStringFilterInput? get lang; + GStringFilterInput? get name; + GExtensionFilterInput? get not; + BuiltList? get or; + GStringFilterInput? get pkgName; + GStringFilterInput? get repo; + GIntFilterInput? get versionCode; + GStringFilterInput? get versionName; + static Serializer get serializer => + _$gExtensionFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GExtensionFilterInput.serializer, + this, + ) as Map); + + static GExtensionFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionFilterInput.serializer, + json, + ); +} + +class GExtensionOrderBy extends EnumClass { + const GExtensionOrderBy._(String name) : super(name); + + static const GExtensionOrderBy PKG_NAME = _$gExtensionOrderByPKG_NAME; + + static const GExtensionOrderBy NAME = _$gExtensionOrderByNAME; + + static const GExtensionOrderBy APK_NAME = _$gExtensionOrderByAPK_NAME; + + static Serializer get serializer => + _$gExtensionOrderBySerializer; + + static BuiltSet get values => _$gExtensionOrderByValues; + + static GExtensionOrderBy valueOf(String name) => + _$gExtensionOrderByValueOf(name); +} + +abstract class GExtensionOrderInput + implements Built { + GExtensionOrderInput._(); + + factory GExtensionOrderInput( + [void Function(GExtensionOrderInputBuilder b) updates]) = + _$GExtensionOrderInput; + + GExtensionOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gExtensionOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GExtensionOrderInput.serializer, + this, + ) as Map); + + static GExtensionOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GExtensionOrderInput.serializer, + json, + ); +} + +abstract class GFetchChapterPagesInput + implements Built { + GFetchChapterPagesInput._(); + + factory GFetchChapterPagesInput( + [void Function(GFetchChapterPagesInputBuilder b) updates]) = + _$GFetchChapterPagesInput; + + int get chapterId; + String? get clientMutationId; + static Serializer get serializer => + _$gFetchChapterPagesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchChapterPagesInput.serializer, + this, + ) as Map); + + static GFetchChapterPagesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchChapterPagesInput.serializer, + json, + ); +} + +abstract class GFetchChaptersInput + implements Built { + GFetchChaptersInput._(); + + factory GFetchChaptersInput( + [void Function(GFetchChaptersInputBuilder b) updates]) = + _$GFetchChaptersInput; + + String? get clientMutationId; + int get mangaId; + static Serializer get serializer => + _$gFetchChaptersInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchChaptersInput.serializer, + this, + ) as Map); + + static GFetchChaptersInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchChaptersInput.serializer, + json, + ); +} + +abstract class GFetchExtensionsInput + implements Built { + GFetchExtensionsInput._(); + + factory GFetchExtensionsInput( + [void Function(GFetchExtensionsInputBuilder b) updates]) = + _$GFetchExtensionsInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gFetchExtensionsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchExtensionsInput.serializer, + this, + ) as Map); + + static GFetchExtensionsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchExtensionsInput.serializer, + json, + ); +} + +abstract class GFetchMangaInput + implements Built { + GFetchMangaInput._(); + + factory GFetchMangaInput([void Function(GFetchMangaInputBuilder b) updates]) = + _$GFetchMangaInput; + + String? get clientMutationId; + int get id; + static Serializer get serializer => + _$gFetchMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchMangaInput.serializer, + this, + ) as Map); + + static GFetchMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchMangaInput.serializer, + json, + ); +} + +abstract class GFetchSourceMangaInput + implements Built { + GFetchSourceMangaInput._(); + + factory GFetchSourceMangaInput( + [void Function(GFetchSourceMangaInputBuilder b) updates]) = + _$GFetchSourceMangaInput; + + String? get clientMutationId; + BuiltList? get filters; + int get page; + String? get query; + GLongString get source; + GFetchSourceMangaType get type; + static Serializer get serializer => + _$gFetchSourceMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchSourceMangaInput.serializer, + this, + ) as Map); + + static GFetchSourceMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchSourceMangaInput.serializer, + json, + ); +} + +class GFetchSourceMangaType extends EnumClass { + const GFetchSourceMangaType._(String name) : super(name); + + static const GFetchSourceMangaType SEARCH = _$gFetchSourceMangaTypeSEARCH; + + static const GFetchSourceMangaType POPULAR = _$gFetchSourceMangaTypePOPULAR; + + static const GFetchSourceMangaType LATEST = _$gFetchSourceMangaTypeLATEST; + + static Serializer get serializer => + _$gFetchSourceMangaTypeSerializer; + + static BuiltSet get values => + _$gFetchSourceMangaTypeValues; + + static GFetchSourceMangaType valueOf(String name) => + _$gFetchSourceMangaTypeValueOf(name); +} + +abstract class GFetchTrackInput + implements Built { + GFetchTrackInput._(); + + factory GFetchTrackInput([void Function(GFetchTrackInputBuilder b) updates]) = + _$GFetchTrackInput; + + String? get clientMutationId; + int get recordId; + static Serializer get serializer => + _$gFetchTrackInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFetchTrackInput.serializer, + this, + ) as Map); + + static GFetchTrackInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFetchTrackInput.serializer, + json, + ); +} + +abstract class GFilterChangeInput + implements Built { + GFilterChangeInput._(); + + factory GFilterChangeInput( + [void Function(GFilterChangeInputBuilder b) updates]) = + _$GFilterChangeInput; + + bool? get checkBoxState; + GFilterChangeInput? get groupChange; + int get position; + int? get selectState; + GSortSelectionInput? get sortState; + String? get textState; + GTriState? get triState; + static Serializer get serializer => + _$gFilterChangeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFilterChangeInput.serializer, + this, + ) as Map); + + static GFilterChangeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFilterChangeInput.serializer, + json, + ); +} + +abstract class GFloatFilterInput + implements Built { + GFloatFilterInput._(); + + factory GFloatFilterInput( + [void Function(GFloatFilterInputBuilder b) updates]) = + _$GFloatFilterInput; + + double? get distinctFrom; + BuiltList? get distinctFromAll; + BuiltList? get distinctFromAny; + double? get equalTo; + double? get greaterThan; + double? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + double? get lessThan; + double? get lessThanOrEqualTo; + double? get notDistinctFrom; + double? get notEqualTo; + BuiltList? get notEqualToAll; + BuiltList? get notEqualToAny; + BuiltList? get notIn; + static Serializer get serializer => + _$gFloatFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GFloatFilterInput.serializer, + this, + ) as Map); + + static GFloatFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GFloatFilterInput.serializer, + json, + ); +} + +abstract class GGlobalMetaTypeInput + implements Built { + GGlobalMetaTypeInput._(); + + factory GGlobalMetaTypeInput( + [void Function(GGlobalMetaTypeInputBuilder b) updates]) = + _$GGlobalMetaTypeInput; + + String get key; + String get value; + static Serializer get serializer => + _$gGlobalMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GGlobalMetaTypeInput.serializer, + this, + ) as Map); + + static GGlobalMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GGlobalMetaTypeInput.serializer, + json, + ); +} + +class GIncludeOrExclude extends EnumClass { + const GIncludeOrExclude._(String name) : super(name); + + static const GIncludeOrExclude EXCLUDE = _$gIncludeOrExcludeEXCLUDE; + + static const GIncludeOrExclude INCLUDE = _$gIncludeOrExcludeINCLUDE; + + static const GIncludeOrExclude UNSET = _$gIncludeOrExcludeUNSET; + + static Serializer get serializer => + _$gIncludeOrExcludeSerializer; + + static BuiltSet get values => _$gIncludeOrExcludeValues; + + static GIncludeOrExclude valueOf(String name) => + _$gIncludeOrExcludeValueOf(name); +} + +abstract class GInstallExternalExtensionInput + implements + Built { + GInstallExternalExtensionInput._(); + + factory GInstallExternalExtensionInput( + [void Function(GInstallExternalExtensionInputBuilder b) updates]) = + _$GInstallExternalExtensionInput; + + String? get clientMutationId; + _i3.MultipartFile get extensionFile; + static Serializer get serializer => + _$gInstallExternalExtensionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GInstallExternalExtensionInput.serializer, + this, + ) as Map); + + static GInstallExternalExtensionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GInstallExternalExtensionInput.serializer, + json, + ); +} + +abstract class GIntFilterInput + implements Built { + GIntFilterInput._(); + + factory GIntFilterInput([void Function(GIntFilterInputBuilder b) updates]) = + _$GIntFilterInput; + + int? get distinctFrom; + BuiltList? get distinctFromAll; + BuiltList? get distinctFromAny; + int? get equalTo; + int? get greaterThan; + int? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + int? get lessThan; + int? get lessThanOrEqualTo; + int? get notDistinctFrom; + int? get notEqualTo; + BuiltList? get notEqualToAll; + BuiltList? get notEqualToAny; + BuiltList? get notIn; + static Serializer get serializer => + _$gIntFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GIntFilterInput.serializer, + this, + ) as Map); + + static GIntFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GIntFilterInput.serializer, + json, + ); +} + +abstract class GLoginTrackerCredentialsInput + implements + Built { + GLoginTrackerCredentialsInput._(); + + factory GLoginTrackerCredentialsInput( + [void Function(GLoginTrackerCredentialsInputBuilder b) updates]) = + _$GLoginTrackerCredentialsInput; + + String? get clientMutationId; + String get password; + int get trackerId; + String get username; + static Serializer get serializer => + _$gLoginTrackerCredentialsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLoginTrackerCredentialsInput.serializer, + this, + ) as Map); + + static GLoginTrackerCredentialsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLoginTrackerCredentialsInput.serializer, + json, + ); +} + +abstract class GLoginTrackerOAuthInput + implements Built { + GLoginTrackerOAuthInput._(); + + factory GLoginTrackerOAuthInput( + [void Function(GLoginTrackerOAuthInputBuilder b) updates]) = + _$GLoginTrackerOAuthInput; + + String get callbackUrl; + String? get clientMutationId; + int get trackerId; + static Serializer get serializer => + _$gLoginTrackerOAuthInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLoginTrackerOAuthInput.serializer, + this, + ) as Map); + + static GLoginTrackerOAuthInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLoginTrackerOAuthInput.serializer, + json, + ); +} + +abstract class GLogoutTrackerInput + implements Built { + GLogoutTrackerInput._(); + + factory GLogoutTrackerInput( + [void Function(GLogoutTrackerInputBuilder b) updates]) = + _$GLogoutTrackerInput; + + String? get clientMutationId; + int get trackerId; + static Serializer get serializer => + _$gLogoutTrackerInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLogoutTrackerInput.serializer, + this, + ) as Map); + + static GLogoutTrackerInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLogoutTrackerInput.serializer, + json, + ); +} + +abstract class GLongFilterInput + implements Built { + GLongFilterInput._(); + + factory GLongFilterInput([void Function(GLongFilterInputBuilder b) updates]) = + _$GLongFilterInput; + + GLongString? get distinctFrom; + BuiltList? get distinctFromAll; + BuiltList? get distinctFromAny; + GLongString? get equalTo; + GLongString? get greaterThan; + GLongString? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + GLongString? get lessThan; + GLongString? get lessThanOrEqualTo; + GLongString? get notDistinctFrom; + GLongString? get notEqualTo; + BuiltList? get notEqualToAll; + BuiltList? get notEqualToAny; + BuiltList? get notIn; + static Serializer get serializer => + _$gLongFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GLongFilterInput.serializer, + this, + ) as Map); + + static GLongFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GLongFilterInput.serializer, + json, + ); +} + +abstract class GLongString implements Built { + GLongString._(); + + factory GLongString([String? value]) => + _$GLongString((b) => value != null ? (b..value = value) : b); + + String get value; + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + _i2.DefaultScalarSerializer( + (Object serialized) => GLongString((serialized as String?))); +} + +abstract class GMangaConditionInput + implements Built { + GMangaConditionInput._(); + + factory GMangaConditionInput( + [void Function(GMangaConditionInputBuilder b) updates]) = + _$GMangaConditionInput; + + String? get artist; + String? get author; + BuiltList? get categoryIds; + GLongString? get chaptersLastFetchedAt; + String? get description; + BuiltList? get genre; + int? get id; + bool? get inLibrary; + GLongString? get inLibraryAt; + bool? get initialized; + GLongString? get lastFetchedAt; + String? get realUrl; + GLongString? get sourceId; + GMangaStatus? get status; + String? get thumbnailUrl; + String? get title; + String? get url; + static Serializer get serializer => + _$gMangaConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaConditionInput.serializer, + this, + ) as Map); + + static GMangaConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaConditionInput.serializer, + json, + ); +} + +abstract class GMangaFilterInput + implements Built { + GMangaFilterInput._(); + + factory GMangaFilterInput( + [void Function(GMangaFilterInputBuilder b) updates]) = + _$GMangaFilterInput; + + BuiltList? get and; + GStringFilterInput? get artist; + GStringFilterInput? get author; + GIntFilterInput? get categoryId; + GLongFilterInput? get chaptersLastFetchedAt; + GStringFilterInput? get description; + GStringFilterInput? get genre; + GIntFilterInput? get id; + GBooleanFilterInput? get inLibrary; + GLongFilterInput? get inLibraryAt; + GBooleanFilterInput? get initialized; + GLongFilterInput? get lastFetchedAt; + GMangaFilterInput? get not; + BuiltList? get or; + GStringFilterInput? get realUrl; + GLongFilterInput? get sourceId; + GMangaStatusFilterInput? get status; + GStringFilterInput? get thumbnailUrl; + GStringFilterInput? get title; + GStringFilterInput? get url; + static Serializer get serializer => + _$gMangaFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaFilterInput.serializer, + this, + ) as Map); + + static GMangaFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaFilterInput.serializer, + json, + ); +} + +abstract class GMangaMetaTypeInput + implements Built { + GMangaMetaTypeInput._(); + + factory GMangaMetaTypeInput( + [void Function(GMangaMetaTypeInputBuilder b) updates]) = + _$GMangaMetaTypeInput; + + String get key; + int get mangaId; + String get value; + static Serializer get serializer => + _$gMangaMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaMetaTypeInput.serializer, + this, + ) as Map); + + static GMangaMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaMetaTypeInput.serializer, + json, + ); +} + +class GMangaOrderBy extends EnumClass { + const GMangaOrderBy._(String name) : super(name); + + static const GMangaOrderBy ID = _$gMangaOrderByID; + + static const GMangaOrderBy TITLE = _$gMangaOrderByTITLE; + + static const GMangaOrderBy IN_LIBRARY_AT = _$gMangaOrderByIN_LIBRARY_AT; + + static const GMangaOrderBy LAST_FETCHED_AT = _$gMangaOrderByLAST_FETCHED_AT; + + static Serializer get serializer => _$gMangaOrderBySerializer; + + static BuiltSet get values => _$gMangaOrderByValues; + + static GMangaOrderBy valueOf(String name) => _$gMangaOrderByValueOf(name); +} + +abstract class GMangaOrderInput + implements Built { + GMangaOrderInput._(); + + factory GMangaOrderInput([void Function(GMangaOrderInputBuilder b) updates]) = + _$GMangaOrderInput; + + GMangaOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gMangaOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaOrderInput.serializer, + this, + ) as Map); + + static GMangaOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaOrderInput.serializer, + json, + ); +} + +class GMangaStatus extends EnumClass { + const GMangaStatus._(String name) : super(name); + + static const GMangaStatus UNKNOWN = _$gMangaStatusUNKNOWN; + + static const GMangaStatus ONGOING = _$gMangaStatusONGOING; + + static const GMangaStatus COMPLETED = _$gMangaStatusCOMPLETED; + + static const GMangaStatus LICENSED = _$gMangaStatusLICENSED; + + static const GMangaStatus PUBLISHING_FINISHED = + _$gMangaStatusPUBLISHING_FINISHED; + + static const GMangaStatus CANCELLED = _$gMangaStatusCANCELLED; + + static const GMangaStatus ON_HIATUS = _$gMangaStatusON_HIATUS; + + static Serializer get serializer => _$gMangaStatusSerializer; + + static BuiltSet get values => _$gMangaStatusValues; + + static GMangaStatus valueOf(String name) => _$gMangaStatusValueOf(name); +} + +abstract class GMangaStatusFilterInput + implements Built { + GMangaStatusFilterInput._(); + + factory GMangaStatusFilterInput( + [void Function(GMangaStatusFilterInputBuilder b) updates]) = + _$GMangaStatusFilterInput; + + GMangaStatus? get distinctFrom; + BuiltList? get distinctFromAll; + BuiltList? get distinctFromAny; + GMangaStatus? get equalTo; + GMangaStatus? get greaterThan; + GMangaStatus? get greaterThanOrEqualTo; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + bool? get isNull; + GMangaStatus? get lessThan; + GMangaStatus? get lessThanOrEqualTo; + GMangaStatus? get notDistinctFrom; + GMangaStatus? get notEqualTo; + BuiltList? get notEqualToAll; + BuiltList? get notEqualToAny; + BuiltList? get notIn; + static Serializer get serializer => + _$gMangaStatusFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMangaStatusFilterInput.serializer, + this, + ) as Map); + + static GMangaStatusFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMangaStatusFilterInput.serializer, + json, + ); +} + +abstract class GMetaConditionInput + implements Built { + GMetaConditionInput._(); + + factory GMetaConditionInput( + [void Function(GMetaConditionInputBuilder b) updates]) = + _$GMetaConditionInput; + + String? get key; + String? get value; + static Serializer get serializer => + _$gMetaConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMetaConditionInput.serializer, + this, + ) as Map); + + static GMetaConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMetaConditionInput.serializer, + json, + ); +} + +abstract class GMetaFilterInput + implements Built { + GMetaFilterInput._(); + + factory GMetaFilterInput([void Function(GMetaFilterInputBuilder b) updates]) = + _$GMetaFilterInput; + + BuiltList? get and; + GStringFilterInput? get key; + GMetaFilterInput? get not; + BuiltList? get or; + GStringFilterInput? get value; + static Serializer get serializer => + _$gMetaFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMetaFilterInput.serializer, + this, + ) as Map); + + static GMetaFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMetaFilterInput.serializer, + json, + ); +} + +class GMetaOrderBy extends EnumClass { + const GMetaOrderBy._(String name) : super(name); + + static const GMetaOrderBy KEY = _$gMetaOrderByKEY; + + static const GMetaOrderBy VALUE = _$gMetaOrderByVALUE; + + static Serializer get serializer => _$gMetaOrderBySerializer; + + static BuiltSet get values => _$gMetaOrderByValues; + + static GMetaOrderBy valueOf(String name) => _$gMetaOrderByValueOf(name); +} + +abstract class GMetaOrderInput + implements Built { + GMetaOrderInput._(); + + factory GMetaOrderInput([void Function(GMetaOrderInputBuilder b) updates]) = + _$GMetaOrderInput; + + GMetaOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gMetaOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GMetaOrderInput.serializer, + this, + ) as Map); + + static GMetaOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GMetaOrderInput.serializer, + json, + ); +} + +abstract class GPartialSettingsTypeInput + implements + Built { + GPartialSettingsTypeInput._(); + + factory GPartialSettingsTypeInput( + [void Function(GPartialSettingsTypeInputBuilder b) updates]) = + _$GPartialSettingsTypeInput; + + bool? get autoDownloadIgnoreReUploads; + bool? get autoDownloadNewChapters; + int? get autoDownloadNewChaptersLimit; + int? get backupInterval; + String? get backupPath; + int? get backupTTL; + String? get backupTime; + bool? get basicAuthEnabled; + String? get basicAuthPassword; + String? get basicAuthUsername; + bool? get debugLogsEnabled; + bool? get downloadAsCbz; + String? get downloadsPath; + String? get electronPath; + bool? get excludeCompleted; + bool? get excludeEntryWithUnreadChapters; + bool? get excludeNotStarted; + bool? get excludeUnreadChapters; + BuiltList? get extensionRepos; + bool? get flareSolverrAsResponseFallback; + bool? get flareSolverrEnabled; + String? get flareSolverrSessionName; + int? get flareSolverrSessionTtl; + int? get flareSolverrTimeout; + String? get flareSolverrUrl; + double? get globalUpdateInterval; + bool? get initialOpenInBrowserEnabled; + String? get ip; + String? get localSourcePath; + String? get maxLogFileSize; + int? get maxLogFiles; + String? get maxLogFolderSize; + int? get maxSourcesInParallel; + int? get port; + bool? get socksProxyEnabled; + String? get socksProxyHost; + String? get socksProxyPassword; + String? get socksProxyPort; + String? get socksProxyUsername; + int? get socksProxyVersion; + bool? get systemTrayEnabled; + bool? get updateMangas; + GWebUIChannel? get webUIChannel; + GWebUIFlavor? get webUIFlavor; + GWebUIInterface? get webUIInterface; + double? get webUIUpdateCheckInterval; + static Serializer get serializer => + _$gPartialSettingsTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GPartialSettingsTypeInput.serializer, + this, + ) as Map); + + static GPartialSettingsTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GPartialSettingsTypeInput.serializer, + json, + ); +} + +abstract class GReorderChapterDownloadInput + implements + Built { + GReorderChapterDownloadInput._(); + + factory GReorderChapterDownloadInput( + [void Function(GReorderChapterDownloadInputBuilder b) updates]) = + _$GReorderChapterDownloadInput; + + int get chapterId; + String? get clientMutationId; + int get to; + static Serializer get serializer => + _$gReorderChapterDownloadInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GReorderChapterDownloadInput.serializer, + this, + ) as Map); + + static GReorderChapterDownloadInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GReorderChapterDownloadInput.serializer, + json, + ); +} + +abstract class GResetSettingsInput + implements Built { + GResetSettingsInput._(); + + factory GResetSettingsInput( + [void Function(GResetSettingsInputBuilder b) updates]) = + _$GResetSettingsInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gResetSettingsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GResetSettingsInput.serializer, + this, + ) as Map); + + static GResetSettingsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GResetSettingsInput.serializer, + json, + ); +} + +abstract class GRestoreBackupInput + implements Built { + GRestoreBackupInput._(); + + factory GRestoreBackupInput( + [void Function(GRestoreBackupInputBuilder b) updates]) = + _$GRestoreBackupInput; + + _i3.MultipartFile get backup; + String? get clientMutationId; + static Serializer get serializer => + _$gRestoreBackupInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GRestoreBackupInput.serializer, + this, + ) as Map); + + static GRestoreBackupInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GRestoreBackupInput.serializer, + json, + ); +} + +abstract class GSearchTrackerInput + implements Built { + GSearchTrackerInput._(); + + factory GSearchTrackerInput( + [void Function(GSearchTrackerInputBuilder b) updates]) = + _$GSearchTrackerInput; + + String get query; + int get trackerId; + static Serializer get serializer => + _$gSearchTrackerInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSearchTrackerInput.serializer, + this, + ) as Map); + + static GSearchTrackerInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSearchTrackerInput.serializer, + json, + ); +} + +abstract class GSetCategoryMetaInput + implements Built { + GSetCategoryMetaInput._(); + + factory GSetCategoryMetaInput( + [void Function(GSetCategoryMetaInputBuilder b) updates]) = + _$GSetCategoryMetaInput; + + String? get clientMutationId; + GCategoryMetaTypeInput get meta; + static Serializer get serializer => + _$gSetCategoryMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetCategoryMetaInput.serializer, + this, + ) as Map); + + static GSetCategoryMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetCategoryMetaInput.serializer, + json, + ); +} + +abstract class GSetChapterMetaInput + implements Built { + GSetChapterMetaInput._(); + + factory GSetChapterMetaInput( + [void Function(GSetChapterMetaInputBuilder b) updates]) = + _$GSetChapterMetaInput; + + String? get clientMutationId; + GChapterMetaTypeInput get meta; + static Serializer get serializer => + _$gSetChapterMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetChapterMetaInput.serializer, + this, + ) as Map); + + static GSetChapterMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetChapterMetaInput.serializer, + json, + ); +} + +abstract class GSetGlobalMetaInput + implements Built { + GSetGlobalMetaInput._(); + + factory GSetGlobalMetaInput( + [void Function(GSetGlobalMetaInputBuilder b) updates]) = + _$GSetGlobalMetaInput; + + String? get clientMutationId; + GGlobalMetaTypeInput get meta; + static Serializer get serializer => + _$gSetGlobalMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetGlobalMetaInput.serializer, + this, + ) as Map); + + static GSetGlobalMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetGlobalMetaInput.serializer, + json, + ); +} + +abstract class GSetMangaMetaInput + implements Built { + GSetMangaMetaInput._(); + + factory GSetMangaMetaInput( + [void Function(GSetMangaMetaInputBuilder b) updates]) = + _$GSetMangaMetaInput; + + String? get clientMutationId; + GMangaMetaTypeInput get meta; + static Serializer get serializer => + _$gSetMangaMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetMangaMetaInput.serializer, + this, + ) as Map); + + static GSetMangaMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetMangaMetaInput.serializer, + json, + ); +} + +abstract class GSetSettingsInput + implements Built { + GSetSettingsInput._(); + + factory GSetSettingsInput( + [void Function(GSetSettingsInputBuilder b) updates]) = + _$GSetSettingsInput; + + String? get clientMutationId; + GPartialSettingsTypeInput get settings; + static Serializer get serializer => + _$gSetSettingsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetSettingsInput.serializer, + this, + ) as Map); + + static GSetSettingsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetSettingsInput.serializer, + json, + ); +} + +abstract class GSetSourceMetaInput + implements Built { + GSetSourceMetaInput._(); + + factory GSetSourceMetaInput( + [void Function(GSetSourceMetaInputBuilder b) updates]) = + _$GSetSourceMetaInput; + + String? get clientMutationId; + GSourceMetaTypeInput get meta; + static Serializer get serializer => + _$gSetSourceMetaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSetSourceMetaInput.serializer, + this, + ) as Map); + + static GSetSourceMetaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSetSourceMetaInput.serializer, + json, + ); +} + +class GSortOrder extends EnumClass { + const GSortOrder._(String name) : super(name); + + static const GSortOrder ASC = _$gSortOrderASC; + + static const GSortOrder DESC = _$gSortOrderDESC; + + static const GSortOrder ASC_NULLS_FIRST = _$gSortOrderASC_NULLS_FIRST; + + static const GSortOrder DESC_NULLS_FIRST = _$gSortOrderDESC_NULLS_FIRST; + + static const GSortOrder ASC_NULLS_LAST = _$gSortOrderASC_NULLS_LAST; + + static const GSortOrder DESC_NULLS_LAST = _$gSortOrderDESC_NULLS_LAST; + + static Serializer get serializer => _$gSortOrderSerializer; + + static BuiltSet get values => _$gSortOrderValues; + + static GSortOrder valueOf(String name) => _$gSortOrderValueOf(name); +} + +abstract class GSortSelectionInput + implements Built { + GSortSelectionInput._(); + + factory GSortSelectionInput( + [void Function(GSortSelectionInputBuilder b) updates]) = + _$GSortSelectionInput; + + bool get ascending; + int get index; + static Serializer get serializer => + _$gSortSelectionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSortSelectionInput.serializer, + this, + ) as Map); + + static GSortSelectionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSortSelectionInput.serializer, + json, + ); +} + +abstract class GSourceConditionInput + implements Built { + GSourceConditionInput._(); + + factory GSourceConditionInput( + [void Function(GSourceConditionInputBuilder b) updates]) = + _$GSourceConditionInput; + + GLongString? get id; + bool? get isNsfw; + String? get lang; + String? get name; + static Serializer get serializer => + _$gSourceConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceConditionInput.serializer, + this, + ) as Map); + + static GSourceConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceConditionInput.serializer, + json, + ); +} + +abstract class GSourceFilterInput + implements Built { + GSourceFilterInput._(); + + factory GSourceFilterInput( + [void Function(GSourceFilterInputBuilder b) updates]) = + _$GSourceFilterInput; + + BuiltList? get and; + GLongFilterInput? get id; + GBooleanFilterInput? get isNsfw; + GStringFilterInput? get lang; + GStringFilterInput? get name; + GSourceFilterInput? get not; + BuiltList? get or; + static Serializer get serializer => + _$gSourceFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceFilterInput.serializer, + this, + ) as Map); + + static GSourceFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceFilterInput.serializer, + json, + ); +} + +abstract class GSourceMetaTypeInput + implements Built { + GSourceMetaTypeInput._(); + + factory GSourceMetaTypeInput( + [void Function(GSourceMetaTypeInputBuilder b) updates]) = + _$GSourceMetaTypeInput; + + String get key; + GLongString get sourceId; + String get value; + static Serializer get serializer => + _$gSourceMetaTypeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceMetaTypeInput.serializer, + this, + ) as Map); + + static GSourceMetaTypeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceMetaTypeInput.serializer, + json, + ); +} + +class GSourceOrderBy extends EnumClass { + const GSourceOrderBy._(String name) : super(name); + + static const GSourceOrderBy ID = _$gSourceOrderByID; + + static const GSourceOrderBy NAME = _$gSourceOrderByNAME; + + static const GSourceOrderBy LANG = _$gSourceOrderByLANG; + + static Serializer get serializer => + _$gSourceOrderBySerializer; + + static BuiltSet get values => _$gSourceOrderByValues; + + static GSourceOrderBy valueOf(String name) => _$gSourceOrderByValueOf(name); +} + +abstract class GSourceOrderInput + implements Built { + GSourceOrderInput._(); + + factory GSourceOrderInput( + [void Function(GSourceOrderInputBuilder b) updates]) = + _$GSourceOrderInput; + + GSourceOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gSourceOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourceOrderInput.serializer, + this, + ) as Map); + + static GSourceOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourceOrderInput.serializer, + json, + ); +} + +abstract class GSourcePreferenceChangeInput + implements + Built { + GSourcePreferenceChangeInput._(); + + factory GSourcePreferenceChangeInput( + [void Function(GSourcePreferenceChangeInputBuilder b) updates]) = + _$GSourcePreferenceChangeInput; + + bool? get checkBoxState; + String? get editTextState; + String? get listState; + BuiltList? get multiSelectState; + int get position; + bool? get switchState; + static Serializer get serializer => + _$gSourcePreferenceChangeInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GSourcePreferenceChangeInput.serializer, + this, + ) as Map); + + static GSourcePreferenceChangeInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GSourcePreferenceChangeInput.serializer, + json, + ); +} + +abstract class GStartDownloaderInput + implements Built { + GStartDownloaderInput._(); + + factory GStartDownloaderInput( + [void Function(GStartDownloaderInputBuilder b) updates]) = + _$GStartDownloaderInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gStartDownloaderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GStartDownloaderInput.serializer, + this, + ) as Map); + + static GStartDownloaderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStartDownloaderInput.serializer, + json, + ); +} + +abstract class GStopDownloaderInput + implements Built { + GStopDownloaderInput._(); + + factory GStopDownloaderInput( + [void Function(GStopDownloaderInputBuilder b) updates]) = + _$GStopDownloaderInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gStopDownloaderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GStopDownloaderInput.serializer, + this, + ) as Map); + + static GStopDownloaderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStopDownloaderInput.serializer, + json, + ); +} + +abstract class GStringFilterInput + implements Built { + GStringFilterInput._(); + + factory GStringFilterInput( + [void Function(GStringFilterInputBuilder b) updates]) = + _$GStringFilterInput; + + String? get distinctFrom; + BuiltList? get distinctFromAll; + BuiltList? get distinctFromAny; + String? get distinctFromInsensitive; + BuiltList? get distinctFromInsensitiveAll; + BuiltList? get distinctFromInsensitiveAny; + String? get endsWith; + BuiltList? get endsWithAll; + BuiltList? get endsWithAny; + String? get endsWithInsensitive; + BuiltList? get endsWithInsensitiveAll; + BuiltList? get endsWithInsensitiveAny; + String? get equalTo; + String? get greaterThan; + String? get greaterThanInsensitive; + String? get greaterThanOrEqualTo; + String? get greaterThanOrEqualToInsensitive; + @BuiltValueField(wireName: 'in') + BuiltList? get Gin; + BuiltList? get inInsensitive; + String? get includes; + BuiltList? get includesAll; + BuiltList? get includesAny; + String? get includesInsensitive; + BuiltList? get includesInsensitiveAll; + BuiltList? get includesInsensitiveAny; + bool? get isNull; + String? get lessThan; + String? get lessThanInsensitive; + String? get lessThanOrEqualTo; + String? get lessThanOrEqualToInsensitive; + String? get like; + BuiltList? get likeAll; + BuiltList? get likeAny; + String? get likeInsensitive; + BuiltList? get likeInsensitiveAll; + BuiltList? get likeInsensitiveAny; + String? get notDistinctFrom; + String? get notDistinctFromInsensitive; + String? get notEndsWith; + BuiltList? get notEndsWithAll; + BuiltList? get notEndsWithAny; + String? get notEndsWithInsensitive; + BuiltList? get notEndsWithInsensitiveAll; + BuiltList? get notEndsWithInsensitiveAny; + String? get notEqualTo; + BuiltList? get notEqualToAll; + BuiltList? get notEqualToAny; + BuiltList? get notIn; + BuiltList? get notInInsensitive; + String? get notIncludes; + BuiltList? get notIncludesAll; + BuiltList? get notIncludesAny; + String? get notIncludesInsensitive; + BuiltList? get notIncludesInsensitiveAll; + BuiltList? get notIncludesInsensitiveAny; + String? get notLike; + BuiltList? get notLikeAll; + BuiltList? get notLikeAny; + String? get notLikeInsensitive; + BuiltList? get notLikeInsensitiveAll; + BuiltList? get notLikeInsensitiveAny; + String? get notStartsWith; + BuiltList? get notStartsWithAll; + BuiltList? get notStartsWithAny; + String? get notStartsWithInsensitive; + BuiltList? get notStartsWithInsensitiveAll; + BuiltList? get notStartsWithInsensitiveAny; + String? get startsWith; + BuiltList? get startsWithAll; + BuiltList? get startsWithAny; + String? get startsWithInsensitive; + BuiltList? get startsWithInsensitiveAll; + BuiltList? get startsWithInsensitiveAny; + static Serializer get serializer => + _$gStringFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GStringFilterInput.serializer, + this, + ) as Map); + + static GStringFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GStringFilterInput.serializer, + json, + ); +} + +abstract class GTrackerConditionInput + implements Built { + GTrackerConditionInput._(); + + factory GTrackerConditionInput( + [void Function(GTrackerConditionInputBuilder b) updates]) = + _$GTrackerConditionInput; + + String? get icon; + int? get id; + bool? get isLoggedIn; + String? get name; + static Serializer get serializer => + _$gTrackerConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackerConditionInput.serializer, + this, + ) as Map); + + static GTrackerConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackerConditionInput.serializer, + json, + ); +} + +class GTrackerOrderBy extends EnumClass { + const GTrackerOrderBy._(String name) : super(name); + + static const GTrackerOrderBy ID = _$gTrackerOrderByID; + + static const GTrackerOrderBy NAME = _$gTrackerOrderByNAME; + + static const GTrackerOrderBy IS_LOGGED_IN = _$gTrackerOrderByIS_LOGGED_IN; + + static Serializer get serializer => + _$gTrackerOrderBySerializer; + + static BuiltSet get values => _$gTrackerOrderByValues; + + static GTrackerOrderBy valueOf(String name) => _$gTrackerOrderByValueOf(name); +} + +abstract class GTrackerOrderInput + implements Built { + GTrackerOrderInput._(); + + factory GTrackerOrderInput( + [void Function(GTrackerOrderInputBuilder b) updates]) = + _$GTrackerOrderInput; + + GTrackerOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gTrackerOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackerOrderInput.serializer, + this, + ) as Map); + + static GTrackerOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackerOrderInput.serializer, + json, + ); +} + +abstract class GTrackProgressInput + implements Built { + GTrackProgressInput._(); + + factory GTrackProgressInput( + [void Function(GTrackProgressInputBuilder b) updates]) = + _$GTrackProgressInput; + + String? get clientMutationId; + int get mangaId; + static Serializer get serializer => + _$gTrackProgressInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackProgressInput.serializer, + this, + ) as Map); + + static GTrackProgressInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackProgressInput.serializer, + json, + ); +} + +abstract class GTrackRecordConditionInput + implements + Built { + GTrackRecordConditionInput._(); + + factory GTrackRecordConditionInput( + [void Function(GTrackRecordConditionInputBuilder b) updates]) = + _$GTrackRecordConditionInput; + + GLongString? get finishDate; + int? get id; + double? get lastChapterRead; + GLongString? get libraryId; + int? get mangaId; + GLongString? get remoteId; + String? get remoteUrl; + double? get score; + GLongString? get startDate; + int? get status; + String? get title; + int? get totalChapters; + int? get trackerId; + static Serializer get serializer => + _$gTrackRecordConditionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackRecordConditionInput.serializer, + this, + ) as Map); + + static GTrackRecordConditionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackRecordConditionInput.serializer, + json, + ); +} + +abstract class GTrackRecordFilterInput + implements Built { + GTrackRecordFilterInput._(); + + factory GTrackRecordFilterInput( + [void Function(GTrackRecordFilterInputBuilder b) updates]) = + _$GTrackRecordFilterInput; + + BuiltList? get and; + GLongFilterInput? get finishDate; + GIntFilterInput? get id; + GDoubleFilterInput? get lastChapterRead; + GLongFilterInput? get libraryId; + GIntFilterInput? get mangaId; + GTrackRecordFilterInput? get not; + BuiltList? get or; + GLongFilterInput? get remoteId; + GStringFilterInput? get remoteUrl; + GDoubleFilterInput? get score; + GLongFilterInput? get startDate; + GIntFilterInput? get status; + GStringFilterInput? get title; + GIntFilterInput? get totalChapters; + GIntFilterInput? get trackerId; + static Serializer get serializer => + _$gTrackRecordFilterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackRecordFilterInput.serializer, + this, + ) as Map); + + static GTrackRecordFilterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackRecordFilterInput.serializer, + json, + ); +} + +class GTrackRecordOrderBy extends EnumClass { + const GTrackRecordOrderBy._(String name) : super(name); + + static const GTrackRecordOrderBy ID = _$gTrackRecordOrderByID; + + static const GTrackRecordOrderBy MANGA_ID = _$gTrackRecordOrderByMANGA_ID; + + static const GTrackRecordOrderBy TRACKER_ID = _$gTrackRecordOrderByTRACKER_ID; + + static const GTrackRecordOrderBy REMOTE_ID = _$gTrackRecordOrderByREMOTE_ID; + + static const GTrackRecordOrderBy TITLE = _$gTrackRecordOrderByTITLE; + + static const GTrackRecordOrderBy LAST_CHAPTER_READ = + _$gTrackRecordOrderByLAST_CHAPTER_READ; + + static const GTrackRecordOrderBy TOTAL_CHAPTERS = + _$gTrackRecordOrderByTOTAL_CHAPTERS; + + static const GTrackRecordOrderBy SCORE = _$gTrackRecordOrderBySCORE; + + static const GTrackRecordOrderBy START_DATE = _$gTrackRecordOrderBySTART_DATE; + + static const GTrackRecordOrderBy FINISH_DATE = + _$gTrackRecordOrderByFINISH_DATE; + + static Serializer get serializer => + _$gTrackRecordOrderBySerializer; + + static BuiltSet get values => + _$gTrackRecordOrderByValues; + + static GTrackRecordOrderBy valueOf(String name) => + _$gTrackRecordOrderByValueOf(name); +} + +abstract class GTrackRecordOrderInput + implements Built { + GTrackRecordOrderInput._(); + + factory GTrackRecordOrderInput( + [void Function(GTrackRecordOrderInputBuilder b) updates]) = + _$GTrackRecordOrderInput; + + GTrackRecordOrderBy get by; + GSortOrder? get byType; + static Serializer get serializer => + _$gTrackRecordOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GTrackRecordOrderInput.serializer, + this, + ) as Map); + + static GTrackRecordOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GTrackRecordOrderInput.serializer, + json, + ); +} + +class GTriState extends EnumClass { + const GTriState._(String name) : super(name); + + static const GTriState IGNORE = _$gTriStateIGNORE; + + static const GTriState INCLUDE = _$gTriStateINCLUDE; + + static const GTriState EXCLUDE = _$gTriStateEXCLUDE; + + static Serializer get serializer => _$gTriStateSerializer; + + static BuiltSet get values => _$gTriStateValues; + + static GTriState valueOf(String name) => _$gTriStateValueOf(name); +} + +abstract class GUnbindTrackInput + implements Built { + GUnbindTrackInput._(); + + factory GUnbindTrackInput( + [void Function(GUnbindTrackInputBuilder b) updates]) = + _$GUnbindTrackInput; + + String? get clientMutationId; + bool? get deleteRemoteTrack; + int get recordId; + static Serializer get serializer => + _$gUnbindTrackInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUnbindTrackInput.serializer, + this, + ) as Map); + + static GUnbindTrackInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUnbindTrackInput.serializer, + json, + ); +} + +abstract class GUpdateCategoriesInput + implements Built { + GUpdateCategoriesInput._(); + + factory GUpdateCategoriesInput( + [void Function(GUpdateCategoriesInputBuilder b) updates]) = + _$GUpdateCategoriesInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateCategoryPatchInput get patch; + static Serializer get serializer => + _$gUpdateCategoriesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoriesInput.serializer, + this, + ) as Map); + + static GUpdateCategoriesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoriesInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryInput + implements Built { + GUpdateCategoryInput._(); + + factory GUpdateCategoryInput( + [void Function(GUpdateCategoryInputBuilder b) updates]) = + _$GUpdateCategoryInput; + + String? get clientMutationId; + int get id; + GUpdateCategoryPatchInput get patch; + static Serializer get serializer => + _$gUpdateCategoryInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryInput.serializer, + this, + ) as Map); + + static GUpdateCategoryInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryMangaInput + implements + Built { + GUpdateCategoryMangaInput._(); + + factory GUpdateCategoryMangaInput( + [void Function(GUpdateCategoryMangaInputBuilder b) updates]) = + _$GUpdateCategoryMangaInput; + + BuiltList get categories; + String? get clientMutationId; + static Serializer get serializer => + _$gUpdateCategoryMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryMangaInput.serializer, + this, + ) as Map); + + static GUpdateCategoryMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryMangaInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryOrderInput + implements + Built { + GUpdateCategoryOrderInput._(); + + factory GUpdateCategoryOrderInput( + [void Function(GUpdateCategoryOrderInputBuilder b) updates]) = + _$GUpdateCategoryOrderInput; + + String? get clientMutationId; + int get id; + int get position; + static Serializer get serializer => + _$gUpdateCategoryOrderInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryOrderInput.serializer, + this, + ) as Map); + + static GUpdateCategoryOrderInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryOrderInput.serializer, + json, + ); +} + +abstract class GUpdateCategoryPatchInput + implements + Built { + GUpdateCategoryPatchInput._(); + + factory GUpdateCategoryPatchInput( + [void Function(GUpdateCategoryPatchInputBuilder b) updates]) = + _$GUpdateCategoryPatchInput; + + @BuiltValueField(wireName: 'default') + bool? get Gdefault; + GIncludeOrExclude? get includeInDownload; + GIncludeOrExclude? get includeInUpdate; + String? get name; + static Serializer get serializer => + _$gUpdateCategoryPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateCategoryPatchInput.serializer, + this, + ) as Map); + + static GUpdateCategoryPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateCategoryPatchInput.serializer, + json, + ); +} + +abstract class GUpdateChapterInput + implements Built { + GUpdateChapterInput._(); + + factory GUpdateChapterInput( + [void Function(GUpdateChapterInputBuilder b) updates]) = + _$GUpdateChapterInput; + + String? get clientMutationId; + int get id; + GUpdateChapterPatchInput get patch; + static Serializer get serializer => + _$gUpdateChapterInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateChapterInput.serializer, + this, + ) as Map); + + static GUpdateChapterInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateChapterInput.serializer, + json, + ); +} + +abstract class GUpdateChapterPatchInput + implements + Built { + GUpdateChapterPatchInput._(); + + factory GUpdateChapterPatchInput( + [void Function(GUpdateChapterPatchInputBuilder b) updates]) = + _$GUpdateChapterPatchInput; + + bool? get isBookmarked; + bool? get isRead; + int? get lastPageRead; + static Serializer get serializer => + _$gUpdateChapterPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateChapterPatchInput.serializer, + this, + ) as Map); + + static GUpdateChapterPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateChapterPatchInput.serializer, + json, + ); +} + +abstract class GUpdateChaptersInput + implements Built { + GUpdateChaptersInput._(); + + factory GUpdateChaptersInput( + [void Function(GUpdateChaptersInputBuilder b) updates]) = + _$GUpdateChaptersInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateChapterPatchInput get patch; + static Serializer get serializer => + _$gUpdateChaptersInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateChaptersInput.serializer, + this, + ) as Map); + + static GUpdateChaptersInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateChaptersInput.serializer, + json, + ); +} + +abstract class GUpdateExtensionInput + implements Built { + GUpdateExtensionInput._(); + + factory GUpdateExtensionInput( + [void Function(GUpdateExtensionInputBuilder b) updates]) = + _$GUpdateExtensionInput; + + String? get clientMutationId; + String get id; + GUpdateExtensionPatchInput get patch; + static Serializer get serializer => + _$gUpdateExtensionInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionInput.serializer, + this, + ) as Map); + + static GUpdateExtensionInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionInput.serializer, + json, + ); +} + +abstract class GUpdateExtensionPatchInput + implements + Built { + GUpdateExtensionPatchInput._(); + + factory GUpdateExtensionPatchInput( + [void Function(GUpdateExtensionPatchInputBuilder b) updates]) = + _$GUpdateExtensionPatchInput; + + bool? get install; + bool? get uninstall; + @BuiltValueField(wireName: 'update') + bool? get Gupdate; + static Serializer get serializer => + _$gUpdateExtensionPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionPatchInput.serializer, + this, + ) as Map); + + static GUpdateExtensionPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionPatchInput.serializer, + json, + ); +} + +abstract class GUpdateExtensionsInput + implements Built { + GUpdateExtensionsInput._(); + + factory GUpdateExtensionsInput( + [void Function(GUpdateExtensionsInputBuilder b) updates]) = + _$GUpdateExtensionsInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateExtensionPatchInput get patch; + static Serializer get serializer => + _$gUpdateExtensionsInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateExtensionsInput.serializer, + this, + ) as Map); + + static GUpdateExtensionsInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateExtensionsInput.serializer, + json, + ); +} + +abstract class GUpdateLibraryMangaInput + implements + Built { + GUpdateLibraryMangaInput._(); + + factory GUpdateLibraryMangaInput( + [void Function(GUpdateLibraryMangaInputBuilder b) updates]) = + _$GUpdateLibraryMangaInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gUpdateLibraryMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateLibraryMangaInput.serializer, + this, + ) as Map); + + static GUpdateLibraryMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateLibraryMangaInput.serializer, + json, + ); +} + +abstract class GUpdateMangaCategoriesInput + implements + Built { + GUpdateMangaCategoriesInput._(); + + factory GUpdateMangaCategoriesInput( + [void Function(GUpdateMangaCategoriesInputBuilder b) updates]) = + _$GUpdateMangaCategoriesInput; + + String? get clientMutationId; + int get id; + GUpdateMangaCategoriesPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangaCategoriesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaCategoriesInput.serializer, + this, + ) as Map); + + static GUpdateMangaCategoriesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaCategoriesInput.serializer, + json, + ); +} + +abstract class GUpdateMangaCategoriesPatchInput + implements + Built { + GUpdateMangaCategoriesPatchInput._(); + + factory GUpdateMangaCategoriesPatchInput( + [void Function(GUpdateMangaCategoriesPatchInputBuilder b) updates]) = + _$GUpdateMangaCategoriesPatchInput; + + BuiltList? get addToCategories; + bool? get clearCategories; + BuiltList? get removeFromCategories; + static Serializer get serializer => + _$gUpdateMangaCategoriesPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaCategoriesPatchInput.serializer, + this, + ) as Map); + + static GUpdateMangaCategoriesPatchInput? fromJson( + Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaCategoriesPatchInput.serializer, + json, + ); +} + +abstract class GUpdateMangaInput + implements Built { + GUpdateMangaInput._(); + + factory GUpdateMangaInput( + [void Function(GUpdateMangaInputBuilder b) updates]) = + _$GUpdateMangaInput; + + String? get clientMutationId; + int get id; + GUpdateMangaPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangaInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaInput.serializer, + this, + ) as Map); + + static GUpdateMangaInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaInput.serializer, + json, + ); +} + +abstract class GUpdateMangaPatchInput + implements Built { + GUpdateMangaPatchInput._(); + + factory GUpdateMangaPatchInput( + [void Function(GUpdateMangaPatchInputBuilder b) updates]) = + _$GUpdateMangaPatchInput; + + bool? get inLibrary; + static Serializer get serializer => + _$gUpdateMangaPatchInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangaPatchInput.serializer, + this, + ) as Map); + + static GUpdateMangaPatchInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangaPatchInput.serializer, + json, + ); +} + +abstract class GUpdateMangasCategoriesInput + implements + Built { + GUpdateMangasCategoriesInput._(); + + factory GUpdateMangasCategoriesInput( + [void Function(GUpdateMangasCategoriesInputBuilder b) updates]) = + _$GUpdateMangasCategoriesInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateMangaCategoriesPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangasCategoriesInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangasCategoriesInput.serializer, + this, + ) as Map); + + static GUpdateMangasCategoriesInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangasCategoriesInput.serializer, + json, + ); +} + +abstract class GUpdateMangasInput + implements Built { + GUpdateMangasInput._(); + + factory GUpdateMangasInput( + [void Function(GUpdateMangasInputBuilder b) updates]) = + _$GUpdateMangasInput; + + String? get clientMutationId; + BuiltList get ids; + GUpdateMangaPatchInput get patch; + static Serializer get serializer => + _$gUpdateMangasInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateMangasInput.serializer, + this, + ) as Map); + + static GUpdateMangasInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateMangasInput.serializer, + json, + ); +} + +abstract class GUpdateSourcePreferenceInput + implements + Built { + GUpdateSourcePreferenceInput._(); + + factory GUpdateSourcePreferenceInput( + [void Function(GUpdateSourcePreferenceInputBuilder b) updates]) = + _$GUpdateSourcePreferenceInput; + + GSourcePreferenceChangeInput get change; + String? get clientMutationId; + GLongString get source; + static Serializer get serializer => + _$gUpdateSourcePreferenceInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateSourcePreferenceInput.serializer, + this, + ) as Map); + + static GUpdateSourcePreferenceInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateSourcePreferenceInput.serializer, + json, + ); +} + +class GUpdateState extends EnumClass { + const GUpdateState._(String name) : super(name); + + static const GUpdateState IDLE = _$gUpdateStateIDLE; + + static const GUpdateState DOWNLOADING = _$gUpdateStateDOWNLOADING; + + static const GUpdateState FINISHED = _$gUpdateStateFINISHED; + + static const GUpdateState ERROR = _$gUpdateStateERROR; + + static Serializer get serializer => _$gUpdateStateSerializer; + + static BuiltSet get values => _$gUpdateStateValues; + + static GUpdateState valueOf(String name) => _$gUpdateStateValueOf(name); +} + +abstract class GUpdateStopInput + implements Built { + GUpdateStopInput._(); + + factory GUpdateStopInput([void Function(GUpdateStopInputBuilder b) updates]) = + _$GUpdateStopInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gUpdateStopInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateStopInput.serializer, + this, + ) as Map); + + static GUpdateStopInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateStopInput.serializer, + json, + ); +} + +class GUpdateStrategy extends EnumClass { + const GUpdateStrategy._(String name) : super(name); + + static const GUpdateStrategy ALWAYS_UPDATE = _$gUpdateStrategyALWAYS_UPDATE; + + static const GUpdateStrategy ONLY_FETCH_ONCE = + _$gUpdateStrategyONLY_FETCH_ONCE; + + static Serializer get serializer => + _$gUpdateStrategySerializer; + + static BuiltSet get values => _$gUpdateStrategyValues; + + static GUpdateStrategy valueOf(String name) => _$gUpdateStrategyValueOf(name); +} + +abstract class GUpdateTrackInput + implements Built { + GUpdateTrackInput._(); + + factory GUpdateTrackInput( + [void Function(GUpdateTrackInputBuilder b) updates]) = + _$GUpdateTrackInput; + + String? get clientMutationId; + GLongString? get finishDate; + double? get lastChapterRead; + int get recordId; + String? get scoreString; + GLongString? get startDate; + int? get status; + static Serializer get serializer => + _$gUpdateTrackInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GUpdateTrackInput.serializer, + this, + ) as Map); + + static GUpdateTrackInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GUpdateTrackInput.serializer, + json, + ); +} + +abstract class GValidateBackupInput + implements Built { + GValidateBackupInput._(); + + factory GValidateBackupInput( + [void Function(GValidateBackupInputBuilder b) updates]) = + _$GValidateBackupInput; + + _i3.MultipartFile get backup; + static Serializer get serializer => + _$gValidateBackupInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GValidateBackupInput.serializer, + this, + ) as Map); + + static GValidateBackupInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GValidateBackupInput.serializer, + json, + ); +} + +class GWebUIChannel extends EnumClass { + const GWebUIChannel._(String name) : super(name); + + static const GWebUIChannel BUNDLED = _$gWebUIChannelBUNDLED; + + static const GWebUIChannel STABLE = _$gWebUIChannelSTABLE; + + static const GWebUIChannel PREVIEW = _$gWebUIChannelPREVIEW; + + static Serializer get serializer => _$gWebUIChannelSerializer; + + static BuiltSet get values => _$gWebUIChannelValues; + + static GWebUIChannel valueOf(String name) => _$gWebUIChannelValueOf(name); +} + +class GWebUIFlavor extends EnumClass { + const GWebUIFlavor._(String name) : super(name); + + static const GWebUIFlavor WEBUI = _$gWebUIFlavorWEBUI; + + static const GWebUIFlavor VUI = _$gWebUIFlavorVUI; + + static const GWebUIFlavor CUSTOM = _$gWebUIFlavorCUSTOM; + + static Serializer get serializer => _$gWebUIFlavorSerializer; + + static BuiltSet get values => _$gWebUIFlavorValues; + + static GWebUIFlavor valueOf(String name) => _$gWebUIFlavorValueOf(name); +} + +class GWebUIInterface extends EnumClass { + const GWebUIInterface._(String name) : super(name); + + static const GWebUIInterface BROWSER = _$gWebUIInterfaceBROWSER; + + static const GWebUIInterface ELECTRON = _$gWebUIInterfaceELECTRON; + + static Serializer get serializer => + _$gWebUIInterfaceSerializer; + + static BuiltSet get values => _$gWebUIInterfaceValues; + + static GWebUIInterface valueOf(String name) => _$gWebUIInterfaceValueOf(name); +} + +abstract class GWebUIUpdateInput + implements Built { + GWebUIUpdateInput._(); + + factory GWebUIUpdateInput( + [void Function(GWebUIUpdateInputBuilder b) updates]) = + _$GWebUIUpdateInput; + + String? get clientMutationId; + static Serializer get serializer => + _$gWebUIUpdateInputSerializer; + + Map toJson() => (_i1.serializers.serializeWith( + GWebUIUpdateInput.serializer, + this, + ) as Map); + + static GWebUIUpdateInput? fromJson(Map json) => + _i1.serializers.deserializeWith( + GWebUIUpdateInput.serializer, + json, + ); +} + +const Map> possibleTypesMap = { + 'Edge': { + 'CategoryEdge', + 'ChapterEdge', + 'DownloadEdge', + 'ExtensionEdge', + 'MangaEdge', + 'MetaEdge', + 'SourceEdge', + 'TrackerEdge', + 'TrackRecordEdge', + }, + 'MetaType': { + 'CategoryMetaType', + 'ChapterMetaType', + 'GlobalMetaType', + 'MangaMetaType', + 'SourceMetaType', + }, + 'NodeList': { + 'CategoryNodeList', + 'ChapterNodeList', + 'DownloadNodeList', + 'ExtensionNodeList', + 'GlobalMetaNodeList', + 'MangaNodeList', + 'SourceNodeList', + 'TrackerNodeList', + 'TrackRecordNodeList', + }, + 'Filter': { + 'CheckBoxFilter', + 'GroupFilter', + 'HeaderFilter', + 'SelectFilter', + 'SeparatorFilter', + 'SortFilter', + 'TextFilter', + 'TriStateFilter', + }, + 'Node': { + 'CategoryMetaType', + 'CategoryType', + 'ChapterMetaType', + 'ChapterType', + 'DownloadType', + 'DownloadUpdate', + 'ExtensionType', + 'GlobalMetaType', + 'MangaMetaType', + 'MangaType', + 'PartialSettingsType', + 'SettingsType', + 'SourceMetaType', + 'SourceType', + 'TrackRecordType', + 'TrackerType', + }, + 'Settings': { + 'PartialSettingsType', + 'SettingsType', + }, + 'Preference': { + 'CheckBoxPreference', + 'EditTextPreference', + 'ListPreference', + 'MultiSelectListPreference', + 'SwitchPreference', + }, +}; diff --git a/lib/src/graphql/__generated__/schema.schema.gql.g.dart b/lib/src/graphql/__generated__/schema.schema.gql.g.dart new file mode 100644 index 00000000..2ed6c1b1 --- /dev/null +++ b/lib/src/graphql/__generated__/schema.schema.gql.g.dart @@ -0,0 +1,28201 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'schema.schema.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const GBackupRestoreState _$gBackupRestoreStateIDLE = + const GBackupRestoreState._('IDLE'); +const GBackupRestoreState _$gBackupRestoreStateSUCCESS = + const GBackupRestoreState._('SUCCESS'); +const GBackupRestoreState _$gBackupRestoreStateFAILURE = + const GBackupRestoreState._('FAILURE'); +const GBackupRestoreState _$gBackupRestoreStateRESTORING_CATEGORIES = + const GBackupRestoreState._('RESTORING_CATEGORIES'); +const GBackupRestoreState _$gBackupRestoreStateRESTORING_MANGA = + const GBackupRestoreState._('RESTORING_MANGA'); + +GBackupRestoreState _$gBackupRestoreStateValueOf(String name) { + switch (name) { + case 'IDLE': + return _$gBackupRestoreStateIDLE; + case 'SUCCESS': + return _$gBackupRestoreStateSUCCESS; + case 'FAILURE': + return _$gBackupRestoreStateFAILURE; + case 'RESTORING_CATEGORIES': + return _$gBackupRestoreStateRESTORING_CATEGORIES; + case 'RESTORING_MANGA': + return _$gBackupRestoreStateRESTORING_MANGA; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gBackupRestoreStateValues = + new BuiltSet(const [ + _$gBackupRestoreStateIDLE, + _$gBackupRestoreStateSUCCESS, + _$gBackupRestoreStateFAILURE, + _$gBackupRestoreStateRESTORING_CATEGORIES, + _$gBackupRestoreStateRESTORING_MANGA, +]); + +const GCategoryOrderBy _$gCategoryOrderByID = const GCategoryOrderBy._('ID'); +const GCategoryOrderBy _$gCategoryOrderByNAME = + const GCategoryOrderBy._('NAME'); +const GCategoryOrderBy _$gCategoryOrderByORDER = + const GCategoryOrderBy._('ORDER'); + +GCategoryOrderBy _$gCategoryOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gCategoryOrderByID; + case 'NAME': + return _$gCategoryOrderByNAME; + case 'ORDER': + return _$gCategoryOrderByORDER; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gCategoryOrderByValues = + new BuiltSet(const [ + _$gCategoryOrderByID, + _$gCategoryOrderByNAME, + _$gCategoryOrderByORDER, +]); + +const GChapterOrderBy _$gChapterOrderByID = const GChapterOrderBy._('ID'); +const GChapterOrderBy _$gChapterOrderBySOURCE_ORDER = + const GChapterOrderBy._('SOURCE_ORDER'); +const GChapterOrderBy _$gChapterOrderByNAME = const GChapterOrderBy._('NAME'); +const GChapterOrderBy _$gChapterOrderByUPLOAD_DATE = + const GChapterOrderBy._('UPLOAD_DATE'); +const GChapterOrderBy _$gChapterOrderByCHAPTER_NUMBER = + const GChapterOrderBy._('CHAPTER_NUMBER'); +const GChapterOrderBy _$gChapterOrderByLAST_READ_AT = + const GChapterOrderBy._('LAST_READ_AT'); +const GChapterOrderBy _$gChapterOrderByFETCHED_AT = + const GChapterOrderBy._('FETCHED_AT'); + +GChapterOrderBy _$gChapterOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gChapterOrderByID; + case 'SOURCE_ORDER': + return _$gChapterOrderBySOURCE_ORDER; + case 'NAME': + return _$gChapterOrderByNAME; + case 'UPLOAD_DATE': + return _$gChapterOrderByUPLOAD_DATE; + case 'CHAPTER_NUMBER': + return _$gChapterOrderByCHAPTER_NUMBER; + case 'LAST_READ_AT': + return _$gChapterOrderByLAST_READ_AT; + case 'FETCHED_AT': + return _$gChapterOrderByFETCHED_AT; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gChapterOrderByValues = + new BuiltSet(const [ + _$gChapterOrderByID, + _$gChapterOrderBySOURCE_ORDER, + _$gChapterOrderByNAME, + _$gChapterOrderByUPLOAD_DATE, + _$gChapterOrderByCHAPTER_NUMBER, + _$gChapterOrderByLAST_READ_AT, + _$gChapterOrderByFETCHED_AT, +]); + +const GDownloaderState _$gDownloaderStateSTARTED = + const GDownloaderState._('STARTED'); +const GDownloaderState _$gDownloaderStateSTOPPED = + const GDownloaderState._('STOPPED'); + +GDownloaderState _$gDownloaderStateValueOf(String name) { + switch (name) { + case 'STARTED': + return _$gDownloaderStateSTARTED; + case 'STOPPED': + return _$gDownloaderStateSTOPPED; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gDownloaderStateValues = + new BuiltSet(const [ + _$gDownloaderStateSTARTED, + _$gDownloaderStateSTOPPED, +]); + +const GDownloadState _$gDownloadStateQUEUED = const GDownloadState._('QUEUED'); +const GDownloadState _$gDownloadStateDOWNLOADING = + const GDownloadState._('DOWNLOADING'); +const GDownloadState _$gDownloadStateFINISHED = + const GDownloadState._('FINISHED'); +const GDownloadState _$gDownloadStateERROR = const GDownloadState._('ERROR'); + +GDownloadState _$gDownloadStateValueOf(String name) { + switch (name) { + case 'QUEUED': + return _$gDownloadStateQUEUED; + case 'DOWNLOADING': + return _$gDownloadStateDOWNLOADING; + case 'FINISHED': + return _$gDownloadStateFINISHED; + case 'ERROR': + return _$gDownloadStateERROR; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gDownloadStateValues = + new BuiltSet(const [ + _$gDownloadStateQUEUED, + _$gDownloadStateDOWNLOADING, + _$gDownloadStateFINISHED, + _$gDownloadStateERROR, +]); + +const GDownloadUpdateType _$gDownloadUpdateTypeQUEUED = + const GDownloadUpdateType._('QUEUED'); +const GDownloadUpdateType _$gDownloadUpdateTypeDEQUEUED = + const GDownloadUpdateType._('DEQUEUED'); +const GDownloadUpdateType _$gDownloadUpdateTypePAUSED = + const GDownloadUpdateType._('PAUSED'); +const GDownloadUpdateType _$gDownloadUpdateTypeSTOPPED = + const GDownloadUpdateType._('STOPPED'); +const GDownloadUpdateType _$gDownloadUpdateTypePROGRESS = + const GDownloadUpdateType._('PROGRESS'); +const GDownloadUpdateType _$gDownloadUpdateTypeFINISHED = + const GDownloadUpdateType._('FINISHED'); +const GDownloadUpdateType _$gDownloadUpdateTypeERROR = + const GDownloadUpdateType._('ERROR'); +const GDownloadUpdateType _$gDownloadUpdateTypePOSITION = + const GDownloadUpdateType._('POSITION'); + +GDownloadUpdateType _$gDownloadUpdateTypeValueOf(String name) { + switch (name) { + case 'QUEUED': + return _$gDownloadUpdateTypeQUEUED; + case 'DEQUEUED': + return _$gDownloadUpdateTypeDEQUEUED; + case 'PAUSED': + return _$gDownloadUpdateTypePAUSED; + case 'STOPPED': + return _$gDownloadUpdateTypeSTOPPED; + case 'PROGRESS': + return _$gDownloadUpdateTypePROGRESS; + case 'FINISHED': + return _$gDownloadUpdateTypeFINISHED; + case 'ERROR': + return _$gDownloadUpdateTypeERROR; + case 'POSITION': + return _$gDownloadUpdateTypePOSITION; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gDownloadUpdateTypeValues = + new BuiltSet(const [ + _$gDownloadUpdateTypeQUEUED, + _$gDownloadUpdateTypeDEQUEUED, + _$gDownloadUpdateTypePAUSED, + _$gDownloadUpdateTypeSTOPPED, + _$gDownloadUpdateTypePROGRESS, + _$gDownloadUpdateTypeFINISHED, + _$gDownloadUpdateTypeERROR, + _$gDownloadUpdateTypePOSITION, +]); + +const GExtensionOrderBy _$gExtensionOrderByPKG_NAME = + const GExtensionOrderBy._('PKG_NAME'); +const GExtensionOrderBy _$gExtensionOrderByNAME = + const GExtensionOrderBy._('NAME'); +const GExtensionOrderBy _$gExtensionOrderByAPK_NAME = + const GExtensionOrderBy._('APK_NAME'); + +GExtensionOrderBy _$gExtensionOrderByValueOf(String name) { + switch (name) { + case 'PKG_NAME': + return _$gExtensionOrderByPKG_NAME; + case 'NAME': + return _$gExtensionOrderByNAME; + case 'APK_NAME': + return _$gExtensionOrderByAPK_NAME; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gExtensionOrderByValues = + new BuiltSet(const [ + _$gExtensionOrderByPKG_NAME, + _$gExtensionOrderByNAME, + _$gExtensionOrderByAPK_NAME, +]); + +const GFetchSourceMangaType _$gFetchSourceMangaTypeSEARCH = + const GFetchSourceMangaType._('SEARCH'); +const GFetchSourceMangaType _$gFetchSourceMangaTypePOPULAR = + const GFetchSourceMangaType._('POPULAR'); +const GFetchSourceMangaType _$gFetchSourceMangaTypeLATEST = + const GFetchSourceMangaType._('LATEST'); + +GFetchSourceMangaType _$gFetchSourceMangaTypeValueOf(String name) { + switch (name) { + case 'SEARCH': + return _$gFetchSourceMangaTypeSEARCH; + case 'POPULAR': + return _$gFetchSourceMangaTypePOPULAR; + case 'LATEST': + return _$gFetchSourceMangaTypeLATEST; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gFetchSourceMangaTypeValues = + new BuiltSet(const [ + _$gFetchSourceMangaTypeSEARCH, + _$gFetchSourceMangaTypePOPULAR, + _$gFetchSourceMangaTypeLATEST, +]); + +const GIncludeOrExclude _$gIncludeOrExcludeEXCLUDE = + const GIncludeOrExclude._('EXCLUDE'); +const GIncludeOrExclude _$gIncludeOrExcludeINCLUDE = + const GIncludeOrExclude._('INCLUDE'); +const GIncludeOrExclude _$gIncludeOrExcludeUNSET = + const GIncludeOrExclude._('UNSET'); + +GIncludeOrExclude _$gIncludeOrExcludeValueOf(String name) { + switch (name) { + case 'EXCLUDE': + return _$gIncludeOrExcludeEXCLUDE; + case 'INCLUDE': + return _$gIncludeOrExcludeINCLUDE; + case 'UNSET': + return _$gIncludeOrExcludeUNSET; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gIncludeOrExcludeValues = + new BuiltSet(const [ + _$gIncludeOrExcludeEXCLUDE, + _$gIncludeOrExcludeINCLUDE, + _$gIncludeOrExcludeUNSET, +]); + +const GMangaOrderBy _$gMangaOrderByID = const GMangaOrderBy._('ID'); +const GMangaOrderBy _$gMangaOrderByTITLE = const GMangaOrderBy._('TITLE'); +const GMangaOrderBy _$gMangaOrderByIN_LIBRARY_AT = + const GMangaOrderBy._('IN_LIBRARY_AT'); +const GMangaOrderBy _$gMangaOrderByLAST_FETCHED_AT = + const GMangaOrderBy._('LAST_FETCHED_AT'); + +GMangaOrderBy _$gMangaOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gMangaOrderByID; + case 'TITLE': + return _$gMangaOrderByTITLE; + case 'IN_LIBRARY_AT': + return _$gMangaOrderByIN_LIBRARY_AT; + case 'LAST_FETCHED_AT': + return _$gMangaOrderByLAST_FETCHED_AT; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gMangaOrderByValues = + new BuiltSet(const [ + _$gMangaOrderByID, + _$gMangaOrderByTITLE, + _$gMangaOrderByIN_LIBRARY_AT, + _$gMangaOrderByLAST_FETCHED_AT, +]); + +const GMangaStatus _$gMangaStatusUNKNOWN = const GMangaStatus._('UNKNOWN'); +const GMangaStatus _$gMangaStatusONGOING = const GMangaStatus._('ONGOING'); +const GMangaStatus _$gMangaStatusCOMPLETED = const GMangaStatus._('COMPLETED'); +const GMangaStatus _$gMangaStatusLICENSED = const GMangaStatus._('LICENSED'); +const GMangaStatus _$gMangaStatusPUBLISHING_FINISHED = + const GMangaStatus._('PUBLISHING_FINISHED'); +const GMangaStatus _$gMangaStatusCANCELLED = const GMangaStatus._('CANCELLED'); +const GMangaStatus _$gMangaStatusON_HIATUS = const GMangaStatus._('ON_HIATUS'); + +GMangaStatus _$gMangaStatusValueOf(String name) { + switch (name) { + case 'UNKNOWN': + return _$gMangaStatusUNKNOWN; + case 'ONGOING': + return _$gMangaStatusONGOING; + case 'COMPLETED': + return _$gMangaStatusCOMPLETED; + case 'LICENSED': + return _$gMangaStatusLICENSED; + case 'PUBLISHING_FINISHED': + return _$gMangaStatusPUBLISHING_FINISHED; + case 'CANCELLED': + return _$gMangaStatusCANCELLED; + case 'ON_HIATUS': + return _$gMangaStatusON_HIATUS; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gMangaStatusValues = + new BuiltSet(const [ + _$gMangaStatusUNKNOWN, + _$gMangaStatusONGOING, + _$gMangaStatusCOMPLETED, + _$gMangaStatusLICENSED, + _$gMangaStatusPUBLISHING_FINISHED, + _$gMangaStatusCANCELLED, + _$gMangaStatusON_HIATUS, +]); + +const GMetaOrderBy _$gMetaOrderByKEY = const GMetaOrderBy._('KEY'); +const GMetaOrderBy _$gMetaOrderByVALUE = const GMetaOrderBy._('VALUE'); + +GMetaOrderBy _$gMetaOrderByValueOf(String name) { + switch (name) { + case 'KEY': + return _$gMetaOrderByKEY; + case 'VALUE': + return _$gMetaOrderByVALUE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gMetaOrderByValues = + new BuiltSet(const [ + _$gMetaOrderByKEY, + _$gMetaOrderByVALUE, +]); + +const GSortOrder _$gSortOrderASC = const GSortOrder._('ASC'); +const GSortOrder _$gSortOrderDESC = const GSortOrder._('DESC'); +const GSortOrder _$gSortOrderASC_NULLS_FIRST = + const GSortOrder._('ASC_NULLS_FIRST'); +const GSortOrder _$gSortOrderDESC_NULLS_FIRST = + const GSortOrder._('DESC_NULLS_FIRST'); +const GSortOrder _$gSortOrderASC_NULLS_LAST = + const GSortOrder._('ASC_NULLS_LAST'); +const GSortOrder _$gSortOrderDESC_NULLS_LAST = + const GSortOrder._('DESC_NULLS_LAST'); + +GSortOrder _$gSortOrderValueOf(String name) { + switch (name) { + case 'ASC': + return _$gSortOrderASC; + case 'DESC': + return _$gSortOrderDESC; + case 'ASC_NULLS_FIRST': + return _$gSortOrderASC_NULLS_FIRST; + case 'DESC_NULLS_FIRST': + return _$gSortOrderDESC_NULLS_FIRST; + case 'ASC_NULLS_LAST': + return _$gSortOrderASC_NULLS_LAST; + case 'DESC_NULLS_LAST': + return _$gSortOrderDESC_NULLS_LAST; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gSortOrderValues = + new BuiltSet(const [ + _$gSortOrderASC, + _$gSortOrderDESC, + _$gSortOrderASC_NULLS_FIRST, + _$gSortOrderDESC_NULLS_FIRST, + _$gSortOrderASC_NULLS_LAST, + _$gSortOrderDESC_NULLS_LAST, +]); + +const GSourceOrderBy _$gSourceOrderByID = const GSourceOrderBy._('ID'); +const GSourceOrderBy _$gSourceOrderByNAME = const GSourceOrderBy._('NAME'); +const GSourceOrderBy _$gSourceOrderByLANG = const GSourceOrderBy._('LANG'); + +GSourceOrderBy _$gSourceOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gSourceOrderByID; + case 'NAME': + return _$gSourceOrderByNAME; + case 'LANG': + return _$gSourceOrderByLANG; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gSourceOrderByValues = + new BuiltSet(const [ + _$gSourceOrderByID, + _$gSourceOrderByNAME, + _$gSourceOrderByLANG, +]); + +const GTrackerOrderBy _$gTrackerOrderByID = const GTrackerOrderBy._('ID'); +const GTrackerOrderBy _$gTrackerOrderByNAME = const GTrackerOrderBy._('NAME'); +const GTrackerOrderBy _$gTrackerOrderByIS_LOGGED_IN = + const GTrackerOrderBy._('IS_LOGGED_IN'); + +GTrackerOrderBy _$gTrackerOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gTrackerOrderByID; + case 'NAME': + return _$gTrackerOrderByNAME; + case 'IS_LOGGED_IN': + return _$gTrackerOrderByIS_LOGGED_IN; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gTrackerOrderByValues = + new BuiltSet(const [ + _$gTrackerOrderByID, + _$gTrackerOrderByNAME, + _$gTrackerOrderByIS_LOGGED_IN, +]); + +const GTrackRecordOrderBy _$gTrackRecordOrderByID = + const GTrackRecordOrderBy._('ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByMANGA_ID = + const GTrackRecordOrderBy._('MANGA_ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByTRACKER_ID = + const GTrackRecordOrderBy._('TRACKER_ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByREMOTE_ID = + const GTrackRecordOrderBy._('REMOTE_ID'); +const GTrackRecordOrderBy _$gTrackRecordOrderByTITLE = + const GTrackRecordOrderBy._('TITLE'); +const GTrackRecordOrderBy _$gTrackRecordOrderByLAST_CHAPTER_READ = + const GTrackRecordOrderBy._('LAST_CHAPTER_READ'); +const GTrackRecordOrderBy _$gTrackRecordOrderByTOTAL_CHAPTERS = + const GTrackRecordOrderBy._('TOTAL_CHAPTERS'); +const GTrackRecordOrderBy _$gTrackRecordOrderBySCORE = + const GTrackRecordOrderBy._('SCORE'); +const GTrackRecordOrderBy _$gTrackRecordOrderBySTART_DATE = + const GTrackRecordOrderBy._('START_DATE'); +const GTrackRecordOrderBy _$gTrackRecordOrderByFINISH_DATE = + const GTrackRecordOrderBy._('FINISH_DATE'); + +GTrackRecordOrderBy _$gTrackRecordOrderByValueOf(String name) { + switch (name) { + case 'ID': + return _$gTrackRecordOrderByID; + case 'MANGA_ID': + return _$gTrackRecordOrderByMANGA_ID; + case 'TRACKER_ID': + return _$gTrackRecordOrderByTRACKER_ID; + case 'REMOTE_ID': + return _$gTrackRecordOrderByREMOTE_ID; + case 'TITLE': + return _$gTrackRecordOrderByTITLE; + case 'LAST_CHAPTER_READ': + return _$gTrackRecordOrderByLAST_CHAPTER_READ; + case 'TOTAL_CHAPTERS': + return _$gTrackRecordOrderByTOTAL_CHAPTERS; + case 'SCORE': + return _$gTrackRecordOrderBySCORE; + case 'START_DATE': + return _$gTrackRecordOrderBySTART_DATE; + case 'FINISH_DATE': + return _$gTrackRecordOrderByFINISH_DATE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gTrackRecordOrderByValues = + new BuiltSet(const [ + _$gTrackRecordOrderByID, + _$gTrackRecordOrderByMANGA_ID, + _$gTrackRecordOrderByTRACKER_ID, + _$gTrackRecordOrderByREMOTE_ID, + _$gTrackRecordOrderByTITLE, + _$gTrackRecordOrderByLAST_CHAPTER_READ, + _$gTrackRecordOrderByTOTAL_CHAPTERS, + _$gTrackRecordOrderBySCORE, + _$gTrackRecordOrderBySTART_DATE, + _$gTrackRecordOrderByFINISH_DATE, +]); + +const GTriState _$gTriStateIGNORE = const GTriState._('IGNORE'); +const GTriState _$gTriStateINCLUDE = const GTriState._('INCLUDE'); +const GTriState _$gTriStateEXCLUDE = const GTriState._('EXCLUDE'); + +GTriState _$gTriStateValueOf(String name) { + switch (name) { + case 'IGNORE': + return _$gTriStateIGNORE; + case 'INCLUDE': + return _$gTriStateINCLUDE; + case 'EXCLUDE': + return _$gTriStateEXCLUDE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gTriStateValues = + new BuiltSet(const [ + _$gTriStateIGNORE, + _$gTriStateINCLUDE, + _$gTriStateEXCLUDE, +]); + +const GUpdateState _$gUpdateStateIDLE = const GUpdateState._('IDLE'); +const GUpdateState _$gUpdateStateDOWNLOADING = + const GUpdateState._('DOWNLOADING'); +const GUpdateState _$gUpdateStateFINISHED = const GUpdateState._('FINISHED'); +const GUpdateState _$gUpdateStateERROR = const GUpdateState._('ERROR'); + +GUpdateState _$gUpdateStateValueOf(String name) { + switch (name) { + case 'IDLE': + return _$gUpdateStateIDLE; + case 'DOWNLOADING': + return _$gUpdateStateDOWNLOADING; + case 'FINISHED': + return _$gUpdateStateFINISHED; + case 'ERROR': + return _$gUpdateStateERROR; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gUpdateStateValues = + new BuiltSet(const [ + _$gUpdateStateIDLE, + _$gUpdateStateDOWNLOADING, + _$gUpdateStateFINISHED, + _$gUpdateStateERROR, +]); + +const GUpdateStrategy _$gUpdateStrategyALWAYS_UPDATE = + const GUpdateStrategy._('ALWAYS_UPDATE'); +const GUpdateStrategy _$gUpdateStrategyONLY_FETCH_ONCE = + const GUpdateStrategy._('ONLY_FETCH_ONCE'); + +GUpdateStrategy _$gUpdateStrategyValueOf(String name) { + switch (name) { + case 'ALWAYS_UPDATE': + return _$gUpdateStrategyALWAYS_UPDATE; + case 'ONLY_FETCH_ONCE': + return _$gUpdateStrategyONLY_FETCH_ONCE; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gUpdateStrategyValues = + new BuiltSet(const [ + _$gUpdateStrategyALWAYS_UPDATE, + _$gUpdateStrategyONLY_FETCH_ONCE, +]); + +const GWebUIChannel _$gWebUIChannelBUNDLED = const GWebUIChannel._('BUNDLED'); +const GWebUIChannel _$gWebUIChannelSTABLE = const GWebUIChannel._('STABLE'); +const GWebUIChannel _$gWebUIChannelPREVIEW = const GWebUIChannel._('PREVIEW'); + +GWebUIChannel _$gWebUIChannelValueOf(String name) { + switch (name) { + case 'BUNDLED': + return _$gWebUIChannelBUNDLED; + case 'STABLE': + return _$gWebUIChannelSTABLE; + case 'PREVIEW': + return _$gWebUIChannelPREVIEW; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gWebUIChannelValues = + new BuiltSet(const [ + _$gWebUIChannelBUNDLED, + _$gWebUIChannelSTABLE, + _$gWebUIChannelPREVIEW, +]); + +const GWebUIFlavor _$gWebUIFlavorWEBUI = const GWebUIFlavor._('WEBUI'); +const GWebUIFlavor _$gWebUIFlavorVUI = const GWebUIFlavor._('VUI'); +const GWebUIFlavor _$gWebUIFlavorCUSTOM = const GWebUIFlavor._('CUSTOM'); + +GWebUIFlavor _$gWebUIFlavorValueOf(String name) { + switch (name) { + case 'WEBUI': + return _$gWebUIFlavorWEBUI; + case 'VUI': + return _$gWebUIFlavorVUI; + case 'CUSTOM': + return _$gWebUIFlavorCUSTOM; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gWebUIFlavorValues = + new BuiltSet(const [ + _$gWebUIFlavorWEBUI, + _$gWebUIFlavorVUI, + _$gWebUIFlavorCUSTOM, +]); + +const GWebUIInterface _$gWebUIInterfaceBROWSER = + const GWebUIInterface._('BROWSER'); +const GWebUIInterface _$gWebUIInterfaceELECTRON = + const GWebUIInterface._('ELECTRON'); + +GWebUIInterface _$gWebUIInterfaceValueOf(String name) { + switch (name) { + case 'BROWSER': + return _$gWebUIInterfaceBROWSER; + case 'ELECTRON': + return _$gWebUIInterfaceELECTRON; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$gWebUIInterfaceValues = + new BuiltSet(const [ + _$gWebUIInterfaceBROWSER, + _$gWebUIInterfaceELECTRON, +]); + +Serializer _$gBackupRestoreStateSerializer = + new _$GBackupRestoreStateSerializer(); +Serializer _$gBindTrackInputSerializer = + new _$GBindTrackInputSerializer(); +Serializer _$gBooleanFilterInputSerializer = + new _$GBooleanFilterInputSerializer(); +Serializer _$gCategoryConditionInputSerializer = + new _$GCategoryConditionInputSerializer(); +Serializer _$gCategoryFilterInputSerializer = + new _$GCategoryFilterInputSerializer(); +Serializer _$gCategoryMetaTypeInputSerializer = + new _$GCategoryMetaTypeInputSerializer(); +Serializer _$gCategoryOrderBySerializer = + new _$GCategoryOrderBySerializer(); +Serializer _$gCategoryOrderInputSerializer = + new _$GCategoryOrderInputSerializer(); +Serializer _$gChapterConditionInputSerializer = + new _$GChapterConditionInputSerializer(); +Serializer _$gChapterFilterInputSerializer = + new _$GChapterFilterInputSerializer(); +Serializer _$gChapterMetaTypeInputSerializer = + new _$GChapterMetaTypeInputSerializer(); +Serializer _$gChapterOrderBySerializer = + new _$GChapterOrderBySerializer(); +Serializer _$gChapterOrderInputSerializer = + new _$GChapterOrderInputSerializer(); +Serializer _$gClearCachedImagesInputSerializer = + new _$GClearCachedImagesInputSerializer(); +Serializer _$gClearDownloaderInputSerializer = + new _$GClearDownloaderInputSerializer(); +Serializer _$gCreateBackupInputSerializer = + new _$GCreateBackupInputSerializer(); +Serializer _$gCreateCategoryInputSerializer = + new _$GCreateCategoryInputSerializer(); +Serializer _$gDeleteCategoryInputSerializer = + new _$GDeleteCategoryInputSerializer(); +Serializer _$gDeleteCategoryMetaInputSerializer = + new _$GDeleteCategoryMetaInputSerializer(); +Serializer _$gDeleteChapterMetaInputSerializer = + new _$GDeleteChapterMetaInputSerializer(); +Serializer + _$gDeleteDownloadedChapterInputSerializer = + new _$GDeleteDownloadedChapterInputSerializer(); +Serializer + _$gDeleteDownloadedChaptersInputSerializer = + new _$GDeleteDownloadedChaptersInputSerializer(); +Serializer _$gDeleteGlobalMetaInputSerializer = + new _$GDeleteGlobalMetaInputSerializer(); +Serializer _$gDeleteMangaMetaInputSerializer = + new _$GDeleteMangaMetaInputSerializer(); +Serializer _$gDeleteSourceMetaInputSerializer = + new _$GDeleteSourceMetaInputSerializer(); +Serializer + _$gDequeueChapterDownloadInputSerializer = + new _$GDequeueChapterDownloadInputSerializer(); +Serializer + _$gDequeueChapterDownloadsInputSerializer = + new _$GDequeueChapterDownloadsInputSerializer(); +Serializer _$gDoubleFilterInputSerializer = + new _$GDoubleFilterInputSerializer(); +Serializer _$gDownloadChangedInputSerializer = + new _$GDownloadChangedInputSerializer(); +Serializer _$gDownloaderStateSerializer = + new _$GDownloaderStateSerializer(); +Serializer _$gDownloadStateSerializer = + new _$GDownloadStateSerializer(); +Serializer _$gDownloadUpdateTypeSerializer = + new _$GDownloadUpdateTypeSerializer(); +Serializer + _$gEnqueueChapterDownloadInputSerializer = + new _$GEnqueueChapterDownloadInputSerializer(); +Serializer + _$gEnqueueChapterDownloadsInputSerializer = + new _$GEnqueueChapterDownloadsInputSerializer(); +Serializer _$gExtensionConditionInputSerializer = + new _$GExtensionConditionInputSerializer(); +Serializer _$gExtensionFilterInputSerializer = + new _$GExtensionFilterInputSerializer(); +Serializer _$gExtensionOrderBySerializer = + new _$GExtensionOrderBySerializer(); +Serializer _$gExtensionOrderInputSerializer = + new _$GExtensionOrderInputSerializer(); +Serializer _$gFetchChapterPagesInputSerializer = + new _$GFetchChapterPagesInputSerializer(); +Serializer _$gFetchChaptersInputSerializer = + new _$GFetchChaptersInputSerializer(); +Serializer _$gFetchExtensionsInputSerializer = + new _$GFetchExtensionsInputSerializer(); +Serializer _$gFetchMangaInputSerializer = + new _$GFetchMangaInputSerializer(); +Serializer _$gFetchSourceMangaInputSerializer = + new _$GFetchSourceMangaInputSerializer(); +Serializer _$gFetchSourceMangaTypeSerializer = + new _$GFetchSourceMangaTypeSerializer(); +Serializer _$gFetchTrackInputSerializer = + new _$GFetchTrackInputSerializer(); +Serializer _$gFilterChangeInputSerializer = + new _$GFilterChangeInputSerializer(); +Serializer _$gFloatFilterInputSerializer = + new _$GFloatFilterInputSerializer(); +Serializer _$gGlobalMetaTypeInputSerializer = + new _$GGlobalMetaTypeInputSerializer(); +Serializer _$gIncludeOrExcludeSerializer = + new _$GIncludeOrExcludeSerializer(); +Serializer + _$gInstallExternalExtensionInputSerializer = + new _$GInstallExternalExtensionInputSerializer(); +Serializer _$gIntFilterInputSerializer = + new _$GIntFilterInputSerializer(); +Serializer + _$gLoginTrackerCredentialsInputSerializer = + new _$GLoginTrackerCredentialsInputSerializer(); +Serializer _$gLoginTrackerOAuthInputSerializer = + new _$GLoginTrackerOAuthInputSerializer(); +Serializer _$gLogoutTrackerInputSerializer = + new _$GLogoutTrackerInputSerializer(); +Serializer _$gLongFilterInputSerializer = + new _$GLongFilterInputSerializer(); +Serializer _$gMangaConditionInputSerializer = + new _$GMangaConditionInputSerializer(); +Serializer _$gMangaFilterInputSerializer = + new _$GMangaFilterInputSerializer(); +Serializer _$gMangaMetaTypeInputSerializer = + new _$GMangaMetaTypeInputSerializer(); +Serializer _$gMangaOrderBySerializer = + new _$GMangaOrderBySerializer(); +Serializer _$gMangaOrderInputSerializer = + new _$GMangaOrderInputSerializer(); +Serializer _$gMangaStatusSerializer = + new _$GMangaStatusSerializer(); +Serializer _$gMangaStatusFilterInputSerializer = + new _$GMangaStatusFilterInputSerializer(); +Serializer _$gMetaConditionInputSerializer = + new _$GMetaConditionInputSerializer(); +Serializer _$gMetaFilterInputSerializer = + new _$GMetaFilterInputSerializer(); +Serializer _$gMetaOrderBySerializer = + new _$GMetaOrderBySerializer(); +Serializer _$gMetaOrderInputSerializer = + new _$GMetaOrderInputSerializer(); +Serializer _$gPartialSettingsTypeInputSerializer = + new _$GPartialSettingsTypeInputSerializer(); +Serializer + _$gReorderChapterDownloadInputSerializer = + new _$GReorderChapterDownloadInputSerializer(); +Serializer _$gResetSettingsInputSerializer = + new _$GResetSettingsInputSerializer(); +Serializer _$gRestoreBackupInputSerializer = + new _$GRestoreBackupInputSerializer(); +Serializer _$gSearchTrackerInputSerializer = + new _$GSearchTrackerInputSerializer(); +Serializer _$gSetCategoryMetaInputSerializer = + new _$GSetCategoryMetaInputSerializer(); +Serializer _$gSetChapterMetaInputSerializer = + new _$GSetChapterMetaInputSerializer(); +Serializer _$gSetGlobalMetaInputSerializer = + new _$GSetGlobalMetaInputSerializer(); +Serializer _$gSetMangaMetaInputSerializer = + new _$GSetMangaMetaInputSerializer(); +Serializer _$gSetSettingsInputSerializer = + new _$GSetSettingsInputSerializer(); +Serializer _$gSetSourceMetaInputSerializer = + new _$GSetSourceMetaInputSerializer(); +Serializer _$gSortOrderSerializer = new _$GSortOrderSerializer(); +Serializer _$gSortSelectionInputSerializer = + new _$GSortSelectionInputSerializer(); +Serializer _$gSourceConditionInputSerializer = + new _$GSourceConditionInputSerializer(); +Serializer _$gSourceFilterInputSerializer = + new _$GSourceFilterInputSerializer(); +Serializer _$gSourceMetaTypeInputSerializer = + new _$GSourceMetaTypeInputSerializer(); +Serializer _$gSourceOrderBySerializer = + new _$GSourceOrderBySerializer(); +Serializer _$gSourceOrderInputSerializer = + new _$GSourceOrderInputSerializer(); +Serializer + _$gSourcePreferenceChangeInputSerializer = + new _$GSourcePreferenceChangeInputSerializer(); +Serializer _$gStartDownloaderInputSerializer = + new _$GStartDownloaderInputSerializer(); +Serializer _$gStopDownloaderInputSerializer = + new _$GStopDownloaderInputSerializer(); +Serializer _$gStringFilterInputSerializer = + new _$GStringFilterInputSerializer(); +Serializer _$gTrackerConditionInputSerializer = + new _$GTrackerConditionInputSerializer(); +Serializer _$gTrackerOrderBySerializer = + new _$GTrackerOrderBySerializer(); +Serializer _$gTrackerOrderInputSerializer = + new _$GTrackerOrderInputSerializer(); +Serializer _$gTrackProgressInputSerializer = + new _$GTrackProgressInputSerializer(); +Serializer _$gTrackRecordConditionInputSerializer = + new _$GTrackRecordConditionInputSerializer(); +Serializer _$gTrackRecordFilterInputSerializer = + new _$GTrackRecordFilterInputSerializer(); +Serializer _$gTrackRecordOrderBySerializer = + new _$GTrackRecordOrderBySerializer(); +Serializer _$gTrackRecordOrderInputSerializer = + new _$GTrackRecordOrderInputSerializer(); +Serializer _$gTriStateSerializer = new _$GTriStateSerializer(); +Serializer _$gUnbindTrackInputSerializer = + new _$GUnbindTrackInputSerializer(); +Serializer _$gUpdateCategoriesInputSerializer = + new _$GUpdateCategoriesInputSerializer(); +Serializer _$gUpdateCategoryInputSerializer = + new _$GUpdateCategoryInputSerializer(); +Serializer _$gUpdateCategoryMangaInputSerializer = + new _$GUpdateCategoryMangaInputSerializer(); +Serializer _$gUpdateCategoryOrderInputSerializer = + new _$GUpdateCategoryOrderInputSerializer(); +Serializer _$gUpdateCategoryPatchInputSerializer = + new _$GUpdateCategoryPatchInputSerializer(); +Serializer _$gUpdateChapterInputSerializer = + new _$GUpdateChapterInputSerializer(); +Serializer _$gUpdateChapterPatchInputSerializer = + new _$GUpdateChapterPatchInputSerializer(); +Serializer _$gUpdateChaptersInputSerializer = + new _$GUpdateChaptersInputSerializer(); +Serializer _$gUpdateExtensionInputSerializer = + new _$GUpdateExtensionInputSerializer(); +Serializer _$gUpdateExtensionPatchInputSerializer = + new _$GUpdateExtensionPatchInputSerializer(); +Serializer _$gUpdateExtensionsInputSerializer = + new _$GUpdateExtensionsInputSerializer(); +Serializer _$gUpdateLibraryMangaInputSerializer = + new _$GUpdateLibraryMangaInputSerializer(); +Serializer + _$gUpdateMangaCategoriesInputSerializer = + new _$GUpdateMangaCategoriesInputSerializer(); +Serializer + _$gUpdateMangaCategoriesPatchInputSerializer = + new _$GUpdateMangaCategoriesPatchInputSerializer(); +Serializer _$gUpdateMangaInputSerializer = + new _$GUpdateMangaInputSerializer(); +Serializer _$gUpdateMangaPatchInputSerializer = + new _$GUpdateMangaPatchInputSerializer(); +Serializer + _$gUpdateMangasCategoriesInputSerializer = + new _$GUpdateMangasCategoriesInputSerializer(); +Serializer _$gUpdateMangasInputSerializer = + new _$GUpdateMangasInputSerializer(); +Serializer + _$gUpdateSourcePreferenceInputSerializer = + new _$GUpdateSourcePreferenceInputSerializer(); +Serializer _$gUpdateStateSerializer = + new _$GUpdateStateSerializer(); +Serializer _$gUpdateStopInputSerializer = + new _$GUpdateStopInputSerializer(); +Serializer _$gUpdateStrategySerializer = + new _$GUpdateStrategySerializer(); +Serializer _$gUpdateTrackInputSerializer = + new _$GUpdateTrackInputSerializer(); +Serializer _$gValidateBackupInputSerializer = + new _$GValidateBackupInputSerializer(); +Serializer _$gWebUIChannelSerializer = + new _$GWebUIChannelSerializer(); +Serializer _$gWebUIFlavorSerializer = + new _$GWebUIFlavorSerializer(); +Serializer _$gWebUIInterfaceSerializer = + new _$GWebUIInterfaceSerializer(); +Serializer _$gWebUIUpdateInputSerializer = + new _$GWebUIUpdateInputSerializer(); + +class _$GBackupRestoreStateSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GBackupRestoreState]; + @override + final String wireName = 'GBackupRestoreState'; + + @override + Object serialize(Serializers serializers, GBackupRestoreState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GBackupRestoreState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GBackupRestoreState.valueOf(serialized as String); +} + +class _$GBindTrackInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GBindTrackInput, _$GBindTrackInput]; + @override + final String wireName = 'GBindTrackInput'; + + @override + Iterable serialize(Serializers serializers, GBindTrackInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'remoteId', + serializers.serialize(object.remoteId, + specifiedType: const FullType(GLongString)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GBindTrackInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBindTrackInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'remoteId': + result.remoteId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GBooleanFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GBooleanFilterInput, + _$GBooleanFilterInput + ]; + @override + final String wireName = 'GBooleanFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GBooleanFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.distinctFromAll; + if (value != null) { + result + ..add('distinctFromAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + value = object.distinctFromAny; + if (value != null) { + result + ..add('distinctFromAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.notEqualToAll; + if (value != null) { + result + ..add('notEqualToAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + value = object.notEqualToAny; + if (value != null) { + result + ..add('notEqualToAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))); + } + return result; + } + + @override + GBooleanFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GBooleanFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'distinctFromAll': + result.distinctFromAll.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + case 'distinctFromAny': + result.distinctFromAny.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'notEqualToAll': + result.notEqualToAll.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + case 'notEqualToAny': + result.notEqualToAny.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(bool)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GCategoryConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryConditionInput, + _$GCategoryConditionInput + ]; + @override + final String wireName = 'GCategoryConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GCategoryConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.order; + if (value != null) { + result + ..add('order') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GCategoryConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryFilterInput, + _$GCategoryFilterInput + ]; + @override + final String wireName = 'GCategoryFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GCategoryFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))); + } + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GCategoryFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))); + } + value = object.order; + if (value != null) { + result + ..add('order') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + return result; + } + + @override + GCategoryFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))! + as BuiltList); + break; + case 'default': + result.Gdefault.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GCategoryFilterInput))! + as GCategoryFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]))! + as BuiltList); + break; + case 'order': + result.order.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GCategoryMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryMetaTypeInput, + _$GCategoryMetaTypeInput + ]; + @override + final String wireName = 'GCategoryMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GCategoryMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categoryId', + serializers.serialize(object.categoryId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GCategoryMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categoryId': + result.categoryId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GCategoryOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GCategoryOrderBy]; + @override + final String wireName = 'GCategoryOrderBy'; + + @override + Object serialize(Serializers serializers, GCategoryOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GCategoryOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GCategoryOrderBy.valueOf(serialized as String); +} + +class _$GCategoryOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCategoryOrderInput, + _$GCategoryOrderInput + ]; + @override + final String wireName = 'GCategoryOrderInput'; + + @override + Iterable serialize( + Serializers serializers, GCategoryOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GCategoryOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GCategoryOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCategoryOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GCategoryOrderBy))! + as GCategoryOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GChapterConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterConditionInput, + _$GChapterConditionInput + ]; + @override + final String wireName = 'GChapterConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GChapterConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.chapterNumber; + if (value != null) { + result + ..add('chapterNumber') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.fetchedAt; + if (value != null) { + result + ..add('fetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.isBookmarked; + if (value != null) { + result + ..add('isBookmarked') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isDownloaded; + if (value != null) { + result + ..add('isDownloaded') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isRead; + if (value != null) { + result + ..add('isRead') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lastPageRead; + if (value != null) { + result + ..add('lastPageRead') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.lastReadAt; + if (value != null) { + result + ..add('lastReadAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.pageCount; + if (value != null) { + result + ..add('pageCount') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.sourceOrder; + if (value != null) { + result + ..add('sourceOrder') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.uploadDate; + if (value != null) { + result + ..add('uploadDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GChapterConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterNumber': + result.chapterNumber = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isDownloaded': + result.isDownloaded = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'pageCount': + result.pageCount = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'scanlator': + result.scanlator = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceOrder': + result.sourceOrder = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GChapterFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterFilterInput, + _$GChapterFilterInput + ]; + @override + final String wireName = 'GChapterFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GChapterFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))); + } + value = object.chapterNumber; + if (value != null) { + result + ..add('chapterNumber') + ..add(serializers.serialize(value, + specifiedType: const FullType(GFloatFilterInput))); + } + value = object.fetchedAt; + if (value != null) { + result + ..add('fetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isBookmarked; + if (value != null) { + result + ..add('isBookmarked') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isDownloaded; + if (value != null) { + result + ..add('isDownloaded') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isRead; + if (value != null) { + result + ..add('isRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lastPageRead; + if (value != null) { + result + ..add('lastPageRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.lastReadAt; + if (value != null) { + result + ..add('lastReadAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GChapterFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))); + } + value = object.pageCount; + if (value != null) { + result + ..add('pageCount') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.scanlator; + if (value != null) { + result + ..add('scanlator') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.sourceOrder; + if (value != null) { + result + ..add('sourceOrder') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.uploadDate; + if (value != null) { + result + ..add('uploadDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GChapterFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))! + as BuiltList); + break; + case 'chapterNumber': + result.chapterNumber.replace(serializers.deserialize(value, + specifiedType: const FullType(GFloatFilterInput))! + as GFloatFilterInput); + break; + case 'fetchedAt': + result.fetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'inLibrary': + result.inLibrary.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isBookmarked': + result.isBookmarked.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isDownloaded': + result.isDownloaded.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isRead': + result.isRead.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lastPageRead': + result.lastPageRead.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'lastReadAt': + result.lastReadAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'mangaId': + result.mangaId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GChapterFilterInput))! + as GChapterFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]))! + as BuiltList); + break; + case 'pageCount': + result.pageCount.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'realUrl': + result.realUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'scanlator': + result.scanlator.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'sourceOrder': + result.sourceOrder.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'uploadDate': + result.uploadDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'url': + result.url.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GChapterMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GChapterMetaTypeInput, + _$GChapterMetaTypeInput + ]; + @override + final String wireName = 'GChapterMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GChapterMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GChapterMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GChapterOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GChapterOrderBy]; + @override + final String wireName = 'GChapterOrderBy'; + + @override + Object serialize(Serializers serializers, GChapterOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GChapterOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GChapterOrderBy.valueOf(serialized as String); +} + +class _$GChapterOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GChapterOrderInput, _$GChapterOrderInput]; + @override + final String wireName = 'GChapterOrderInput'; + + @override + Iterable serialize( + Serializers serializers, GChapterOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GChapterOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GChapterOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GChapterOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GChapterOrderBy))! + as GChapterOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GClearCachedImagesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GClearCachedImagesInput, + _$GClearCachedImagesInput + ]; + @override + final String wireName = 'GClearCachedImagesInput'; + + @override + Iterable serialize( + Serializers serializers, GClearCachedImagesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.cachedPages; + if (value != null) { + result + ..add('cachedPages') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.cachedThumbnails; + if (value != null) { + result + ..add('cachedThumbnails') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.downloadedThumbnails; + if (value != null) { + result + ..add('downloadedThumbnails') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GClearCachedImagesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GClearCachedImagesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'cachedPages': + result.cachedPages = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'cachedThumbnails': + result.cachedThumbnails = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'downloadedThumbnails': + result.downloadedThumbnails = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GClearDownloaderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GClearDownloaderInput, + _$GClearDownloaderInput + ]; + @override + final String wireName = 'GClearDownloaderInput'; + + @override + Iterable serialize( + Serializers serializers, GClearDownloaderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GClearDownloaderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GClearDownloaderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GCreateBackupInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GCreateBackupInput, _$GCreateBackupInput]; + @override + final String wireName = 'GCreateBackupInput'; + + @override + Iterable serialize( + Serializers serializers, GCreateBackupInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.includeCategories; + if (value != null) { + result + ..add('includeCategories') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeChapters; + if (value != null) { + result + ..add('includeChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GCreateBackupInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateBackupInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'includeCategories': + result.includeCategories = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeChapters': + result.includeChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GCreateCategoryInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GCreateCategoryInput, + _$GCreateCategoryInput + ]; + @override + final String wireName = 'GCreateCategoryInput'; + + @override + Iterable serialize( + Serializers serializers, GCreateCategoryInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'name', + serializers.serialize(object.name, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeInDownload; + if (value != null) { + result + ..add('includeInDownload') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.includeInUpdate; + if (value != null) { + result + ..add('includeInUpdate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.order; + if (value != null) { + result + ..add('order') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GCreateCategoryInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GCreateCategoryInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'order': + result.order = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteCategoryInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteCategoryInput, + _$GDeleteCategoryInput + ]; + @override + final String wireName = 'GDeleteCategoryInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteCategoryInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categoryId', + serializers.serialize(object.categoryId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteCategoryInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteCategoryInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categoryId': + result.categoryId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteCategoryMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteCategoryMetaInput, + _$GDeleteCategoryMetaInput + ]; + @override + final String wireName = 'GDeleteCategoryMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteCategoryMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categoryId', + serializers.serialize(object.categoryId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteCategoryMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteCategoryMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categoryId': + result.categoryId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteChapterMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteChapterMetaInput, + _$GDeleteChapterMetaInput + ]; + @override + final String wireName = 'GDeleteChapterMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteChapterMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteChapterMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteChapterMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteDownloadedChapterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteDownloadedChapterInput, + _$GDeleteDownloadedChapterInput + ]; + @override + final String wireName = 'GDeleteDownloadedChapterInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteDownloadedChapterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteDownloadedChapterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteDownloadedChapterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteDownloadedChaptersInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteDownloadedChaptersInput, + _$GDeleteDownloadedChaptersInput + ]; + @override + final String wireName = 'GDeleteDownloadedChaptersInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteDownloadedChaptersInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteDownloadedChaptersInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteDownloadedChaptersInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GDeleteGlobalMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteGlobalMetaInput, + _$GDeleteGlobalMetaInput + ]; + @override + final String wireName = 'GDeleteGlobalMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteGlobalMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteGlobalMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteGlobalMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteMangaMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteMangaMetaInput, + _$GDeleteMangaMetaInput + ]; + @override + final String wireName = 'GDeleteMangaMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteMangaMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteMangaMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteMangaMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GDeleteSourceMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDeleteSourceMetaInput, + _$GDeleteSourceMetaInput + ]; + @override + final String wireName = 'GDeleteSourceMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GDeleteSourceMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(GLongString)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDeleteSourceMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDeleteSourceMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + } + } + + return result.build(); + } +} + +class _$GDequeueChapterDownloadInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDequeueChapterDownloadInput, + _$GDequeueChapterDownloadInput + ]; + @override + final String wireName = 'GDequeueChapterDownloadInput'; + + @override + Iterable serialize( + Serializers serializers, GDequeueChapterDownloadInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDequeueChapterDownloadInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDequeueChapterDownloadInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GDequeueChapterDownloadsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDequeueChapterDownloadsInput, + _$GDequeueChapterDownloadsInput + ]; + @override + final String wireName = 'GDequeueChapterDownloadsInput'; + + @override + Iterable serialize( + Serializers serializers, GDequeueChapterDownloadsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GDequeueChapterDownloadsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDequeueChapterDownloadsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GDoubleFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GDoubleFilterInput, _$GDoubleFilterInput]; + @override + final String wireName = 'GDoubleFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GDoubleFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.distinctFromAll; + if (value != null) { + result + ..add('distinctFromAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.distinctFromAny; + if (value != null) { + result + ..add('distinctFromAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notEqualToAll; + if (value != null) { + result + ..add('notEqualToAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.notEqualToAny; + if (value != null) { + result + ..add('notEqualToAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + return result; + } + + @override + GDoubleFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDoubleFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'distinctFromAll': + result.distinctFromAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'distinctFromAny': + result.distinctFromAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notEqualToAll': + result.notEqualToAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'notEqualToAny': + result.notEqualToAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GDownloadChangedInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GDownloadChangedInput, + _$GDownloadChangedInput + ]; + @override + final String wireName = 'GDownloadChangedInput'; + + @override + Iterable serialize( + Serializers serializers, GDownloadChangedInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.maxUpdates; + if (value != null) { + result + ..add('maxUpdates') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GDownloadChangedInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GDownloadChangedInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'maxUpdates': + result.maxUpdates = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GDownloaderStateSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GDownloaderState]; + @override + final String wireName = 'GDownloaderState'; + + @override + Object serialize(Serializers serializers, GDownloaderState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GDownloaderState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GDownloaderState.valueOf(serialized as String); +} + +class _$GDownloadStateSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GDownloadState]; + @override + final String wireName = 'GDownloadState'; + + @override + Object serialize(Serializers serializers, GDownloadState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GDownloadState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GDownloadState.valueOf(serialized as String); +} + +class _$GDownloadUpdateTypeSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GDownloadUpdateType]; + @override + final String wireName = 'GDownloadUpdateType'; + + @override + Object serialize(Serializers serializers, GDownloadUpdateType object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GDownloadUpdateType deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GDownloadUpdateType.valueOf(serialized as String); +} + +class _$GEnqueueChapterDownloadInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GEnqueueChapterDownloadInput, + _$GEnqueueChapterDownloadInput + ]; + @override + final String wireName = 'GEnqueueChapterDownloadInput'; + + @override + Iterable serialize( + Serializers serializers, GEnqueueChapterDownloadInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GEnqueueChapterDownloadInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GEnqueueChapterDownloadInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GEnqueueChapterDownloadsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GEnqueueChapterDownloadsInput, + _$GEnqueueChapterDownloadsInput + ]; + @override + final String wireName = 'GEnqueueChapterDownloadsInput'; + + @override + Iterable serialize( + Serializers serializers, GEnqueueChapterDownloadsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GEnqueueChapterDownloadsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GEnqueueChapterDownloadsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GExtensionConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionConditionInput, + _$GExtensionConditionInput + ]; + @override + final String wireName = 'GExtensionConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GExtensionConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.apkName; + if (value != null) { + result + ..add('apkName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.hasUpdate; + if (value != null) { + result + ..add('hasUpdate') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.iconUrl; + if (value != null) { + result + ..add('iconUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.isInstalled; + if (value != null) { + result + ..add('isInstalled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isObsolete; + if (value != null) { + result + ..add('isObsolete') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.pkgName; + if (value != null) { + result + ..add('pkgName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.versionCode; + if (value != null) { + result + ..add('versionCode') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.versionName; + if (value != null) { + result + ..add('versionName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GExtensionConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'apkName': + result.apkName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'hasUpdate': + result.hasUpdate = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'iconUrl': + result.iconUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'isInstalled': + result.isInstalled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isObsolete': + result.isObsolete = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'pkgName': + result.pkgName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'repo': + result.repo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'versionCode': + result.versionCode = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'versionName': + result.versionName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GExtensionFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionFilterInput, + _$GExtensionFilterInput + ]; + @override + final String wireName = 'GExtensionFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GExtensionFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]))); + } + value = object.apkName; + if (value != null) { + result + ..add('apkName') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.hasUpdate; + if (value != null) { + result + ..add('hasUpdate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.iconUrl; + if (value != null) { + result + ..add('iconUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.isInstalled; + if (value != null) { + result + ..add('isInstalled') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.isObsolete; + if (value != null) { + result + ..add('isObsolete') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GExtensionFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]))); + } + value = object.pkgName; + if (value != null) { + result + ..add('pkgName') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.repo; + if (value != null) { + result + ..add('repo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.versionCode; + if (value != null) { + result + ..add('versionCode') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.versionName; + if (value != null) { + result + ..add('versionName') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GExtensionFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GExtensionFilterInput) + ]))! as BuiltList); + break; + case 'apkName': + result.apkName.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'hasUpdate': + result.hasUpdate.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'iconUrl': + result.iconUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'isInstalled': + result.isInstalled.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isNsfw': + result.isNsfw.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'isObsolete': + result.isObsolete.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lang': + result.lang.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GExtensionFilterInput))! + as GExtensionFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GExtensionFilterInput) + ]))! as BuiltList); + break; + case 'pkgName': + result.pkgName.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'repo': + result.repo.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'versionCode': + result.versionCode.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'versionName': + result.versionName.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GExtensionOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GExtensionOrderBy]; + @override + final String wireName = 'GExtensionOrderBy'; + + @override + Object serialize(Serializers serializers, GExtensionOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GExtensionOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GExtensionOrderBy.valueOf(serialized as String); +} + +class _$GExtensionOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GExtensionOrderInput, + _$GExtensionOrderInput + ]; + @override + final String wireName = 'GExtensionOrderInput'; + + @override + Iterable serialize( + Serializers serializers, GExtensionOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GExtensionOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GExtensionOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GExtensionOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GExtensionOrderBy))! + as GExtensionOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GFetchChapterPagesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchChapterPagesInput, + _$GFetchChapterPagesInput + ]; + @override + final String wireName = 'GFetchChapterPagesInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchChapterPagesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchChapterPagesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchChapterPagesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GFetchChaptersInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchChaptersInput, + _$GFetchChaptersInput + ]; + @override + final String wireName = 'GFetchChaptersInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchChaptersInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchChaptersInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchChaptersInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GFetchExtensionsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchExtensionsInput, + _$GFetchExtensionsInput + ]; + @override + final String wireName = 'GFetchExtensionsInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchExtensionsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchExtensionsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchExtensionsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GFetchMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFetchMangaInput, _$GFetchMangaInput]; + @override + final String wireName = 'GFetchMangaInput'; + + @override + Iterable serialize(Serializers serializers, GFetchMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GFetchSourceMangaInput, + _$GFetchSourceMangaInput + ]; + @override + final String wireName = 'GFetchSourceMangaInput'; + + @override + Iterable serialize( + Serializers serializers, GFetchSourceMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'page', + serializers.serialize(object.page, specifiedType: const FullType(int)), + 'source', + serializers.serialize(object.source, + specifiedType: const FullType(GLongString)), + 'type', + serializers.serialize(object.type, + specifiedType: const FullType(GFetchSourceMangaType)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.filters; + if (value != null) { + result + ..add('filters') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GFilterChangeInput)]))); + } + value = object.query; + if (value != null) { + result + ..add('query') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchSourceMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchSourceMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'filters': + result.filters.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GFilterChangeInput)]))! + as BuiltList); + break; + case 'page': + result.page = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'query': + result.query = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'type': + result.type = serializers.deserialize(value, + specifiedType: const FullType(GFetchSourceMangaType))! + as GFetchSourceMangaType; + break; + } + } + + return result.build(); + } +} + +class _$GFetchSourceMangaTypeSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GFetchSourceMangaType]; + @override + final String wireName = 'GFetchSourceMangaType'; + + @override + Object serialize(Serializers serializers, GFetchSourceMangaType object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GFetchSourceMangaType deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GFetchSourceMangaType.valueOf(serialized as String); +} + +class _$GFetchTrackInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFetchTrackInput, _$GFetchTrackInput]; + @override + final String wireName = 'GFetchTrackInput'; + + @override + Iterable serialize(Serializers serializers, GFetchTrackInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'recordId', + serializers.serialize(object.recordId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GFetchTrackInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFetchTrackInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'recordId': + result.recordId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GFilterChangeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFilterChangeInput, _$GFilterChangeInput]; + @override + final String wireName = 'GFilterChangeInput'; + + @override + Iterable serialize( + Serializers serializers, GFilterChangeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'position', + serializers.serialize(object.position, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.checkBoxState; + if (value != null) { + result + ..add('checkBoxState') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.groupChange; + if (value != null) { + result + ..add('groupChange') + ..add(serializers.serialize(value, + specifiedType: const FullType(GFilterChangeInput))); + } + value = object.selectState; + if (value != null) { + result + ..add('selectState') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.sortState; + if (value != null) { + result + ..add('sortState') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortSelectionInput))); + } + value = object.textState; + if (value != null) { + result + ..add('textState') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.triState; + if (value != null) { + result + ..add('triState') + ..add(serializers.serialize(value, + specifiedType: const FullType(GTriState))); + } + return result; + } + + @override + GFilterChangeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFilterChangeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'checkBoxState': + result.checkBoxState = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'groupChange': + result.groupChange.replace(serializers.deserialize(value, + specifiedType: const FullType(GFilterChangeInput))! + as GFilterChangeInput); + break; + case 'position': + result.position = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'selectState': + result.selectState = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'sortState': + result.sortState.replace(serializers.deserialize(value, + specifiedType: const FullType(GSortSelectionInput))! + as GSortSelectionInput); + break; + case 'textState': + result.textState = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'triState': + result.triState = serializers.deserialize(value, + specifiedType: const FullType(GTriState)) as GTriState?; + break; + } + } + + return result.build(); + } +} + +class _$GFloatFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GFloatFilterInput, _$GFloatFilterInput]; + @override + final String wireName = 'GFloatFilterInput'; + + @override + Iterable serialize(Serializers serializers, GFloatFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.distinctFromAll; + if (value != null) { + result + ..add('distinctFromAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.distinctFromAny; + if (value != null) { + result + ..add('distinctFromAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.notEqualToAll; + if (value != null) { + result + ..add('notEqualToAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.notEqualToAny; + if (value != null) { + result + ..add('notEqualToAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(double)]))); + } + return result; + } + + @override + GFloatFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GFloatFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'distinctFromAll': + result.distinctFromAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'distinctFromAny': + result.distinctFromAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'notEqualToAll': + result.notEqualToAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'notEqualToAny': + result.notEqualToAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(double)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GGlobalMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GGlobalMetaTypeInput, + _$GGlobalMetaTypeInput + ]; + @override + final String wireName = 'GGlobalMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GGlobalMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GGlobalMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GGlobalMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GIncludeOrExcludeSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GIncludeOrExclude]; + @override + final String wireName = 'GIncludeOrExclude'; + + @override + Object serialize(Serializers serializers, GIncludeOrExclude object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GIncludeOrExclude deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GIncludeOrExclude.valueOf(serialized as String); +} + +class _$GInstallExternalExtensionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GInstallExternalExtensionInput, + _$GInstallExternalExtensionInput + ]; + @override + final String wireName = 'GInstallExternalExtensionInput'; + + @override + Iterable serialize( + Serializers serializers, GInstallExternalExtensionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'extensionFile', + serializers.serialize(object.extensionFile, + specifiedType: const FullType(_i3.MultipartFile)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GInstallExternalExtensionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GInstallExternalExtensionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'extensionFile': + result.extensionFile = serializers.deserialize(value, + specifiedType: const FullType(_i3.MultipartFile))! + as _i3.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GIntFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GIntFilterInput, _$GIntFilterInput]; + @override + final String wireName = 'GIntFilterInput'; + + @override + Iterable serialize(Serializers serializers, GIntFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.distinctFromAll; + if (value != null) { + result + ..add('distinctFromAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.distinctFromAny; + if (value != null) { + result + ..add('distinctFromAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.notEqualToAll; + if (value != null) { + result + ..add('notEqualToAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.notEqualToAny; + if (value != null) { + result + ..add('notEqualToAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + return result; + } + + @override + GIntFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GIntFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'distinctFromAll': + result.distinctFromAll.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'distinctFromAny': + result.distinctFromAny.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'notEqualToAll': + result.notEqualToAll.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'notEqualToAny': + result.notEqualToAny.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GLoginTrackerCredentialsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLoginTrackerCredentialsInput, + _$GLoginTrackerCredentialsInput + ]; + @override + final String wireName = 'GLoginTrackerCredentialsInput'; + + @override + Iterable serialize( + Serializers serializers, GLoginTrackerCredentialsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'password', + serializers.serialize(object.password, + specifiedType: const FullType(String)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + 'username', + serializers.serialize(object.username, + specifiedType: const FullType(String)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GLoginTrackerCredentialsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLoginTrackerCredentialsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'password': + result.password = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'username': + result.username = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GLoginTrackerOAuthInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLoginTrackerOAuthInput, + _$GLoginTrackerOAuthInput + ]; + @override + final String wireName = 'GLoginTrackerOAuthInput'; + + @override + Iterable serialize( + Serializers serializers, GLoginTrackerOAuthInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'callbackUrl', + serializers.serialize(object.callbackUrl, + specifiedType: const FullType(String)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GLoginTrackerOAuthInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLoginTrackerOAuthInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'callbackUrl': + result.callbackUrl = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GLogoutTrackerInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GLogoutTrackerInput, + _$GLogoutTrackerInput + ]; + @override + final String wireName = 'GLogoutTrackerInput'; + + @override + Iterable serialize( + Serializers serializers, GLogoutTrackerInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GLogoutTrackerInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLogoutTrackerInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GLongFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GLongFilterInput, _$GLongFilterInput]; + @override + final String wireName = 'GLongFilterInput'; + + @override + Iterable serialize(Serializers serializers, GLongFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.distinctFromAll; + if (value != null) { + result + ..add('distinctFromAll') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + value = object.distinctFromAny; + if (value != null) { + result + ..add('distinctFromAny') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.notEqualToAll; + if (value != null) { + result + ..add('notEqualToAll') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + value = object.notEqualToAny; + if (value != null) { + result + ..add('notEqualToAny') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))); + } + return result; + } + + @override + GLongFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GLongFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'distinctFromAll': + result.distinctFromAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + case 'distinctFromAny': + result.distinctFromAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + case 'equalTo': + result.equalTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'greaterThan': + result.greaterThan.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'notDistinctFrom': + result.notDistinctFrom.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'notEqualTo': + result.notEqualTo.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'notEqualToAll': + result.notEqualToAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + case 'notEqualToAny': + result.notEqualToAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GLongString)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMangaConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaConditionInput, + _$GMangaConditionInput + ]; + @override + final String wireName = 'GMangaConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GMangaConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.categoryIds; + if (value != null) { + result + ..add('categoryIds') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.genre; + if (value != null) { + result + ..add('genre') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.inLibraryAt; + if (value != null) { + result + ..add('inLibraryAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.initialized; + if (value != null) { + result + ..add('initialized') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.sourceId; + if (value != null) { + result + ..add('sourceId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMangaConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'artist': + result.artist = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'author': + result.author = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'categoryIds': + result.categoryIds.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'description': + result.description = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'initialized': + result.initialized = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'realUrl': + result.realUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'thumbnailUrl': + result.thumbnailUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'url': + result.url = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GMangaFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaFilterInput, _$GMangaFilterInput]; + @override + final String wireName = 'GMangaFilterInput'; + + @override + Iterable serialize(Serializers serializers, GMangaFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))); + } + value = object.artist; + if (value != null) { + result + ..add('artist') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.author; + if (value != null) { + result + ..add('author') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.categoryId; + if (value != null) { + result + ..add('categoryId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.chaptersLastFetchedAt; + if (value != null) { + result + ..add('chaptersLastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.description; + if (value != null) { + result + ..add('description') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.genre; + if (value != null) { + result + ..add('genre') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.inLibraryAt; + if (value != null) { + result + ..add('inLibraryAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.initialized; + if (value != null) { + result + ..add('initialized') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lastFetchedAt; + if (value != null) { + result + ..add('lastFetchedAt') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))); + } + value = object.realUrl; + if (value != null) { + result + ..add('realUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.sourceId; + if (value != null) { + result + ..add('sourceId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatusFilterInput))); + } + value = object.thumbnailUrl; + if (value != null) { + result + ..add('thumbnailUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.url; + if (value != null) { + result + ..add('url') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GMangaFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))! + as BuiltList); + break; + case 'artist': + result.artist.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'author': + result.author.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'categoryId': + result.categoryId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'chaptersLastFetchedAt': + result.chaptersLastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'description': + result.description.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'genre': + result.genre.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'inLibrary': + result.inLibrary.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'inLibraryAt': + result.inLibraryAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'initialized': + result.initialized.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lastFetchedAt': + result.lastFetchedAt.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaFilterInput))! + as GMangaFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaFilterInput)]))! + as BuiltList); + break; + case 'realUrl': + result.realUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaStatusFilterInput))! + as GMangaStatusFilterInput); + break; + case 'thumbnailUrl': + result.thumbnailUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'title': + result.title.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'url': + result.url.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GMangaMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaMetaTypeInput, + _$GMangaMetaTypeInput + ]; + @override + final String wireName = 'GMangaMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GMangaMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GMangaMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GMangaOrderBySerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GMangaOrderBy]; + @override + final String wireName = 'GMangaOrderBy'; + + @override + Object serialize(Serializers serializers, GMangaOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GMangaOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GMangaOrderBy.valueOf(serialized as String); +} + +class _$GMangaOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMangaOrderInput, _$GMangaOrderInput]; + @override + final String wireName = 'GMangaOrderInput'; + + @override + Iterable serialize(Serializers serializers, GMangaOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GMangaOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GMangaOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GMangaOrderBy))! as GMangaOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GMangaStatusSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GMangaStatus]; + @override + final String wireName = 'GMangaStatus'; + + @override + Object serialize(Serializers serializers, GMangaStatus object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GMangaStatus deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GMangaStatus.valueOf(serialized as String); +} + +class _$GMangaStatusFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMangaStatusFilterInput, + _$GMangaStatusFilterInput + ]; + @override + final String wireName = 'GMangaStatusFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GMangaStatusFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.distinctFromAll; + if (value != null) { + result + ..add('distinctFromAll') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + value = object.distinctFromAny; + if (value != null) { + result + ..add('distinctFromAny') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMangaStatus))); + } + value = object.notEqualToAll; + if (value != null) { + result + ..add('notEqualToAll') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + value = object.notEqualToAny; + if (value != null) { + result + ..add('notEqualToAny') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))); + } + return result; + } + + @override + GMangaStatusFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMangaStatusFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'distinctFromAll': + result.distinctFromAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + case 'distinctFromAny': + result.distinctFromAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(GMangaStatus)) as GMangaStatus?; + break; + case 'notEqualToAll': + result.notEqualToAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + case 'notEqualToAny': + result.notEqualToAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMangaStatus)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GMetaConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GMetaConditionInput, + _$GMetaConditionInput + ]; + @override + final String wireName = 'GMetaConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GMetaConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.key; + if (value != null) { + result + ..add('key') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.value; + if (value != null) { + result + ..add('value') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GMetaConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMetaConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GMetaFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMetaFilterInput, _$GMetaFilterInput]; + @override + final String wireName = 'GMetaFilterInput'; + + @override + Iterable serialize(Serializers serializers, GMetaFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))); + } + value = object.key; + if (value != null) { + result + ..add('key') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GMetaFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))); + } + value = object.value; + if (value != null) { + result + ..add('value') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + return result; + } + + @override + GMetaFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMetaFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))! + as BuiltList); + break; + case 'key': + result.key.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GMetaFilterInput))! + as GMetaFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GMetaFilterInput)]))! + as BuiltList); + break; + case 'value': + result.value.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GMetaOrderBySerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GMetaOrderBy]; + @override + final String wireName = 'GMetaOrderBy'; + + @override + Object serialize(Serializers serializers, GMetaOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GMetaOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GMetaOrderBy.valueOf(serialized as String); +} + +class _$GMetaOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GMetaOrderInput, _$GMetaOrderInput]; + @override + final String wireName = 'GMetaOrderInput'; + + @override + Iterable serialize(Serializers serializers, GMetaOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GMetaOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GMetaOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GMetaOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GMetaOrderBy))! as GMetaOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GPartialSettingsTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GPartialSettingsTypeInput, + _$GPartialSettingsTypeInput + ]; + @override + final String wireName = 'GPartialSettingsTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GPartialSettingsTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.autoDownloadIgnoreReUploads; + if (value != null) { + result + ..add('autoDownloadIgnoreReUploads') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.autoDownloadNewChapters; + if (value != null) { + result + ..add('autoDownloadNewChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.autoDownloadNewChaptersLimit; + if (value != null) { + result + ..add('autoDownloadNewChaptersLimit') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.backupInterval; + if (value != null) { + result + ..add('backupInterval') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.backupPath; + if (value != null) { + result + ..add('backupPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.backupTTL; + if (value != null) { + result + ..add('backupTTL') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.backupTime; + if (value != null) { + result + ..add('backupTime') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.basicAuthEnabled; + if (value != null) { + result + ..add('basicAuthEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.basicAuthPassword; + if (value != null) { + result + ..add('basicAuthPassword') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.basicAuthUsername; + if (value != null) { + result + ..add('basicAuthUsername') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.debugLogsEnabled; + if (value != null) { + result + ..add('debugLogsEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.downloadAsCbz; + if (value != null) { + result + ..add('downloadAsCbz') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.downloadsPath; + if (value != null) { + result + ..add('downloadsPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.electronPath; + if (value != null) { + result + ..add('electronPath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.excludeCompleted; + if (value != null) { + result + ..add('excludeCompleted') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.excludeEntryWithUnreadChapters; + if (value != null) { + result + ..add('excludeEntryWithUnreadChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.excludeNotStarted; + if (value != null) { + result + ..add('excludeNotStarted') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.excludeUnreadChapters; + if (value != null) { + result + ..add('excludeUnreadChapters') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.extensionRepos; + if (value != null) { + result + ..add('extensionRepos') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.flareSolverrAsResponseFallback; + if (value != null) { + result + ..add('flareSolverrAsResponseFallback') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.flareSolverrEnabled; + if (value != null) { + result + ..add('flareSolverrEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.flareSolverrSessionName; + if (value != null) { + result + ..add('flareSolverrSessionName') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.flareSolverrSessionTtl; + if (value != null) { + result + ..add('flareSolverrSessionTtl') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.flareSolverrTimeout; + if (value != null) { + result + ..add('flareSolverrTimeout') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.flareSolverrUrl; + if (value != null) { + result + ..add('flareSolverrUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.globalUpdateInterval; + if (value != null) { + result + ..add('globalUpdateInterval') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.initialOpenInBrowserEnabled; + if (value != null) { + result + ..add('initialOpenInBrowserEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.ip; + if (value != null) { + result + ..add('ip') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.localSourcePath; + if (value != null) { + result + ..add('localSourcePath') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.maxLogFileSize; + if (value != null) { + result + ..add('maxLogFileSize') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.maxLogFiles; + if (value != null) { + result + ..add('maxLogFiles') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.maxLogFolderSize; + if (value != null) { + result + ..add('maxLogFolderSize') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.maxSourcesInParallel; + if (value != null) { + result + ..add('maxSourcesInParallel') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.port; + if (value != null) { + result + ..add('port') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.socksProxyEnabled; + if (value != null) { + result + ..add('socksProxyEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.socksProxyHost; + if (value != null) { + result + ..add('socksProxyHost') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyPassword; + if (value != null) { + result + ..add('socksProxyPassword') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyPort; + if (value != null) { + result + ..add('socksProxyPort') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyUsername; + if (value != null) { + result + ..add('socksProxyUsername') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.socksProxyVersion; + if (value != null) { + result + ..add('socksProxyVersion') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.systemTrayEnabled; + if (value != null) { + result + ..add('systemTrayEnabled') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.updateMangas; + if (value != null) { + result + ..add('updateMangas') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.webUIChannel; + if (value != null) { + result + ..add('webUIChannel') + ..add(serializers.serialize(value, + specifiedType: const FullType(GWebUIChannel))); + } + value = object.webUIFlavor; + if (value != null) { + result + ..add('webUIFlavor') + ..add(serializers.serialize(value, + specifiedType: const FullType(GWebUIFlavor))); + } + value = object.webUIInterface; + if (value != null) { + result + ..add('webUIInterface') + ..add(serializers.serialize(value, + specifiedType: const FullType(GWebUIInterface))); + } + value = object.webUIUpdateCheckInterval; + if (value != null) { + result + ..add('webUIUpdateCheckInterval') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + return result; + } + + @override + GPartialSettingsTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GPartialSettingsTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'autoDownloadIgnoreReUploads': + result.autoDownloadIgnoreReUploads = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'autoDownloadNewChapters': + result.autoDownloadNewChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'autoDownloadNewChaptersLimit': + result.autoDownloadNewChaptersLimit = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'backupInterval': + result.backupInterval = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'backupPath': + result.backupPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'backupTTL': + result.backupTTL = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'backupTime': + result.backupTime = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'basicAuthEnabled': + result.basicAuthEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'basicAuthPassword': + result.basicAuthPassword = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'basicAuthUsername': + result.basicAuthUsername = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'debugLogsEnabled': + result.debugLogsEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'downloadAsCbz': + result.downloadAsCbz = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'downloadsPath': + result.downloadsPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'electronPath': + result.electronPath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'excludeCompleted': + result.excludeCompleted = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'excludeEntryWithUnreadChapters': + result.excludeEntryWithUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'excludeNotStarted': + result.excludeNotStarted = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'excludeUnreadChapters': + result.excludeUnreadChapters = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'extensionRepos': + result.extensionRepos.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'flareSolverrAsResponseFallback': + result.flareSolverrAsResponseFallback = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'flareSolverrEnabled': + result.flareSolverrEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'flareSolverrSessionName': + result.flareSolverrSessionName = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'flareSolverrSessionTtl': + result.flareSolverrSessionTtl = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'flareSolverrTimeout': + result.flareSolverrTimeout = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'flareSolverrUrl': + result.flareSolverrUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'globalUpdateInterval': + result.globalUpdateInterval = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'initialOpenInBrowserEnabled': + result.initialOpenInBrowserEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'ip': + result.ip = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'localSourcePath': + result.localSourcePath = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'maxLogFileSize': + result.maxLogFileSize = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'maxLogFiles': + result.maxLogFiles = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'maxLogFolderSize': + result.maxLogFolderSize = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'maxSourcesInParallel': + result.maxSourcesInParallel = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'port': + result.port = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'socksProxyEnabled': + result.socksProxyEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'socksProxyHost': + result.socksProxyHost = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyPassword': + result.socksProxyPassword = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyPort': + result.socksProxyPort = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyUsername': + result.socksProxyUsername = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'socksProxyVersion': + result.socksProxyVersion = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'systemTrayEnabled': + result.systemTrayEnabled = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'updateMangas': + result.updateMangas = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'webUIChannel': + result.webUIChannel = serializers.deserialize(value, + specifiedType: const FullType(GWebUIChannel)) as GWebUIChannel?; + break; + case 'webUIFlavor': + result.webUIFlavor = serializers.deserialize(value, + specifiedType: const FullType(GWebUIFlavor)) as GWebUIFlavor?; + break; + case 'webUIInterface': + result.webUIInterface = serializers.deserialize(value, + specifiedType: const FullType(GWebUIInterface)) + as GWebUIInterface?; + break; + case 'webUIUpdateCheckInterval': + result.webUIUpdateCheckInterval = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + } + } + + return result.build(); + } +} + +class _$GReorderChapterDownloadInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GReorderChapterDownloadInput, + _$GReorderChapterDownloadInput + ]; + @override + final String wireName = 'GReorderChapterDownloadInput'; + + @override + Iterable serialize( + Serializers serializers, GReorderChapterDownloadInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'chapterId', + serializers.serialize(object.chapterId, + specifiedType: const FullType(int)), + 'to', + serializers.serialize(object.to, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GReorderChapterDownloadInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GReorderChapterDownloadInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'chapterId': + result.chapterId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'to': + result.to = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GResetSettingsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GResetSettingsInput, + _$GResetSettingsInput + ]; + @override + final String wireName = 'GResetSettingsInput'; + + @override + Iterable serialize( + Serializers serializers, GResetSettingsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GResetSettingsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GResetSettingsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GRestoreBackupInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GRestoreBackupInput, + _$GRestoreBackupInput + ]; + @override + final String wireName = 'GRestoreBackupInput'; + + @override + Iterable serialize( + Serializers serializers, GRestoreBackupInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i3.MultipartFile)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GRestoreBackupInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GRestoreBackupInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i3.MultipartFile))! + as _i3.MultipartFile; + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSearchTrackerInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSearchTrackerInput, + _$GSearchTrackerInput + ]; + @override + final String wireName = 'GSearchTrackerInput'; + + @override + Iterable serialize( + Serializers serializers, GSearchTrackerInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'query', + serializers.serialize(object.query, + specifiedType: const FullType(String)), + 'trackerId', + serializers.serialize(object.trackerId, + specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GSearchTrackerInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSearchTrackerInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'query': + result.query = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GSetCategoryMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetCategoryMetaInput, + _$GSetCategoryMetaInput + ]; + @override + final String wireName = 'GSetCategoryMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetCategoryMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GCategoryMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetCategoryMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetCategoryMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GCategoryMetaTypeInput))! + as GCategoryMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetChapterMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetChapterMetaInput, + _$GSetChapterMetaInput + ]; + @override + final String wireName = 'GSetChapterMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetChapterMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GChapterMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetChapterMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetChapterMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GChapterMetaTypeInput))! + as GChapterMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetGlobalMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetGlobalMetaInput, + _$GSetGlobalMetaInput + ]; + @override + final String wireName = 'GSetGlobalMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetGlobalMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GGlobalMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetGlobalMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetGlobalMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GGlobalMetaTypeInput))! + as GGlobalMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetMangaMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSetMangaMetaInput, _$GSetMangaMetaInput]; + @override + final String wireName = 'GSetMangaMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetMangaMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GMangaMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetMangaMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetMangaMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GMangaMetaTypeInput))! + as GMangaMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetSettingsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSetSettingsInput, _$GSetSettingsInput]; + @override + final String wireName = 'GSetSettingsInput'; + + @override + Iterable serialize(Serializers serializers, GSetSettingsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'settings', + serializers.serialize(object.settings, + specifiedType: const FullType(GPartialSettingsTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetSettingsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetSettingsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'settings': + result.settings.replace(serializers.deserialize(value, + specifiedType: const FullType(GPartialSettingsTypeInput))! + as GPartialSettingsTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSetSourceMetaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSetSourceMetaInput, + _$GSetSourceMetaInput + ]; + @override + final String wireName = 'GSetSourceMetaInput'; + + @override + Iterable serialize( + Serializers serializers, GSetSourceMetaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'meta', + serializers.serialize(object.meta, + specifiedType: const FullType(GSourceMetaTypeInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSetSourceMetaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSetSourceMetaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'meta': + result.meta.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceMetaTypeInput))! + as GSourceMetaTypeInput); + break; + } + } + + return result.build(); + } +} + +class _$GSortOrderSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GSortOrder]; + @override + final String wireName = 'GSortOrder'; + + @override + Object serialize(Serializers serializers, GSortOrder object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GSortOrder deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GSortOrder.valueOf(serialized as String); +} + +class _$GSortSelectionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSortSelectionInput, + _$GSortSelectionInput + ]; + @override + final String wireName = 'GSortSelectionInput'; + + @override + Iterable serialize( + Serializers serializers, GSortSelectionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ascending', + serializers.serialize(object.ascending, + specifiedType: const FullType(bool)), + 'index', + serializers.serialize(object.index, specifiedType: const FullType(int)), + ]; + + return result; + } + + @override + GSortSelectionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSortSelectionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ascending': + result.ascending = serializers.deserialize(value, + specifiedType: const FullType(bool))! as bool; + break; + case 'index': + result.index = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GSourceConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceConditionInput, + _$GSourceConditionInput + ]; + @override + final String wireName = 'GSourceConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GSourceConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GSourceConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'isNsfw': + result.isNsfw = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lang': + result.lang = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GSourceFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceFilterInput, _$GSourceFilterInput]; + @override + final String wireName = 'GSourceFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GSourceFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.isNsfw; + if (value != null) { + result + ..add('isNsfw') + ..add(serializers.serialize(value, + specifiedType: const FullType(GBooleanFilterInput))); + } + value = object.lang; + if (value != null) { + result + ..add('lang') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSourceFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))); + } + return result; + } + + @override + GSourceFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))! + as BuiltList); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'isNsfw': + result.isNsfw.replace(serializers.deserialize(value, + specifiedType: const FullType(GBooleanFilterInput))! + as GBooleanFilterInput); + break; + case 'lang': + result.lang.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'name': + result.name.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourceFilterInput))! + as GSourceFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GSourceFilterInput)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GSourceMetaTypeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourceMetaTypeInput, + _$GSourceMetaTypeInput + ]; + @override + final String wireName = 'GSourceMetaTypeInput'; + + @override + Iterable serialize( + Serializers serializers, GSourceMetaTypeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'key', + serializers.serialize(object.key, specifiedType: const FullType(String)), + 'sourceId', + serializers.serialize(object.sourceId, + specifiedType: const FullType(GLongString)), + 'value', + serializers.serialize(object.value, + specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + GSourceMetaTypeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceMetaTypeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'key': + result.key = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'sourceId': + result.sourceId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'value': + result.value = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + } + } + + return result.build(); + } +} + +class _$GSourceOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GSourceOrderBy]; + @override + final String wireName = 'GSourceOrderBy'; + + @override + Object serialize(Serializers serializers, GSourceOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GSourceOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GSourceOrderBy.valueOf(serialized as String); +} + +class _$GSourceOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GSourceOrderInput, _$GSourceOrderInput]; + @override + final String wireName = 'GSourceOrderInput'; + + @override + Iterable serialize(Serializers serializers, GSourceOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GSourceOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GSourceOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourceOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GSourceOrderBy))! as GSourceOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GSourcePreferenceChangeInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GSourcePreferenceChangeInput, + _$GSourcePreferenceChangeInput + ]; + @override + final String wireName = 'GSourcePreferenceChangeInput'; + + @override + Iterable serialize( + Serializers serializers, GSourcePreferenceChangeInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'position', + serializers.serialize(object.position, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.checkBoxState; + if (value != null) { + result + ..add('checkBoxState') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.editTextState; + if (value != null) { + result + ..add('editTextState') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.listState; + if (value != null) { + result + ..add('listState') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.multiSelectState; + if (value != null) { + result + ..add('multiSelectState') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.switchState; + if (value != null) { + result + ..add('switchState') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GSourcePreferenceChangeInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GSourcePreferenceChangeInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'checkBoxState': + result.checkBoxState = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'editTextState': + result.editTextState = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'listState': + result.listState = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'multiSelectState': + result.multiSelectState.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'position': + result.position = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'switchState': + result.switchState = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GStartDownloaderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GStartDownloaderInput, + _$GStartDownloaderInput + ]; + @override + final String wireName = 'GStartDownloaderInput'; + + @override + Iterable serialize( + Serializers serializers, GStartDownloaderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GStartDownloaderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GStartDownloaderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GStopDownloaderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GStopDownloaderInput, + _$GStopDownloaderInput + ]; + @override + final String wireName = 'GStopDownloaderInput'; + + @override + Iterable serialize( + Serializers serializers, GStopDownloaderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GStopDownloaderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GStopDownloaderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GStringFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GStringFilterInput, _$GStringFilterInput]; + @override + final String wireName = 'GStringFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GStringFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.distinctFrom; + if (value != null) { + result + ..add('distinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.distinctFromAll; + if (value != null) { + result + ..add('distinctFromAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.distinctFromAny; + if (value != null) { + result + ..add('distinctFromAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.distinctFromInsensitive; + if (value != null) { + result + ..add('distinctFromInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.distinctFromInsensitiveAll; + if (value != null) { + result + ..add('distinctFromInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.distinctFromInsensitiveAny; + if (value != null) { + result + ..add('distinctFromInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.endsWith; + if (value != null) { + result + ..add('endsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.endsWithAll; + if (value != null) { + result + ..add('endsWithAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.endsWithAny; + if (value != null) { + result + ..add('endsWithAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.endsWithInsensitive; + if (value != null) { + result + ..add('endsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.endsWithInsensitiveAll; + if (value != null) { + result + ..add('endsWithInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.endsWithInsensitiveAny; + if (value != null) { + result + ..add('endsWithInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.equalTo; + if (value != null) { + result + ..add('equalTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThan; + if (value != null) { + result + ..add('greaterThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThanInsensitive; + if (value != null) { + result + ..add('greaterThanInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThanOrEqualTo; + if (value != null) { + result + ..add('greaterThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.greaterThanOrEqualToInsensitive; + if (value != null) { + result + ..add('greaterThanOrEqualToInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.Gin; + if (value != null) { + result + ..add('in') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.inInsensitive; + if (value != null) { + result + ..add('inInsensitive') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.includes; + if (value != null) { + result + ..add('includes') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.includesAll; + if (value != null) { + result + ..add('includesAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.includesAny; + if (value != null) { + result + ..add('includesAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.includesInsensitive; + if (value != null) { + result + ..add('includesInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.includesInsensitiveAll; + if (value != null) { + result + ..add('includesInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.includesInsensitiveAny; + if (value != null) { + result + ..add('includesInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.isNull; + if (value != null) { + result + ..add('isNull') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lessThan; + if (value != null) { + result + ..add('lessThan') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lessThanInsensitive; + if (value != null) { + result + ..add('lessThanInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lessThanOrEqualTo; + if (value != null) { + result + ..add('lessThanOrEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.lessThanOrEqualToInsensitive; + if (value != null) { + result + ..add('lessThanOrEqualToInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.like; + if (value != null) { + result + ..add('like') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.likeAll; + if (value != null) { + result + ..add('likeAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.likeAny; + if (value != null) { + result + ..add('likeAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.likeInsensitive; + if (value != null) { + result + ..add('likeInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.likeInsensitiveAll; + if (value != null) { + result + ..add('likeInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.likeInsensitiveAny; + if (value != null) { + result + ..add('likeInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notDistinctFrom; + if (value != null) { + result + ..add('notDistinctFrom') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notDistinctFromInsensitive; + if (value != null) { + result + ..add('notDistinctFromInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notEndsWith; + if (value != null) { + result + ..add('notEndsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notEndsWithAll; + if (value != null) { + result + ..add('notEndsWithAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notEndsWithAny; + if (value != null) { + result + ..add('notEndsWithAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notEndsWithInsensitive; + if (value != null) { + result + ..add('notEndsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notEndsWithInsensitiveAll; + if (value != null) { + result + ..add('notEndsWithInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notEndsWithInsensitiveAny; + if (value != null) { + result + ..add('notEndsWithInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notEqualTo; + if (value != null) { + result + ..add('notEqualTo') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notEqualToAll; + if (value != null) { + result + ..add('notEqualToAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notEqualToAny; + if (value != null) { + result + ..add('notEqualToAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notIn; + if (value != null) { + result + ..add('notIn') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notInInsensitive; + if (value != null) { + result + ..add('notInInsensitive') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notIncludes; + if (value != null) { + result + ..add('notIncludes') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notIncludesAll; + if (value != null) { + result + ..add('notIncludesAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notIncludesAny; + if (value != null) { + result + ..add('notIncludesAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notIncludesInsensitive; + if (value != null) { + result + ..add('notIncludesInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notIncludesInsensitiveAll; + if (value != null) { + result + ..add('notIncludesInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notIncludesInsensitiveAny; + if (value != null) { + result + ..add('notIncludesInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notLike; + if (value != null) { + result + ..add('notLike') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notLikeAll; + if (value != null) { + result + ..add('notLikeAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notLikeAny; + if (value != null) { + result + ..add('notLikeAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notLikeInsensitive; + if (value != null) { + result + ..add('notLikeInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notLikeInsensitiveAll; + if (value != null) { + result + ..add('notLikeInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notLikeInsensitiveAny; + if (value != null) { + result + ..add('notLikeInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notStartsWith; + if (value != null) { + result + ..add('notStartsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notStartsWithAll; + if (value != null) { + result + ..add('notStartsWithAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notStartsWithAny; + if (value != null) { + result + ..add('notStartsWithAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notStartsWithInsensitive; + if (value != null) { + result + ..add('notStartsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.notStartsWithInsensitiveAll; + if (value != null) { + result + ..add('notStartsWithInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.notStartsWithInsensitiveAny; + if (value != null) { + result + ..add('notStartsWithInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.startsWith; + if (value != null) { + result + ..add('startsWith') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.startsWithAll; + if (value != null) { + result + ..add('startsWithAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.startsWithAny; + if (value != null) { + result + ..add('startsWithAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.startsWithInsensitive; + if (value != null) { + result + ..add('startsWithInsensitive') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.startsWithInsensitiveAll; + if (value != null) { + result + ..add('startsWithInsensitiveAll') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + value = object.startsWithInsensitiveAny; + if (value != null) { + result + ..add('startsWithInsensitiveAny') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(String)]))); + } + return result; + } + + @override + GStringFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GStringFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'distinctFrom': + result.distinctFrom = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'distinctFromAll': + result.distinctFromAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'distinctFromAny': + result.distinctFromAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'distinctFromInsensitive': + result.distinctFromInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'distinctFromInsensitiveAll': + result.distinctFromInsensitiveAll.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'distinctFromInsensitiveAny': + result.distinctFromInsensitiveAny.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'endsWith': + result.endsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'endsWithAll': + result.endsWithAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'endsWithAny': + result.endsWithAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'endsWithInsensitive': + result.endsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'endsWithInsensitiveAll': + result.endsWithInsensitiveAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'endsWithInsensitiveAny': + result.endsWithInsensitiveAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'equalTo': + result.equalTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThan': + result.greaterThan = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThanInsensitive': + result.greaterThanInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThanOrEqualTo': + result.greaterThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'greaterThanOrEqualToInsensitive': + result.greaterThanOrEqualToInsensitive = serializers.deserialize( + value, + specifiedType: const FullType(String)) as String?; + break; + case 'in': + result.Gin.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'inInsensitive': + result.inInsensitive.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'includes': + result.includes = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'includesAll': + result.includesAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'includesAny': + result.includesAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'includesInsensitive': + result.includesInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'includesInsensitiveAll': + result.includesInsensitiveAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'includesInsensitiveAny': + result.includesInsensitiveAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'isNull': + result.isNull = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lessThan': + result.lessThan = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'lessThanInsensitive': + result.lessThanInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'lessThanOrEqualTo': + result.lessThanOrEqualTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'lessThanOrEqualToInsensitive': + result.lessThanOrEqualToInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'like': + result.like = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'likeAll': + result.likeAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'likeAny': + result.likeAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'likeInsensitive': + result.likeInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'likeInsensitiveAll': + result.likeInsensitiveAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'likeInsensitiveAny': + result.likeInsensitiveAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notDistinctFrom': + result.notDistinctFrom = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notDistinctFromInsensitive': + result.notDistinctFromInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notEndsWith': + result.notEndsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notEndsWithAll': + result.notEndsWithAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notEndsWithAny': + result.notEndsWithAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notEndsWithInsensitive': + result.notEndsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notEndsWithInsensitiveAll': + result.notEndsWithInsensitiveAll.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notEndsWithInsensitiveAny': + result.notEndsWithInsensitiveAny.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notEqualTo': + result.notEqualTo = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notEqualToAll': + result.notEqualToAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notEqualToAny': + result.notEqualToAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notIn': + result.notIn.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notInInsensitive': + result.notInInsensitive.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notIncludes': + result.notIncludes = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notIncludesAll': + result.notIncludesAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notIncludesAny': + result.notIncludesAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notIncludesInsensitive': + result.notIncludesInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notIncludesInsensitiveAll': + result.notIncludesInsensitiveAll.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notIncludesInsensitiveAny': + result.notIncludesInsensitiveAny.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notLike': + result.notLike = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notLikeAll': + result.notLikeAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notLikeAny': + result.notLikeAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notLikeInsensitive': + result.notLikeInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notLikeInsensitiveAll': + result.notLikeInsensitiveAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notLikeInsensitiveAny': + result.notLikeInsensitiveAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notStartsWith': + result.notStartsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notStartsWithAll': + result.notStartsWithAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notStartsWithAny': + result.notStartsWithAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notStartsWithInsensitive': + result.notStartsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'notStartsWithInsensitiveAll': + result.notStartsWithInsensitiveAll.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'notStartsWithInsensitiveAny': + result.notStartsWithInsensitiveAny.replace(serializers.deserialize( + value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'startsWith': + result.startsWith = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'startsWithAll': + result.startsWithAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'startsWithAny': + result.startsWithAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'startsWithInsensitive': + result.startsWithInsensitive = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'startsWithInsensitiveAll': + result.startsWithInsensitiveAll.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'startsWithInsensitiveAny': + result.startsWithInsensitiveAny.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GTrackerConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackerConditionInput, + _$GTrackerConditionInput + ]; + @override + final String wireName = 'GTrackerConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackerConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.icon; + if (value != null) { + result + ..add('icon') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.isLoggedIn; + if (value != null) { + result + ..add('isLoggedIn') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GTrackerConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackerConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'icon': + result.icon = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'isLoggedIn': + result.isLoggedIn = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GTrackerOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GTrackerOrderBy]; + @override + final String wireName = 'GTrackerOrderBy'; + + @override + Object serialize(Serializers serializers, GTrackerOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GTrackerOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GTrackerOrderBy.valueOf(serialized as String); +} + +class _$GTrackerOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GTrackerOrderInput, _$GTrackerOrderInput]; + @override + final String wireName = 'GTrackerOrderInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackerOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GTrackerOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GTrackerOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackerOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GTrackerOrderBy))! + as GTrackerOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GTrackProgressInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackProgressInput, + _$GTrackProgressInput + ]; + @override + final String wireName = 'GTrackProgressInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackProgressInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'mangaId', + serializers.serialize(object.mangaId, specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GTrackProgressInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackProgressInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GTrackRecordConditionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackRecordConditionInput, + _$GTrackRecordConditionInput + ]; + @override + final String wireName = 'GTrackRecordConditionInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackRecordConditionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.finishDate; + if (value != null) { + result + ..add('finishDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.lastChapterRead; + if (value != null) { + result + ..add('lastChapterRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.libraryId; + if (value != null) { + result + ..add('libraryId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.remoteId; + if (value != null) { + result + ..add('remoteId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.remoteUrl; + if (value != null) { + result + ..add('remoteUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.score; + if (value != null) { + result + ..add('score') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.startDate; + if (value != null) { + result + ..add('startDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.totalChapters; + if (value != null) { + result + ..add('totalChapters') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + value = object.trackerId; + if (value != null) { + result + ..add('trackerId') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GTrackRecordConditionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackRecordConditionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'finishDate': + result.finishDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'lastChapterRead': + result.lastChapterRead = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'libraryId': + result.libraryId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'mangaId': + result.mangaId = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'remoteId': + result.remoteId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'remoteUrl': + result.remoteUrl = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'score': + result.score = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'startDate': + result.startDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'title': + result.title = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'totalChapters': + result.totalChapters = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + case 'trackerId': + result.trackerId = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GTrackRecordFilterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackRecordFilterInput, + _$GTrackRecordFilterInput + ]; + @override + final String wireName = 'GTrackRecordFilterInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackRecordFilterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.and; + if (value != null) { + result + ..add('and') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]))); + } + value = object.finishDate; + if (value != null) { + result + ..add('finishDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.id; + if (value != null) { + result + ..add('id') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.lastChapterRead; + if (value != null) { + result + ..add('lastChapterRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(GDoubleFilterInput))); + } + value = object.libraryId; + if (value != null) { + result + ..add('libraryId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.mangaId; + if (value != null) { + result + ..add('mangaId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.not; + if (value != null) { + result + ..add('not') + ..add(serializers.serialize(value, + specifiedType: const FullType(GTrackRecordFilterInput))); + } + value = object.or; + if (value != null) { + result + ..add('or') + ..add(serializers.serialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]))); + } + value = object.remoteId; + if (value != null) { + result + ..add('remoteId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.remoteUrl; + if (value != null) { + result + ..add('remoteUrl') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.score; + if (value != null) { + result + ..add('score') + ..add(serializers.serialize(value, + specifiedType: const FullType(GDoubleFilterInput))); + } + value = object.startDate; + if (value != null) { + result + ..add('startDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongFilterInput))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.title; + if (value != null) { + result + ..add('title') + ..add(serializers.serialize(value, + specifiedType: const FullType(GStringFilterInput))); + } + value = object.totalChapters; + if (value != null) { + result + ..add('totalChapters') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + value = object.trackerId; + if (value != null) { + result + ..add('trackerId') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIntFilterInput))); + } + return result; + } + + @override + GTrackRecordFilterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackRecordFilterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'and': + result.and.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GTrackRecordFilterInput) + ]))! as BuiltList); + break; + case 'finishDate': + result.finishDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'id': + result.id.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'lastChapterRead': + result.lastChapterRead.replace(serializers.deserialize(value, + specifiedType: const FullType(GDoubleFilterInput))! + as GDoubleFilterInput); + break; + case 'libraryId': + result.libraryId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'mangaId': + result.mangaId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'not': + result.not.replace(serializers.deserialize(value, + specifiedType: const FullType(GTrackRecordFilterInput))! + as GTrackRecordFilterInput); + break; + case 'or': + result.or.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, const [ + const FullType(GTrackRecordFilterInput) + ]))! as BuiltList); + break; + case 'remoteId': + result.remoteId.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'remoteUrl': + result.remoteUrl.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'score': + result.score.replace(serializers.deserialize(value, + specifiedType: const FullType(GDoubleFilterInput))! + as GDoubleFilterInput); + break; + case 'startDate': + result.startDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongFilterInput))! + as GLongFilterInput); + break; + case 'status': + result.status.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'title': + result.title.replace(serializers.deserialize(value, + specifiedType: const FullType(GStringFilterInput))! + as GStringFilterInput); + break; + case 'totalChapters': + result.totalChapters.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + case 'trackerId': + result.trackerId.replace(serializers.deserialize(value, + specifiedType: const FullType(GIntFilterInput))! + as GIntFilterInput); + break; + } + } + + return result.build(); + } +} + +class _$GTrackRecordOrderBySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GTrackRecordOrderBy]; + @override + final String wireName = 'GTrackRecordOrderBy'; + + @override + Object serialize(Serializers serializers, GTrackRecordOrderBy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GTrackRecordOrderBy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GTrackRecordOrderBy.valueOf(serialized as String); +} + +class _$GTrackRecordOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GTrackRecordOrderInput, + _$GTrackRecordOrderInput + ]; + @override + final String wireName = 'GTrackRecordOrderInput'; + + @override + Iterable serialize( + Serializers serializers, GTrackRecordOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'by', + serializers.serialize(object.by, + specifiedType: const FullType(GTrackRecordOrderBy)), + ]; + Object? value; + value = object.byType; + if (value != null) { + result + ..add('byType') + ..add(serializers.serialize(value, + specifiedType: const FullType(GSortOrder))); + } + return result; + } + + @override + GTrackRecordOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GTrackRecordOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'by': + result.by = serializers.deserialize(value, + specifiedType: const FullType(GTrackRecordOrderBy))! + as GTrackRecordOrderBy; + break; + case 'byType': + result.byType = serializers.deserialize(value, + specifiedType: const FullType(GSortOrder)) as GSortOrder?; + break; + } + } + + return result.build(); + } +} + +class _$GTriStateSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GTriState]; + @override + final String wireName = 'GTriState'; + + @override + Object serialize(Serializers serializers, GTriState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GTriState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GTriState.valueOf(serialized as String); +} + +class _$GUnbindTrackInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUnbindTrackInput, _$GUnbindTrackInput]; + @override + final String wireName = 'GUnbindTrackInput'; + + @override + Iterable serialize(Serializers serializers, GUnbindTrackInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'recordId', + serializers.serialize(object.recordId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.deleteRemoteTrack; + if (value != null) { + result + ..add('deleteRemoteTrack') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUnbindTrackInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUnbindTrackInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'deleteRemoteTrack': + result.deleteRemoteTrack = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'recordId': + result.recordId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoriesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoriesInput, + _$GUpdateCategoriesInput + ]; + @override + final String wireName = 'GUpdateCategoriesInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoriesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateCategoryPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoriesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoriesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateCategoryPatchInput))! + as GUpdateCategoryPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryInput, + _$GUpdateCategoryInput + ]; + @override + final String wireName = 'GUpdateCategoryInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateCategoryPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateCategoryPatchInput))! + as GUpdateCategoryPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryMangaInput, + _$GUpdateCategoryMangaInput + ]; + @override + final String wireName = 'GUpdateCategoryMangaInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'categories', + serializers.serialize(object.categories, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'categories': + result.categories.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryOrderInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryOrderInput, + _$GUpdateCategoryOrderInput + ]; + @override + final String wireName = 'GUpdateCategoryOrderInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryOrderInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'position', + serializers.serialize(object.position, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryOrderInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryOrderInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'position': + result.position = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateCategoryPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateCategoryPatchInput, + _$GUpdateCategoryPatchInput + ]; + @override + final String wireName = 'GUpdateCategoryPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateCategoryPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.Gdefault; + if (value != null) { + result + ..add('default') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.includeInDownload; + if (value != null) { + result + ..add('includeInDownload') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.includeInUpdate; + if (value != null) { + result + ..add('includeInUpdate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GIncludeOrExclude))); + } + value = object.name; + if (value != null) { + result + ..add('name') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateCategoryPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateCategoryPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'default': + result.Gdefault = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'includeInDownload': + result.includeInDownload = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'includeInUpdate': + result.includeInUpdate = serializers.deserialize(value, + specifiedType: const FullType(GIncludeOrExclude)) + as GIncludeOrExclude?; + break; + case 'name': + result.name = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateChapterInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateChapterInput, + _$GUpdateChapterInput + ]; + @override + final String wireName = 'GUpdateChapterInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateChapterInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateChapterPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateChapterInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateChapterInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateChapterPatchInput))! + as GUpdateChapterPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateChapterPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateChapterPatchInput, + _$GUpdateChapterPatchInput + ]; + @override + final String wireName = 'GUpdateChapterPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateChapterPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.isBookmarked; + if (value != null) { + result + ..add('isBookmarked') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.isRead; + if (value != null) { + result + ..add('isRead') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.lastPageRead; + if (value != null) { + result + ..add('lastPageRead') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateChapterPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateChapterPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'isBookmarked': + result.isBookmarked = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'isRead': + result.isRead = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'lastPageRead': + result.lastPageRead = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateChaptersInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateChaptersInput, + _$GUpdateChaptersInput + ]; + @override + final String wireName = 'GUpdateChaptersInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateChaptersInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateChapterPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateChaptersInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateChaptersInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateChapterPatchInput))! + as GUpdateChapterPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionInput, + _$GUpdateExtensionInput + ]; + @override + final String wireName = 'GUpdateExtensionInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateExtensionPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateExtensionInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(String))! as String; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateExtensionPatchInput))! + as GUpdateExtensionPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionPatchInput, + _$GUpdateExtensionPatchInput + ]; + @override + final String wireName = 'GUpdateExtensionPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.install; + if (value != null) { + result + ..add('install') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.uninstall; + if (value != null) { + result + ..add('uninstall') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.Gupdate; + if (value != null) { + result + ..add('update') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateExtensionPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'install': + result.install = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'uninstall': + result.uninstall = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'update': + result.Gupdate = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateExtensionsInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateExtensionsInput, + _$GUpdateExtensionsInput + ]; + @override + final String wireName = 'GUpdateExtensionsInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateExtensionsInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(String)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateExtensionPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateExtensionsInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateExtensionsInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: const FullType( + BuiltList, const [const FullType(String)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateExtensionPatchInput))! + as GUpdateExtensionPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateLibraryMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateLibraryMangaInput, + _$GUpdateLibraryMangaInput + ]; + @override + final String wireName = 'GUpdateLibraryMangaInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateLibraryMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateLibraryMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateLibraryMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaCategoriesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaCategoriesInput, + _$GUpdateMangaCategoriesInput + ]; + @override + final String wireName = 'GUpdateMangaCategoriesInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaCategoriesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaCategoriesPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangaCategoriesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaCategoriesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateMangaCategoriesPatchInput))! + as GUpdateMangaCategoriesPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaCategoriesPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaCategoriesPatchInput, + _$GUpdateMangaCategoriesPatchInput + ]; + @override + final String wireName = 'GUpdateMangaCategoriesPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaCategoriesPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.addToCategories; + if (value != null) { + result + ..add('addToCategories') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + value = object.clearCategories; + if (value != null) { + result + ..add('clearCategories') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + value = object.removeFromCategories; + if (value != null) { + result + ..add('removeFromCategories') + ..add(serializers.serialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))); + } + return result; + } + + @override + GUpdateMangaCategoriesPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaCategoriesPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'addToCategories': + result.addToCategories.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'clearCategories': + result.clearCategories = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + case 'removeFromCategories': + result.removeFromCategories.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateMangaInput, _$GUpdateMangaInput]; + @override + final String wireName = 'GUpdateMangaInput'; + + @override + Iterable serialize(Serializers serializers, GUpdateMangaInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(int)), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangaInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'id': + result.id = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateMangaPatchInput))! + as GUpdateMangaPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangaPatchInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangaPatchInput, + _$GUpdateMangaPatchInput + ]; + @override + final String wireName = 'GUpdateMangaPatchInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangaPatchInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.inLibrary; + if (value != null) { + result + ..add('inLibrary') + ..add( + serializers.serialize(value, specifiedType: const FullType(bool))); + } + return result; + } + + @override + GUpdateMangaPatchInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangaPatchInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'inLibrary': + result.inLibrary = serializers.deserialize(value, + specifiedType: const FullType(bool)) as bool?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangasCategoriesInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateMangasCategoriesInput, + _$GUpdateMangasCategoriesInput + ]; + @override + final String wireName = 'GUpdateMangasCategoriesInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangasCategoriesInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaCategoriesPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangasCategoriesInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangasCategoriesInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: + const FullType(GUpdateMangaCategoriesPatchInput))! + as GUpdateMangaCategoriesPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateMangasInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateMangasInput, _$GUpdateMangasInput]; + @override + final String wireName = 'GUpdateMangasInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateMangasInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ids', + serializers.serialize(object.ids, + specifiedType: + const FullType(BuiltList, const [const FullType(int)])), + 'patch', + serializers.serialize(object.patch, + specifiedType: const FullType(GUpdateMangaPatchInput)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateMangasInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateMangasInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'ids': + result.ids.replace(serializers.deserialize(value, + specifiedType: + const FullType(BuiltList, const [const FullType(int)]))! + as BuiltList); + break; + case 'patch': + result.patch.replace(serializers.deserialize(value, + specifiedType: const FullType(GUpdateMangaPatchInput))! + as GUpdateMangaPatchInput); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateSourcePreferenceInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GUpdateSourcePreferenceInput, + _$GUpdateSourcePreferenceInput + ]; + @override + final String wireName = 'GUpdateSourcePreferenceInput'; + + @override + Iterable serialize( + Serializers serializers, GUpdateSourcePreferenceInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'change', + serializers.serialize(object.change, + specifiedType: const FullType(GSourcePreferenceChangeInput)), + 'source', + serializers.serialize(object.source, + specifiedType: const FullType(GLongString)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateSourcePreferenceInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateSourcePreferenceInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'change': + result.change.replace(serializers.deserialize(value, + specifiedType: const FullType(GSourcePreferenceChangeInput))! + as GSourcePreferenceChangeInput); + break; + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'source': + result.source.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + } + } + + return result.build(); + } +} + +class _$GUpdateStateSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GUpdateState]; + @override + final String wireName = 'GUpdateState'; + + @override + Object serialize(Serializers serializers, GUpdateState object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GUpdateState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GUpdateState.valueOf(serialized as String); +} + +class _$GUpdateStopInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateStopInput, _$GUpdateStopInput]; + @override + final String wireName = 'GUpdateStopInput'; + + @override + Iterable serialize(Serializers serializers, GUpdateStopInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GUpdateStopInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateStopInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GUpdateStrategySerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GUpdateStrategy]; + @override + final String wireName = 'GUpdateStrategy'; + + @override + Object serialize(Serializers serializers, GUpdateStrategy object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GUpdateStrategy deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GUpdateStrategy.valueOf(serialized as String); +} + +class _$GUpdateTrackInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GUpdateTrackInput, _$GUpdateTrackInput]; + @override + final String wireName = 'GUpdateTrackInput'; + + @override + Iterable serialize(Serializers serializers, GUpdateTrackInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'recordId', + serializers.serialize(object.recordId, + specifiedType: const FullType(int)), + ]; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.finishDate; + if (value != null) { + result + ..add('finishDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.lastChapterRead; + if (value != null) { + result + ..add('lastChapterRead') + ..add(serializers.serialize(value, + specifiedType: const FullType(double))); + } + value = object.scoreString; + if (value != null) { + result + ..add('scoreString') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + value = object.startDate; + if (value != null) { + result + ..add('startDate') + ..add(serializers.serialize(value, + specifiedType: const FullType(GLongString))); + } + value = object.status; + if (value != null) { + result + ..add('status') + ..add(serializers.serialize(value, specifiedType: const FullType(int))); + } + return result; + } + + @override + GUpdateTrackInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GUpdateTrackInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'finishDate': + result.finishDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'lastChapterRead': + result.lastChapterRead = serializers.deserialize(value, + specifiedType: const FullType(double)) as double?; + break; + case 'recordId': + result.recordId = serializers.deserialize(value, + specifiedType: const FullType(int))! as int; + break; + case 'scoreString': + result.scoreString = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + case 'startDate': + result.startDate.replace(serializers.deserialize(value, + specifiedType: const FullType(GLongString))! as GLongString); + break; + case 'status': + result.status = serializers.deserialize(value, + specifiedType: const FullType(int)) as int?; + break; + } + } + + return result.build(); + } +} + +class _$GValidateBackupInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + GValidateBackupInput, + _$GValidateBackupInput + ]; + @override + final String wireName = 'GValidateBackupInput'; + + @override + Iterable serialize( + Serializers serializers, GValidateBackupInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'backup', + serializers.serialize(object.backup, + specifiedType: const FullType(_i3.MultipartFile)), + ]; + + return result; + } + + @override + GValidateBackupInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GValidateBackupInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'backup': + result.backup = serializers.deserialize(value, + specifiedType: const FullType(_i3.MultipartFile))! + as _i3.MultipartFile; + break; + } + } + + return result.build(); + } +} + +class _$GWebUIChannelSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GWebUIChannel]; + @override + final String wireName = 'GWebUIChannel'; + + @override + Object serialize(Serializers serializers, GWebUIChannel object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GWebUIChannel deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GWebUIChannel.valueOf(serialized as String); +} + +class _$GWebUIFlavorSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [GWebUIFlavor]; + @override + final String wireName = 'GWebUIFlavor'; + + @override + Object serialize(Serializers serializers, GWebUIFlavor object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GWebUIFlavor deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GWebUIFlavor.valueOf(serialized as String); +} + +class _$GWebUIInterfaceSerializer + implements PrimitiveSerializer { + @override + final Iterable types = const [GWebUIInterface]; + @override + final String wireName = 'GWebUIInterface'; + + @override + Object serialize(Serializers serializers, GWebUIInterface object, + {FullType specifiedType = FullType.unspecified}) => + object.name; + + @override + GWebUIInterface deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + GWebUIInterface.valueOf(serialized as String); +} + +class _$GWebUIUpdateInputSerializer + implements StructuredSerializer { + @override + final Iterable types = const [GWebUIUpdateInput, _$GWebUIUpdateInput]; + @override + final String wireName = 'GWebUIUpdateInput'; + + @override + Iterable serialize(Serializers serializers, GWebUIUpdateInput object, + {FullType specifiedType = FullType.unspecified}) { + final result = []; + Object? value; + value = object.clientMutationId; + if (value != null) { + result + ..add('clientMutationId') + ..add(serializers.serialize(value, + specifiedType: const FullType(String))); + } + return result; + } + + @override + GWebUIUpdateInput deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = new GWebUIUpdateInputBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'clientMutationId': + result.clientMutationId = serializers.deserialize(value, + specifiedType: const FullType(String)) as String?; + break; + } + } + + return result.build(); + } +} + +class _$GBindTrackInput extends GBindTrackInput { + @override + final String? clientMutationId; + @override + final int mangaId; + @override + final GLongString remoteId; + @override + final int trackerId; + + factory _$GBindTrackInput([void Function(GBindTrackInputBuilder)? updates]) => + (new GBindTrackInputBuilder()..update(updates))._build(); + + _$GBindTrackInput._( + {this.clientMutationId, + required this.mangaId, + required this.remoteId, + required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GBindTrackInput', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + remoteId, r'GBindTrackInput', 'remoteId'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GBindTrackInput', 'trackerId'); + } + + @override + GBindTrackInput rebuild(void Function(GBindTrackInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBindTrackInputBuilder toBuilder() => + new GBindTrackInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBindTrackInput && + clientMutationId == other.clientMutationId && + mangaId == other.mangaId && + remoteId == other.remoteId && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, remoteId.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBindTrackInput') + ..add('clientMutationId', clientMutationId) + ..add('mangaId', mangaId) + ..add('remoteId', remoteId) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GBindTrackInputBuilder + implements Builder { + _$GBindTrackInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GLongStringBuilder? _remoteId; + GLongStringBuilder get remoteId => + _$this._remoteId ??= new GLongStringBuilder(); + set remoteId(GLongStringBuilder? remoteId) => _$this._remoteId = remoteId; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GBindTrackInputBuilder(); + + GBindTrackInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _mangaId = $v.mangaId; + _remoteId = $v.remoteId.toBuilder(); + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GBindTrackInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBindTrackInput; + } + + @override + void update(void Function(GBindTrackInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBindTrackInput build() => _build(); + + _$GBindTrackInput _build() { + _$GBindTrackInput _$result; + try { + _$result = _$v ?? + new _$GBindTrackInput._( + clientMutationId: clientMutationId, + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GBindTrackInput', 'mangaId'), + remoteId: remoteId.build(), + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GBindTrackInput', 'trackerId'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'remoteId'; + remoteId.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBindTrackInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GBooleanFilterInput extends GBooleanFilterInput { + @override + final bool? distinctFrom; + @override + final BuiltList? distinctFromAll; + @override + final BuiltList? distinctFromAny; + @override + final bool? equalTo; + @override + final bool? greaterThan; + @override + final bool? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final bool? lessThan; + @override + final bool? lessThanOrEqualTo; + @override + final bool? notDistinctFrom; + @override + final bool? notEqualTo; + @override + final BuiltList? notEqualToAll; + @override + final BuiltList? notEqualToAny; + @override + final BuiltList? notIn; + + factory _$GBooleanFilterInput( + [void Function(GBooleanFilterInputBuilder)? updates]) => + (new GBooleanFilterInputBuilder()..update(updates))._build(); + + _$GBooleanFilterInput._( + {this.distinctFrom, + this.distinctFromAll, + this.distinctFromAny, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notEqualToAll, + this.notEqualToAny, + this.notIn}) + : super._(); + + @override + GBooleanFilterInput rebuild( + void Function(GBooleanFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GBooleanFilterInputBuilder toBuilder() => + new GBooleanFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GBooleanFilterInput && + distinctFrom == other.distinctFrom && + distinctFromAll == other.distinctFromAll && + distinctFromAny == other.distinctFromAny && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notEqualToAll == other.notEqualToAll && + notEqualToAny == other.notEqualToAny && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromAll.hashCode); + _$hash = $jc(_$hash, distinctFromAny.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notEqualToAll.hashCode); + _$hash = $jc(_$hash, notEqualToAny.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GBooleanFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromAll', distinctFromAll) + ..add('distinctFromAny', distinctFromAny) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notEqualToAll', notEqualToAll) + ..add('notEqualToAny', notEqualToAny) + ..add('notIn', notIn)) + .toString(); + } +} + +class GBooleanFilterInputBuilder + implements Builder { + _$GBooleanFilterInput? _$v; + + bool? _distinctFrom; + bool? get distinctFrom => _$this._distinctFrom; + set distinctFrom(bool? distinctFrom) => _$this._distinctFrom = distinctFrom; + + ListBuilder? _distinctFromAll; + ListBuilder get distinctFromAll => + _$this._distinctFromAll ??= new ListBuilder(); + set distinctFromAll(ListBuilder? distinctFromAll) => + _$this._distinctFromAll = distinctFromAll; + + ListBuilder? _distinctFromAny; + ListBuilder get distinctFromAny => + _$this._distinctFromAny ??= new ListBuilder(); + set distinctFromAny(ListBuilder? distinctFromAny) => + _$this._distinctFromAny = distinctFromAny; + + bool? _equalTo; + bool? get equalTo => _$this._equalTo; + set equalTo(bool? equalTo) => _$this._equalTo = equalTo; + + bool? _greaterThan; + bool? get greaterThan => _$this._greaterThan; + set greaterThan(bool? greaterThan) => _$this._greaterThan = greaterThan; + + bool? _greaterThanOrEqualTo; + bool? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(bool? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + bool? _lessThan; + bool? get lessThan => _$this._lessThan; + set lessThan(bool? lessThan) => _$this._lessThan = lessThan; + + bool? _lessThanOrEqualTo; + bool? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(bool? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + bool? _notDistinctFrom; + bool? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(bool? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + bool? _notEqualTo; + bool? get notEqualTo => _$this._notEqualTo; + set notEqualTo(bool? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notEqualToAll; + ListBuilder get notEqualToAll => + _$this._notEqualToAll ??= new ListBuilder(); + set notEqualToAll(ListBuilder? notEqualToAll) => + _$this._notEqualToAll = notEqualToAll; + + ListBuilder? _notEqualToAny; + ListBuilder get notEqualToAny => + _$this._notEqualToAny ??= new ListBuilder(); + set notEqualToAny(ListBuilder? notEqualToAny) => + _$this._notEqualToAny = notEqualToAny; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GBooleanFilterInputBuilder(); + + GBooleanFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _distinctFromAll = $v.distinctFromAll?.toBuilder(); + _distinctFromAny = $v.distinctFromAny?.toBuilder(); + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notEqualToAll = $v.notEqualToAll?.toBuilder(); + _notEqualToAny = $v.notEqualToAny?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GBooleanFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GBooleanFilterInput; + } + + @override + void update(void Function(GBooleanFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GBooleanFilterInput build() => _build(); + + _$GBooleanFilterInput _build() { + _$GBooleanFilterInput _$result; + try { + _$result = _$v ?? + new _$GBooleanFilterInput._( + distinctFrom: distinctFrom, + distinctFromAll: _distinctFromAll?.build(), + distinctFromAny: _distinctFromAny?.build(), + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notEqualToAll: _notEqualToAll?.build(), + notEqualToAny: _notEqualToAny?.build(), + notIn: _notIn?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFromAll'; + _distinctFromAll?.build(); + _$failedField = 'distinctFromAny'; + _distinctFromAny?.build(); + + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notEqualToAll'; + _notEqualToAll?.build(); + _$failedField = 'notEqualToAny'; + _notEqualToAny?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GBooleanFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCategoryConditionInput extends GCategoryConditionInput { + @override + final bool? Gdefault; + @override + final int? id; + @override + final String? name; + @override + final int? order; + + factory _$GCategoryConditionInput( + [void Function(GCategoryConditionInputBuilder)? updates]) => + (new GCategoryConditionInputBuilder()..update(updates))._build(); + + _$GCategoryConditionInput._({this.Gdefault, this.id, this.name, this.order}) + : super._(); + + @override + GCategoryConditionInput rebuild( + void Function(GCategoryConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryConditionInputBuilder toBuilder() => + new GCategoryConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryConditionInput && + Gdefault == other.Gdefault && + id == other.id && + name == other.name && + order == other.order; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryConditionInput') + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('name', name) + ..add('order', order)) + .toString(); + } +} + +class GCategoryConditionInputBuilder + implements + Builder { + _$GCategoryConditionInput? _$v; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GCategoryConditionInputBuilder(); + + GCategoryConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _Gdefault = $v.Gdefault; + _id = $v.id; + _name = $v.name; + _order = $v.order; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryConditionInput; + } + + @override + void update(void Function(GCategoryConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryConditionInput build() => _build(); + + _$GCategoryConditionInput _build() { + final _$result = _$v ?? + new _$GCategoryConditionInput._( + Gdefault: Gdefault, + id: id, + name: name, + order: order, + ); + replace(_$result); + return _$result; + } +} + +class _$GCategoryFilterInput extends GCategoryFilterInput { + @override + final BuiltList? and; + @override + final GBooleanFilterInput? Gdefault; + @override + final GIntFilterInput? id; + @override + final GStringFilterInput? name; + @override + final GCategoryFilterInput? not; + @override + final BuiltList? or; + @override + final GIntFilterInput? order; + + factory _$GCategoryFilterInput( + [void Function(GCategoryFilterInputBuilder)? updates]) => + (new GCategoryFilterInputBuilder()..update(updates))._build(); + + _$GCategoryFilterInput._( + {this.and, + this.Gdefault, + this.id, + this.name, + this.not, + this.or, + this.order}) + : super._(); + + @override + GCategoryFilterInput rebuild( + void Function(GCategoryFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryFilterInputBuilder toBuilder() => + new GCategoryFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryFilterInput && + and == other.and && + Gdefault == other.Gdefault && + id == other.id && + name == other.name && + not == other.not && + or == other.or && + order == other.order; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryFilterInput') + ..add('and', and) + ..add('Gdefault', Gdefault) + ..add('id', id) + ..add('name', name) + ..add('not', not) + ..add('or', or) + ..add('order', order)) + .toString(); + } +} + +class GCategoryFilterInputBuilder + implements Builder { + _$GCategoryFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GBooleanFilterInputBuilder? _Gdefault; + GBooleanFilterInputBuilder get Gdefault => + _$this._Gdefault ??= new GBooleanFilterInputBuilder(); + set Gdefault(GBooleanFilterInputBuilder? Gdefault) => + _$this._Gdefault = Gdefault; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GCategoryFilterInputBuilder? _not; + GCategoryFilterInputBuilder get not => + _$this._not ??= new GCategoryFilterInputBuilder(); + set not(GCategoryFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GIntFilterInputBuilder? _order; + GIntFilterInputBuilder get order => + _$this._order ??= new GIntFilterInputBuilder(); + set order(GIntFilterInputBuilder? order) => _$this._order = order; + + GCategoryFilterInputBuilder(); + + GCategoryFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _Gdefault = $v.Gdefault?.toBuilder(); + _id = $v.id?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _order = $v.order?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GCategoryFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryFilterInput; + } + + @override + void update(void Function(GCategoryFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryFilterInput build() => _build(); + + _$GCategoryFilterInput _build() { + _$GCategoryFilterInput _$result; + try { + _$result = _$v ?? + new _$GCategoryFilterInput._( + and: _and?.build(), + Gdefault: _Gdefault?.build(), + id: _id?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build(), + order: _order?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'Gdefault'; + _Gdefault?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'order'; + _order?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GCategoryFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GCategoryMetaTypeInput extends GCategoryMetaTypeInput { + @override + final int categoryId; + @override + final String key; + @override + final String value; + + factory _$GCategoryMetaTypeInput( + [void Function(GCategoryMetaTypeInputBuilder)? updates]) => + (new GCategoryMetaTypeInputBuilder()..update(updates))._build(); + + _$GCategoryMetaTypeInput._( + {required this.categoryId, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categoryId, r'GCategoryMetaTypeInput', 'categoryId'); + BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryMetaTypeInput', 'value'); + } + + @override + GCategoryMetaTypeInput rebuild( + void Function(GCategoryMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryMetaTypeInputBuilder toBuilder() => + new GCategoryMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryMetaTypeInput && + categoryId == other.categoryId && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryMetaTypeInput') + ..add('categoryId', categoryId) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GCategoryMetaTypeInputBuilder + implements Builder { + _$GCategoryMetaTypeInput? _$v; + + int? _categoryId; + int? get categoryId => _$this._categoryId; + set categoryId(int? categoryId) => _$this._categoryId = categoryId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GCategoryMetaTypeInputBuilder(); + + GCategoryMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categoryId = $v.categoryId; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryMetaTypeInput; + } + + @override + void update(void Function(GCategoryMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryMetaTypeInput build() => _build(); + + _$GCategoryMetaTypeInput _build() { + final _$result = _$v ?? + new _$GCategoryMetaTypeInput._( + categoryId: BuiltValueNullFieldError.checkNotNull( + categoryId, r'GCategoryMetaTypeInput', 'categoryId'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GCategoryMetaTypeInput', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GCategoryMetaTypeInput', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GCategoryOrderInput extends GCategoryOrderInput { + @override + final GCategoryOrderBy by; + @override + final GSortOrder? byType; + + factory _$GCategoryOrderInput( + [void Function(GCategoryOrderInputBuilder)? updates]) => + (new GCategoryOrderInputBuilder()..update(updates))._build(); + + _$GCategoryOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GCategoryOrderInput', 'by'); + } + + @override + GCategoryOrderInput rebuild( + void Function(GCategoryOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCategoryOrderInputBuilder toBuilder() => + new GCategoryOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCategoryOrderInput && + by == other.by && + byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCategoryOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GCategoryOrderInputBuilder + implements Builder { + _$GCategoryOrderInput? _$v; + + GCategoryOrderBy? _by; + GCategoryOrderBy? get by => _$this._by; + set by(GCategoryOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GCategoryOrderInputBuilder(); + + GCategoryOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GCategoryOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCategoryOrderInput; + } + + @override + void update(void Function(GCategoryOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCategoryOrderInput build() => _build(); + + _$GCategoryOrderInput _build() { + final _$result = _$v ?? + new _$GCategoryOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GCategoryOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GChapterConditionInput extends GChapterConditionInput { + @override + final double? chapterNumber; + @override + final GLongString? fetchedAt; + @override + final int? id; + @override + final bool? isBookmarked; + @override + final bool? isDownloaded; + @override + final bool? isRead; + @override + final int? lastPageRead; + @override + final GLongString? lastReadAt; + @override + final int? mangaId; + @override + final String? name; + @override + final int? pageCount; + @override + final String? realUrl; + @override + final String? scanlator; + @override + final int? sourceOrder; + @override + final GLongString? uploadDate; + @override + final String? url; + + factory _$GChapterConditionInput( + [void Function(GChapterConditionInputBuilder)? updates]) => + (new GChapterConditionInputBuilder()..update(updates))._build(); + + _$GChapterConditionInput._( + {this.chapterNumber, + this.fetchedAt, + this.id, + this.isBookmarked, + this.isDownloaded, + this.isRead, + this.lastPageRead, + this.lastReadAt, + this.mangaId, + this.name, + this.pageCount, + this.realUrl, + this.scanlator, + this.sourceOrder, + this.uploadDate, + this.url}) + : super._(); + + @override + GChapterConditionInput rebuild( + void Function(GChapterConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterConditionInputBuilder toBuilder() => + new GChapterConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterConditionInput && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterConditionInput') + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url)) + .toString(); + } +} + +class GChapterConditionInputBuilder + implements Builder { + _$GChapterConditionInput? _$v; + + double? _chapterNumber; + double? get chapterNumber => _$this._chapterNumber; + set chapterNumber(double? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + GLongStringBuilder? _fetchedAt; + GLongStringBuilder get fetchedAt => + _$this._fetchedAt ??= new GLongStringBuilder(); + set fetchedAt(GLongStringBuilder? fetchedAt) => _$this._fetchedAt = fetchedAt; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isDownloaded; + bool? get isDownloaded => _$this._isDownloaded; + set isDownloaded(bool? isDownloaded) => _$this._isDownloaded = isDownloaded; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + GLongStringBuilder? _lastReadAt; + GLongStringBuilder get lastReadAt => + _$this._lastReadAt ??= new GLongStringBuilder(); + set lastReadAt(GLongStringBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _pageCount; + int? get pageCount => _$this._pageCount; + set pageCount(int? pageCount) => _$this._pageCount = pageCount; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + String? _scanlator; + String? get scanlator => _$this._scanlator; + set scanlator(String? scanlator) => _$this._scanlator = scanlator; + + int? _sourceOrder; + int? get sourceOrder => _$this._sourceOrder; + set sourceOrder(int? sourceOrder) => _$this._sourceOrder = sourceOrder; + + GLongStringBuilder? _uploadDate; + GLongStringBuilder get uploadDate => + _$this._uploadDate ??= new GLongStringBuilder(); + set uploadDate(GLongStringBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GChapterConditionInputBuilder(); + + GChapterConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterNumber = $v.chapterNumber; + _fetchedAt = $v.fetchedAt?.toBuilder(); + _id = $v.id; + _isBookmarked = $v.isBookmarked; + _isDownloaded = $v.isDownloaded; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _lastReadAt = $v.lastReadAt?.toBuilder(); + _mangaId = $v.mangaId; + _name = $v.name; + _pageCount = $v.pageCount; + _realUrl = $v.realUrl; + _scanlator = $v.scanlator; + _sourceOrder = $v.sourceOrder; + _uploadDate = $v.uploadDate?.toBuilder(); + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GChapterConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterConditionInput; + } + + @override + void update(void Function(GChapterConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterConditionInput build() => _build(); + + _$GChapterConditionInput _build() { + _$GChapterConditionInput _$result; + try { + _$result = _$v ?? + new _$GChapterConditionInput._( + chapterNumber: chapterNumber, + fetchedAt: _fetchedAt?.build(), + id: id, + isBookmarked: isBookmarked, + isDownloaded: isDownloaded, + isRead: isRead, + lastPageRead: lastPageRead, + lastReadAt: _lastReadAt?.build(), + mangaId: mangaId, + name: name, + pageCount: pageCount, + realUrl: realUrl, + scanlator: scanlator, + sourceOrder: sourceOrder, + uploadDate: _uploadDate?.build(), + url: url, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'fetchedAt'; + _fetchedAt?.build(); + + _$failedField = 'lastReadAt'; + _lastReadAt?.build(); + + _$failedField = 'uploadDate'; + _uploadDate?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GChapterFilterInput extends GChapterFilterInput { + @override + final BuiltList? and; + @override + final GFloatFilterInput? chapterNumber; + @override + final GLongFilterInput? fetchedAt; + @override + final GIntFilterInput? id; + @override + final GBooleanFilterInput? inLibrary; + @override + final GBooleanFilterInput? isBookmarked; + @override + final GBooleanFilterInput? isDownloaded; + @override + final GBooleanFilterInput? isRead; + @override + final GIntFilterInput? lastPageRead; + @override + final GLongFilterInput? lastReadAt; + @override + final GIntFilterInput? mangaId; + @override + final GStringFilterInput? name; + @override + final GChapterFilterInput? not; + @override + final BuiltList? or; + @override + final GIntFilterInput? pageCount; + @override + final GStringFilterInput? realUrl; + @override + final GStringFilterInput? scanlator; + @override + final GIntFilterInput? sourceOrder; + @override + final GLongFilterInput? uploadDate; + @override + final GStringFilterInput? url; + + factory _$GChapterFilterInput( + [void Function(GChapterFilterInputBuilder)? updates]) => + (new GChapterFilterInputBuilder()..update(updates))._build(); + + _$GChapterFilterInput._( + {this.and, + this.chapterNumber, + this.fetchedAt, + this.id, + this.inLibrary, + this.isBookmarked, + this.isDownloaded, + this.isRead, + this.lastPageRead, + this.lastReadAt, + this.mangaId, + this.name, + this.not, + this.or, + this.pageCount, + this.realUrl, + this.scanlator, + this.sourceOrder, + this.uploadDate, + this.url}) + : super._(); + + @override + GChapterFilterInput rebuild( + void Function(GChapterFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterFilterInputBuilder toBuilder() => + new GChapterFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterFilterInput && + and == other.and && + chapterNumber == other.chapterNumber && + fetchedAt == other.fetchedAt && + id == other.id && + inLibrary == other.inLibrary && + isBookmarked == other.isBookmarked && + isDownloaded == other.isDownloaded && + isRead == other.isRead && + lastPageRead == other.lastPageRead && + lastReadAt == other.lastReadAt && + mangaId == other.mangaId && + name == other.name && + not == other.not && + or == other.or && + pageCount == other.pageCount && + realUrl == other.realUrl && + scanlator == other.scanlator && + sourceOrder == other.sourceOrder && + uploadDate == other.uploadDate && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, chapterNumber.hashCode); + _$hash = $jc(_$hash, fetchedAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isDownloaded.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jc(_$hash, lastReadAt.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, pageCount.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, scanlator.hashCode); + _$hash = $jc(_$hash, sourceOrder.hashCode); + _$hash = $jc(_$hash, uploadDate.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterFilterInput') + ..add('and', and) + ..add('chapterNumber', chapterNumber) + ..add('fetchedAt', fetchedAt) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('isBookmarked', isBookmarked) + ..add('isDownloaded', isDownloaded) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead) + ..add('lastReadAt', lastReadAt) + ..add('mangaId', mangaId) + ..add('name', name) + ..add('not', not) + ..add('or', or) + ..add('pageCount', pageCount) + ..add('realUrl', realUrl) + ..add('scanlator', scanlator) + ..add('sourceOrder', sourceOrder) + ..add('uploadDate', uploadDate) + ..add('url', url)) + .toString(); + } +} + +class GChapterFilterInputBuilder + implements Builder { + _$GChapterFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GFloatFilterInputBuilder? _chapterNumber; + GFloatFilterInputBuilder get chapterNumber => + _$this._chapterNumber ??= new GFloatFilterInputBuilder(); + set chapterNumber(GFloatFilterInputBuilder? chapterNumber) => + _$this._chapterNumber = chapterNumber; + + GLongFilterInputBuilder? _fetchedAt; + GLongFilterInputBuilder get fetchedAt => + _$this._fetchedAt ??= new GLongFilterInputBuilder(); + set fetchedAt(GLongFilterInputBuilder? fetchedAt) => + _$this._fetchedAt = fetchedAt; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GBooleanFilterInputBuilder? _inLibrary; + GBooleanFilterInputBuilder get inLibrary => + _$this._inLibrary ??= new GBooleanFilterInputBuilder(); + set inLibrary(GBooleanFilterInputBuilder? inLibrary) => + _$this._inLibrary = inLibrary; + + GBooleanFilterInputBuilder? _isBookmarked; + GBooleanFilterInputBuilder get isBookmarked => + _$this._isBookmarked ??= new GBooleanFilterInputBuilder(); + set isBookmarked(GBooleanFilterInputBuilder? isBookmarked) => + _$this._isBookmarked = isBookmarked; + + GBooleanFilterInputBuilder? _isDownloaded; + GBooleanFilterInputBuilder get isDownloaded => + _$this._isDownloaded ??= new GBooleanFilterInputBuilder(); + set isDownloaded(GBooleanFilterInputBuilder? isDownloaded) => + _$this._isDownloaded = isDownloaded; + + GBooleanFilterInputBuilder? _isRead; + GBooleanFilterInputBuilder get isRead => + _$this._isRead ??= new GBooleanFilterInputBuilder(); + set isRead(GBooleanFilterInputBuilder? isRead) => _$this._isRead = isRead; + + GIntFilterInputBuilder? _lastPageRead; + GIntFilterInputBuilder get lastPageRead => + _$this._lastPageRead ??= new GIntFilterInputBuilder(); + set lastPageRead(GIntFilterInputBuilder? lastPageRead) => + _$this._lastPageRead = lastPageRead; + + GLongFilterInputBuilder? _lastReadAt; + GLongFilterInputBuilder get lastReadAt => + _$this._lastReadAt ??= new GLongFilterInputBuilder(); + set lastReadAt(GLongFilterInputBuilder? lastReadAt) => + _$this._lastReadAt = lastReadAt; + + GIntFilterInputBuilder? _mangaId; + GIntFilterInputBuilder get mangaId => + _$this._mangaId ??= new GIntFilterInputBuilder(); + set mangaId(GIntFilterInputBuilder? mangaId) => _$this._mangaId = mangaId; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GChapterFilterInputBuilder? _not; + GChapterFilterInputBuilder get not => + _$this._not ??= new GChapterFilterInputBuilder(); + set not(GChapterFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GIntFilterInputBuilder? _pageCount; + GIntFilterInputBuilder get pageCount => + _$this._pageCount ??= new GIntFilterInputBuilder(); + set pageCount(GIntFilterInputBuilder? pageCount) => + _$this._pageCount = pageCount; + + GStringFilterInputBuilder? _realUrl; + GStringFilterInputBuilder get realUrl => + _$this._realUrl ??= new GStringFilterInputBuilder(); + set realUrl(GStringFilterInputBuilder? realUrl) => _$this._realUrl = realUrl; + + GStringFilterInputBuilder? _scanlator; + GStringFilterInputBuilder get scanlator => + _$this._scanlator ??= new GStringFilterInputBuilder(); + set scanlator(GStringFilterInputBuilder? scanlator) => + _$this._scanlator = scanlator; + + GIntFilterInputBuilder? _sourceOrder; + GIntFilterInputBuilder get sourceOrder => + _$this._sourceOrder ??= new GIntFilterInputBuilder(); + set sourceOrder(GIntFilterInputBuilder? sourceOrder) => + _$this._sourceOrder = sourceOrder; + + GLongFilterInputBuilder? _uploadDate; + GLongFilterInputBuilder get uploadDate => + _$this._uploadDate ??= new GLongFilterInputBuilder(); + set uploadDate(GLongFilterInputBuilder? uploadDate) => + _$this._uploadDate = uploadDate; + + GStringFilterInputBuilder? _url; + GStringFilterInputBuilder get url => + _$this._url ??= new GStringFilterInputBuilder(); + set url(GStringFilterInputBuilder? url) => _$this._url = url; + + GChapterFilterInputBuilder(); + + GChapterFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _chapterNumber = $v.chapterNumber?.toBuilder(); + _fetchedAt = $v.fetchedAt?.toBuilder(); + _id = $v.id?.toBuilder(); + _inLibrary = $v.inLibrary?.toBuilder(); + _isBookmarked = $v.isBookmarked?.toBuilder(); + _isDownloaded = $v.isDownloaded?.toBuilder(); + _isRead = $v.isRead?.toBuilder(); + _lastPageRead = $v.lastPageRead?.toBuilder(); + _lastReadAt = $v.lastReadAt?.toBuilder(); + _mangaId = $v.mangaId?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _pageCount = $v.pageCount?.toBuilder(); + _realUrl = $v.realUrl?.toBuilder(); + _scanlator = $v.scanlator?.toBuilder(); + _sourceOrder = $v.sourceOrder?.toBuilder(); + _uploadDate = $v.uploadDate?.toBuilder(); + _url = $v.url?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GChapterFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterFilterInput; + } + + @override + void update(void Function(GChapterFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterFilterInput build() => _build(); + + _$GChapterFilterInput _build() { + _$GChapterFilterInput _$result; + try { + _$result = _$v ?? + new _$GChapterFilterInput._( + and: _and?.build(), + chapterNumber: _chapterNumber?.build(), + fetchedAt: _fetchedAt?.build(), + id: _id?.build(), + inLibrary: _inLibrary?.build(), + isBookmarked: _isBookmarked?.build(), + isDownloaded: _isDownloaded?.build(), + isRead: _isRead?.build(), + lastPageRead: _lastPageRead?.build(), + lastReadAt: _lastReadAt?.build(), + mangaId: _mangaId?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build(), + pageCount: _pageCount?.build(), + realUrl: _realUrl?.build(), + scanlator: _scanlator?.build(), + sourceOrder: _sourceOrder?.build(), + uploadDate: _uploadDate?.build(), + url: _url?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'chapterNumber'; + _chapterNumber?.build(); + _$failedField = 'fetchedAt'; + _fetchedAt?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'inLibrary'; + _inLibrary?.build(); + _$failedField = 'isBookmarked'; + _isBookmarked?.build(); + _$failedField = 'isDownloaded'; + _isDownloaded?.build(); + _$failedField = 'isRead'; + _isRead?.build(); + _$failedField = 'lastPageRead'; + _lastPageRead?.build(); + _$failedField = 'lastReadAt'; + _lastReadAt?.build(); + _$failedField = 'mangaId'; + _mangaId?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'pageCount'; + _pageCount?.build(); + _$failedField = 'realUrl'; + _realUrl?.build(); + _$failedField = 'scanlator'; + _scanlator?.build(); + _$failedField = 'sourceOrder'; + _sourceOrder?.build(); + _$failedField = 'uploadDate'; + _uploadDate?.build(); + _$failedField = 'url'; + _url?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GChapterFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GChapterMetaTypeInput extends GChapterMetaTypeInput { + @override + final int chapterId; + @override + final String key; + @override + final String value; + + factory _$GChapterMetaTypeInput( + [void Function(GChapterMetaTypeInputBuilder)? updates]) => + (new GChapterMetaTypeInputBuilder()..update(updates))._build(); + + _$GChapterMetaTypeInput._( + {required this.chapterId, required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GChapterMetaTypeInput', 'chapterId'); + BuiltValueNullFieldError.checkNotNull(key, r'GChapterMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GChapterMetaTypeInput', 'value'); + } + + @override + GChapterMetaTypeInput rebuild( + void Function(GChapterMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterMetaTypeInputBuilder toBuilder() => + new GChapterMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterMetaTypeInput && + chapterId == other.chapterId && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterMetaTypeInput') + ..add('chapterId', chapterId) + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GChapterMetaTypeInputBuilder + implements Builder { + _$GChapterMetaTypeInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GChapterMetaTypeInputBuilder(); + + GChapterMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GChapterMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterMetaTypeInput; + } + + @override + void update(void Function(GChapterMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterMetaTypeInput build() => _build(); + + _$GChapterMetaTypeInput _build() { + final _$result = _$v ?? + new _$GChapterMetaTypeInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GChapterMetaTypeInput', 'chapterId'), + key: BuiltValueNullFieldError.checkNotNull( + key, r'GChapterMetaTypeInput', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GChapterMetaTypeInput', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GChapterOrderInput extends GChapterOrderInput { + @override + final GChapterOrderBy by; + @override + final GSortOrder? byType; + + factory _$GChapterOrderInput( + [void Function(GChapterOrderInputBuilder)? updates]) => + (new GChapterOrderInputBuilder()..update(updates))._build(); + + _$GChapterOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GChapterOrderInput', 'by'); + } + + @override + GChapterOrderInput rebuild( + void Function(GChapterOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GChapterOrderInputBuilder toBuilder() => + new GChapterOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GChapterOrderInput && + by == other.by && + byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GChapterOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GChapterOrderInputBuilder + implements Builder { + _$GChapterOrderInput? _$v; + + GChapterOrderBy? _by; + GChapterOrderBy? get by => _$this._by; + set by(GChapterOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GChapterOrderInputBuilder(); + + GChapterOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GChapterOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GChapterOrderInput; + } + + @override + void update(void Function(GChapterOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GChapterOrderInput build() => _build(); + + _$GChapterOrderInput _build() { + final _$result = _$v ?? + new _$GChapterOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GChapterOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GClearCachedImagesInput extends GClearCachedImagesInput { + @override + final bool? cachedPages; + @override + final bool? cachedThumbnails; + @override + final String? clientMutationId; + @override + final bool? downloadedThumbnails; + + factory _$GClearCachedImagesInput( + [void Function(GClearCachedImagesInputBuilder)? updates]) => + (new GClearCachedImagesInputBuilder()..update(updates))._build(); + + _$GClearCachedImagesInput._( + {this.cachedPages, + this.cachedThumbnails, + this.clientMutationId, + this.downloadedThumbnails}) + : super._(); + + @override + GClearCachedImagesInput rebuild( + void Function(GClearCachedImagesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GClearCachedImagesInputBuilder toBuilder() => + new GClearCachedImagesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GClearCachedImagesInput && + cachedPages == other.cachedPages && + cachedThumbnails == other.cachedThumbnails && + clientMutationId == other.clientMutationId && + downloadedThumbnails == other.downloadedThumbnails; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, cachedPages.hashCode); + _$hash = $jc(_$hash, cachedThumbnails.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, downloadedThumbnails.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GClearCachedImagesInput') + ..add('cachedPages', cachedPages) + ..add('cachedThumbnails', cachedThumbnails) + ..add('clientMutationId', clientMutationId) + ..add('downloadedThumbnails', downloadedThumbnails)) + .toString(); + } +} + +class GClearCachedImagesInputBuilder + implements + Builder { + _$GClearCachedImagesInput? _$v; + + bool? _cachedPages; + bool? get cachedPages => _$this._cachedPages; + set cachedPages(bool? cachedPages) => _$this._cachedPages = cachedPages; + + bool? _cachedThumbnails; + bool? get cachedThumbnails => _$this._cachedThumbnails; + set cachedThumbnails(bool? cachedThumbnails) => + _$this._cachedThumbnails = cachedThumbnails; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + bool? _downloadedThumbnails; + bool? get downloadedThumbnails => _$this._downloadedThumbnails; + set downloadedThumbnails(bool? downloadedThumbnails) => + _$this._downloadedThumbnails = downloadedThumbnails; + + GClearCachedImagesInputBuilder(); + + GClearCachedImagesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _cachedPages = $v.cachedPages; + _cachedThumbnails = $v.cachedThumbnails; + _clientMutationId = $v.clientMutationId; + _downloadedThumbnails = $v.downloadedThumbnails; + _$v = null; + } + return this; + } + + @override + void replace(GClearCachedImagesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GClearCachedImagesInput; + } + + @override + void update(void Function(GClearCachedImagesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GClearCachedImagesInput build() => _build(); + + _$GClearCachedImagesInput _build() { + final _$result = _$v ?? + new _$GClearCachedImagesInput._( + cachedPages: cachedPages, + cachedThumbnails: cachedThumbnails, + clientMutationId: clientMutationId, + downloadedThumbnails: downloadedThumbnails, + ); + replace(_$result); + return _$result; + } +} + +class _$GClearDownloaderInput extends GClearDownloaderInput { + @override + final String? clientMutationId; + + factory _$GClearDownloaderInput( + [void Function(GClearDownloaderInputBuilder)? updates]) => + (new GClearDownloaderInputBuilder()..update(updates))._build(); + + _$GClearDownloaderInput._({this.clientMutationId}) : super._(); + + @override + GClearDownloaderInput rebuild( + void Function(GClearDownloaderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GClearDownloaderInputBuilder toBuilder() => + new GClearDownloaderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GClearDownloaderInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GClearDownloaderInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GClearDownloaderInputBuilder + implements Builder { + _$GClearDownloaderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GClearDownloaderInputBuilder(); + + GClearDownloaderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GClearDownloaderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GClearDownloaderInput; + } + + @override + void update(void Function(GClearDownloaderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GClearDownloaderInput build() => _build(); + + _$GClearDownloaderInput _build() { + final _$result = _$v ?? + new _$GClearDownloaderInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GCreateBackupInput extends GCreateBackupInput { + @override + final String? clientMutationId; + @override + final bool? includeCategories; + @override + final bool? includeChapters; + + factory _$GCreateBackupInput( + [void Function(GCreateBackupInputBuilder)? updates]) => + (new GCreateBackupInputBuilder()..update(updates))._build(); + + _$GCreateBackupInput._( + {this.clientMutationId, this.includeCategories, this.includeChapters}) + : super._(); + + @override + GCreateBackupInput rebuild( + void Function(GCreateBackupInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateBackupInputBuilder toBuilder() => + new GCreateBackupInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateBackupInput && + clientMutationId == other.clientMutationId && + includeCategories == other.includeCategories && + includeChapters == other.includeChapters; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, includeCategories.hashCode); + _$hash = $jc(_$hash, includeChapters.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateBackupInput') + ..add('clientMutationId', clientMutationId) + ..add('includeCategories', includeCategories) + ..add('includeChapters', includeChapters)) + .toString(); + } +} + +class GCreateBackupInputBuilder + implements Builder { + _$GCreateBackupInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + bool? _includeCategories; + bool? get includeCategories => _$this._includeCategories; + set includeCategories(bool? includeCategories) => + _$this._includeCategories = includeCategories; + + bool? _includeChapters; + bool? get includeChapters => _$this._includeChapters; + set includeChapters(bool? includeChapters) => + _$this._includeChapters = includeChapters; + + GCreateBackupInputBuilder(); + + GCreateBackupInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _includeCategories = $v.includeCategories; + _includeChapters = $v.includeChapters; + _$v = null; + } + return this; + } + + @override + void replace(GCreateBackupInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateBackupInput; + } + + @override + void update(void Function(GCreateBackupInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateBackupInput build() => _build(); + + _$GCreateBackupInput _build() { + final _$result = _$v ?? + new _$GCreateBackupInput._( + clientMutationId: clientMutationId, + includeCategories: includeCategories, + includeChapters: includeChapters, + ); + replace(_$result); + return _$result; + } +} + +class _$GCreateCategoryInput extends GCreateCategoryInput { + @override + final String? clientMutationId; + @override + final bool? Gdefault; + @override + final GIncludeOrExclude? includeInDownload; + @override + final GIncludeOrExclude? includeInUpdate; + @override + final String name; + @override + final int? order; + + factory _$GCreateCategoryInput( + [void Function(GCreateCategoryInputBuilder)? updates]) => + (new GCreateCategoryInputBuilder()..update(updates))._build(); + + _$GCreateCategoryInput._( + {this.clientMutationId, + this.Gdefault, + this.includeInDownload, + this.includeInUpdate, + required this.name, + this.order}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + name, r'GCreateCategoryInput', 'name'); + } + + @override + GCreateCategoryInput rebuild( + void Function(GCreateCategoryInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCreateCategoryInputBuilder toBuilder() => + new GCreateCategoryInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCreateCategoryInput && + clientMutationId == other.clientMutationId && + Gdefault == other.Gdefault && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name && + order == other.order; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, order.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCreateCategoryInput') + ..add('clientMutationId', clientMutationId) + ..add('Gdefault', Gdefault) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name) + ..add('order', order)) + .toString(); + } +} + +class GCreateCategoryInputBuilder + implements Builder { + _$GCreateCategoryInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + GIncludeOrExclude? _includeInDownload; + GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + GIncludeOrExclude? _includeInUpdate; + GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + int? _order; + int? get order => _$this._order; + set order(int? order) => _$this._order = order; + + GCreateCategoryInputBuilder(); + + GCreateCategoryInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _Gdefault = $v.Gdefault; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _order = $v.order; + _$v = null; + } + return this; + } + + @override + void replace(GCreateCategoryInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCreateCategoryInput; + } + + @override + void update(void Function(GCreateCategoryInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCreateCategoryInput build() => _build(); + + _$GCreateCategoryInput _build() { + final _$result = _$v ?? + new _$GCreateCategoryInput._( + clientMutationId: clientMutationId, + Gdefault: Gdefault, + includeInDownload: includeInDownload, + includeInUpdate: includeInUpdate, + name: BuiltValueNullFieldError.checkNotNull( + name, r'GCreateCategoryInput', 'name'), + order: order, + ); + replace(_$result); + return _$result; + } +} + +class _$GCursor extends GCursor { + @override + final String value; + + factory _$GCursor([void Function(GCursorBuilder)? updates]) => + (new GCursorBuilder()..update(updates))._build(); + + _$GCursor._({required this.value}) : super._() { + BuiltValueNullFieldError.checkNotNull(value, r'GCursor', 'value'); + } + + @override + GCursor rebuild(void Function(GCursorBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GCursorBuilder toBuilder() => new GCursorBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GCursor && value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GCursor')..add('value', value)) + .toString(); + } +} + +class GCursorBuilder implements Builder { + _$GCursor? _$v; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GCursorBuilder(); + + GCursorBuilder get _$this { + final $v = _$v; + if ($v != null) { + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GCursor other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GCursor; + } + + @override + void update(void Function(GCursorBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GCursor build() => _build(); + + _$GCursor _build() { + final _$result = _$v ?? + new _$GCursor._( + value: + BuiltValueNullFieldError.checkNotNull(value, r'GCursor', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GDeleteCategoryInput extends GDeleteCategoryInput { + @override + final int categoryId; + @override + final String? clientMutationId; + + factory _$GDeleteCategoryInput( + [void Function(GDeleteCategoryInputBuilder)? updates]) => + (new GDeleteCategoryInputBuilder()..update(updates))._build(); + + _$GDeleteCategoryInput._({required this.categoryId, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryInput', 'categoryId'); + } + + @override + GDeleteCategoryInput rebuild( + void Function(GDeleteCategoryInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteCategoryInputBuilder toBuilder() => + new GDeleteCategoryInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteCategoryInput && + categoryId == other.categoryId && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteCategoryInput') + ..add('categoryId', categoryId) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GDeleteCategoryInputBuilder + implements Builder { + _$GDeleteCategoryInput? _$v; + + int? _categoryId; + int? get categoryId => _$this._categoryId; + set categoryId(int? categoryId) => _$this._categoryId = categoryId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GDeleteCategoryInputBuilder(); + + GDeleteCategoryInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categoryId = $v.categoryId; + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteCategoryInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteCategoryInput; + } + + @override + void update(void Function(GDeleteCategoryInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteCategoryInput build() => _build(); + + _$GDeleteCategoryInput _build() { + final _$result = _$v ?? + new _$GDeleteCategoryInput._( + categoryId: BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryInput', 'categoryId'), + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GDeleteCategoryMetaInput extends GDeleteCategoryMetaInput { + @override + final int categoryId; + @override + final String? clientMutationId; + @override + final String key; + + factory _$GDeleteCategoryMetaInput( + [void Function(GDeleteCategoryMetaInputBuilder)? updates]) => + (new GDeleteCategoryMetaInputBuilder()..update(updates))._build(); + + _$GDeleteCategoryMetaInput._( + {required this.categoryId, this.clientMutationId, required this.key}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryMetaInput', 'categoryId'); + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteCategoryMetaInput', 'key'); + } + + @override + GDeleteCategoryMetaInput rebuild( + void Function(GDeleteCategoryMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteCategoryMetaInputBuilder toBuilder() => + new GDeleteCategoryMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteCategoryMetaInput && + categoryId == other.categoryId && + clientMutationId == other.clientMutationId && + key == other.key; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteCategoryMetaInput') + ..add('categoryId', categoryId) + ..add('clientMutationId', clientMutationId) + ..add('key', key)) + .toString(); + } +} + +class GDeleteCategoryMetaInputBuilder + implements + Builder { + _$GDeleteCategoryMetaInput? _$v; + + int? _categoryId; + int? get categoryId => _$this._categoryId; + set categoryId(int? categoryId) => _$this._categoryId = categoryId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GDeleteCategoryMetaInputBuilder(); + + GDeleteCategoryMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categoryId = $v.categoryId; + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteCategoryMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteCategoryMetaInput; + } + + @override + void update(void Function(GDeleteCategoryMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteCategoryMetaInput build() => _build(); + + _$GDeleteCategoryMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteCategoryMetaInput._( + categoryId: BuiltValueNullFieldError.checkNotNull( + categoryId, r'GDeleteCategoryMetaInput', 'categoryId'), + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteCategoryMetaInput', 'key'), + ); + replace(_$result); + return _$result; + } +} + +class _$GDeleteChapterMetaInput extends GDeleteChapterMetaInput { + @override + final int chapterId; + @override + final String? clientMutationId; + @override + final String key; + + factory _$GDeleteChapterMetaInput( + [void Function(GDeleteChapterMetaInputBuilder)? updates]) => + (new GDeleteChapterMetaInputBuilder()..update(updates))._build(); + + _$GDeleteChapterMetaInput._( + {required this.chapterId, this.clientMutationId, required this.key}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GDeleteChapterMetaInput', 'chapterId'); + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteChapterMetaInput', 'key'); + } + + @override + GDeleteChapterMetaInput rebuild( + void Function(GDeleteChapterMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteChapterMetaInputBuilder toBuilder() => + new GDeleteChapterMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteChapterMetaInput && + chapterId == other.chapterId && + clientMutationId == other.clientMutationId && + key == other.key; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteChapterMetaInput') + ..add('chapterId', chapterId) + ..add('clientMutationId', clientMutationId) + ..add('key', key)) + .toString(); + } +} + +class GDeleteChapterMetaInputBuilder + implements + Builder { + _$GDeleteChapterMetaInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GDeleteChapterMetaInputBuilder(); + + GDeleteChapterMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteChapterMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteChapterMetaInput; + } + + @override + void update(void Function(GDeleteChapterMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteChapterMetaInput build() => _build(); + + _$GDeleteChapterMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteChapterMetaInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GDeleteChapterMetaInput', 'chapterId'), + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteChapterMetaInput', 'key'), + ); + replace(_$result); + return _$result; + } +} + +class _$GDeleteDownloadedChapterInput extends GDeleteDownloadedChapterInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GDeleteDownloadedChapterInput( + [void Function(GDeleteDownloadedChapterInputBuilder)? updates]) => + (new GDeleteDownloadedChapterInputBuilder()..update(updates))._build(); + + _$GDeleteDownloadedChapterInput._({this.clientMutationId, required this.id}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GDeleteDownloadedChapterInput', 'id'); + } + + @override + GDeleteDownloadedChapterInput rebuild( + void Function(GDeleteDownloadedChapterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteDownloadedChapterInputBuilder toBuilder() => + new GDeleteDownloadedChapterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteDownloadedChapterInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteDownloadedChapterInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GDeleteDownloadedChapterInputBuilder + implements + Builder { + _$GDeleteDownloadedChapterInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GDeleteDownloadedChapterInputBuilder(); + + GDeleteDownloadedChapterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteDownloadedChapterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteDownloadedChapterInput; + } + + @override + void update(void Function(GDeleteDownloadedChapterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteDownloadedChapterInput build() => _build(); + + _$GDeleteDownloadedChapterInput _build() { + final _$result = _$v ?? + new _$GDeleteDownloadedChapterInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GDeleteDownloadedChapterInput', 'id'), + ); + replace(_$result); + return _$result; + } +} + +class _$GDeleteDownloadedChaptersInput extends GDeleteDownloadedChaptersInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + + factory _$GDeleteDownloadedChaptersInput( + [void Function(GDeleteDownloadedChaptersInputBuilder)? updates]) => + (new GDeleteDownloadedChaptersInputBuilder()..update(updates))._build(); + + _$GDeleteDownloadedChaptersInput._({this.clientMutationId, required this.ids}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GDeleteDownloadedChaptersInput', 'ids'); + } + + @override + GDeleteDownloadedChaptersInput rebuild( + void Function(GDeleteDownloadedChaptersInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteDownloadedChaptersInputBuilder toBuilder() => + new GDeleteDownloadedChaptersInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteDownloadedChaptersInput && + clientMutationId == other.clientMutationId && + ids == other.ids; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteDownloadedChaptersInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids)) + .toString(); + } +} + +class GDeleteDownloadedChaptersInputBuilder + implements + Builder { + _$GDeleteDownloadedChaptersInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GDeleteDownloadedChaptersInputBuilder(); + + GDeleteDownloadedChaptersInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDeleteDownloadedChaptersInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteDownloadedChaptersInput; + } + + @override + void update(void Function(GDeleteDownloadedChaptersInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteDownloadedChaptersInput build() => _build(); + + _$GDeleteDownloadedChaptersInput _build() { + _$GDeleteDownloadedChaptersInput _$result; + try { + _$result = _$v ?? + new _$GDeleteDownloadedChaptersInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDeleteDownloadedChaptersInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GDeleteGlobalMetaInput extends GDeleteGlobalMetaInput { + @override + final String? clientMutationId; + @override + final String key; + + factory _$GDeleteGlobalMetaInput( + [void Function(GDeleteGlobalMetaInputBuilder)? updates]) => + (new GDeleteGlobalMetaInputBuilder()..update(updates))._build(); + + _$GDeleteGlobalMetaInput._({this.clientMutationId, required this.key}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteGlobalMetaInput', 'key'); + } + + @override + GDeleteGlobalMetaInput rebuild( + void Function(GDeleteGlobalMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteGlobalMetaInputBuilder toBuilder() => + new GDeleteGlobalMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteGlobalMetaInput && + clientMutationId == other.clientMutationId && + key == other.key; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteGlobalMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('key', key)) + .toString(); + } +} + +class GDeleteGlobalMetaInputBuilder + implements Builder { + _$GDeleteGlobalMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GDeleteGlobalMetaInputBuilder(); + + GDeleteGlobalMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteGlobalMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteGlobalMetaInput; + } + + @override + void update(void Function(GDeleteGlobalMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteGlobalMetaInput build() => _build(); + + _$GDeleteGlobalMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteGlobalMetaInput._( + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteGlobalMetaInput', 'key'), + ); + replace(_$result); + return _$result; + } +} + +class _$GDeleteMangaMetaInput extends GDeleteMangaMetaInput { + @override + final String? clientMutationId; + @override + final String key; + @override + final int mangaId; + + factory _$GDeleteMangaMetaInput( + [void Function(GDeleteMangaMetaInputBuilder)? updates]) => + (new GDeleteMangaMetaInputBuilder()..update(updates))._build(); + + _$GDeleteMangaMetaInput._( + {this.clientMutationId, required this.key, required this.mangaId}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GDeleteMangaMetaInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GDeleteMangaMetaInput', 'mangaId'); + } + + @override + GDeleteMangaMetaInput rebuild( + void Function(GDeleteMangaMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteMangaMetaInputBuilder toBuilder() => + new GDeleteMangaMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteMangaMetaInput && + clientMutationId == other.clientMutationId && + key == other.key && + mangaId == other.mangaId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteMangaMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('key', key) + ..add('mangaId', mangaId)) + .toString(); + } +} + +class GDeleteMangaMetaInputBuilder + implements Builder { + _$GDeleteMangaMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GDeleteMangaMetaInputBuilder(); + + GDeleteMangaMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _mangaId = $v.mangaId; + _$v = null; + } + return this; + } + + @override + void replace(GDeleteMangaMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteMangaMetaInput; + } + + @override + void update(void Function(GDeleteMangaMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteMangaMetaInput build() => _build(); + + _$GDeleteMangaMetaInput _build() { + final _$result = _$v ?? + new _$GDeleteMangaMetaInput._( + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteMangaMetaInput', 'key'), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GDeleteMangaMetaInput', 'mangaId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GDeleteSourceMetaInput extends GDeleteSourceMetaInput { + @override + final String? clientMutationId; + @override + final String key; + @override + final GLongString sourceId; + + factory _$GDeleteSourceMetaInput( + [void Function(GDeleteSourceMetaInputBuilder)? updates]) => + (new GDeleteSourceMetaInputBuilder()..update(updates))._build(); + + _$GDeleteSourceMetaInput._( + {this.clientMutationId, required this.key, required this.sourceId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteSourceMetaInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GDeleteSourceMetaInput', 'sourceId'); + } + + @override + GDeleteSourceMetaInput rebuild( + void Function(GDeleteSourceMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDeleteSourceMetaInputBuilder toBuilder() => + new GDeleteSourceMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDeleteSourceMetaInput && + clientMutationId == other.clientMutationId && + key == other.key && + sourceId == other.sourceId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDeleteSourceMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('key', key) + ..add('sourceId', sourceId)) + .toString(); + } +} + +class GDeleteSourceMetaInputBuilder + implements Builder { + _$GDeleteSourceMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GLongStringBuilder? _sourceId; + GLongStringBuilder get sourceId => + _$this._sourceId ??= new GLongStringBuilder(); + set sourceId(GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + GDeleteSourceMetaInputBuilder(); + + GDeleteSourceMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _key = $v.key; + _sourceId = $v.sourceId.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDeleteSourceMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDeleteSourceMetaInput; + } + + @override + void update(void Function(GDeleteSourceMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDeleteSourceMetaInput build() => _build(); + + _$GDeleteSourceMetaInput _build() { + _$GDeleteSourceMetaInput _$result; + try { + _$result = _$v ?? + new _$GDeleteSourceMetaInput._( + clientMutationId: clientMutationId, + key: BuiltValueNullFieldError.checkNotNull( + key, r'GDeleteSourceMetaInput', 'key'), + sourceId: sourceId.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'sourceId'; + sourceId.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDeleteSourceMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GDequeueChapterDownloadInput extends GDequeueChapterDownloadInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GDequeueChapterDownloadInput( + [void Function(GDequeueChapterDownloadInputBuilder)? updates]) => + (new GDequeueChapterDownloadInputBuilder()..update(updates))._build(); + + _$GDequeueChapterDownloadInput._({this.clientMutationId, required this.id}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GDequeueChapterDownloadInput', 'id'); + } + + @override + GDequeueChapterDownloadInput rebuild( + void Function(GDequeueChapterDownloadInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDequeueChapterDownloadInputBuilder toBuilder() => + new GDequeueChapterDownloadInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDequeueChapterDownloadInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDequeueChapterDownloadInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GDequeueChapterDownloadInputBuilder + implements + Builder { + _$GDequeueChapterDownloadInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GDequeueChapterDownloadInputBuilder(); + + GDequeueChapterDownloadInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GDequeueChapterDownloadInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDequeueChapterDownloadInput; + } + + @override + void update(void Function(GDequeueChapterDownloadInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDequeueChapterDownloadInput build() => _build(); + + _$GDequeueChapterDownloadInput _build() { + final _$result = _$v ?? + new _$GDequeueChapterDownloadInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GDequeueChapterDownloadInput', 'id'), + ); + replace(_$result); + return _$result; + } +} + +class _$GDequeueChapterDownloadsInput extends GDequeueChapterDownloadsInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + + factory _$GDequeueChapterDownloadsInput( + [void Function(GDequeueChapterDownloadsInputBuilder)? updates]) => + (new GDequeueChapterDownloadsInputBuilder()..update(updates))._build(); + + _$GDequeueChapterDownloadsInput._({this.clientMutationId, required this.ids}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GDequeueChapterDownloadsInput', 'ids'); + } + + @override + GDequeueChapterDownloadsInput rebuild( + void Function(GDequeueChapterDownloadsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDequeueChapterDownloadsInputBuilder toBuilder() => + new GDequeueChapterDownloadsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDequeueChapterDownloadsInput && + clientMutationId == other.clientMutationId && + ids == other.ids; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDequeueChapterDownloadsInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids)) + .toString(); + } +} + +class GDequeueChapterDownloadsInputBuilder + implements + Builder { + _$GDequeueChapterDownloadsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GDequeueChapterDownloadsInputBuilder(); + + GDequeueChapterDownloadsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDequeueChapterDownloadsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDequeueChapterDownloadsInput; + } + + @override + void update(void Function(GDequeueChapterDownloadsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDequeueChapterDownloadsInput build() => _build(); + + _$GDequeueChapterDownloadsInput _build() { + _$GDequeueChapterDownloadsInput _$result; + try { + _$result = _$v ?? + new _$GDequeueChapterDownloadsInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDequeueChapterDownloadsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GDoubleFilterInput extends GDoubleFilterInput { + @override + final double? distinctFrom; + @override + final BuiltList? distinctFromAll; + @override + final BuiltList? distinctFromAny; + @override + final double? equalTo; + @override + final double? greaterThan; + @override + final double? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final double? lessThan; + @override + final double? lessThanOrEqualTo; + @override + final double? notDistinctFrom; + @override + final double? notEqualTo; + @override + final BuiltList? notEqualToAll; + @override + final BuiltList? notEqualToAny; + @override + final BuiltList? notIn; + + factory _$GDoubleFilterInput( + [void Function(GDoubleFilterInputBuilder)? updates]) => + (new GDoubleFilterInputBuilder()..update(updates))._build(); + + _$GDoubleFilterInput._( + {this.distinctFrom, + this.distinctFromAll, + this.distinctFromAny, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notEqualToAll, + this.notEqualToAny, + this.notIn}) + : super._(); + + @override + GDoubleFilterInput rebuild( + void Function(GDoubleFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDoubleFilterInputBuilder toBuilder() => + new GDoubleFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDoubleFilterInput && + distinctFrom == other.distinctFrom && + distinctFromAll == other.distinctFromAll && + distinctFromAny == other.distinctFromAny && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notEqualToAll == other.notEqualToAll && + notEqualToAny == other.notEqualToAny && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromAll.hashCode); + _$hash = $jc(_$hash, distinctFromAny.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notEqualToAll.hashCode); + _$hash = $jc(_$hash, notEqualToAny.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDoubleFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromAll', distinctFromAll) + ..add('distinctFromAny', distinctFromAny) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notEqualToAll', notEqualToAll) + ..add('notEqualToAny', notEqualToAny) + ..add('notIn', notIn)) + .toString(); + } +} + +class GDoubleFilterInputBuilder + implements Builder { + _$GDoubleFilterInput? _$v; + + double? _distinctFrom; + double? get distinctFrom => _$this._distinctFrom; + set distinctFrom(double? distinctFrom) => _$this._distinctFrom = distinctFrom; + + ListBuilder? _distinctFromAll; + ListBuilder get distinctFromAll => + _$this._distinctFromAll ??= new ListBuilder(); + set distinctFromAll(ListBuilder? distinctFromAll) => + _$this._distinctFromAll = distinctFromAll; + + ListBuilder? _distinctFromAny; + ListBuilder get distinctFromAny => + _$this._distinctFromAny ??= new ListBuilder(); + set distinctFromAny(ListBuilder? distinctFromAny) => + _$this._distinctFromAny = distinctFromAny; + + double? _equalTo; + double? get equalTo => _$this._equalTo; + set equalTo(double? equalTo) => _$this._equalTo = equalTo; + + double? _greaterThan; + double? get greaterThan => _$this._greaterThan; + set greaterThan(double? greaterThan) => _$this._greaterThan = greaterThan; + + double? _greaterThanOrEqualTo; + double? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(double? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + double? _lessThan; + double? get lessThan => _$this._lessThan; + set lessThan(double? lessThan) => _$this._lessThan = lessThan; + + double? _lessThanOrEqualTo; + double? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(double? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + double? _notDistinctFrom; + double? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(double? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + double? _notEqualTo; + double? get notEqualTo => _$this._notEqualTo; + set notEqualTo(double? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notEqualToAll; + ListBuilder get notEqualToAll => + _$this._notEqualToAll ??= new ListBuilder(); + set notEqualToAll(ListBuilder? notEqualToAll) => + _$this._notEqualToAll = notEqualToAll; + + ListBuilder? _notEqualToAny; + ListBuilder get notEqualToAny => + _$this._notEqualToAny ??= new ListBuilder(); + set notEqualToAny(ListBuilder? notEqualToAny) => + _$this._notEqualToAny = notEqualToAny; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GDoubleFilterInputBuilder(); + + GDoubleFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _distinctFromAll = $v.distinctFromAll?.toBuilder(); + _distinctFromAny = $v.distinctFromAny?.toBuilder(); + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notEqualToAll = $v.notEqualToAll?.toBuilder(); + _notEqualToAny = $v.notEqualToAny?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GDoubleFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDoubleFilterInput; + } + + @override + void update(void Function(GDoubleFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDoubleFilterInput build() => _build(); + + _$GDoubleFilterInput _build() { + _$GDoubleFilterInput _$result; + try { + _$result = _$v ?? + new _$GDoubleFilterInput._( + distinctFrom: distinctFrom, + distinctFromAll: _distinctFromAll?.build(), + distinctFromAny: _distinctFromAny?.build(), + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notEqualToAll: _notEqualToAll?.build(), + notEqualToAny: _notEqualToAny?.build(), + notIn: _notIn?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFromAll'; + _distinctFromAll?.build(); + _$failedField = 'distinctFromAny'; + _distinctFromAny?.build(); + + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notEqualToAll'; + _notEqualToAll?.build(); + _$failedField = 'notEqualToAny'; + _notEqualToAny?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GDoubleFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GDownloadChangedInput extends GDownloadChangedInput { + @override + final int? maxUpdates; + + factory _$GDownloadChangedInput( + [void Function(GDownloadChangedInputBuilder)? updates]) => + (new GDownloadChangedInputBuilder()..update(updates))._build(); + + _$GDownloadChangedInput._({this.maxUpdates}) : super._(); + + @override + GDownloadChangedInput rebuild( + void Function(GDownloadChangedInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GDownloadChangedInputBuilder toBuilder() => + new GDownloadChangedInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GDownloadChangedInput && maxUpdates == other.maxUpdates; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, maxUpdates.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GDownloadChangedInput') + ..add('maxUpdates', maxUpdates)) + .toString(); + } +} + +class GDownloadChangedInputBuilder + implements Builder { + _$GDownloadChangedInput? _$v; + + int? _maxUpdates; + int? get maxUpdates => _$this._maxUpdates; + set maxUpdates(int? maxUpdates) => _$this._maxUpdates = maxUpdates; + + GDownloadChangedInputBuilder(); + + GDownloadChangedInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _maxUpdates = $v.maxUpdates; + _$v = null; + } + return this; + } + + @override + void replace(GDownloadChangedInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GDownloadChangedInput; + } + + @override + void update(void Function(GDownloadChangedInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GDownloadChangedInput build() => _build(); + + _$GDownloadChangedInput _build() { + final _$result = _$v ?? + new _$GDownloadChangedInput._( + maxUpdates: maxUpdates, + ); + replace(_$result); + return _$result; + } +} + +class _$GEnqueueChapterDownloadInput extends GEnqueueChapterDownloadInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GEnqueueChapterDownloadInput( + [void Function(GEnqueueChapterDownloadInputBuilder)? updates]) => + (new GEnqueueChapterDownloadInputBuilder()..update(updates))._build(); + + _$GEnqueueChapterDownloadInput._({this.clientMutationId, required this.id}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GEnqueueChapterDownloadInput', 'id'); + } + + @override + GEnqueueChapterDownloadInput rebuild( + void Function(GEnqueueChapterDownloadInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GEnqueueChapterDownloadInputBuilder toBuilder() => + new GEnqueueChapterDownloadInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GEnqueueChapterDownloadInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GEnqueueChapterDownloadInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GEnqueueChapterDownloadInputBuilder + implements + Builder { + _$GEnqueueChapterDownloadInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GEnqueueChapterDownloadInputBuilder(); + + GEnqueueChapterDownloadInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GEnqueueChapterDownloadInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GEnqueueChapterDownloadInput; + } + + @override + void update(void Function(GEnqueueChapterDownloadInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GEnqueueChapterDownloadInput build() => _build(); + + _$GEnqueueChapterDownloadInput _build() { + final _$result = _$v ?? + new _$GEnqueueChapterDownloadInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GEnqueueChapterDownloadInput', 'id'), + ); + replace(_$result); + return _$result; + } +} + +class _$GEnqueueChapterDownloadsInput extends GEnqueueChapterDownloadsInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + + factory _$GEnqueueChapterDownloadsInput( + [void Function(GEnqueueChapterDownloadsInputBuilder)? updates]) => + (new GEnqueueChapterDownloadsInputBuilder()..update(updates))._build(); + + _$GEnqueueChapterDownloadsInput._({this.clientMutationId, required this.ids}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GEnqueueChapterDownloadsInput', 'ids'); + } + + @override + GEnqueueChapterDownloadsInput rebuild( + void Function(GEnqueueChapterDownloadsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GEnqueueChapterDownloadsInputBuilder toBuilder() => + new GEnqueueChapterDownloadsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GEnqueueChapterDownloadsInput && + clientMutationId == other.clientMutationId && + ids == other.ids; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GEnqueueChapterDownloadsInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids)) + .toString(); + } +} + +class GEnqueueChapterDownloadsInputBuilder + implements + Builder { + _$GEnqueueChapterDownloadsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GEnqueueChapterDownloadsInputBuilder(); + + GEnqueueChapterDownloadsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GEnqueueChapterDownloadsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GEnqueueChapterDownloadsInput; + } + + @override + void update(void Function(GEnqueueChapterDownloadsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GEnqueueChapterDownloadsInput build() => _build(); + + _$GEnqueueChapterDownloadsInput _build() { + _$GEnqueueChapterDownloadsInput _$result; + try { + _$result = _$v ?? + new _$GEnqueueChapterDownloadsInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GEnqueueChapterDownloadsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GExtensionConditionInput extends GExtensionConditionInput { + @override + final String? apkName; + @override + final bool? hasUpdate; + @override + final String? iconUrl; + @override + final bool? isInstalled; + @override + final bool? isNsfw; + @override + final bool? isObsolete; + @override + final String? lang; + @override + final String? name; + @override + final String? pkgName; + @override + final String? repo; + @override + final int? versionCode; + @override + final String? versionName; + + factory _$GExtensionConditionInput( + [void Function(GExtensionConditionInputBuilder)? updates]) => + (new GExtensionConditionInputBuilder()..update(updates))._build(); + + _$GExtensionConditionInput._( + {this.apkName, + this.hasUpdate, + this.iconUrl, + this.isInstalled, + this.isNsfw, + this.isObsolete, + this.lang, + this.name, + this.pkgName, + this.repo, + this.versionCode, + this.versionName}) + : super._(); + + @override + GExtensionConditionInput rebuild( + void Function(GExtensionConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionConditionInputBuilder toBuilder() => + new GExtensionConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionConditionInput && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionConditionInput') + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GExtensionConditionInputBuilder + implements + Builder { + _$GExtensionConditionInput? _$v; + + String? _apkName; + String? get apkName => _$this._apkName; + set apkName(String? apkName) => _$this._apkName = apkName; + + bool? _hasUpdate; + bool? get hasUpdate => _$this._hasUpdate; + set hasUpdate(bool? hasUpdate) => _$this._hasUpdate = hasUpdate; + + String? _iconUrl; + String? get iconUrl => _$this._iconUrl; + set iconUrl(String? iconUrl) => _$this._iconUrl = iconUrl; + + bool? _isInstalled; + bool? get isInstalled => _$this._isInstalled; + set isInstalled(bool? isInstalled) => _$this._isInstalled = isInstalled; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + bool? _isObsolete; + bool? get isObsolete => _$this._isObsolete; + set isObsolete(bool? isObsolete) => _$this._isObsolete = isObsolete; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _pkgName; + String? get pkgName => _$this._pkgName; + set pkgName(String? pkgName) => _$this._pkgName = pkgName; + + String? _repo; + String? get repo => _$this._repo; + set repo(String? repo) => _$this._repo = repo; + + int? _versionCode; + int? get versionCode => _$this._versionCode; + set versionCode(int? versionCode) => _$this._versionCode = versionCode; + + String? _versionName; + String? get versionName => _$this._versionName; + set versionName(String? versionName) => _$this._versionName = versionName; + + GExtensionConditionInputBuilder(); + + GExtensionConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _apkName = $v.apkName; + _hasUpdate = $v.hasUpdate; + _iconUrl = $v.iconUrl; + _isInstalled = $v.isInstalled; + _isNsfw = $v.isNsfw; + _isObsolete = $v.isObsolete; + _lang = $v.lang; + _name = $v.name; + _pkgName = $v.pkgName; + _repo = $v.repo; + _versionCode = $v.versionCode; + _versionName = $v.versionName; + _$v = null; + } + return this; + } + + @override + void replace(GExtensionConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionConditionInput; + } + + @override + void update(void Function(GExtensionConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionConditionInput build() => _build(); + + _$GExtensionConditionInput _build() { + final _$result = _$v ?? + new _$GExtensionConditionInput._( + apkName: apkName, + hasUpdate: hasUpdate, + iconUrl: iconUrl, + isInstalled: isInstalled, + isNsfw: isNsfw, + isObsolete: isObsolete, + lang: lang, + name: name, + pkgName: pkgName, + repo: repo, + versionCode: versionCode, + versionName: versionName, + ); + replace(_$result); + return _$result; + } +} + +class _$GExtensionFilterInput extends GExtensionFilterInput { + @override + final BuiltList? and; + @override + final GStringFilterInput? apkName; + @override + final GBooleanFilterInput? hasUpdate; + @override + final GStringFilterInput? iconUrl; + @override + final GBooleanFilterInput? isInstalled; + @override + final GBooleanFilterInput? isNsfw; + @override + final GBooleanFilterInput? isObsolete; + @override + final GStringFilterInput? lang; + @override + final GStringFilterInput? name; + @override + final GExtensionFilterInput? not; + @override + final BuiltList? or; + @override + final GStringFilterInput? pkgName; + @override + final GStringFilterInput? repo; + @override + final GIntFilterInput? versionCode; + @override + final GStringFilterInput? versionName; + + factory _$GExtensionFilterInput( + [void Function(GExtensionFilterInputBuilder)? updates]) => + (new GExtensionFilterInputBuilder()..update(updates))._build(); + + _$GExtensionFilterInput._( + {this.and, + this.apkName, + this.hasUpdate, + this.iconUrl, + this.isInstalled, + this.isNsfw, + this.isObsolete, + this.lang, + this.name, + this.not, + this.or, + this.pkgName, + this.repo, + this.versionCode, + this.versionName}) + : super._(); + + @override + GExtensionFilterInput rebuild( + void Function(GExtensionFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionFilterInputBuilder toBuilder() => + new GExtensionFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionFilterInput && + and == other.and && + apkName == other.apkName && + hasUpdate == other.hasUpdate && + iconUrl == other.iconUrl && + isInstalled == other.isInstalled && + isNsfw == other.isNsfw && + isObsolete == other.isObsolete && + lang == other.lang && + name == other.name && + not == other.not && + or == other.or && + pkgName == other.pkgName && + repo == other.repo && + versionCode == other.versionCode && + versionName == other.versionName; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, apkName.hashCode); + _$hash = $jc(_$hash, hasUpdate.hashCode); + _$hash = $jc(_$hash, iconUrl.hashCode); + _$hash = $jc(_$hash, isInstalled.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, isObsolete.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, pkgName.hashCode); + _$hash = $jc(_$hash, repo.hashCode); + _$hash = $jc(_$hash, versionCode.hashCode); + _$hash = $jc(_$hash, versionName.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionFilterInput') + ..add('and', and) + ..add('apkName', apkName) + ..add('hasUpdate', hasUpdate) + ..add('iconUrl', iconUrl) + ..add('isInstalled', isInstalled) + ..add('isNsfw', isNsfw) + ..add('isObsolete', isObsolete) + ..add('lang', lang) + ..add('name', name) + ..add('not', not) + ..add('or', or) + ..add('pkgName', pkgName) + ..add('repo', repo) + ..add('versionCode', versionCode) + ..add('versionName', versionName)) + .toString(); + } +} + +class GExtensionFilterInputBuilder + implements Builder { + _$GExtensionFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GStringFilterInputBuilder? _apkName; + GStringFilterInputBuilder get apkName => + _$this._apkName ??= new GStringFilterInputBuilder(); + set apkName(GStringFilterInputBuilder? apkName) => _$this._apkName = apkName; + + GBooleanFilterInputBuilder? _hasUpdate; + GBooleanFilterInputBuilder get hasUpdate => + _$this._hasUpdate ??= new GBooleanFilterInputBuilder(); + set hasUpdate(GBooleanFilterInputBuilder? hasUpdate) => + _$this._hasUpdate = hasUpdate; + + GStringFilterInputBuilder? _iconUrl; + GStringFilterInputBuilder get iconUrl => + _$this._iconUrl ??= new GStringFilterInputBuilder(); + set iconUrl(GStringFilterInputBuilder? iconUrl) => _$this._iconUrl = iconUrl; + + GBooleanFilterInputBuilder? _isInstalled; + GBooleanFilterInputBuilder get isInstalled => + _$this._isInstalled ??= new GBooleanFilterInputBuilder(); + set isInstalled(GBooleanFilterInputBuilder? isInstalled) => + _$this._isInstalled = isInstalled; + + GBooleanFilterInputBuilder? _isNsfw; + GBooleanFilterInputBuilder get isNsfw => + _$this._isNsfw ??= new GBooleanFilterInputBuilder(); + set isNsfw(GBooleanFilterInputBuilder? isNsfw) => _$this._isNsfw = isNsfw; + + GBooleanFilterInputBuilder? _isObsolete; + GBooleanFilterInputBuilder get isObsolete => + _$this._isObsolete ??= new GBooleanFilterInputBuilder(); + set isObsolete(GBooleanFilterInputBuilder? isObsolete) => + _$this._isObsolete = isObsolete; + + GStringFilterInputBuilder? _lang; + GStringFilterInputBuilder get lang => + _$this._lang ??= new GStringFilterInputBuilder(); + set lang(GStringFilterInputBuilder? lang) => _$this._lang = lang; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GExtensionFilterInputBuilder? _not; + GExtensionFilterInputBuilder get not => + _$this._not ??= new GExtensionFilterInputBuilder(); + set not(GExtensionFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GStringFilterInputBuilder? _pkgName; + GStringFilterInputBuilder get pkgName => + _$this._pkgName ??= new GStringFilterInputBuilder(); + set pkgName(GStringFilterInputBuilder? pkgName) => _$this._pkgName = pkgName; + + GStringFilterInputBuilder? _repo; + GStringFilterInputBuilder get repo => + _$this._repo ??= new GStringFilterInputBuilder(); + set repo(GStringFilterInputBuilder? repo) => _$this._repo = repo; + + GIntFilterInputBuilder? _versionCode; + GIntFilterInputBuilder get versionCode => + _$this._versionCode ??= new GIntFilterInputBuilder(); + set versionCode(GIntFilterInputBuilder? versionCode) => + _$this._versionCode = versionCode; + + GStringFilterInputBuilder? _versionName; + GStringFilterInputBuilder get versionName => + _$this._versionName ??= new GStringFilterInputBuilder(); + set versionName(GStringFilterInputBuilder? versionName) => + _$this._versionName = versionName; + + GExtensionFilterInputBuilder(); + + GExtensionFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _apkName = $v.apkName?.toBuilder(); + _hasUpdate = $v.hasUpdate?.toBuilder(); + _iconUrl = $v.iconUrl?.toBuilder(); + _isInstalled = $v.isInstalled?.toBuilder(); + _isNsfw = $v.isNsfw?.toBuilder(); + _isObsolete = $v.isObsolete?.toBuilder(); + _lang = $v.lang?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _pkgName = $v.pkgName?.toBuilder(); + _repo = $v.repo?.toBuilder(); + _versionCode = $v.versionCode?.toBuilder(); + _versionName = $v.versionName?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GExtensionFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionFilterInput; + } + + @override + void update(void Function(GExtensionFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionFilterInput build() => _build(); + + _$GExtensionFilterInput _build() { + _$GExtensionFilterInput _$result; + try { + _$result = _$v ?? + new _$GExtensionFilterInput._( + and: _and?.build(), + apkName: _apkName?.build(), + hasUpdate: _hasUpdate?.build(), + iconUrl: _iconUrl?.build(), + isInstalled: _isInstalled?.build(), + isNsfw: _isNsfw?.build(), + isObsolete: _isObsolete?.build(), + lang: _lang?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build(), + pkgName: _pkgName?.build(), + repo: _repo?.build(), + versionCode: _versionCode?.build(), + versionName: _versionName?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'apkName'; + _apkName?.build(); + _$failedField = 'hasUpdate'; + _hasUpdate?.build(); + _$failedField = 'iconUrl'; + _iconUrl?.build(); + _$failedField = 'isInstalled'; + _isInstalled?.build(); + _$failedField = 'isNsfw'; + _isNsfw?.build(); + _$failedField = 'isObsolete'; + _isObsolete?.build(); + _$failedField = 'lang'; + _lang?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'pkgName'; + _pkgName?.build(); + _$failedField = 'repo'; + _repo?.build(); + _$failedField = 'versionCode'; + _versionCode?.build(); + _$failedField = 'versionName'; + _versionName?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GExtensionFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GExtensionOrderInput extends GExtensionOrderInput { + @override + final GExtensionOrderBy by; + @override + final GSortOrder? byType; + + factory _$GExtensionOrderInput( + [void Function(GExtensionOrderInputBuilder)? updates]) => + (new GExtensionOrderInputBuilder()..update(updates))._build(); + + _$GExtensionOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GExtensionOrderInput', 'by'); + } + + @override + GExtensionOrderInput rebuild( + void Function(GExtensionOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GExtensionOrderInputBuilder toBuilder() => + new GExtensionOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GExtensionOrderInput && + by == other.by && + byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GExtensionOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GExtensionOrderInputBuilder + implements Builder { + _$GExtensionOrderInput? _$v; + + GExtensionOrderBy? _by; + GExtensionOrderBy? get by => _$this._by; + set by(GExtensionOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GExtensionOrderInputBuilder(); + + GExtensionOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GExtensionOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GExtensionOrderInput; + } + + @override + void update(void Function(GExtensionOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GExtensionOrderInput build() => _build(); + + _$GExtensionOrderInput _build() { + final _$result = _$v ?? + new _$GExtensionOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GExtensionOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchChapterPagesInput extends GFetchChapterPagesInput { + @override + final int chapterId; + @override + final String? clientMutationId; + + factory _$GFetchChapterPagesInput( + [void Function(GFetchChapterPagesInputBuilder)? updates]) => + (new GFetchChapterPagesInputBuilder()..update(updates))._build(); + + _$GFetchChapterPagesInput._({required this.chapterId, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GFetchChapterPagesInput', 'chapterId'); + } + + @override + GFetchChapterPagesInput rebuild( + void Function(GFetchChapterPagesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchChapterPagesInputBuilder toBuilder() => + new GFetchChapterPagesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchChapterPagesInput && + chapterId == other.chapterId && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchChapterPagesInput') + ..add('chapterId', chapterId) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GFetchChapterPagesInputBuilder + implements + Builder { + _$GFetchChapterPagesInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GFetchChapterPagesInputBuilder(); + + GFetchChapterPagesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GFetchChapterPagesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchChapterPagesInput; + } + + @override + void update(void Function(GFetchChapterPagesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchChapterPagesInput build() => _build(); + + _$GFetchChapterPagesInput _build() { + final _$result = _$v ?? + new _$GFetchChapterPagesInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GFetchChapterPagesInput', 'chapterId'), + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchChaptersInput extends GFetchChaptersInput { + @override + final String? clientMutationId; + @override + final int mangaId; + + factory _$GFetchChaptersInput( + [void Function(GFetchChaptersInputBuilder)? updates]) => + (new GFetchChaptersInputBuilder()..update(updates))._build(); + + _$GFetchChaptersInput._({this.clientMutationId, required this.mangaId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GFetchChaptersInput', 'mangaId'); + } + + @override + GFetchChaptersInput rebuild( + void Function(GFetchChaptersInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchChaptersInputBuilder toBuilder() => + new GFetchChaptersInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchChaptersInput && + clientMutationId == other.clientMutationId && + mangaId == other.mangaId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchChaptersInput') + ..add('clientMutationId', clientMutationId) + ..add('mangaId', mangaId)) + .toString(); + } +} + +class GFetchChaptersInputBuilder + implements Builder { + _$GFetchChaptersInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GFetchChaptersInputBuilder(); + + GFetchChaptersInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _mangaId = $v.mangaId; + _$v = null; + } + return this; + } + + @override + void replace(GFetchChaptersInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchChaptersInput; + } + + @override + void update(void Function(GFetchChaptersInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchChaptersInput build() => _build(); + + _$GFetchChaptersInput _build() { + final _$result = _$v ?? + new _$GFetchChaptersInput._( + clientMutationId: clientMutationId, + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GFetchChaptersInput', 'mangaId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchExtensionsInput extends GFetchExtensionsInput { + @override + final String? clientMutationId; + + factory _$GFetchExtensionsInput( + [void Function(GFetchExtensionsInputBuilder)? updates]) => + (new GFetchExtensionsInputBuilder()..update(updates))._build(); + + _$GFetchExtensionsInput._({this.clientMutationId}) : super._(); + + @override + GFetchExtensionsInput rebuild( + void Function(GFetchExtensionsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchExtensionsInputBuilder toBuilder() => + new GFetchExtensionsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchExtensionsInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchExtensionsInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GFetchExtensionsInputBuilder + implements Builder { + _$GFetchExtensionsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GFetchExtensionsInputBuilder(); + + GFetchExtensionsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GFetchExtensionsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchExtensionsInput; + } + + @override + void update(void Function(GFetchExtensionsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchExtensionsInput build() => _build(); + + _$GFetchExtensionsInput _build() { + final _$result = _$v ?? + new _$GFetchExtensionsInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchMangaInput extends GFetchMangaInput { + @override + final String? clientMutationId; + @override + final int id; + + factory _$GFetchMangaInput( + [void Function(GFetchMangaInputBuilder)? updates]) => + (new GFetchMangaInputBuilder()..update(updates))._build(); + + _$GFetchMangaInput._({this.clientMutationId, required this.id}) : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GFetchMangaInput', 'id'); + } + + @override + GFetchMangaInput rebuild(void Function(GFetchMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchMangaInputBuilder toBuilder() => + new GFetchMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchMangaInput && + clientMutationId == other.clientMutationId && + id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchMangaInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id)) + .toString(); + } +} + +class GFetchMangaInputBuilder + implements Builder { + _$GFetchMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GFetchMangaInputBuilder(); + + GFetchMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(GFetchMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchMangaInput; + } + + @override + void update(void Function(GFetchMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchMangaInput build() => _build(); + + _$GFetchMangaInput _build() { + final _$result = _$v ?? + new _$GFetchMangaInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GFetchMangaInput', 'id'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFetchSourceMangaInput extends GFetchSourceMangaInput { + @override + final String? clientMutationId; + @override + final BuiltList? filters; + @override + final int page; + @override + final String? query; + @override + final GLongString source; + @override + final GFetchSourceMangaType type; + + factory _$GFetchSourceMangaInput( + [void Function(GFetchSourceMangaInputBuilder)? updates]) => + (new GFetchSourceMangaInputBuilder()..update(updates))._build(); + + _$GFetchSourceMangaInput._( + {this.clientMutationId, + this.filters, + required this.page, + this.query, + required this.source, + required this.type}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + page, r'GFetchSourceMangaInput', 'page'); + BuiltValueNullFieldError.checkNotNull( + source, r'GFetchSourceMangaInput', 'source'); + BuiltValueNullFieldError.checkNotNull( + type, r'GFetchSourceMangaInput', 'type'); + } + + @override + GFetchSourceMangaInput rebuild( + void Function(GFetchSourceMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchSourceMangaInputBuilder toBuilder() => + new GFetchSourceMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchSourceMangaInput && + clientMutationId == other.clientMutationId && + filters == other.filters && + page == other.page && + query == other.query && + source == other.source && + type == other.type; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, filters.hashCode); + _$hash = $jc(_$hash, page.hashCode); + _$hash = $jc(_$hash, query.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jc(_$hash, type.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchSourceMangaInput') + ..add('clientMutationId', clientMutationId) + ..add('filters', filters) + ..add('page', page) + ..add('query', query) + ..add('source', source) + ..add('type', type)) + .toString(); + } +} + +class GFetchSourceMangaInputBuilder + implements Builder { + _$GFetchSourceMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _filters; + ListBuilder get filters => + _$this._filters ??= new ListBuilder(); + set filters(ListBuilder? filters) => + _$this._filters = filters; + + int? _page; + int? get page => _$this._page; + set page(int? page) => _$this._page = page; + + String? _query; + String? get query => _$this._query; + set query(String? query) => _$this._query = query; + + GLongStringBuilder? _source; + GLongStringBuilder get source => _$this._source ??= new GLongStringBuilder(); + set source(GLongStringBuilder? source) => _$this._source = source; + + GFetchSourceMangaType? _type; + GFetchSourceMangaType? get type => _$this._type; + set type(GFetchSourceMangaType? type) => _$this._type = type; + + GFetchSourceMangaInputBuilder(); + + GFetchSourceMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _filters = $v.filters?.toBuilder(); + _page = $v.page; + _query = $v.query; + _source = $v.source.toBuilder(); + _type = $v.type; + _$v = null; + } + return this; + } + + @override + void replace(GFetchSourceMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchSourceMangaInput; + } + + @override + void update(void Function(GFetchSourceMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchSourceMangaInput build() => _build(); + + _$GFetchSourceMangaInput _build() { + _$GFetchSourceMangaInput _$result; + try { + _$result = _$v ?? + new _$GFetchSourceMangaInput._( + clientMutationId: clientMutationId, + filters: _filters?.build(), + page: BuiltValueNullFieldError.checkNotNull( + page, r'GFetchSourceMangaInput', 'page'), + query: query, + source: source.build(), + type: BuiltValueNullFieldError.checkNotNull( + type, r'GFetchSourceMangaInput', 'type'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'filters'; + _filters?.build(); + + _$failedField = 'source'; + source.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFetchSourceMangaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFetchTrackInput extends GFetchTrackInput { + @override + final String? clientMutationId; + @override + final int recordId; + + factory _$GFetchTrackInput( + [void Function(GFetchTrackInputBuilder)? updates]) => + (new GFetchTrackInputBuilder()..update(updates))._build(); + + _$GFetchTrackInput._({this.clientMutationId, required this.recordId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + recordId, r'GFetchTrackInput', 'recordId'); + } + + @override + GFetchTrackInput rebuild(void Function(GFetchTrackInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFetchTrackInputBuilder toBuilder() => + new GFetchTrackInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFetchTrackInput && + clientMutationId == other.clientMutationId && + recordId == other.recordId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, recordId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFetchTrackInput') + ..add('clientMutationId', clientMutationId) + ..add('recordId', recordId)) + .toString(); + } +} + +class GFetchTrackInputBuilder + implements Builder { + _$GFetchTrackInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _recordId; + int? get recordId => _$this._recordId; + set recordId(int? recordId) => _$this._recordId = recordId; + + GFetchTrackInputBuilder(); + + GFetchTrackInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _recordId = $v.recordId; + _$v = null; + } + return this; + } + + @override + void replace(GFetchTrackInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFetchTrackInput; + } + + @override + void update(void Function(GFetchTrackInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFetchTrackInput build() => _build(); + + _$GFetchTrackInput _build() { + final _$result = _$v ?? + new _$GFetchTrackInput._( + clientMutationId: clientMutationId, + recordId: BuiltValueNullFieldError.checkNotNull( + recordId, r'GFetchTrackInput', 'recordId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GFilterChangeInput extends GFilterChangeInput { + @override + final bool? checkBoxState; + @override + final GFilterChangeInput? groupChange; + @override + final int position; + @override + final int? selectState; + @override + final GSortSelectionInput? sortState; + @override + final String? textState; + @override + final GTriState? triState; + + factory _$GFilterChangeInput( + [void Function(GFilterChangeInputBuilder)? updates]) => + (new GFilterChangeInputBuilder()..update(updates))._build(); + + _$GFilterChangeInput._( + {this.checkBoxState, + this.groupChange, + required this.position, + this.selectState, + this.sortState, + this.textState, + this.triState}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + position, r'GFilterChangeInput', 'position'); + } + + @override + GFilterChangeInput rebuild( + void Function(GFilterChangeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFilterChangeInputBuilder toBuilder() => + new GFilterChangeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFilterChangeInput && + checkBoxState == other.checkBoxState && + groupChange == other.groupChange && + position == other.position && + selectState == other.selectState && + sortState == other.sortState && + textState == other.textState && + triState == other.triState; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, checkBoxState.hashCode); + _$hash = $jc(_$hash, groupChange.hashCode); + _$hash = $jc(_$hash, position.hashCode); + _$hash = $jc(_$hash, selectState.hashCode); + _$hash = $jc(_$hash, sortState.hashCode); + _$hash = $jc(_$hash, textState.hashCode); + _$hash = $jc(_$hash, triState.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFilterChangeInput') + ..add('checkBoxState', checkBoxState) + ..add('groupChange', groupChange) + ..add('position', position) + ..add('selectState', selectState) + ..add('sortState', sortState) + ..add('textState', textState) + ..add('triState', triState)) + .toString(); + } +} + +class GFilterChangeInputBuilder + implements Builder { + _$GFilterChangeInput? _$v; + + bool? _checkBoxState; + bool? get checkBoxState => _$this._checkBoxState; + set checkBoxState(bool? checkBoxState) => + _$this._checkBoxState = checkBoxState; + + GFilterChangeInputBuilder? _groupChange; + GFilterChangeInputBuilder get groupChange => + _$this._groupChange ??= new GFilterChangeInputBuilder(); + set groupChange(GFilterChangeInputBuilder? groupChange) => + _$this._groupChange = groupChange; + + int? _position; + int? get position => _$this._position; + set position(int? position) => _$this._position = position; + + int? _selectState; + int? get selectState => _$this._selectState; + set selectState(int? selectState) => _$this._selectState = selectState; + + GSortSelectionInputBuilder? _sortState; + GSortSelectionInputBuilder get sortState => + _$this._sortState ??= new GSortSelectionInputBuilder(); + set sortState(GSortSelectionInputBuilder? sortState) => + _$this._sortState = sortState; + + String? _textState; + String? get textState => _$this._textState; + set textState(String? textState) => _$this._textState = textState; + + GTriState? _triState; + GTriState? get triState => _$this._triState; + set triState(GTriState? triState) => _$this._triState = triState; + + GFilterChangeInputBuilder(); + + GFilterChangeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _checkBoxState = $v.checkBoxState; + _groupChange = $v.groupChange?.toBuilder(); + _position = $v.position; + _selectState = $v.selectState; + _sortState = $v.sortState?.toBuilder(); + _textState = $v.textState; + _triState = $v.triState; + _$v = null; + } + return this; + } + + @override + void replace(GFilterChangeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFilterChangeInput; + } + + @override + void update(void Function(GFilterChangeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFilterChangeInput build() => _build(); + + _$GFilterChangeInput _build() { + _$GFilterChangeInput _$result; + try { + _$result = _$v ?? + new _$GFilterChangeInput._( + checkBoxState: checkBoxState, + groupChange: _groupChange?.build(), + position: BuiltValueNullFieldError.checkNotNull( + position, r'GFilterChangeInput', 'position'), + selectState: selectState, + sortState: _sortState?.build(), + textState: textState, + triState: triState, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'groupChange'; + _groupChange?.build(); + + _$failedField = 'sortState'; + _sortState?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFilterChangeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GFloatFilterInput extends GFloatFilterInput { + @override + final double? distinctFrom; + @override + final BuiltList? distinctFromAll; + @override + final BuiltList? distinctFromAny; + @override + final double? equalTo; + @override + final double? greaterThan; + @override + final double? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final double? lessThan; + @override + final double? lessThanOrEqualTo; + @override + final double? notDistinctFrom; + @override + final double? notEqualTo; + @override + final BuiltList? notEqualToAll; + @override + final BuiltList? notEqualToAny; + @override + final BuiltList? notIn; + + factory _$GFloatFilterInput( + [void Function(GFloatFilterInputBuilder)? updates]) => + (new GFloatFilterInputBuilder()..update(updates))._build(); + + _$GFloatFilterInput._( + {this.distinctFrom, + this.distinctFromAll, + this.distinctFromAny, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notEqualToAll, + this.notEqualToAny, + this.notIn}) + : super._(); + + @override + GFloatFilterInput rebuild(void Function(GFloatFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GFloatFilterInputBuilder toBuilder() => + new GFloatFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GFloatFilterInput && + distinctFrom == other.distinctFrom && + distinctFromAll == other.distinctFromAll && + distinctFromAny == other.distinctFromAny && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notEqualToAll == other.notEqualToAll && + notEqualToAny == other.notEqualToAny && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromAll.hashCode); + _$hash = $jc(_$hash, distinctFromAny.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notEqualToAll.hashCode); + _$hash = $jc(_$hash, notEqualToAny.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GFloatFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromAll', distinctFromAll) + ..add('distinctFromAny', distinctFromAny) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notEqualToAll', notEqualToAll) + ..add('notEqualToAny', notEqualToAny) + ..add('notIn', notIn)) + .toString(); + } +} + +class GFloatFilterInputBuilder + implements Builder { + _$GFloatFilterInput? _$v; + + double? _distinctFrom; + double? get distinctFrom => _$this._distinctFrom; + set distinctFrom(double? distinctFrom) => _$this._distinctFrom = distinctFrom; + + ListBuilder? _distinctFromAll; + ListBuilder get distinctFromAll => + _$this._distinctFromAll ??= new ListBuilder(); + set distinctFromAll(ListBuilder? distinctFromAll) => + _$this._distinctFromAll = distinctFromAll; + + ListBuilder? _distinctFromAny; + ListBuilder get distinctFromAny => + _$this._distinctFromAny ??= new ListBuilder(); + set distinctFromAny(ListBuilder? distinctFromAny) => + _$this._distinctFromAny = distinctFromAny; + + double? _equalTo; + double? get equalTo => _$this._equalTo; + set equalTo(double? equalTo) => _$this._equalTo = equalTo; + + double? _greaterThan; + double? get greaterThan => _$this._greaterThan; + set greaterThan(double? greaterThan) => _$this._greaterThan = greaterThan; + + double? _greaterThanOrEqualTo; + double? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(double? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + double? _lessThan; + double? get lessThan => _$this._lessThan; + set lessThan(double? lessThan) => _$this._lessThan = lessThan; + + double? _lessThanOrEqualTo; + double? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(double? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + double? _notDistinctFrom; + double? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(double? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + double? _notEqualTo; + double? get notEqualTo => _$this._notEqualTo; + set notEqualTo(double? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notEqualToAll; + ListBuilder get notEqualToAll => + _$this._notEqualToAll ??= new ListBuilder(); + set notEqualToAll(ListBuilder? notEqualToAll) => + _$this._notEqualToAll = notEqualToAll; + + ListBuilder? _notEqualToAny; + ListBuilder get notEqualToAny => + _$this._notEqualToAny ??= new ListBuilder(); + set notEqualToAny(ListBuilder? notEqualToAny) => + _$this._notEqualToAny = notEqualToAny; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GFloatFilterInputBuilder(); + + GFloatFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _distinctFromAll = $v.distinctFromAll?.toBuilder(); + _distinctFromAny = $v.distinctFromAny?.toBuilder(); + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notEqualToAll = $v.notEqualToAll?.toBuilder(); + _notEqualToAny = $v.notEqualToAny?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GFloatFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GFloatFilterInput; + } + + @override + void update(void Function(GFloatFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GFloatFilterInput build() => _build(); + + _$GFloatFilterInput _build() { + _$GFloatFilterInput _$result; + try { + _$result = _$v ?? + new _$GFloatFilterInput._( + distinctFrom: distinctFrom, + distinctFromAll: _distinctFromAll?.build(), + distinctFromAny: _distinctFromAny?.build(), + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notEqualToAll: _notEqualToAll?.build(), + notEqualToAny: _notEqualToAny?.build(), + notIn: _notIn?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFromAll'; + _distinctFromAll?.build(); + _$failedField = 'distinctFromAny'; + _distinctFromAny?.build(); + + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notEqualToAll'; + _notEqualToAll?.build(); + _$failedField = 'notEqualToAny'; + _notEqualToAny?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GFloatFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GGlobalMetaTypeInput extends GGlobalMetaTypeInput { + @override + final String key; + @override + final String value; + + factory _$GGlobalMetaTypeInput( + [void Function(GGlobalMetaTypeInputBuilder)? updates]) => + (new GGlobalMetaTypeInputBuilder()..update(updates))._build(); + + _$GGlobalMetaTypeInput._({required this.key, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GGlobalMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + value, r'GGlobalMetaTypeInput', 'value'); + } + + @override + GGlobalMetaTypeInput rebuild( + void Function(GGlobalMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GGlobalMetaTypeInputBuilder toBuilder() => + new GGlobalMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GGlobalMetaTypeInput && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GGlobalMetaTypeInput') + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GGlobalMetaTypeInputBuilder + implements Builder { + _$GGlobalMetaTypeInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GGlobalMetaTypeInputBuilder(); + + GGlobalMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GGlobalMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GGlobalMetaTypeInput; + } + + @override + void update(void Function(GGlobalMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GGlobalMetaTypeInput build() => _build(); + + _$GGlobalMetaTypeInput _build() { + final _$result = _$v ?? + new _$GGlobalMetaTypeInput._( + key: BuiltValueNullFieldError.checkNotNull( + key, r'GGlobalMetaTypeInput', 'key'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GGlobalMetaTypeInput', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GInstallExternalExtensionInput extends GInstallExternalExtensionInput { + @override + final String? clientMutationId; + @override + final _i3.MultipartFile extensionFile; + + factory _$GInstallExternalExtensionInput( + [void Function(GInstallExternalExtensionInputBuilder)? updates]) => + (new GInstallExternalExtensionInputBuilder()..update(updates))._build(); + + _$GInstallExternalExtensionInput._( + {this.clientMutationId, required this.extensionFile}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + extensionFile, r'GInstallExternalExtensionInput', 'extensionFile'); + } + + @override + GInstallExternalExtensionInput rebuild( + void Function(GInstallExternalExtensionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GInstallExternalExtensionInputBuilder toBuilder() => + new GInstallExternalExtensionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GInstallExternalExtensionInput && + clientMutationId == other.clientMutationId && + extensionFile == other.extensionFile; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, extensionFile.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GInstallExternalExtensionInput') + ..add('clientMutationId', clientMutationId) + ..add('extensionFile', extensionFile)) + .toString(); + } +} + +class GInstallExternalExtensionInputBuilder + implements + Builder { + _$GInstallExternalExtensionInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + _i3.MultipartFile? _extensionFile; + _i3.MultipartFile? get extensionFile => _$this._extensionFile; + set extensionFile(_i3.MultipartFile? extensionFile) => + _$this._extensionFile = extensionFile; + + GInstallExternalExtensionInputBuilder(); + + GInstallExternalExtensionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _extensionFile = $v.extensionFile; + _$v = null; + } + return this; + } + + @override + void replace(GInstallExternalExtensionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GInstallExternalExtensionInput; + } + + @override + void update(void Function(GInstallExternalExtensionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GInstallExternalExtensionInput build() => _build(); + + _$GInstallExternalExtensionInput _build() { + final _$result = _$v ?? + new _$GInstallExternalExtensionInput._( + clientMutationId: clientMutationId, + extensionFile: BuiltValueNullFieldError.checkNotNull(extensionFile, + r'GInstallExternalExtensionInput', 'extensionFile'), + ); + replace(_$result); + return _$result; + } +} + +class _$GIntFilterInput extends GIntFilterInput { + @override + final int? distinctFrom; + @override + final BuiltList? distinctFromAll; + @override + final BuiltList? distinctFromAny; + @override + final int? equalTo; + @override + final int? greaterThan; + @override + final int? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final int? lessThan; + @override + final int? lessThanOrEqualTo; + @override + final int? notDistinctFrom; + @override + final int? notEqualTo; + @override + final BuiltList? notEqualToAll; + @override + final BuiltList? notEqualToAny; + @override + final BuiltList? notIn; + + factory _$GIntFilterInput([void Function(GIntFilterInputBuilder)? updates]) => + (new GIntFilterInputBuilder()..update(updates))._build(); + + _$GIntFilterInput._( + {this.distinctFrom, + this.distinctFromAll, + this.distinctFromAny, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notEqualToAll, + this.notEqualToAny, + this.notIn}) + : super._(); + + @override + GIntFilterInput rebuild(void Function(GIntFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GIntFilterInputBuilder toBuilder() => + new GIntFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GIntFilterInput && + distinctFrom == other.distinctFrom && + distinctFromAll == other.distinctFromAll && + distinctFromAny == other.distinctFromAny && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notEqualToAll == other.notEqualToAll && + notEqualToAny == other.notEqualToAny && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromAll.hashCode); + _$hash = $jc(_$hash, distinctFromAny.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notEqualToAll.hashCode); + _$hash = $jc(_$hash, notEqualToAny.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GIntFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromAll', distinctFromAll) + ..add('distinctFromAny', distinctFromAny) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notEqualToAll', notEqualToAll) + ..add('notEqualToAny', notEqualToAny) + ..add('notIn', notIn)) + .toString(); + } +} + +class GIntFilterInputBuilder + implements Builder { + _$GIntFilterInput? _$v; + + int? _distinctFrom; + int? get distinctFrom => _$this._distinctFrom; + set distinctFrom(int? distinctFrom) => _$this._distinctFrom = distinctFrom; + + ListBuilder? _distinctFromAll; + ListBuilder get distinctFromAll => + _$this._distinctFromAll ??= new ListBuilder(); + set distinctFromAll(ListBuilder? distinctFromAll) => + _$this._distinctFromAll = distinctFromAll; + + ListBuilder? _distinctFromAny; + ListBuilder get distinctFromAny => + _$this._distinctFromAny ??= new ListBuilder(); + set distinctFromAny(ListBuilder? distinctFromAny) => + _$this._distinctFromAny = distinctFromAny; + + int? _equalTo; + int? get equalTo => _$this._equalTo; + set equalTo(int? equalTo) => _$this._equalTo = equalTo; + + int? _greaterThan; + int? get greaterThan => _$this._greaterThan; + set greaterThan(int? greaterThan) => _$this._greaterThan = greaterThan; + + int? _greaterThanOrEqualTo; + int? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(int? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + int? _lessThan; + int? get lessThan => _$this._lessThan; + set lessThan(int? lessThan) => _$this._lessThan = lessThan; + + int? _lessThanOrEqualTo; + int? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(int? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + int? _notDistinctFrom; + int? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(int? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + int? _notEqualTo; + int? get notEqualTo => _$this._notEqualTo; + set notEqualTo(int? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notEqualToAll; + ListBuilder get notEqualToAll => + _$this._notEqualToAll ??= new ListBuilder(); + set notEqualToAll(ListBuilder? notEqualToAll) => + _$this._notEqualToAll = notEqualToAll; + + ListBuilder? _notEqualToAny; + ListBuilder get notEqualToAny => + _$this._notEqualToAny ??= new ListBuilder(); + set notEqualToAny(ListBuilder? notEqualToAny) => + _$this._notEqualToAny = notEqualToAny; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GIntFilterInputBuilder(); + + GIntFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _distinctFromAll = $v.distinctFromAll?.toBuilder(); + _distinctFromAny = $v.distinctFromAny?.toBuilder(); + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notEqualToAll = $v.notEqualToAll?.toBuilder(); + _notEqualToAny = $v.notEqualToAny?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GIntFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GIntFilterInput; + } + + @override + void update(void Function(GIntFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GIntFilterInput build() => _build(); + + _$GIntFilterInput _build() { + _$GIntFilterInput _$result; + try { + _$result = _$v ?? + new _$GIntFilterInput._( + distinctFrom: distinctFrom, + distinctFromAll: _distinctFromAll?.build(), + distinctFromAny: _distinctFromAny?.build(), + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notEqualToAll: _notEqualToAll?.build(), + notEqualToAny: _notEqualToAny?.build(), + notIn: _notIn?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFromAll'; + _distinctFromAll?.build(); + _$failedField = 'distinctFromAny'; + _distinctFromAny?.build(); + + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notEqualToAll'; + _notEqualToAll?.build(); + _$failedField = 'notEqualToAny'; + _notEqualToAny?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GIntFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GLoginTrackerCredentialsInput extends GLoginTrackerCredentialsInput { + @override + final String? clientMutationId; + @override + final String password; + @override + final int trackerId; + @override + final String username; + + factory _$GLoginTrackerCredentialsInput( + [void Function(GLoginTrackerCredentialsInputBuilder)? updates]) => + (new GLoginTrackerCredentialsInputBuilder()..update(updates))._build(); + + _$GLoginTrackerCredentialsInput._( + {this.clientMutationId, + required this.password, + required this.trackerId, + required this.username}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + password, r'GLoginTrackerCredentialsInput', 'password'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerCredentialsInput', 'trackerId'); + BuiltValueNullFieldError.checkNotNull( + username, r'GLoginTrackerCredentialsInput', 'username'); + } + + @override + GLoginTrackerCredentialsInput rebuild( + void Function(GLoginTrackerCredentialsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLoginTrackerCredentialsInputBuilder toBuilder() => + new GLoginTrackerCredentialsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLoginTrackerCredentialsInput && + clientMutationId == other.clientMutationId && + password == other.password && + trackerId == other.trackerId && + username == other.username; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, password.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jc(_$hash, username.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLoginTrackerCredentialsInput') + ..add('clientMutationId', clientMutationId) + ..add('password', password) + ..add('trackerId', trackerId) + ..add('username', username)) + .toString(); + } +} + +class GLoginTrackerCredentialsInputBuilder + implements + Builder { + _$GLoginTrackerCredentialsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _password; + String? get password => _$this._password; + set password(String? password) => _$this._password = password; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + String? _username; + String? get username => _$this._username; + set username(String? username) => _$this._username = username; + + GLoginTrackerCredentialsInputBuilder(); + + GLoginTrackerCredentialsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _password = $v.password; + _trackerId = $v.trackerId; + _username = $v.username; + _$v = null; + } + return this; + } + + @override + void replace(GLoginTrackerCredentialsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLoginTrackerCredentialsInput; + } + + @override + void update(void Function(GLoginTrackerCredentialsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLoginTrackerCredentialsInput build() => _build(); + + _$GLoginTrackerCredentialsInput _build() { + final _$result = _$v ?? + new _$GLoginTrackerCredentialsInput._( + clientMutationId: clientMutationId, + password: BuiltValueNullFieldError.checkNotNull( + password, r'GLoginTrackerCredentialsInput', 'password'), + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerCredentialsInput', 'trackerId'), + username: BuiltValueNullFieldError.checkNotNull( + username, r'GLoginTrackerCredentialsInput', 'username'), + ); + replace(_$result); + return _$result; + } +} + +class _$GLoginTrackerOAuthInput extends GLoginTrackerOAuthInput { + @override + final String callbackUrl; + @override + final String? clientMutationId; + @override + final int trackerId; + + factory _$GLoginTrackerOAuthInput( + [void Function(GLoginTrackerOAuthInputBuilder)? updates]) => + (new GLoginTrackerOAuthInputBuilder()..update(updates))._build(); + + _$GLoginTrackerOAuthInput._( + {required this.callbackUrl, + this.clientMutationId, + required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + callbackUrl, r'GLoginTrackerOAuthInput', 'callbackUrl'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerOAuthInput', 'trackerId'); + } + + @override + GLoginTrackerOAuthInput rebuild( + void Function(GLoginTrackerOAuthInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLoginTrackerOAuthInputBuilder toBuilder() => + new GLoginTrackerOAuthInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLoginTrackerOAuthInput && + callbackUrl == other.callbackUrl && + clientMutationId == other.clientMutationId && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, callbackUrl.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLoginTrackerOAuthInput') + ..add('callbackUrl', callbackUrl) + ..add('clientMutationId', clientMutationId) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GLoginTrackerOAuthInputBuilder + implements + Builder { + _$GLoginTrackerOAuthInput? _$v; + + String? _callbackUrl; + String? get callbackUrl => _$this._callbackUrl; + set callbackUrl(String? callbackUrl) => _$this._callbackUrl = callbackUrl; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GLoginTrackerOAuthInputBuilder(); + + GLoginTrackerOAuthInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _callbackUrl = $v.callbackUrl; + _clientMutationId = $v.clientMutationId; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GLoginTrackerOAuthInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLoginTrackerOAuthInput; + } + + @override + void update(void Function(GLoginTrackerOAuthInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLoginTrackerOAuthInput build() => _build(); + + _$GLoginTrackerOAuthInput _build() { + final _$result = _$v ?? + new _$GLoginTrackerOAuthInput._( + callbackUrl: BuiltValueNullFieldError.checkNotNull( + callbackUrl, r'GLoginTrackerOAuthInput', 'callbackUrl'), + clientMutationId: clientMutationId, + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLoginTrackerOAuthInput', 'trackerId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GLogoutTrackerInput extends GLogoutTrackerInput { + @override + final String? clientMutationId; + @override + final int trackerId; + + factory _$GLogoutTrackerInput( + [void Function(GLogoutTrackerInputBuilder)? updates]) => + (new GLogoutTrackerInputBuilder()..update(updates))._build(); + + _$GLogoutTrackerInput._({this.clientMutationId, required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLogoutTrackerInput', 'trackerId'); + } + + @override + GLogoutTrackerInput rebuild( + void Function(GLogoutTrackerInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLogoutTrackerInputBuilder toBuilder() => + new GLogoutTrackerInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLogoutTrackerInput && + clientMutationId == other.clientMutationId && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLogoutTrackerInput') + ..add('clientMutationId', clientMutationId) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GLogoutTrackerInputBuilder + implements Builder { + _$GLogoutTrackerInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GLogoutTrackerInputBuilder(); + + GLogoutTrackerInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GLogoutTrackerInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLogoutTrackerInput; + } + + @override + void update(void Function(GLogoutTrackerInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLogoutTrackerInput build() => _build(); + + _$GLogoutTrackerInput _build() { + final _$result = _$v ?? + new _$GLogoutTrackerInput._( + clientMutationId: clientMutationId, + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GLogoutTrackerInput', 'trackerId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GLongFilterInput extends GLongFilterInput { + @override + final GLongString? distinctFrom; + @override + final BuiltList? distinctFromAll; + @override + final BuiltList? distinctFromAny; + @override + final GLongString? equalTo; + @override + final GLongString? greaterThan; + @override + final GLongString? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final GLongString? lessThan; + @override + final GLongString? lessThanOrEqualTo; + @override + final GLongString? notDistinctFrom; + @override + final GLongString? notEqualTo; + @override + final BuiltList? notEqualToAll; + @override + final BuiltList? notEqualToAny; + @override + final BuiltList? notIn; + + factory _$GLongFilterInput( + [void Function(GLongFilterInputBuilder)? updates]) => + (new GLongFilterInputBuilder()..update(updates))._build(); + + _$GLongFilterInput._( + {this.distinctFrom, + this.distinctFromAll, + this.distinctFromAny, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notEqualToAll, + this.notEqualToAny, + this.notIn}) + : super._(); + + @override + GLongFilterInput rebuild(void Function(GLongFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLongFilterInputBuilder toBuilder() => + new GLongFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLongFilterInput && + distinctFrom == other.distinctFrom && + distinctFromAll == other.distinctFromAll && + distinctFromAny == other.distinctFromAny && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notEqualToAll == other.notEqualToAll && + notEqualToAny == other.notEqualToAny && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromAll.hashCode); + _$hash = $jc(_$hash, distinctFromAny.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notEqualToAll.hashCode); + _$hash = $jc(_$hash, notEqualToAny.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLongFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromAll', distinctFromAll) + ..add('distinctFromAny', distinctFromAny) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notEqualToAll', notEqualToAll) + ..add('notEqualToAny', notEqualToAny) + ..add('notIn', notIn)) + .toString(); + } +} + +class GLongFilterInputBuilder + implements Builder { + _$GLongFilterInput? _$v; + + GLongStringBuilder? _distinctFrom; + GLongStringBuilder get distinctFrom => + _$this._distinctFrom ??= new GLongStringBuilder(); + set distinctFrom(GLongStringBuilder? distinctFrom) => + _$this._distinctFrom = distinctFrom; + + ListBuilder? _distinctFromAll; + ListBuilder get distinctFromAll => + _$this._distinctFromAll ??= new ListBuilder(); + set distinctFromAll(ListBuilder? distinctFromAll) => + _$this._distinctFromAll = distinctFromAll; + + ListBuilder? _distinctFromAny; + ListBuilder get distinctFromAny => + _$this._distinctFromAny ??= new ListBuilder(); + set distinctFromAny(ListBuilder? distinctFromAny) => + _$this._distinctFromAny = distinctFromAny; + + GLongStringBuilder? _equalTo; + GLongStringBuilder get equalTo => + _$this._equalTo ??= new GLongStringBuilder(); + set equalTo(GLongStringBuilder? equalTo) => _$this._equalTo = equalTo; + + GLongStringBuilder? _greaterThan; + GLongStringBuilder get greaterThan => + _$this._greaterThan ??= new GLongStringBuilder(); + set greaterThan(GLongStringBuilder? greaterThan) => + _$this._greaterThan = greaterThan; + + GLongStringBuilder? _greaterThanOrEqualTo; + GLongStringBuilder get greaterThanOrEqualTo => + _$this._greaterThanOrEqualTo ??= new GLongStringBuilder(); + set greaterThanOrEqualTo(GLongStringBuilder? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => + _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + GLongStringBuilder? _lessThan; + GLongStringBuilder get lessThan => + _$this._lessThan ??= new GLongStringBuilder(); + set lessThan(GLongStringBuilder? lessThan) => _$this._lessThan = lessThan; + + GLongStringBuilder? _lessThanOrEqualTo; + GLongStringBuilder get lessThanOrEqualTo => + _$this._lessThanOrEqualTo ??= new GLongStringBuilder(); + set lessThanOrEqualTo(GLongStringBuilder? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + GLongStringBuilder? _notDistinctFrom; + GLongStringBuilder get notDistinctFrom => + _$this._notDistinctFrom ??= new GLongStringBuilder(); + set notDistinctFrom(GLongStringBuilder? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + GLongStringBuilder? _notEqualTo; + GLongStringBuilder get notEqualTo => + _$this._notEqualTo ??= new GLongStringBuilder(); + set notEqualTo(GLongStringBuilder? notEqualTo) => + _$this._notEqualTo = notEqualTo; + + ListBuilder? _notEqualToAll; + ListBuilder get notEqualToAll => + _$this._notEqualToAll ??= new ListBuilder(); + set notEqualToAll(ListBuilder? notEqualToAll) => + _$this._notEqualToAll = notEqualToAll; + + ListBuilder? _notEqualToAny; + ListBuilder get notEqualToAny => + _$this._notEqualToAny ??= new ListBuilder(); + set notEqualToAny(ListBuilder? notEqualToAny) => + _$this._notEqualToAny = notEqualToAny; + + ListBuilder? _notIn; + ListBuilder get notIn => + _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GLongFilterInputBuilder(); + + GLongFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom?.toBuilder(); + _distinctFromAll = $v.distinctFromAll?.toBuilder(); + _distinctFromAny = $v.distinctFromAny?.toBuilder(); + _equalTo = $v.equalTo?.toBuilder(); + _greaterThan = $v.greaterThan?.toBuilder(); + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo?.toBuilder(); + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan?.toBuilder(); + _lessThanOrEqualTo = $v.lessThanOrEqualTo?.toBuilder(); + _notDistinctFrom = $v.notDistinctFrom?.toBuilder(); + _notEqualTo = $v.notEqualTo?.toBuilder(); + _notEqualToAll = $v.notEqualToAll?.toBuilder(); + _notEqualToAny = $v.notEqualToAny?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GLongFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLongFilterInput; + } + + @override + void update(void Function(GLongFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLongFilterInput build() => _build(); + + _$GLongFilterInput _build() { + _$GLongFilterInput _$result; + try { + _$result = _$v ?? + new _$GLongFilterInput._( + distinctFrom: _distinctFrom?.build(), + distinctFromAll: _distinctFromAll?.build(), + distinctFromAny: _distinctFromAny?.build(), + equalTo: _equalTo?.build(), + greaterThan: _greaterThan?.build(), + greaterThanOrEqualTo: _greaterThanOrEqualTo?.build(), + Gin: _Gin?.build(), + isNull: isNull, + lessThan: _lessThan?.build(), + lessThanOrEqualTo: _lessThanOrEqualTo?.build(), + notDistinctFrom: _notDistinctFrom?.build(), + notEqualTo: _notEqualTo?.build(), + notEqualToAll: _notEqualToAll?.build(), + notEqualToAny: _notEqualToAny?.build(), + notIn: _notIn?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFrom'; + _distinctFrom?.build(); + _$failedField = 'distinctFromAll'; + _distinctFromAll?.build(); + _$failedField = 'distinctFromAny'; + _distinctFromAny?.build(); + _$failedField = 'equalTo'; + _equalTo?.build(); + _$failedField = 'greaterThan'; + _greaterThan?.build(); + _$failedField = 'greaterThanOrEqualTo'; + _greaterThanOrEqualTo?.build(); + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'lessThan'; + _lessThan?.build(); + _$failedField = 'lessThanOrEqualTo'; + _lessThanOrEqualTo?.build(); + _$failedField = 'notDistinctFrom'; + _notDistinctFrom?.build(); + _$failedField = 'notEqualTo'; + _notEqualTo?.build(); + _$failedField = 'notEqualToAll'; + _notEqualToAll?.build(); + _$failedField = 'notEqualToAny'; + _notEqualToAny?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GLongFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GLongString extends GLongString { + @override + final String value; + + factory _$GLongString([void Function(GLongStringBuilder)? updates]) => + (new GLongStringBuilder()..update(updates))._build(); + + _$GLongString._({required this.value}) : super._() { + BuiltValueNullFieldError.checkNotNull(value, r'GLongString', 'value'); + } + + @override + GLongString rebuild(void Function(GLongStringBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GLongStringBuilder toBuilder() => new GLongStringBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GLongString && value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GLongString')..add('value', value)) + .toString(); + } +} + +class GLongStringBuilder implements Builder { + _$GLongString? _$v; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GLongStringBuilder(); + + GLongStringBuilder get _$this { + final $v = _$v; + if ($v != null) { + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GLongString other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GLongString; + } + + @override + void update(void Function(GLongStringBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GLongString build() => _build(); + + _$GLongString _build() { + final _$result = _$v ?? + new _$GLongString._( + value: BuiltValueNullFieldError.checkNotNull( + value, r'GLongString', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaConditionInput extends GMangaConditionInput { + @override + final String? artist; + @override + final String? author; + @override + final BuiltList? categoryIds; + @override + final GLongString? chaptersLastFetchedAt; + @override + final String? description; + @override + final BuiltList? genre; + @override + final int? id; + @override + final bool? inLibrary; + @override + final GLongString? inLibraryAt; + @override + final bool? initialized; + @override + final GLongString? lastFetchedAt; + @override + final String? realUrl; + @override + final GLongString? sourceId; + @override + final GMangaStatus? status; + @override + final String? thumbnailUrl; + @override + final String? title; + @override + final String? url; + + factory _$GMangaConditionInput( + [void Function(GMangaConditionInputBuilder)? updates]) => + (new GMangaConditionInputBuilder()..update(updates))._build(); + + _$GMangaConditionInput._( + {this.artist, + this.author, + this.categoryIds, + this.chaptersLastFetchedAt, + this.description, + this.genre, + this.id, + this.inLibrary, + this.inLibraryAt, + this.initialized, + this.lastFetchedAt, + this.realUrl, + this.sourceId, + this.status, + this.thumbnailUrl, + this.title, + this.url}) + : super._(); + + @override + GMangaConditionInput rebuild( + void Function(GMangaConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaConditionInputBuilder toBuilder() => + new GMangaConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaConditionInput && + artist == other.artist && + author == other.author && + categoryIds == other.categoryIds && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + realUrl == other.realUrl && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + title == other.title && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, categoryIds.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaConditionInput') + ..add('artist', artist) + ..add('author', author) + ..add('categoryIds', categoryIds) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('realUrl', realUrl) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('title', title) + ..add('url', url)) + .toString(); + } +} + +class GMangaConditionInputBuilder + implements Builder { + _$GMangaConditionInput? _$v; + + String? _artist; + String? get artist => _$this._artist; + set artist(String? artist) => _$this._artist = artist; + + String? _author; + String? get author => _$this._author; + set author(String? author) => _$this._author = author; + + ListBuilder? _categoryIds; + ListBuilder get categoryIds => + _$this._categoryIds ??= new ListBuilder(); + set categoryIds(ListBuilder? categoryIds) => + _$this._categoryIds = categoryIds; + + GLongStringBuilder? _chaptersLastFetchedAt; + GLongStringBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new GLongStringBuilder(); + set chaptersLastFetchedAt(GLongStringBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + String? _description; + String? get description => _$this._description; + set description(String? description) => _$this._description = description; + + ListBuilder? _genre; + ListBuilder get genre => _$this._genre ??= new ListBuilder(); + set genre(ListBuilder? genre) => _$this._genre = genre; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + GLongStringBuilder? _inLibraryAt; + GLongStringBuilder get inLibraryAt => + _$this._inLibraryAt ??= new GLongStringBuilder(); + set inLibraryAt(GLongStringBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + bool? _initialized; + bool? get initialized => _$this._initialized; + set initialized(bool? initialized) => _$this._initialized = initialized; + + GLongStringBuilder? _lastFetchedAt; + GLongStringBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new GLongStringBuilder(); + set lastFetchedAt(GLongStringBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + String? _realUrl; + String? get realUrl => _$this._realUrl; + set realUrl(String? realUrl) => _$this._realUrl = realUrl; + + GLongStringBuilder? _sourceId; + GLongStringBuilder get sourceId => + _$this._sourceId ??= new GLongStringBuilder(); + set sourceId(GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + GMangaStatus? _status; + GMangaStatus? get status => _$this._status; + set status(GMangaStatus? status) => _$this._status = status; + + String? _thumbnailUrl; + String? get thumbnailUrl => _$this._thumbnailUrl; + set thumbnailUrl(String? thumbnailUrl) => _$this._thumbnailUrl = thumbnailUrl; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + GMangaConditionInputBuilder(); + + GMangaConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _artist = $v.artist; + _author = $v.author; + _categoryIds = $v.categoryIds?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description; + _genre = $v.genre?.toBuilder(); + _id = $v.id; + _inLibrary = $v.inLibrary; + _inLibraryAt = $v.inLibraryAt?.toBuilder(); + _initialized = $v.initialized; + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _realUrl = $v.realUrl; + _sourceId = $v.sourceId?.toBuilder(); + _status = $v.status; + _thumbnailUrl = $v.thumbnailUrl; + _title = $v.title; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(GMangaConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaConditionInput; + } + + @override + void update(void Function(GMangaConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaConditionInput build() => _build(); + + _$GMangaConditionInput _build() { + _$GMangaConditionInput _$result; + try { + _$result = _$v ?? + new _$GMangaConditionInput._( + artist: artist, + author: author, + categoryIds: _categoryIds?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: description, + genre: _genre?.build(), + id: id, + inLibrary: inLibrary, + inLibraryAt: _inLibraryAt?.build(), + initialized: initialized, + lastFetchedAt: _lastFetchedAt?.build(), + realUrl: realUrl, + sourceId: _sourceId?.build(), + status: status, + thumbnailUrl: thumbnailUrl, + title: title, + url: url, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'categoryIds'; + _categoryIds?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + + _$failedField = 'genre'; + _genre?.build(); + + _$failedField = 'inLibraryAt'; + _inLibraryAt?.build(); + + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + + _$failedField = 'sourceId'; + _sourceId?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaFilterInput extends GMangaFilterInput { + @override + final BuiltList? and; + @override + final GStringFilterInput? artist; + @override + final GStringFilterInput? author; + @override + final GIntFilterInput? categoryId; + @override + final GLongFilterInput? chaptersLastFetchedAt; + @override + final GStringFilterInput? description; + @override + final GStringFilterInput? genre; + @override + final GIntFilterInput? id; + @override + final GBooleanFilterInput? inLibrary; + @override + final GLongFilterInput? inLibraryAt; + @override + final GBooleanFilterInput? initialized; + @override + final GLongFilterInput? lastFetchedAt; + @override + final GMangaFilterInput? not; + @override + final BuiltList? or; + @override + final GStringFilterInput? realUrl; + @override + final GLongFilterInput? sourceId; + @override + final GMangaStatusFilterInput? status; + @override + final GStringFilterInput? thumbnailUrl; + @override + final GStringFilterInput? title; + @override + final GStringFilterInput? url; + + factory _$GMangaFilterInput( + [void Function(GMangaFilterInputBuilder)? updates]) => + (new GMangaFilterInputBuilder()..update(updates))._build(); + + _$GMangaFilterInput._( + {this.and, + this.artist, + this.author, + this.categoryId, + this.chaptersLastFetchedAt, + this.description, + this.genre, + this.id, + this.inLibrary, + this.inLibraryAt, + this.initialized, + this.lastFetchedAt, + this.not, + this.or, + this.realUrl, + this.sourceId, + this.status, + this.thumbnailUrl, + this.title, + this.url}) + : super._(); + + @override + GMangaFilterInput rebuild(void Function(GMangaFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaFilterInputBuilder toBuilder() => + new GMangaFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaFilterInput && + and == other.and && + artist == other.artist && + author == other.author && + categoryId == other.categoryId && + chaptersLastFetchedAt == other.chaptersLastFetchedAt && + description == other.description && + genre == other.genre && + id == other.id && + inLibrary == other.inLibrary && + inLibraryAt == other.inLibraryAt && + initialized == other.initialized && + lastFetchedAt == other.lastFetchedAt && + not == other.not && + or == other.or && + realUrl == other.realUrl && + sourceId == other.sourceId && + status == other.status && + thumbnailUrl == other.thumbnailUrl && + title == other.title && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, artist.hashCode); + _$hash = $jc(_$hash, author.hashCode); + _$hash = $jc(_$hash, categoryId.hashCode); + _$hash = $jc(_$hash, chaptersLastFetchedAt.hashCode); + _$hash = $jc(_$hash, description.hashCode); + _$hash = $jc(_$hash, genre.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jc(_$hash, inLibraryAt.hashCode); + _$hash = $jc(_$hash, initialized.hashCode); + _$hash = $jc(_$hash, lastFetchedAt.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, realUrl.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, thumbnailUrl.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaFilterInput') + ..add('and', and) + ..add('artist', artist) + ..add('author', author) + ..add('categoryId', categoryId) + ..add('chaptersLastFetchedAt', chaptersLastFetchedAt) + ..add('description', description) + ..add('genre', genre) + ..add('id', id) + ..add('inLibrary', inLibrary) + ..add('inLibraryAt', inLibraryAt) + ..add('initialized', initialized) + ..add('lastFetchedAt', lastFetchedAt) + ..add('not', not) + ..add('or', or) + ..add('realUrl', realUrl) + ..add('sourceId', sourceId) + ..add('status', status) + ..add('thumbnailUrl', thumbnailUrl) + ..add('title', title) + ..add('url', url)) + .toString(); + } +} + +class GMangaFilterInputBuilder + implements Builder { + _$GMangaFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GStringFilterInputBuilder? _artist; + GStringFilterInputBuilder get artist => + _$this._artist ??= new GStringFilterInputBuilder(); + set artist(GStringFilterInputBuilder? artist) => _$this._artist = artist; + + GStringFilterInputBuilder? _author; + GStringFilterInputBuilder get author => + _$this._author ??= new GStringFilterInputBuilder(); + set author(GStringFilterInputBuilder? author) => _$this._author = author; + + GIntFilterInputBuilder? _categoryId; + GIntFilterInputBuilder get categoryId => + _$this._categoryId ??= new GIntFilterInputBuilder(); + set categoryId(GIntFilterInputBuilder? categoryId) => + _$this._categoryId = categoryId; + + GLongFilterInputBuilder? _chaptersLastFetchedAt; + GLongFilterInputBuilder get chaptersLastFetchedAt => + _$this._chaptersLastFetchedAt ??= new GLongFilterInputBuilder(); + set chaptersLastFetchedAt(GLongFilterInputBuilder? chaptersLastFetchedAt) => + _$this._chaptersLastFetchedAt = chaptersLastFetchedAt; + + GStringFilterInputBuilder? _description; + GStringFilterInputBuilder get description => + _$this._description ??= new GStringFilterInputBuilder(); + set description(GStringFilterInputBuilder? description) => + _$this._description = description; + + GStringFilterInputBuilder? _genre; + GStringFilterInputBuilder get genre => + _$this._genre ??= new GStringFilterInputBuilder(); + set genre(GStringFilterInputBuilder? genre) => _$this._genre = genre; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GBooleanFilterInputBuilder? _inLibrary; + GBooleanFilterInputBuilder get inLibrary => + _$this._inLibrary ??= new GBooleanFilterInputBuilder(); + set inLibrary(GBooleanFilterInputBuilder? inLibrary) => + _$this._inLibrary = inLibrary; + + GLongFilterInputBuilder? _inLibraryAt; + GLongFilterInputBuilder get inLibraryAt => + _$this._inLibraryAt ??= new GLongFilterInputBuilder(); + set inLibraryAt(GLongFilterInputBuilder? inLibraryAt) => + _$this._inLibraryAt = inLibraryAt; + + GBooleanFilterInputBuilder? _initialized; + GBooleanFilterInputBuilder get initialized => + _$this._initialized ??= new GBooleanFilterInputBuilder(); + set initialized(GBooleanFilterInputBuilder? initialized) => + _$this._initialized = initialized; + + GLongFilterInputBuilder? _lastFetchedAt; + GLongFilterInputBuilder get lastFetchedAt => + _$this._lastFetchedAt ??= new GLongFilterInputBuilder(); + set lastFetchedAt(GLongFilterInputBuilder? lastFetchedAt) => + _$this._lastFetchedAt = lastFetchedAt; + + GMangaFilterInputBuilder? _not; + GMangaFilterInputBuilder get not => + _$this._not ??= new GMangaFilterInputBuilder(); + set not(GMangaFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GStringFilterInputBuilder? _realUrl; + GStringFilterInputBuilder get realUrl => + _$this._realUrl ??= new GStringFilterInputBuilder(); + set realUrl(GStringFilterInputBuilder? realUrl) => _$this._realUrl = realUrl; + + GLongFilterInputBuilder? _sourceId; + GLongFilterInputBuilder get sourceId => + _$this._sourceId ??= new GLongFilterInputBuilder(); + set sourceId(GLongFilterInputBuilder? sourceId) => + _$this._sourceId = sourceId; + + GMangaStatusFilterInputBuilder? _status; + GMangaStatusFilterInputBuilder get status => + _$this._status ??= new GMangaStatusFilterInputBuilder(); + set status(GMangaStatusFilterInputBuilder? status) => _$this._status = status; + + GStringFilterInputBuilder? _thumbnailUrl; + GStringFilterInputBuilder get thumbnailUrl => + _$this._thumbnailUrl ??= new GStringFilterInputBuilder(); + set thumbnailUrl(GStringFilterInputBuilder? thumbnailUrl) => + _$this._thumbnailUrl = thumbnailUrl; + + GStringFilterInputBuilder? _title; + GStringFilterInputBuilder get title => + _$this._title ??= new GStringFilterInputBuilder(); + set title(GStringFilterInputBuilder? title) => _$this._title = title; + + GStringFilterInputBuilder? _url; + GStringFilterInputBuilder get url => + _$this._url ??= new GStringFilterInputBuilder(); + set url(GStringFilterInputBuilder? url) => _$this._url = url; + + GMangaFilterInputBuilder(); + + GMangaFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _artist = $v.artist?.toBuilder(); + _author = $v.author?.toBuilder(); + _categoryId = $v.categoryId?.toBuilder(); + _chaptersLastFetchedAt = $v.chaptersLastFetchedAt?.toBuilder(); + _description = $v.description?.toBuilder(); + _genre = $v.genre?.toBuilder(); + _id = $v.id?.toBuilder(); + _inLibrary = $v.inLibrary?.toBuilder(); + _inLibraryAt = $v.inLibraryAt?.toBuilder(); + _initialized = $v.initialized?.toBuilder(); + _lastFetchedAt = $v.lastFetchedAt?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _realUrl = $v.realUrl?.toBuilder(); + _sourceId = $v.sourceId?.toBuilder(); + _status = $v.status?.toBuilder(); + _thumbnailUrl = $v.thumbnailUrl?.toBuilder(); + _title = $v.title?.toBuilder(); + _url = $v.url?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaFilterInput; + } + + @override + void update(void Function(GMangaFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaFilterInput build() => _build(); + + _$GMangaFilterInput _build() { + _$GMangaFilterInput _$result; + try { + _$result = _$v ?? + new _$GMangaFilterInput._( + and: _and?.build(), + artist: _artist?.build(), + author: _author?.build(), + categoryId: _categoryId?.build(), + chaptersLastFetchedAt: _chaptersLastFetchedAt?.build(), + description: _description?.build(), + genre: _genre?.build(), + id: _id?.build(), + inLibrary: _inLibrary?.build(), + inLibraryAt: _inLibraryAt?.build(), + initialized: _initialized?.build(), + lastFetchedAt: _lastFetchedAt?.build(), + not: _not?.build(), + or: _or?.build(), + realUrl: _realUrl?.build(), + sourceId: _sourceId?.build(), + status: _status?.build(), + thumbnailUrl: _thumbnailUrl?.build(), + title: _title?.build(), + url: _url?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'artist'; + _artist?.build(); + _$failedField = 'author'; + _author?.build(); + _$failedField = 'categoryId'; + _categoryId?.build(); + _$failedField = 'chaptersLastFetchedAt'; + _chaptersLastFetchedAt?.build(); + _$failedField = 'description'; + _description?.build(); + _$failedField = 'genre'; + _genre?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'inLibrary'; + _inLibrary?.build(); + _$failedField = 'inLibraryAt'; + _inLibraryAt?.build(); + _$failedField = 'initialized'; + _initialized?.build(); + _$failedField = 'lastFetchedAt'; + _lastFetchedAt?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'realUrl'; + _realUrl?.build(); + _$failedField = 'sourceId'; + _sourceId?.build(); + _$failedField = 'status'; + _status?.build(); + _$failedField = 'thumbnailUrl'; + _thumbnailUrl?.build(); + _$failedField = 'title'; + _title?.build(); + _$failedField = 'url'; + _url?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMangaMetaTypeInput extends GMangaMetaTypeInput { + @override + final String key; + @override + final int mangaId; + @override + final String value; + + factory _$GMangaMetaTypeInput( + [void Function(GMangaMetaTypeInputBuilder)? updates]) => + (new GMangaMetaTypeInputBuilder()..update(updates))._build(); + + _$GMangaMetaTypeInput._( + {required this.key, required this.mangaId, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GMangaMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaMetaTypeInput', 'mangaId'); + BuiltValueNullFieldError.checkNotNull( + value, r'GMangaMetaTypeInput', 'value'); + } + + @override + GMangaMetaTypeInput rebuild( + void Function(GMangaMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaMetaTypeInputBuilder toBuilder() => + new GMangaMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaMetaTypeInput && + key == other.key && + mangaId == other.mangaId && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaMetaTypeInput') + ..add('key', key) + ..add('mangaId', mangaId) + ..add('value', value)) + .toString(); + } +} + +class GMangaMetaTypeInputBuilder + implements Builder { + _$GMangaMetaTypeInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMangaMetaTypeInputBuilder(); + + GMangaMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _mangaId = $v.mangaId; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMangaMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaMetaTypeInput; + } + + @override + void update(void Function(GMangaMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaMetaTypeInput build() => _build(); + + _$GMangaMetaTypeInput _build() { + final _$result = _$v ?? + new _$GMangaMetaTypeInput._( + key: BuiltValueNullFieldError.checkNotNull( + key, r'GMangaMetaTypeInput', 'key'), + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GMangaMetaTypeInput', 'mangaId'), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GMangaMetaTypeInput', 'value'), + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaOrderInput extends GMangaOrderInput { + @override + final GMangaOrderBy by; + @override + final GSortOrder? byType; + + factory _$GMangaOrderInput( + [void Function(GMangaOrderInputBuilder)? updates]) => + (new GMangaOrderInputBuilder()..update(updates))._build(); + + _$GMangaOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GMangaOrderInput', 'by'); + } + + @override + GMangaOrderInput rebuild(void Function(GMangaOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaOrderInputBuilder toBuilder() => + new GMangaOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaOrderInput && + by == other.by && + byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GMangaOrderInputBuilder + implements Builder { + _$GMangaOrderInput? _$v; + + GMangaOrderBy? _by; + GMangaOrderBy? get by => _$this._by; + set by(GMangaOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GMangaOrderInputBuilder(); + + GMangaOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GMangaOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaOrderInput; + } + + @override + void update(void Function(GMangaOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaOrderInput build() => _build(); + + _$GMangaOrderInput _build() { + final _$result = _$v ?? + new _$GMangaOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GMangaOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GMangaStatusFilterInput extends GMangaStatusFilterInput { + @override + final GMangaStatus? distinctFrom; + @override + final BuiltList? distinctFromAll; + @override + final BuiltList? distinctFromAny; + @override + final GMangaStatus? equalTo; + @override + final GMangaStatus? greaterThan; + @override + final GMangaStatus? greaterThanOrEqualTo; + @override + final BuiltList? Gin; + @override + final bool? isNull; + @override + final GMangaStatus? lessThan; + @override + final GMangaStatus? lessThanOrEqualTo; + @override + final GMangaStatus? notDistinctFrom; + @override + final GMangaStatus? notEqualTo; + @override + final BuiltList? notEqualToAll; + @override + final BuiltList? notEqualToAny; + @override + final BuiltList? notIn; + + factory _$GMangaStatusFilterInput( + [void Function(GMangaStatusFilterInputBuilder)? updates]) => + (new GMangaStatusFilterInputBuilder()..update(updates))._build(); + + _$GMangaStatusFilterInput._( + {this.distinctFrom, + this.distinctFromAll, + this.distinctFromAny, + this.equalTo, + this.greaterThan, + this.greaterThanOrEqualTo, + this.Gin, + this.isNull, + this.lessThan, + this.lessThanOrEqualTo, + this.notDistinctFrom, + this.notEqualTo, + this.notEqualToAll, + this.notEqualToAny, + this.notIn}) + : super._(); + + @override + GMangaStatusFilterInput rebuild( + void Function(GMangaStatusFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMangaStatusFilterInputBuilder toBuilder() => + new GMangaStatusFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMangaStatusFilterInput && + distinctFrom == other.distinctFrom && + distinctFromAll == other.distinctFromAll && + distinctFromAny == other.distinctFromAny && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + Gin == other.Gin && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanOrEqualTo == other.lessThanOrEqualTo && + notDistinctFrom == other.notDistinctFrom && + notEqualTo == other.notEqualTo && + notEqualToAll == other.notEqualToAll && + notEqualToAny == other.notEqualToAny && + notIn == other.notIn; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromAll.hashCode); + _$hash = $jc(_$hash, distinctFromAny.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notEqualToAll.hashCode); + _$hash = $jc(_$hash, notEqualToAny.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMangaStatusFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromAll', distinctFromAll) + ..add('distinctFromAny', distinctFromAny) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('Gin', Gin) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notEqualTo', notEqualTo) + ..add('notEqualToAll', notEqualToAll) + ..add('notEqualToAny', notEqualToAny) + ..add('notIn', notIn)) + .toString(); + } +} + +class GMangaStatusFilterInputBuilder + implements + Builder { + _$GMangaStatusFilterInput? _$v; + + GMangaStatus? _distinctFrom; + GMangaStatus? get distinctFrom => _$this._distinctFrom; + set distinctFrom(GMangaStatus? distinctFrom) => + _$this._distinctFrom = distinctFrom; + + ListBuilder? _distinctFromAll; + ListBuilder get distinctFromAll => + _$this._distinctFromAll ??= new ListBuilder(); + set distinctFromAll(ListBuilder? distinctFromAll) => + _$this._distinctFromAll = distinctFromAll; + + ListBuilder? _distinctFromAny; + ListBuilder get distinctFromAny => + _$this._distinctFromAny ??= new ListBuilder(); + set distinctFromAny(ListBuilder? distinctFromAny) => + _$this._distinctFromAny = distinctFromAny; + + GMangaStatus? _equalTo; + GMangaStatus? get equalTo => _$this._equalTo; + set equalTo(GMangaStatus? equalTo) => _$this._equalTo = equalTo; + + GMangaStatus? _greaterThan; + GMangaStatus? get greaterThan => _$this._greaterThan; + set greaterThan(GMangaStatus? greaterThan) => + _$this._greaterThan = greaterThan; + + GMangaStatus? _greaterThanOrEqualTo; + GMangaStatus? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(GMangaStatus? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + ListBuilder? _Gin; + ListBuilder get Gin => + _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + GMangaStatus? _lessThan; + GMangaStatus? get lessThan => _$this._lessThan; + set lessThan(GMangaStatus? lessThan) => _$this._lessThan = lessThan; + + GMangaStatus? _lessThanOrEqualTo; + GMangaStatus? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(GMangaStatus? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + GMangaStatus? _notDistinctFrom; + GMangaStatus? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(GMangaStatus? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + GMangaStatus? _notEqualTo; + GMangaStatus? get notEqualTo => _$this._notEqualTo; + set notEqualTo(GMangaStatus? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notEqualToAll; + ListBuilder get notEqualToAll => + _$this._notEqualToAll ??= new ListBuilder(); + set notEqualToAll(ListBuilder? notEqualToAll) => + _$this._notEqualToAll = notEqualToAll; + + ListBuilder? _notEqualToAny; + ListBuilder get notEqualToAny => + _$this._notEqualToAny ??= new ListBuilder(); + set notEqualToAny(ListBuilder? notEqualToAny) => + _$this._notEqualToAny = notEqualToAny; + + ListBuilder? _notIn; + ListBuilder get notIn => + _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + GMangaStatusFilterInputBuilder(); + + GMangaStatusFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _distinctFromAll = $v.distinctFromAll?.toBuilder(); + _distinctFromAny = $v.distinctFromAny?.toBuilder(); + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _Gin = $v.Gin?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _notDistinctFrom = $v.notDistinctFrom; + _notEqualTo = $v.notEqualTo; + _notEqualToAll = $v.notEqualToAll?.toBuilder(); + _notEqualToAny = $v.notEqualToAny?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMangaStatusFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMangaStatusFilterInput; + } + + @override + void update(void Function(GMangaStatusFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMangaStatusFilterInput build() => _build(); + + _$GMangaStatusFilterInput _build() { + _$GMangaStatusFilterInput _$result; + try { + _$result = _$v ?? + new _$GMangaStatusFilterInput._( + distinctFrom: distinctFrom, + distinctFromAll: _distinctFromAll?.build(), + distinctFromAny: _distinctFromAny?.build(), + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanOrEqualTo: greaterThanOrEqualTo, + Gin: _Gin?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanOrEqualTo: lessThanOrEqualTo, + notDistinctFrom: notDistinctFrom, + notEqualTo: notEqualTo, + notEqualToAll: _notEqualToAll?.build(), + notEqualToAny: _notEqualToAny?.build(), + notIn: _notIn?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFromAll'; + _distinctFromAll?.build(); + _$failedField = 'distinctFromAny'; + _distinctFromAny?.build(); + + _$failedField = 'Gin'; + _Gin?.build(); + + _$failedField = 'notEqualToAll'; + _notEqualToAll?.build(); + _$failedField = 'notEqualToAny'; + _notEqualToAny?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMangaStatusFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMetaConditionInput extends GMetaConditionInput { + @override + final String? key; + @override + final String? value; + + factory _$GMetaConditionInput( + [void Function(GMetaConditionInputBuilder)? updates]) => + (new GMetaConditionInputBuilder()..update(updates))._build(); + + _$GMetaConditionInput._({this.key, this.value}) : super._(); + + @override + GMetaConditionInput rebuild( + void Function(GMetaConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMetaConditionInputBuilder toBuilder() => + new GMetaConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMetaConditionInput && + key == other.key && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMetaConditionInput') + ..add('key', key) + ..add('value', value)) + .toString(); + } +} + +class GMetaConditionInputBuilder + implements Builder { + _$GMetaConditionInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GMetaConditionInputBuilder(); + + GMetaConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GMetaConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMetaConditionInput; + } + + @override + void update(void Function(GMetaConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMetaConditionInput build() => _build(); + + _$GMetaConditionInput _build() { + final _$result = _$v ?? + new _$GMetaConditionInput._( + key: key, + value: value, + ); + replace(_$result); + return _$result; + } +} + +class _$GMetaFilterInput extends GMetaFilterInput { + @override + final BuiltList? and; + @override + final GStringFilterInput? key; + @override + final GMetaFilterInput? not; + @override + final BuiltList? or; + @override + final GStringFilterInput? value; + + factory _$GMetaFilterInput( + [void Function(GMetaFilterInputBuilder)? updates]) => + (new GMetaFilterInputBuilder()..update(updates))._build(); + + _$GMetaFilterInput._({this.and, this.key, this.not, this.or, this.value}) + : super._(); + + @override + GMetaFilterInput rebuild(void Function(GMetaFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMetaFilterInputBuilder toBuilder() => + new GMetaFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMetaFilterInput && + and == other.and && + key == other.key && + not == other.not && + or == other.or && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMetaFilterInput') + ..add('and', and) + ..add('key', key) + ..add('not', not) + ..add('or', or) + ..add('value', value)) + .toString(); + } +} + +class GMetaFilterInputBuilder + implements Builder { + _$GMetaFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GStringFilterInputBuilder? _key; + GStringFilterInputBuilder get key => + _$this._key ??= new GStringFilterInputBuilder(); + set key(GStringFilterInputBuilder? key) => _$this._key = key; + + GMetaFilterInputBuilder? _not; + GMetaFilterInputBuilder get not => + _$this._not ??= new GMetaFilterInputBuilder(); + set not(GMetaFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GStringFilterInputBuilder? _value; + GStringFilterInputBuilder get value => + _$this._value ??= new GStringFilterInputBuilder(); + set value(GStringFilterInputBuilder? value) => _$this._value = value; + + GMetaFilterInputBuilder(); + + GMetaFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _key = $v.key?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _value = $v.value?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GMetaFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMetaFilterInput; + } + + @override + void update(void Function(GMetaFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMetaFilterInput build() => _build(); + + _$GMetaFilterInput _build() { + _$GMetaFilterInput _$result; + try { + _$result = _$v ?? + new _$GMetaFilterInput._( + and: _and?.build(), + key: _key?.build(), + not: _not?.build(), + or: _or?.build(), + value: _value?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'key'; + _key?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'value'; + _value?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GMetaFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GMetaOrderInput extends GMetaOrderInput { + @override + final GMetaOrderBy by; + @override + final GSortOrder? byType; + + factory _$GMetaOrderInput([void Function(GMetaOrderInputBuilder)? updates]) => + (new GMetaOrderInputBuilder()..update(updates))._build(); + + _$GMetaOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GMetaOrderInput', 'by'); + } + + @override + GMetaOrderInput rebuild(void Function(GMetaOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GMetaOrderInputBuilder toBuilder() => + new GMetaOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GMetaOrderInput && by == other.by && byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GMetaOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GMetaOrderInputBuilder + implements Builder { + _$GMetaOrderInput? _$v; + + GMetaOrderBy? _by; + GMetaOrderBy? get by => _$this._by; + set by(GMetaOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GMetaOrderInputBuilder(); + + GMetaOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GMetaOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GMetaOrderInput; + } + + @override + void update(void Function(GMetaOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GMetaOrderInput build() => _build(); + + _$GMetaOrderInput _build() { + final _$result = _$v ?? + new _$GMetaOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GMetaOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GPartialSettingsTypeInput extends GPartialSettingsTypeInput { + @override + final bool? autoDownloadIgnoreReUploads; + @override + final bool? autoDownloadNewChapters; + @override + final int? autoDownloadNewChaptersLimit; + @override + final int? backupInterval; + @override + final String? backupPath; + @override + final int? backupTTL; + @override + final String? backupTime; + @override + final bool? basicAuthEnabled; + @override + final String? basicAuthPassword; + @override + final String? basicAuthUsername; + @override + final bool? debugLogsEnabled; + @override + final bool? downloadAsCbz; + @override + final String? downloadsPath; + @override + final String? electronPath; + @override + final bool? excludeCompleted; + @override + final bool? excludeEntryWithUnreadChapters; + @override + final bool? excludeNotStarted; + @override + final bool? excludeUnreadChapters; + @override + final BuiltList? extensionRepos; + @override + final bool? flareSolverrAsResponseFallback; + @override + final bool? flareSolverrEnabled; + @override + final String? flareSolverrSessionName; + @override + final int? flareSolverrSessionTtl; + @override + final int? flareSolverrTimeout; + @override + final String? flareSolverrUrl; + @override + final double? globalUpdateInterval; + @override + final bool? initialOpenInBrowserEnabled; + @override + final String? ip; + @override + final String? localSourcePath; + @override + final String? maxLogFileSize; + @override + final int? maxLogFiles; + @override + final String? maxLogFolderSize; + @override + final int? maxSourcesInParallel; + @override + final int? port; + @override + final bool? socksProxyEnabled; + @override + final String? socksProxyHost; + @override + final String? socksProxyPassword; + @override + final String? socksProxyPort; + @override + final String? socksProxyUsername; + @override + final int? socksProxyVersion; + @override + final bool? systemTrayEnabled; + @override + final bool? updateMangas; + @override + final GWebUIChannel? webUIChannel; + @override + final GWebUIFlavor? webUIFlavor; + @override + final GWebUIInterface? webUIInterface; + @override + final double? webUIUpdateCheckInterval; + + factory _$GPartialSettingsTypeInput( + [void Function(GPartialSettingsTypeInputBuilder)? updates]) => + (new GPartialSettingsTypeInputBuilder()..update(updates))._build(); + + _$GPartialSettingsTypeInput._( + {this.autoDownloadIgnoreReUploads, + this.autoDownloadNewChapters, + this.autoDownloadNewChaptersLimit, + this.backupInterval, + this.backupPath, + this.backupTTL, + this.backupTime, + this.basicAuthEnabled, + this.basicAuthPassword, + this.basicAuthUsername, + this.debugLogsEnabled, + this.downloadAsCbz, + this.downloadsPath, + this.electronPath, + this.excludeCompleted, + this.excludeEntryWithUnreadChapters, + this.excludeNotStarted, + this.excludeUnreadChapters, + this.extensionRepos, + this.flareSolverrAsResponseFallback, + this.flareSolverrEnabled, + this.flareSolverrSessionName, + this.flareSolverrSessionTtl, + this.flareSolverrTimeout, + this.flareSolverrUrl, + this.globalUpdateInterval, + this.initialOpenInBrowserEnabled, + this.ip, + this.localSourcePath, + this.maxLogFileSize, + this.maxLogFiles, + this.maxLogFolderSize, + this.maxSourcesInParallel, + this.port, + this.socksProxyEnabled, + this.socksProxyHost, + this.socksProxyPassword, + this.socksProxyPort, + this.socksProxyUsername, + this.socksProxyVersion, + this.systemTrayEnabled, + this.updateMangas, + this.webUIChannel, + this.webUIFlavor, + this.webUIInterface, + this.webUIUpdateCheckInterval}) + : super._(); + + @override + GPartialSettingsTypeInput rebuild( + void Function(GPartialSettingsTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GPartialSettingsTypeInputBuilder toBuilder() => + new GPartialSettingsTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GPartialSettingsTypeInput && + autoDownloadIgnoreReUploads == other.autoDownloadIgnoreReUploads && + autoDownloadNewChapters == other.autoDownloadNewChapters && + autoDownloadNewChaptersLimit == other.autoDownloadNewChaptersLimit && + backupInterval == other.backupInterval && + backupPath == other.backupPath && + backupTTL == other.backupTTL && + backupTime == other.backupTime && + basicAuthEnabled == other.basicAuthEnabled && + basicAuthPassword == other.basicAuthPassword && + basicAuthUsername == other.basicAuthUsername && + debugLogsEnabled == other.debugLogsEnabled && + downloadAsCbz == other.downloadAsCbz && + downloadsPath == other.downloadsPath && + electronPath == other.electronPath && + excludeCompleted == other.excludeCompleted && + excludeEntryWithUnreadChapters == + other.excludeEntryWithUnreadChapters && + excludeNotStarted == other.excludeNotStarted && + excludeUnreadChapters == other.excludeUnreadChapters && + extensionRepos == other.extensionRepos && + flareSolverrAsResponseFallback == + other.flareSolverrAsResponseFallback && + flareSolverrEnabled == other.flareSolverrEnabled && + flareSolverrSessionName == other.flareSolverrSessionName && + flareSolverrSessionTtl == other.flareSolverrSessionTtl && + flareSolverrTimeout == other.flareSolverrTimeout && + flareSolverrUrl == other.flareSolverrUrl && + globalUpdateInterval == other.globalUpdateInterval && + initialOpenInBrowserEnabled == other.initialOpenInBrowserEnabled && + ip == other.ip && + localSourcePath == other.localSourcePath && + maxLogFileSize == other.maxLogFileSize && + maxLogFiles == other.maxLogFiles && + maxLogFolderSize == other.maxLogFolderSize && + maxSourcesInParallel == other.maxSourcesInParallel && + port == other.port && + socksProxyEnabled == other.socksProxyEnabled && + socksProxyHost == other.socksProxyHost && + socksProxyPassword == other.socksProxyPassword && + socksProxyPort == other.socksProxyPort && + socksProxyUsername == other.socksProxyUsername && + socksProxyVersion == other.socksProxyVersion && + systemTrayEnabled == other.systemTrayEnabled && + updateMangas == other.updateMangas && + webUIChannel == other.webUIChannel && + webUIFlavor == other.webUIFlavor && + webUIInterface == other.webUIInterface && + webUIUpdateCheckInterval == other.webUIUpdateCheckInterval; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, autoDownloadIgnoreReUploads.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChapters.hashCode); + _$hash = $jc(_$hash, autoDownloadNewChaptersLimit.hashCode); + _$hash = $jc(_$hash, backupInterval.hashCode); + _$hash = $jc(_$hash, backupPath.hashCode); + _$hash = $jc(_$hash, backupTTL.hashCode); + _$hash = $jc(_$hash, backupTime.hashCode); + _$hash = $jc(_$hash, basicAuthEnabled.hashCode); + _$hash = $jc(_$hash, basicAuthPassword.hashCode); + _$hash = $jc(_$hash, basicAuthUsername.hashCode); + _$hash = $jc(_$hash, debugLogsEnabled.hashCode); + _$hash = $jc(_$hash, downloadAsCbz.hashCode); + _$hash = $jc(_$hash, downloadsPath.hashCode); + _$hash = $jc(_$hash, electronPath.hashCode); + _$hash = $jc(_$hash, excludeCompleted.hashCode); + _$hash = $jc(_$hash, excludeEntryWithUnreadChapters.hashCode); + _$hash = $jc(_$hash, excludeNotStarted.hashCode); + _$hash = $jc(_$hash, excludeUnreadChapters.hashCode); + _$hash = $jc(_$hash, extensionRepos.hashCode); + _$hash = $jc(_$hash, flareSolverrAsResponseFallback.hashCode); + _$hash = $jc(_$hash, flareSolverrEnabled.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionName.hashCode); + _$hash = $jc(_$hash, flareSolverrSessionTtl.hashCode); + _$hash = $jc(_$hash, flareSolverrTimeout.hashCode); + _$hash = $jc(_$hash, flareSolverrUrl.hashCode); + _$hash = $jc(_$hash, globalUpdateInterval.hashCode); + _$hash = $jc(_$hash, initialOpenInBrowserEnabled.hashCode); + _$hash = $jc(_$hash, ip.hashCode); + _$hash = $jc(_$hash, localSourcePath.hashCode); + _$hash = $jc(_$hash, maxLogFileSize.hashCode); + _$hash = $jc(_$hash, maxLogFiles.hashCode); + _$hash = $jc(_$hash, maxLogFolderSize.hashCode); + _$hash = $jc(_$hash, maxSourcesInParallel.hashCode); + _$hash = $jc(_$hash, port.hashCode); + _$hash = $jc(_$hash, socksProxyEnabled.hashCode); + _$hash = $jc(_$hash, socksProxyHost.hashCode); + _$hash = $jc(_$hash, socksProxyPassword.hashCode); + _$hash = $jc(_$hash, socksProxyPort.hashCode); + _$hash = $jc(_$hash, socksProxyUsername.hashCode); + _$hash = $jc(_$hash, socksProxyVersion.hashCode); + _$hash = $jc(_$hash, systemTrayEnabled.hashCode); + _$hash = $jc(_$hash, updateMangas.hashCode); + _$hash = $jc(_$hash, webUIChannel.hashCode); + _$hash = $jc(_$hash, webUIFlavor.hashCode); + _$hash = $jc(_$hash, webUIInterface.hashCode); + _$hash = $jc(_$hash, webUIUpdateCheckInterval.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GPartialSettingsTypeInput') + ..add('autoDownloadIgnoreReUploads', autoDownloadIgnoreReUploads) + ..add('autoDownloadNewChapters', autoDownloadNewChapters) + ..add('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) + ..add('backupInterval', backupInterval) + ..add('backupPath', backupPath) + ..add('backupTTL', backupTTL) + ..add('backupTime', backupTime) + ..add('basicAuthEnabled', basicAuthEnabled) + ..add('basicAuthPassword', basicAuthPassword) + ..add('basicAuthUsername', basicAuthUsername) + ..add('debugLogsEnabled', debugLogsEnabled) + ..add('downloadAsCbz', downloadAsCbz) + ..add('downloadsPath', downloadsPath) + ..add('electronPath', electronPath) + ..add('excludeCompleted', excludeCompleted) + ..add( + 'excludeEntryWithUnreadChapters', excludeEntryWithUnreadChapters) + ..add('excludeNotStarted', excludeNotStarted) + ..add('excludeUnreadChapters', excludeUnreadChapters) + ..add('extensionRepos', extensionRepos) + ..add( + 'flareSolverrAsResponseFallback', flareSolverrAsResponseFallback) + ..add('flareSolverrEnabled', flareSolverrEnabled) + ..add('flareSolverrSessionName', flareSolverrSessionName) + ..add('flareSolverrSessionTtl', flareSolverrSessionTtl) + ..add('flareSolverrTimeout', flareSolverrTimeout) + ..add('flareSolverrUrl', flareSolverrUrl) + ..add('globalUpdateInterval', globalUpdateInterval) + ..add('initialOpenInBrowserEnabled', initialOpenInBrowserEnabled) + ..add('ip', ip) + ..add('localSourcePath', localSourcePath) + ..add('maxLogFileSize', maxLogFileSize) + ..add('maxLogFiles', maxLogFiles) + ..add('maxLogFolderSize', maxLogFolderSize) + ..add('maxSourcesInParallel', maxSourcesInParallel) + ..add('port', port) + ..add('socksProxyEnabled', socksProxyEnabled) + ..add('socksProxyHost', socksProxyHost) + ..add('socksProxyPassword', socksProxyPassword) + ..add('socksProxyPort', socksProxyPort) + ..add('socksProxyUsername', socksProxyUsername) + ..add('socksProxyVersion', socksProxyVersion) + ..add('systemTrayEnabled', systemTrayEnabled) + ..add('updateMangas', updateMangas) + ..add('webUIChannel', webUIChannel) + ..add('webUIFlavor', webUIFlavor) + ..add('webUIInterface', webUIInterface) + ..add('webUIUpdateCheckInterval', webUIUpdateCheckInterval)) + .toString(); + } +} + +class GPartialSettingsTypeInputBuilder + implements + Builder { + _$GPartialSettingsTypeInput? _$v; + + bool? _autoDownloadIgnoreReUploads; + bool? get autoDownloadIgnoreReUploads => _$this._autoDownloadIgnoreReUploads; + set autoDownloadIgnoreReUploads(bool? autoDownloadIgnoreReUploads) => + _$this._autoDownloadIgnoreReUploads = autoDownloadIgnoreReUploads; + + bool? _autoDownloadNewChapters; + bool? get autoDownloadNewChapters => _$this._autoDownloadNewChapters; + set autoDownloadNewChapters(bool? autoDownloadNewChapters) => + _$this._autoDownloadNewChapters = autoDownloadNewChapters; + + int? _autoDownloadNewChaptersLimit; + int? get autoDownloadNewChaptersLimit => _$this._autoDownloadNewChaptersLimit; + set autoDownloadNewChaptersLimit(int? autoDownloadNewChaptersLimit) => + _$this._autoDownloadNewChaptersLimit = autoDownloadNewChaptersLimit; + + int? _backupInterval; + int? get backupInterval => _$this._backupInterval; + set backupInterval(int? backupInterval) => + _$this._backupInterval = backupInterval; + + String? _backupPath; + String? get backupPath => _$this._backupPath; + set backupPath(String? backupPath) => _$this._backupPath = backupPath; + + int? _backupTTL; + int? get backupTTL => _$this._backupTTL; + set backupTTL(int? backupTTL) => _$this._backupTTL = backupTTL; + + String? _backupTime; + String? get backupTime => _$this._backupTime; + set backupTime(String? backupTime) => _$this._backupTime = backupTime; + + bool? _basicAuthEnabled; + bool? get basicAuthEnabled => _$this._basicAuthEnabled; + set basicAuthEnabled(bool? basicAuthEnabled) => + _$this._basicAuthEnabled = basicAuthEnabled; + + String? _basicAuthPassword; + String? get basicAuthPassword => _$this._basicAuthPassword; + set basicAuthPassword(String? basicAuthPassword) => + _$this._basicAuthPassword = basicAuthPassword; + + String? _basicAuthUsername; + String? get basicAuthUsername => _$this._basicAuthUsername; + set basicAuthUsername(String? basicAuthUsername) => + _$this._basicAuthUsername = basicAuthUsername; + + bool? _debugLogsEnabled; + bool? get debugLogsEnabled => _$this._debugLogsEnabled; + set debugLogsEnabled(bool? debugLogsEnabled) => + _$this._debugLogsEnabled = debugLogsEnabled; + + bool? _downloadAsCbz; + bool? get downloadAsCbz => _$this._downloadAsCbz; + set downloadAsCbz(bool? downloadAsCbz) => + _$this._downloadAsCbz = downloadAsCbz; + + String? _downloadsPath; + String? get downloadsPath => _$this._downloadsPath; + set downloadsPath(String? downloadsPath) => + _$this._downloadsPath = downloadsPath; + + String? _electronPath; + String? get electronPath => _$this._electronPath; + set electronPath(String? electronPath) => _$this._electronPath = electronPath; + + bool? _excludeCompleted; + bool? get excludeCompleted => _$this._excludeCompleted; + set excludeCompleted(bool? excludeCompleted) => + _$this._excludeCompleted = excludeCompleted; + + bool? _excludeEntryWithUnreadChapters; + bool? get excludeEntryWithUnreadChapters => + _$this._excludeEntryWithUnreadChapters; + set excludeEntryWithUnreadChapters(bool? excludeEntryWithUnreadChapters) => + _$this._excludeEntryWithUnreadChapters = excludeEntryWithUnreadChapters; + + bool? _excludeNotStarted; + bool? get excludeNotStarted => _$this._excludeNotStarted; + set excludeNotStarted(bool? excludeNotStarted) => + _$this._excludeNotStarted = excludeNotStarted; + + bool? _excludeUnreadChapters; + bool? get excludeUnreadChapters => _$this._excludeUnreadChapters; + set excludeUnreadChapters(bool? excludeUnreadChapters) => + _$this._excludeUnreadChapters = excludeUnreadChapters; + + ListBuilder? _extensionRepos; + ListBuilder get extensionRepos => + _$this._extensionRepos ??= new ListBuilder(); + set extensionRepos(ListBuilder? extensionRepos) => + _$this._extensionRepos = extensionRepos; + + bool? _flareSolverrAsResponseFallback; + bool? get flareSolverrAsResponseFallback => + _$this._flareSolverrAsResponseFallback; + set flareSolverrAsResponseFallback(bool? flareSolverrAsResponseFallback) => + _$this._flareSolverrAsResponseFallback = flareSolverrAsResponseFallback; + + bool? _flareSolverrEnabled; + bool? get flareSolverrEnabled => _$this._flareSolverrEnabled; + set flareSolverrEnabled(bool? flareSolverrEnabled) => + _$this._flareSolverrEnabled = flareSolverrEnabled; + + String? _flareSolverrSessionName; + String? get flareSolverrSessionName => _$this._flareSolverrSessionName; + set flareSolverrSessionName(String? flareSolverrSessionName) => + _$this._flareSolverrSessionName = flareSolverrSessionName; + + int? _flareSolverrSessionTtl; + int? get flareSolverrSessionTtl => _$this._flareSolverrSessionTtl; + set flareSolverrSessionTtl(int? flareSolverrSessionTtl) => + _$this._flareSolverrSessionTtl = flareSolverrSessionTtl; + + int? _flareSolverrTimeout; + int? get flareSolverrTimeout => _$this._flareSolverrTimeout; + set flareSolverrTimeout(int? flareSolverrTimeout) => + _$this._flareSolverrTimeout = flareSolverrTimeout; + + String? _flareSolverrUrl; + String? get flareSolverrUrl => _$this._flareSolverrUrl; + set flareSolverrUrl(String? flareSolverrUrl) => + _$this._flareSolverrUrl = flareSolverrUrl; + + double? _globalUpdateInterval; + double? get globalUpdateInterval => _$this._globalUpdateInterval; + set globalUpdateInterval(double? globalUpdateInterval) => + _$this._globalUpdateInterval = globalUpdateInterval; + + bool? _initialOpenInBrowserEnabled; + bool? get initialOpenInBrowserEnabled => _$this._initialOpenInBrowserEnabled; + set initialOpenInBrowserEnabled(bool? initialOpenInBrowserEnabled) => + _$this._initialOpenInBrowserEnabled = initialOpenInBrowserEnabled; + + String? _ip; + String? get ip => _$this._ip; + set ip(String? ip) => _$this._ip = ip; + + String? _localSourcePath; + String? get localSourcePath => _$this._localSourcePath; + set localSourcePath(String? localSourcePath) => + _$this._localSourcePath = localSourcePath; + + String? _maxLogFileSize; + String? get maxLogFileSize => _$this._maxLogFileSize; + set maxLogFileSize(String? maxLogFileSize) => + _$this._maxLogFileSize = maxLogFileSize; + + int? _maxLogFiles; + int? get maxLogFiles => _$this._maxLogFiles; + set maxLogFiles(int? maxLogFiles) => _$this._maxLogFiles = maxLogFiles; + + String? _maxLogFolderSize; + String? get maxLogFolderSize => _$this._maxLogFolderSize; + set maxLogFolderSize(String? maxLogFolderSize) => + _$this._maxLogFolderSize = maxLogFolderSize; + + int? _maxSourcesInParallel; + int? get maxSourcesInParallel => _$this._maxSourcesInParallel; + set maxSourcesInParallel(int? maxSourcesInParallel) => + _$this._maxSourcesInParallel = maxSourcesInParallel; + + int? _port; + int? get port => _$this._port; + set port(int? port) => _$this._port = port; + + bool? _socksProxyEnabled; + bool? get socksProxyEnabled => _$this._socksProxyEnabled; + set socksProxyEnabled(bool? socksProxyEnabled) => + _$this._socksProxyEnabled = socksProxyEnabled; + + String? _socksProxyHost; + String? get socksProxyHost => _$this._socksProxyHost; + set socksProxyHost(String? socksProxyHost) => + _$this._socksProxyHost = socksProxyHost; + + String? _socksProxyPassword; + String? get socksProxyPassword => _$this._socksProxyPassword; + set socksProxyPassword(String? socksProxyPassword) => + _$this._socksProxyPassword = socksProxyPassword; + + String? _socksProxyPort; + String? get socksProxyPort => _$this._socksProxyPort; + set socksProxyPort(String? socksProxyPort) => + _$this._socksProxyPort = socksProxyPort; + + String? _socksProxyUsername; + String? get socksProxyUsername => _$this._socksProxyUsername; + set socksProxyUsername(String? socksProxyUsername) => + _$this._socksProxyUsername = socksProxyUsername; + + int? _socksProxyVersion; + int? get socksProxyVersion => _$this._socksProxyVersion; + set socksProxyVersion(int? socksProxyVersion) => + _$this._socksProxyVersion = socksProxyVersion; + + bool? _systemTrayEnabled; + bool? get systemTrayEnabled => _$this._systemTrayEnabled; + set systemTrayEnabled(bool? systemTrayEnabled) => + _$this._systemTrayEnabled = systemTrayEnabled; + + bool? _updateMangas; + bool? get updateMangas => _$this._updateMangas; + set updateMangas(bool? updateMangas) => _$this._updateMangas = updateMangas; + + GWebUIChannel? _webUIChannel; + GWebUIChannel? get webUIChannel => _$this._webUIChannel; + set webUIChannel(GWebUIChannel? webUIChannel) => + _$this._webUIChannel = webUIChannel; + + GWebUIFlavor? _webUIFlavor; + GWebUIFlavor? get webUIFlavor => _$this._webUIFlavor; + set webUIFlavor(GWebUIFlavor? webUIFlavor) => + _$this._webUIFlavor = webUIFlavor; + + GWebUIInterface? _webUIInterface; + GWebUIInterface? get webUIInterface => _$this._webUIInterface; + set webUIInterface(GWebUIInterface? webUIInterface) => + _$this._webUIInterface = webUIInterface; + + double? _webUIUpdateCheckInterval; + double? get webUIUpdateCheckInterval => _$this._webUIUpdateCheckInterval; + set webUIUpdateCheckInterval(double? webUIUpdateCheckInterval) => + _$this._webUIUpdateCheckInterval = webUIUpdateCheckInterval; + + GPartialSettingsTypeInputBuilder(); + + GPartialSettingsTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _autoDownloadIgnoreReUploads = $v.autoDownloadIgnoreReUploads; + _autoDownloadNewChapters = $v.autoDownloadNewChapters; + _autoDownloadNewChaptersLimit = $v.autoDownloadNewChaptersLimit; + _backupInterval = $v.backupInterval; + _backupPath = $v.backupPath; + _backupTTL = $v.backupTTL; + _backupTime = $v.backupTime; + _basicAuthEnabled = $v.basicAuthEnabled; + _basicAuthPassword = $v.basicAuthPassword; + _basicAuthUsername = $v.basicAuthUsername; + _debugLogsEnabled = $v.debugLogsEnabled; + _downloadAsCbz = $v.downloadAsCbz; + _downloadsPath = $v.downloadsPath; + _electronPath = $v.electronPath; + _excludeCompleted = $v.excludeCompleted; + _excludeEntryWithUnreadChapters = $v.excludeEntryWithUnreadChapters; + _excludeNotStarted = $v.excludeNotStarted; + _excludeUnreadChapters = $v.excludeUnreadChapters; + _extensionRepos = $v.extensionRepos?.toBuilder(); + _flareSolverrAsResponseFallback = $v.flareSolverrAsResponseFallback; + _flareSolverrEnabled = $v.flareSolverrEnabled; + _flareSolverrSessionName = $v.flareSolverrSessionName; + _flareSolverrSessionTtl = $v.flareSolverrSessionTtl; + _flareSolverrTimeout = $v.flareSolverrTimeout; + _flareSolverrUrl = $v.flareSolverrUrl; + _globalUpdateInterval = $v.globalUpdateInterval; + _initialOpenInBrowserEnabled = $v.initialOpenInBrowserEnabled; + _ip = $v.ip; + _localSourcePath = $v.localSourcePath; + _maxLogFileSize = $v.maxLogFileSize; + _maxLogFiles = $v.maxLogFiles; + _maxLogFolderSize = $v.maxLogFolderSize; + _maxSourcesInParallel = $v.maxSourcesInParallel; + _port = $v.port; + _socksProxyEnabled = $v.socksProxyEnabled; + _socksProxyHost = $v.socksProxyHost; + _socksProxyPassword = $v.socksProxyPassword; + _socksProxyPort = $v.socksProxyPort; + _socksProxyUsername = $v.socksProxyUsername; + _socksProxyVersion = $v.socksProxyVersion; + _systemTrayEnabled = $v.systemTrayEnabled; + _updateMangas = $v.updateMangas; + _webUIChannel = $v.webUIChannel; + _webUIFlavor = $v.webUIFlavor; + _webUIInterface = $v.webUIInterface; + _webUIUpdateCheckInterval = $v.webUIUpdateCheckInterval; + _$v = null; + } + return this; + } + + @override + void replace(GPartialSettingsTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GPartialSettingsTypeInput; + } + + @override + void update(void Function(GPartialSettingsTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GPartialSettingsTypeInput build() => _build(); + + _$GPartialSettingsTypeInput _build() { + _$GPartialSettingsTypeInput _$result; + try { + _$result = _$v ?? + new _$GPartialSettingsTypeInput._( + autoDownloadIgnoreReUploads: autoDownloadIgnoreReUploads, + autoDownloadNewChapters: autoDownloadNewChapters, + autoDownloadNewChaptersLimit: autoDownloadNewChaptersLimit, + backupInterval: backupInterval, + backupPath: backupPath, + backupTTL: backupTTL, + backupTime: backupTime, + basicAuthEnabled: basicAuthEnabled, + basicAuthPassword: basicAuthPassword, + basicAuthUsername: basicAuthUsername, + debugLogsEnabled: debugLogsEnabled, + downloadAsCbz: downloadAsCbz, + downloadsPath: downloadsPath, + electronPath: electronPath, + excludeCompleted: excludeCompleted, + excludeEntryWithUnreadChapters: excludeEntryWithUnreadChapters, + excludeNotStarted: excludeNotStarted, + excludeUnreadChapters: excludeUnreadChapters, + extensionRepos: _extensionRepos?.build(), + flareSolverrAsResponseFallback: flareSolverrAsResponseFallback, + flareSolverrEnabled: flareSolverrEnabled, + flareSolverrSessionName: flareSolverrSessionName, + flareSolverrSessionTtl: flareSolverrSessionTtl, + flareSolverrTimeout: flareSolverrTimeout, + flareSolverrUrl: flareSolverrUrl, + globalUpdateInterval: globalUpdateInterval, + initialOpenInBrowserEnabled: initialOpenInBrowserEnabled, + ip: ip, + localSourcePath: localSourcePath, + maxLogFileSize: maxLogFileSize, + maxLogFiles: maxLogFiles, + maxLogFolderSize: maxLogFolderSize, + maxSourcesInParallel: maxSourcesInParallel, + port: port, + socksProxyEnabled: socksProxyEnabled, + socksProxyHost: socksProxyHost, + socksProxyPassword: socksProxyPassword, + socksProxyPort: socksProxyPort, + socksProxyUsername: socksProxyUsername, + socksProxyVersion: socksProxyVersion, + systemTrayEnabled: systemTrayEnabled, + updateMangas: updateMangas, + webUIChannel: webUIChannel, + webUIFlavor: webUIFlavor, + webUIInterface: webUIInterface, + webUIUpdateCheckInterval: webUIUpdateCheckInterval, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'extensionRepos'; + _extensionRepos?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GPartialSettingsTypeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GReorderChapterDownloadInput extends GReorderChapterDownloadInput { + @override + final int chapterId; + @override + final String? clientMutationId; + @override + final int to; + + factory _$GReorderChapterDownloadInput( + [void Function(GReorderChapterDownloadInputBuilder)? updates]) => + (new GReorderChapterDownloadInputBuilder()..update(updates))._build(); + + _$GReorderChapterDownloadInput._( + {required this.chapterId, this.clientMutationId, required this.to}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + chapterId, r'GReorderChapterDownloadInput', 'chapterId'); + BuiltValueNullFieldError.checkNotNull( + to, r'GReorderChapterDownloadInput', 'to'); + } + + @override + GReorderChapterDownloadInput rebuild( + void Function(GReorderChapterDownloadInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GReorderChapterDownloadInputBuilder toBuilder() => + new GReorderChapterDownloadInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GReorderChapterDownloadInput && + chapterId == other.chapterId && + clientMutationId == other.clientMutationId && + to == other.to; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, chapterId.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, to.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GReorderChapterDownloadInput') + ..add('chapterId', chapterId) + ..add('clientMutationId', clientMutationId) + ..add('to', to)) + .toString(); + } +} + +class GReorderChapterDownloadInputBuilder + implements + Builder { + _$GReorderChapterDownloadInput? _$v; + + int? _chapterId; + int? get chapterId => _$this._chapterId; + set chapterId(int? chapterId) => _$this._chapterId = chapterId; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _to; + int? get to => _$this._to; + set to(int? to) => _$this._to = to; + + GReorderChapterDownloadInputBuilder(); + + GReorderChapterDownloadInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _chapterId = $v.chapterId; + _clientMutationId = $v.clientMutationId; + _to = $v.to; + _$v = null; + } + return this; + } + + @override + void replace(GReorderChapterDownloadInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GReorderChapterDownloadInput; + } + + @override + void update(void Function(GReorderChapterDownloadInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GReorderChapterDownloadInput build() => _build(); + + _$GReorderChapterDownloadInput _build() { + final _$result = _$v ?? + new _$GReorderChapterDownloadInput._( + chapterId: BuiltValueNullFieldError.checkNotNull( + chapterId, r'GReorderChapterDownloadInput', 'chapterId'), + clientMutationId: clientMutationId, + to: BuiltValueNullFieldError.checkNotNull( + to, r'GReorderChapterDownloadInput', 'to'), + ); + replace(_$result); + return _$result; + } +} + +class _$GResetSettingsInput extends GResetSettingsInput { + @override + final String? clientMutationId; + + factory _$GResetSettingsInput( + [void Function(GResetSettingsInputBuilder)? updates]) => + (new GResetSettingsInputBuilder()..update(updates))._build(); + + _$GResetSettingsInput._({this.clientMutationId}) : super._(); + + @override + GResetSettingsInput rebuild( + void Function(GResetSettingsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GResetSettingsInputBuilder toBuilder() => + new GResetSettingsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GResetSettingsInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GResetSettingsInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GResetSettingsInputBuilder + implements Builder { + _$GResetSettingsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GResetSettingsInputBuilder(); + + GResetSettingsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GResetSettingsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GResetSettingsInput; + } + + @override + void update(void Function(GResetSettingsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GResetSettingsInput build() => _build(); + + _$GResetSettingsInput _build() { + final _$result = _$v ?? + new _$GResetSettingsInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GRestoreBackupInput extends GRestoreBackupInput { + @override + final _i3.MultipartFile backup; + @override + final String? clientMutationId; + + factory _$GRestoreBackupInput( + [void Function(GRestoreBackupInputBuilder)? updates]) => + (new GRestoreBackupInputBuilder()..update(updates))._build(); + + _$GRestoreBackupInput._({required this.backup, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupInput', 'backup'); + } + + @override + GRestoreBackupInput rebuild( + void Function(GRestoreBackupInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GRestoreBackupInputBuilder toBuilder() => + new GRestoreBackupInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GRestoreBackupInput && + backup == other.backup && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GRestoreBackupInput') + ..add('backup', backup) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GRestoreBackupInputBuilder + implements Builder { + _$GRestoreBackupInput? _$v; + + _i3.MultipartFile? _backup; + _i3.MultipartFile? get backup => _$this._backup; + set backup(_i3.MultipartFile? backup) => _$this._backup = backup; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GRestoreBackupInputBuilder(); + + GRestoreBackupInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GRestoreBackupInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GRestoreBackupInput; + } + + @override + void update(void Function(GRestoreBackupInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GRestoreBackupInput build() => _build(); + + _$GRestoreBackupInput _build() { + final _$result = _$v ?? + new _$GRestoreBackupInput._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GRestoreBackupInput', 'backup'), + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GSearchTrackerInput extends GSearchTrackerInput { + @override + final String query; + @override + final int trackerId; + + factory _$GSearchTrackerInput( + [void Function(GSearchTrackerInputBuilder)? updates]) => + (new GSearchTrackerInputBuilder()..update(updates))._build(); + + _$GSearchTrackerInput._({required this.query, required this.trackerId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + query, r'GSearchTrackerInput', 'query'); + BuiltValueNullFieldError.checkNotNull( + trackerId, r'GSearchTrackerInput', 'trackerId'); + } + + @override + GSearchTrackerInput rebuild( + void Function(GSearchTrackerInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSearchTrackerInputBuilder toBuilder() => + new GSearchTrackerInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSearchTrackerInput && + query == other.query && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, query.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSearchTrackerInput') + ..add('query', query) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GSearchTrackerInputBuilder + implements Builder { + _$GSearchTrackerInput? _$v; + + String? _query; + String? get query => _$this._query; + set query(String? query) => _$this._query = query; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GSearchTrackerInputBuilder(); + + GSearchTrackerInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _query = $v.query; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GSearchTrackerInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSearchTrackerInput; + } + + @override + void update(void Function(GSearchTrackerInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSearchTrackerInput build() => _build(); + + _$GSearchTrackerInput _build() { + final _$result = _$v ?? + new _$GSearchTrackerInput._( + query: BuiltValueNullFieldError.checkNotNull( + query, r'GSearchTrackerInput', 'query'), + trackerId: BuiltValueNullFieldError.checkNotNull( + trackerId, r'GSearchTrackerInput', 'trackerId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSetCategoryMetaInput extends GSetCategoryMetaInput { + @override + final String? clientMutationId; + @override + final GCategoryMetaTypeInput meta; + + factory _$GSetCategoryMetaInput( + [void Function(GSetCategoryMetaInputBuilder)? updates]) => + (new GSetCategoryMetaInputBuilder()..update(updates))._build(); + + _$GSetCategoryMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + meta, r'GSetCategoryMetaInput', 'meta'); + } + + @override + GSetCategoryMetaInput rebuild( + void Function(GSetCategoryMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetCategoryMetaInputBuilder toBuilder() => + new GSetCategoryMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetCategoryMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetCategoryMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetCategoryMetaInputBuilder + implements Builder { + _$GSetCategoryMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GCategoryMetaTypeInputBuilder? _meta; + GCategoryMetaTypeInputBuilder get meta => + _$this._meta ??= new GCategoryMetaTypeInputBuilder(); + set meta(GCategoryMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetCategoryMetaInputBuilder(); + + GSetCategoryMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetCategoryMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetCategoryMetaInput; + } + + @override + void update(void Function(GSetCategoryMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetCategoryMetaInput build() => _build(); + + _$GSetCategoryMetaInput _build() { + _$GSetCategoryMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetCategoryMetaInput._( + clientMutationId: clientMutationId, + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetCategoryMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetChapterMetaInput extends GSetChapterMetaInput { + @override + final String? clientMutationId; + @override + final GChapterMetaTypeInput meta; + + factory _$GSetChapterMetaInput( + [void Function(GSetChapterMetaInputBuilder)? updates]) => + (new GSetChapterMetaInputBuilder()..update(updates))._build(); + + _$GSetChapterMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + meta, r'GSetChapterMetaInput', 'meta'); + } + + @override + GSetChapterMetaInput rebuild( + void Function(GSetChapterMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetChapterMetaInputBuilder toBuilder() => + new GSetChapterMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetChapterMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetChapterMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetChapterMetaInputBuilder + implements Builder { + _$GSetChapterMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GChapterMetaTypeInputBuilder? _meta; + GChapterMetaTypeInputBuilder get meta => + _$this._meta ??= new GChapterMetaTypeInputBuilder(); + set meta(GChapterMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetChapterMetaInputBuilder(); + + GSetChapterMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetChapterMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetChapterMetaInput; + } + + @override + void update(void Function(GSetChapterMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetChapterMetaInput build() => _build(); + + _$GSetChapterMetaInput _build() { + _$GSetChapterMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetChapterMetaInput._( + clientMutationId: clientMutationId, + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetChapterMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetGlobalMetaInput extends GSetGlobalMetaInput { + @override + final String? clientMutationId; + @override + final GGlobalMetaTypeInput meta; + + factory _$GSetGlobalMetaInput( + [void Function(GSetGlobalMetaInputBuilder)? updates]) => + (new GSetGlobalMetaInputBuilder()..update(updates))._build(); + + _$GSetGlobalMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'GSetGlobalMetaInput', 'meta'); + } + + @override + GSetGlobalMetaInput rebuild( + void Function(GSetGlobalMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetGlobalMetaInputBuilder toBuilder() => + new GSetGlobalMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetGlobalMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetGlobalMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetGlobalMetaInputBuilder + implements Builder { + _$GSetGlobalMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GGlobalMetaTypeInputBuilder? _meta; + GGlobalMetaTypeInputBuilder get meta => + _$this._meta ??= new GGlobalMetaTypeInputBuilder(); + set meta(GGlobalMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetGlobalMetaInputBuilder(); + + GSetGlobalMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetGlobalMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetGlobalMetaInput; + } + + @override + void update(void Function(GSetGlobalMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetGlobalMetaInput build() => _build(); + + _$GSetGlobalMetaInput _build() { + _$GSetGlobalMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetGlobalMetaInput._( + clientMutationId: clientMutationId, + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetGlobalMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetMangaMetaInput extends GSetMangaMetaInput { + @override + final String? clientMutationId; + @override + final GMangaMetaTypeInput meta; + + factory _$GSetMangaMetaInput( + [void Function(GSetMangaMetaInputBuilder)? updates]) => + (new GSetMangaMetaInputBuilder()..update(updates))._build(); + + _$GSetMangaMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'GSetMangaMetaInput', 'meta'); + } + + @override + GSetMangaMetaInput rebuild( + void Function(GSetMangaMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetMangaMetaInputBuilder toBuilder() => + new GSetMangaMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetMangaMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetMangaMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetMangaMetaInputBuilder + implements Builder { + _$GSetMangaMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GMangaMetaTypeInputBuilder? _meta; + GMangaMetaTypeInputBuilder get meta => + _$this._meta ??= new GMangaMetaTypeInputBuilder(); + set meta(GMangaMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetMangaMetaInputBuilder(); + + GSetMangaMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetMangaMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetMangaMetaInput; + } + + @override + void update(void Function(GSetMangaMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetMangaMetaInput build() => _build(); + + _$GSetMangaMetaInput _build() { + _$GSetMangaMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetMangaMetaInput._( + clientMutationId: clientMutationId, + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetMangaMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetSettingsInput extends GSetSettingsInput { + @override + final String? clientMutationId; + @override + final GPartialSettingsTypeInput settings; + + factory _$GSetSettingsInput( + [void Function(GSetSettingsInputBuilder)? updates]) => + (new GSetSettingsInputBuilder()..update(updates))._build(); + + _$GSetSettingsInput._({this.clientMutationId, required this.settings}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + settings, r'GSetSettingsInput', 'settings'); + } + + @override + GSetSettingsInput rebuild(void Function(GSetSettingsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetSettingsInputBuilder toBuilder() => + new GSetSettingsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetSettingsInput && + clientMutationId == other.clientMutationId && + settings == other.settings; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, settings.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetSettingsInput') + ..add('clientMutationId', clientMutationId) + ..add('settings', settings)) + .toString(); + } +} + +class GSetSettingsInputBuilder + implements Builder { + _$GSetSettingsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GPartialSettingsTypeInputBuilder? _settings; + GPartialSettingsTypeInputBuilder get settings => + _$this._settings ??= new GPartialSettingsTypeInputBuilder(); + set settings(GPartialSettingsTypeInputBuilder? settings) => + _$this._settings = settings; + + GSetSettingsInputBuilder(); + + GSetSettingsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _settings = $v.settings.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetSettingsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetSettingsInput; + } + + @override + void update(void Function(GSetSettingsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetSettingsInput build() => _build(); + + _$GSetSettingsInput _build() { + _$GSetSettingsInput _$result; + try { + _$result = _$v ?? + new _$GSetSettingsInput._( + clientMutationId: clientMutationId, + settings: settings.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'settings'; + settings.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetSettingsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSetSourceMetaInput extends GSetSourceMetaInput { + @override + final String? clientMutationId; + @override + final GSourceMetaTypeInput meta; + + factory _$GSetSourceMetaInput( + [void Function(GSetSourceMetaInputBuilder)? updates]) => + (new GSetSourceMetaInputBuilder()..update(updates))._build(); + + _$GSetSourceMetaInput._({this.clientMutationId, required this.meta}) + : super._() { + BuiltValueNullFieldError.checkNotNull(meta, r'GSetSourceMetaInput', 'meta'); + } + + @override + GSetSourceMetaInput rebuild( + void Function(GSetSourceMetaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSetSourceMetaInputBuilder toBuilder() => + new GSetSourceMetaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSetSourceMetaInput && + clientMutationId == other.clientMutationId && + meta == other.meta; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, meta.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSetSourceMetaInput') + ..add('clientMutationId', clientMutationId) + ..add('meta', meta)) + .toString(); + } +} + +class GSetSourceMetaInputBuilder + implements Builder { + _$GSetSourceMetaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GSourceMetaTypeInputBuilder? _meta; + GSourceMetaTypeInputBuilder get meta => + _$this._meta ??= new GSourceMetaTypeInputBuilder(); + set meta(GSourceMetaTypeInputBuilder? meta) => _$this._meta = meta; + + GSetSourceMetaInputBuilder(); + + GSetSourceMetaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _meta = $v.meta.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSetSourceMetaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSetSourceMetaInput; + } + + @override + void update(void Function(GSetSourceMetaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSetSourceMetaInput build() => _build(); + + _$GSetSourceMetaInput _build() { + _$GSetSourceMetaInput _$result; + try { + _$result = _$v ?? + new _$GSetSourceMetaInput._( + clientMutationId: clientMutationId, + meta: meta.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'meta'; + meta.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSetSourceMetaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSortSelectionInput extends GSortSelectionInput { + @override + final bool ascending; + @override + final int index; + + factory _$GSortSelectionInput( + [void Function(GSortSelectionInputBuilder)? updates]) => + (new GSortSelectionInputBuilder()..update(updates))._build(); + + _$GSortSelectionInput._({required this.ascending, required this.index}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ascending, r'GSortSelectionInput', 'ascending'); + BuiltValueNullFieldError.checkNotNull( + index, r'GSortSelectionInput', 'index'); + } + + @override + GSortSelectionInput rebuild( + void Function(GSortSelectionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSortSelectionInputBuilder toBuilder() => + new GSortSelectionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSortSelectionInput && + ascending == other.ascending && + index == other.index; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, ascending.hashCode); + _$hash = $jc(_$hash, index.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSortSelectionInput') + ..add('ascending', ascending) + ..add('index', index)) + .toString(); + } +} + +class GSortSelectionInputBuilder + implements Builder { + _$GSortSelectionInput? _$v; + + bool? _ascending; + bool? get ascending => _$this._ascending; + set ascending(bool? ascending) => _$this._ascending = ascending; + + int? _index; + int? get index => _$this._index; + set index(int? index) => _$this._index = index; + + GSortSelectionInputBuilder(); + + GSortSelectionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _ascending = $v.ascending; + _index = $v.index; + _$v = null; + } + return this; + } + + @override + void replace(GSortSelectionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSortSelectionInput; + } + + @override + void update(void Function(GSortSelectionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSortSelectionInput build() => _build(); + + _$GSortSelectionInput _build() { + final _$result = _$v ?? + new _$GSortSelectionInput._( + ascending: BuiltValueNullFieldError.checkNotNull( + ascending, r'GSortSelectionInput', 'ascending'), + index: BuiltValueNullFieldError.checkNotNull( + index, r'GSortSelectionInput', 'index'), + ); + replace(_$result); + return _$result; + } +} + +class _$GSourceConditionInput extends GSourceConditionInput { + @override + final GLongString? id; + @override + final bool? isNsfw; + @override + final String? lang; + @override + final String? name; + + factory _$GSourceConditionInput( + [void Function(GSourceConditionInputBuilder)? updates]) => + (new GSourceConditionInputBuilder()..update(updates))._build(); + + _$GSourceConditionInput._({this.id, this.isNsfw, this.lang, this.name}) + : super._(); + + @override + GSourceConditionInput rebuild( + void Function(GSourceConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceConditionInputBuilder toBuilder() => + new GSourceConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceConditionInput && + id == other.id && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceConditionInput') + ..add('id', id) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name)) + .toString(); + } +} + +class GSourceConditionInputBuilder + implements Builder { + _$GSourceConditionInput? _$v; + + GLongStringBuilder? _id; + GLongStringBuilder get id => _$this._id ??= new GLongStringBuilder(); + set id(GLongStringBuilder? id) => _$this._id = id; + + bool? _isNsfw; + bool? get isNsfw => _$this._isNsfw; + set isNsfw(bool? isNsfw) => _$this._isNsfw = isNsfw; + + String? _lang; + String? get lang => _$this._lang; + set lang(String? lang) => _$this._lang = lang; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GSourceConditionInputBuilder(); + + GSourceConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id?.toBuilder(); + _isNsfw = $v.isNsfw; + _lang = $v.lang; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GSourceConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceConditionInput; + } + + @override + void update(void Function(GSourceConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceConditionInput build() => _build(); + + _$GSourceConditionInput _build() { + _$GSourceConditionInput _$result; + try { + _$result = _$v ?? + new _$GSourceConditionInput._( + id: _id?.build(), + isNsfw: isNsfw, + lang: lang, + name: name, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'id'; + _id?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceFilterInput extends GSourceFilterInput { + @override + final BuiltList? and; + @override + final GLongFilterInput? id; + @override + final GBooleanFilterInput? isNsfw; + @override + final GStringFilterInput? lang; + @override + final GStringFilterInput? name; + @override + final GSourceFilterInput? not; + @override + final BuiltList? or; + + factory _$GSourceFilterInput( + [void Function(GSourceFilterInputBuilder)? updates]) => + (new GSourceFilterInputBuilder()..update(updates))._build(); + + _$GSourceFilterInput._( + {this.and, this.id, this.isNsfw, this.lang, this.name, this.not, this.or}) + : super._(); + + @override + GSourceFilterInput rebuild( + void Function(GSourceFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceFilterInputBuilder toBuilder() => + new GSourceFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceFilterInput && + and == other.and && + id == other.id && + isNsfw == other.isNsfw && + lang == other.lang && + name == other.name && + not == other.not && + or == other.or; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isNsfw.hashCode); + _$hash = $jc(_$hash, lang.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceFilterInput') + ..add('and', and) + ..add('id', id) + ..add('isNsfw', isNsfw) + ..add('lang', lang) + ..add('name', name) + ..add('not', not) + ..add('or', or)) + .toString(); + } +} + +class GSourceFilterInputBuilder + implements Builder { + _$GSourceFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GLongFilterInputBuilder? _id; + GLongFilterInputBuilder get id => + _$this._id ??= new GLongFilterInputBuilder(); + set id(GLongFilterInputBuilder? id) => _$this._id = id; + + GBooleanFilterInputBuilder? _isNsfw; + GBooleanFilterInputBuilder get isNsfw => + _$this._isNsfw ??= new GBooleanFilterInputBuilder(); + set isNsfw(GBooleanFilterInputBuilder? isNsfw) => _$this._isNsfw = isNsfw; + + GStringFilterInputBuilder? _lang; + GStringFilterInputBuilder get lang => + _$this._lang ??= new GStringFilterInputBuilder(); + set lang(GStringFilterInputBuilder? lang) => _$this._lang = lang; + + GStringFilterInputBuilder? _name; + GStringFilterInputBuilder get name => + _$this._name ??= new GStringFilterInputBuilder(); + set name(GStringFilterInputBuilder? name) => _$this._name = name; + + GSourceFilterInputBuilder? _not; + GSourceFilterInputBuilder get not => + _$this._not ??= new GSourceFilterInputBuilder(); + set not(GSourceFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GSourceFilterInputBuilder(); + + GSourceFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _id = $v.id?.toBuilder(); + _isNsfw = $v.isNsfw?.toBuilder(); + _lang = $v.lang?.toBuilder(); + _name = $v.name?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GSourceFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceFilterInput; + } + + @override + void update(void Function(GSourceFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceFilterInput build() => _build(); + + _$GSourceFilterInput _build() { + _$GSourceFilterInput _$result; + try { + _$result = _$v ?? + new _$GSourceFilterInput._( + and: _and?.build(), + id: _id?.build(), + isNsfw: _isNsfw?.build(), + lang: _lang?.build(), + name: _name?.build(), + not: _not?.build(), + or: _or?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'isNsfw'; + _isNsfw?.build(); + _$failedField = 'lang'; + _lang?.build(); + _$failedField = 'name'; + _name?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceMetaTypeInput extends GSourceMetaTypeInput { + @override + final String key; + @override + final GLongString sourceId; + @override + final String value; + + factory _$GSourceMetaTypeInput( + [void Function(GSourceMetaTypeInputBuilder)? updates]) => + (new GSourceMetaTypeInputBuilder()..update(updates))._build(); + + _$GSourceMetaTypeInput._( + {required this.key, required this.sourceId, required this.value}) + : super._() { + BuiltValueNullFieldError.checkNotNull(key, r'GSourceMetaTypeInput', 'key'); + BuiltValueNullFieldError.checkNotNull( + sourceId, r'GSourceMetaTypeInput', 'sourceId'); + BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMetaTypeInput', 'value'); + } + + @override + GSourceMetaTypeInput rebuild( + void Function(GSourceMetaTypeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceMetaTypeInputBuilder toBuilder() => + new GSourceMetaTypeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceMetaTypeInput && + key == other.key && + sourceId == other.sourceId && + value == other.value; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, key.hashCode); + _$hash = $jc(_$hash, sourceId.hashCode); + _$hash = $jc(_$hash, value.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceMetaTypeInput') + ..add('key', key) + ..add('sourceId', sourceId) + ..add('value', value)) + .toString(); + } +} + +class GSourceMetaTypeInputBuilder + implements Builder { + _$GSourceMetaTypeInput? _$v; + + String? _key; + String? get key => _$this._key; + set key(String? key) => _$this._key = key; + + GLongStringBuilder? _sourceId; + GLongStringBuilder get sourceId => + _$this._sourceId ??= new GLongStringBuilder(); + set sourceId(GLongStringBuilder? sourceId) => _$this._sourceId = sourceId; + + String? _value; + String? get value => _$this._value; + set value(String? value) => _$this._value = value; + + GSourceMetaTypeInputBuilder(); + + GSourceMetaTypeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _key = $v.key; + _sourceId = $v.sourceId.toBuilder(); + _value = $v.value; + _$v = null; + } + return this; + } + + @override + void replace(GSourceMetaTypeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceMetaTypeInput; + } + + @override + void update(void Function(GSourceMetaTypeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceMetaTypeInput build() => _build(); + + _$GSourceMetaTypeInput _build() { + _$GSourceMetaTypeInput _$result; + try { + _$result = _$v ?? + new _$GSourceMetaTypeInput._( + key: BuiltValueNullFieldError.checkNotNull( + key, r'GSourceMetaTypeInput', 'key'), + sourceId: sourceId.build(), + value: BuiltValueNullFieldError.checkNotNull( + value, r'GSourceMetaTypeInput', 'value'), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'sourceId'; + sourceId.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourceMetaTypeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GSourceOrderInput extends GSourceOrderInput { + @override + final GSourceOrderBy by; + @override + final GSortOrder? byType; + + factory _$GSourceOrderInput( + [void Function(GSourceOrderInputBuilder)? updates]) => + (new GSourceOrderInputBuilder()..update(updates))._build(); + + _$GSourceOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GSourceOrderInput', 'by'); + } + + @override + GSourceOrderInput rebuild(void Function(GSourceOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourceOrderInputBuilder toBuilder() => + new GSourceOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourceOrderInput && + by == other.by && + byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourceOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GSourceOrderInputBuilder + implements Builder { + _$GSourceOrderInput? _$v; + + GSourceOrderBy? _by; + GSourceOrderBy? get by => _$this._by; + set by(GSourceOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GSourceOrderInputBuilder(); + + GSourceOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GSourceOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourceOrderInput; + } + + @override + void update(void Function(GSourceOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourceOrderInput build() => _build(); + + _$GSourceOrderInput _build() { + final _$result = _$v ?? + new _$GSourceOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GSourceOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GSourcePreferenceChangeInput extends GSourcePreferenceChangeInput { + @override + final bool? checkBoxState; + @override + final String? editTextState; + @override + final String? listState; + @override + final BuiltList? multiSelectState; + @override + final int position; + @override + final bool? switchState; + + factory _$GSourcePreferenceChangeInput( + [void Function(GSourcePreferenceChangeInputBuilder)? updates]) => + (new GSourcePreferenceChangeInputBuilder()..update(updates))._build(); + + _$GSourcePreferenceChangeInput._( + {this.checkBoxState, + this.editTextState, + this.listState, + this.multiSelectState, + required this.position, + this.switchState}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + position, r'GSourcePreferenceChangeInput', 'position'); + } + + @override + GSourcePreferenceChangeInput rebuild( + void Function(GSourcePreferenceChangeInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GSourcePreferenceChangeInputBuilder toBuilder() => + new GSourcePreferenceChangeInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GSourcePreferenceChangeInput && + checkBoxState == other.checkBoxState && + editTextState == other.editTextState && + listState == other.listState && + multiSelectState == other.multiSelectState && + position == other.position && + switchState == other.switchState; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, checkBoxState.hashCode); + _$hash = $jc(_$hash, editTextState.hashCode); + _$hash = $jc(_$hash, listState.hashCode); + _$hash = $jc(_$hash, multiSelectState.hashCode); + _$hash = $jc(_$hash, position.hashCode); + _$hash = $jc(_$hash, switchState.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GSourcePreferenceChangeInput') + ..add('checkBoxState', checkBoxState) + ..add('editTextState', editTextState) + ..add('listState', listState) + ..add('multiSelectState', multiSelectState) + ..add('position', position) + ..add('switchState', switchState)) + .toString(); + } +} + +class GSourcePreferenceChangeInputBuilder + implements + Builder { + _$GSourcePreferenceChangeInput? _$v; + + bool? _checkBoxState; + bool? get checkBoxState => _$this._checkBoxState; + set checkBoxState(bool? checkBoxState) => + _$this._checkBoxState = checkBoxState; + + String? _editTextState; + String? get editTextState => _$this._editTextState; + set editTextState(String? editTextState) => + _$this._editTextState = editTextState; + + String? _listState; + String? get listState => _$this._listState; + set listState(String? listState) => _$this._listState = listState; + + ListBuilder? _multiSelectState; + ListBuilder get multiSelectState => + _$this._multiSelectState ??= new ListBuilder(); + set multiSelectState(ListBuilder? multiSelectState) => + _$this._multiSelectState = multiSelectState; + + int? _position; + int? get position => _$this._position; + set position(int? position) => _$this._position = position; + + bool? _switchState; + bool? get switchState => _$this._switchState; + set switchState(bool? switchState) => _$this._switchState = switchState; + + GSourcePreferenceChangeInputBuilder(); + + GSourcePreferenceChangeInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _checkBoxState = $v.checkBoxState; + _editTextState = $v.editTextState; + _listState = $v.listState; + _multiSelectState = $v.multiSelectState?.toBuilder(); + _position = $v.position; + _switchState = $v.switchState; + _$v = null; + } + return this; + } + + @override + void replace(GSourcePreferenceChangeInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GSourcePreferenceChangeInput; + } + + @override + void update(void Function(GSourcePreferenceChangeInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GSourcePreferenceChangeInput build() => _build(); + + _$GSourcePreferenceChangeInput _build() { + _$GSourcePreferenceChangeInput _$result; + try { + _$result = _$v ?? + new _$GSourcePreferenceChangeInput._( + checkBoxState: checkBoxState, + editTextState: editTextState, + listState: listState, + multiSelectState: _multiSelectState?.build(), + position: BuiltValueNullFieldError.checkNotNull( + position, r'GSourcePreferenceChangeInput', 'position'), + switchState: switchState, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'multiSelectState'; + _multiSelectState?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GSourcePreferenceChangeInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GStartDownloaderInput extends GStartDownloaderInput { + @override + final String? clientMutationId; + + factory _$GStartDownloaderInput( + [void Function(GStartDownloaderInputBuilder)? updates]) => + (new GStartDownloaderInputBuilder()..update(updates))._build(); + + _$GStartDownloaderInput._({this.clientMutationId}) : super._(); + + @override + GStartDownloaderInput rebuild( + void Function(GStartDownloaderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GStartDownloaderInputBuilder toBuilder() => + new GStartDownloaderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GStartDownloaderInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GStartDownloaderInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GStartDownloaderInputBuilder + implements Builder { + _$GStartDownloaderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GStartDownloaderInputBuilder(); + + GStartDownloaderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GStartDownloaderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GStartDownloaderInput; + } + + @override + void update(void Function(GStartDownloaderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GStartDownloaderInput build() => _build(); + + _$GStartDownloaderInput _build() { + final _$result = _$v ?? + new _$GStartDownloaderInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GStopDownloaderInput extends GStopDownloaderInput { + @override + final String? clientMutationId; + + factory _$GStopDownloaderInput( + [void Function(GStopDownloaderInputBuilder)? updates]) => + (new GStopDownloaderInputBuilder()..update(updates))._build(); + + _$GStopDownloaderInput._({this.clientMutationId}) : super._(); + + @override + GStopDownloaderInput rebuild( + void Function(GStopDownloaderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GStopDownloaderInputBuilder toBuilder() => + new GStopDownloaderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GStopDownloaderInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GStopDownloaderInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GStopDownloaderInputBuilder + implements Builder { + _$GStopDownloaderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GStopDownloaderInputBuilder(); + + GStopDownloaderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GStopDownloaderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GStopDownloaderInput; + } + + @override + void update(void Function(GStopDownloaderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GStopDownloaderInput build() => _build(); + + _$GStopDownloaderInput _build() { + final _$result = _$v ?? + new _$GStopDownloaderInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GStringFilterInput extends GStringFilterInput { + @override + final String? distinctFrom; + @override + final BuiltList? distinctFromAll; + @override + final BuiltList? distinctFromAny; + @override + final String? distinctFromInsensitive; + @override + final BuiltList? distinctFromInsensitiveAll; + @override + final BuiltList? distinctFromInsensitiveAny; + @override + final String? endsWith; + @override + final BuiltList? endsWithAll; + @override + final BuiltList? endsWithAny; + @override + final String? endsWithInsensitive; + @override + final BuiltList? endsWithInsensitiveAll; + @override + final BuiltList? endsWithInsensitiveAny; + @override + final String? equalTo; + @override + final String? greaterThan; + @override + final String? greaterThanInsensitive; + @override + final String? greaterThanOrEqualTo; + @override + final String? greaterThanOrEqualToInsensitive; + @override + final BuiltList? Gin; + @override + final BuiltList? inInsensitive; + @override + final String? includes; + @override + final BuiltList? includesAll; + @override + final BuiltList? includesAny; + @override + final String? includesInsensitive; + @override + final BuiltList? includesInsensitiveAll; + @override + final BuiltList? includesInsensitiveAny; + @override + final bool? isNull; + @override + final String? lessThan; + @override + final String? lessThanInsensitive; + @override + final String? lessThanOrEqualTo; + @override + final String? lessThanOrEqualToInsensitive; + @override + final String? like; + @override + final BuiltList? likeAll; + @override + final BuiltList? likeAny; + @override + final String? likeInsensitive; + @override + final BuiltList? likeInsensitiveAll; + @override + final BuiltList? likeInsensitiveAny; + @override + final String? notDistinctFrom; + @override + final String? notDistinctFromInsensitive; + @override + final String? notEndsWith; + @override + final BuiltList? notEndsWithAll; + @override + final BuiltList? notEndsWithAny; + @override + final String? notEndsWithInsensitive; + @override + final BuiltList? notEndsWithInsensitiveAll; + @override + final BuiltList? notEndsWithInsensitiveAny; + @override + final String? notEqualTo; + @override + final BuiltList? notEqualToAll; + @override + final BuiltList? notEqualToAny; + @override + final BuiltList? notIn; + @override + final BuiltList? notInInsensitive; + @override + final String? notIncludes; + @override + final BuiltList? notIncludesAll; + @override + final BuiltList? notIncludesAny; + @override + final String? notIncludesInsensitive; + @override + final BuiltList? notIncludesInsensitiveAll; + @override + final BuiltList? notIncludesInsensitiveAny; + @override + final String? notLike; + @override + final BuiltList? notLikeAll; + @override + final BuiltList? notLikeAny; + @override + final String? notLikeInsensitive; + @override + final BuiltList? notLikeInsensitiveAll; + @override + final BuiltList? notLikeInsensitiveAny; + @override + final String? notStartsWith; + @override + final BuiltList? notStartsWithAll; + @override + final BuiltList? notStartsWithAny; + @override + final String? notStartsWithInsensitive; + @override + final BuiltList? notStartsWithInsensitiveAll; + @override + final BuiltList? notStartsWithInsensitiveAny; + @override + final String? startsWith; + @override + final BuiltList? startsWithAll; + @override + final BuiltList? startsWithAny; + @override + final String? startsWithInsensitive; + @override + final BuiltList? startsWithInsensitiveAll; + @override + final BuiltList? startsWithInsensitiveAny; + + factory _$GStringFilterInput( + [void Function(GStringFilterInputBuilder)? updates]) => + (new GStringFilterInputBuilder()..update(updates))._build(); + + _$GStringFilterInput._( + {this.distinctFrom, + this.distinctFromAll, + this.distinctFromAny, + this.distinctFromInsensitive, + this.distinctFromInsensitiveAll, + this.distinctFromInsensitiveAny, + this.endsWith, + this.endsWithAll, + this.endsWithAny, + this.endsWithInsensitive, + this.endsWithInsensitiveAll, + this.endsWithInsensitiveAny, + this.equalTo, + this.greaterThan, + this.greaterThanInsensitive, + this.greaterThanOrEqualTo, + this.greaterThanOrEqualToInsensitive, + this.Gin, + this.inInsensitive, + this.includes, + this.includesAll, + this.includesAny, + this.includesInsensitive, + this.includesInsensitiveAll, + this.includesInsensitiveAny, + this.isNull, + this.lessThan, + this.lessThanInsensitive, + this.lessThanOrEqualTo, + this.lessThanOrEqualToInsensitive, + this.like, + this.likeAll, + this.likeAny, + this.likeInsensitive, + this.likeInsensitiveAll, + this.likeInsensitiveAny, + this.notDistinctFrom, + this.notDistinctFromInsensitive, + this.notEndsWith, + this.notEndsWithAll, + this.notEndsWithAny, + this.notEndsWithInsensitive, + this.notEndsWithInsensitiveAll, + this.notEndsWithInsensitiveAny, + this.notEqualTo, + this.notEqualToAll, + this.notEqualToAny, + this.notIn, + this.notInInsensitive, + this.notIncludes, + this.notIncludesAll, + this.notIncludesAny, + this.notIncludesInsensitive, + this.notIncludesInsensitiveAll, + this.notIncludesInsensitiveAny, + this.notLike, + this.notLikeAll, + this.notLikeAny, + this.notLikeInsensitive, + this.notLikeInsensitiveAll, + this.notLikeInsensitiveAny, + this.notStartsWith, + this.notStartsWithAll, + this.notStartsWithAny, + this.notStartsWithInsensitive, + this.notStartsWithInsensitiveAll, + this.notStartsWithInsensitiveAny, + this.startsWith, + this.startsWithAll, + this.startsWithAny, + this.startsWithInsensitive, + this.startsWithInsensitiveAll, + this.startsWithInsensitiveAny}) + : super._(); + + @override + GStringFilterInput rebuild( + void Function(GStringFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GStringFilterInputBuilder toBuilder() => + new GStringFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GStringFilterInput && + distinctFrom == other.distinctFrom && + distinctFromAll == other.distinctFromAll && + distinctFromAny == other.distinctFromAny && + distinctFromInsensitive == other.distinctFromInsensitive && + distinctFromInsensitiveAll == other.distinctFromInsensitiveAll && + distinctFromInsensitiveAny == other.distinctFromInsensitiveAny && + endsWith == other.endsWith && + endsWithAll == other.endsWithAll && + endsWithAny == other.endsWithAny && + endsWithInsensitive == other.endsWithInsensitive && + endsWithInsensitiveAll == other.endsWithInsensitiveAll && + endsWithInsensitiveAny == other.endsWithInsensitiveAny && + equalTo == other.equalTo && + greaterThan == other.greaterThan && + greaterThanInsensitive == other.greaterThanInsensitive && + greaterThanOrEqualTo == other.greaterThanOrEqualTo && + greaterThanOrEqualToInsensitive == + other.greaterThanOrEqualToInsensitive && + Gin == other.Gin && + inInsensitive == other.inInsensitive && + includes == other.includes && + includesAll == other.includesAll && + includesAny == other.includesAny && + includesInsensitive == other.includesInsensitive && + includesInsensitiveAll == other.includesInsensitiveAll && + includesInsensitiveAny == other.includesInsensitiveAny && + isNull == other.isNull && + lessThan == other.lessThan && + lessThanInsensitive == other.lessThanInsensitive && + lessThanOrEqualTo == other.lessThanOrEqualTo && + lessThanOrEqualToInsensitive == other.lessThanOrEqualToInsensitive && + like == other.like && + likeAll == other.likeAll && + likeAny == other.likeAny && + likeInsensitive == other.likeInsensitive && + likeInsensitiveAll == other.likeInsensitiveAll && + likeInsensitiveAny == other.likeInsensitiveAny && + notDistinctFrom == other.notDistinctFrom && + notDistinctFromInsensitive == other.notDistinctFromInsensitive && + notEndsWith == other.notEndsWith && + notEndsWithAll == other.notEndsWithAll && + notEndsWithAny == other.notEndsWithAny && + notEndsWithInsensitive == other.notEndsWithInsensitive && + notEndsWithInsensitiveAll == other.notEndsWithInsensitiveAll && + notEndsWithInsensitiveAny == other.notEndsWithInsensitiveAny && + notEqualTo == other.notEqualTo && + notEqualToAll == other.notEqualToAll && + notEqualToAny == other.notEqualToAny && + notIn == other.notIn && + notInInsensitive == other.notInInsensitive && + notIncludes == other.notIncludes && + notIncludesAll == other.notIncludesAll && + notIncludesAny == other.notIncludesAny && + notIncludesInsensitive == other.notIncludesInsensitive && + notIncludesInsensitiveAll == other.notIncludesInsensitiveAll && + notIncludesInsensitiveAny == other.notIncludesInsensitiveAny && + notLike == other.notLike && + notLikeAll == other.notLikeAll && + notLikeAny == other.notLikeAny && + notLikeInsensitive == other.notLikeInsensitive && + notLikeInsensitiveAll == other.notLikeInsensitiveAll && + notLikeInsensitiveAny == other.notLikeInsensitiveAny && + notStartsWith == other.notStartsWith && + notStartsWithAll == other.notStartsWithAll && + notStartsWithAny == other.notStartsWithAny && + notStartsWithInsensitive == other.notStartsWithInsensitive && + notStartsWithInsensitiveAll == other.notStartsWithInsensitiveAll && + notStartsWithInsensitiveAny == other.notStartsWithInsensitiveAny && + startsWith == other.startsWith && + startsWithAll == other.startsWithAll && + startsWithAny == other.startsWithAny && + startsWithInsensitive == other.startsWithInsensitive && + startsWithInsensitiveAll == other.startsWithInsensitiveAll && + startsWithInsensitiveAny == other.startsWithInsensitiveAny; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, distinctFrom.hashCode); + _$hash = $jc(_$hash, distinctFromAll.hashCode); + _$hash = $jc(_$hash, distinctFromAny.hashCode); + _$hash = $jc(_$hash, distinctFromInsensitive.hashCode); + _$hash = $jc(_$hash, distinctFromInsensitiveAll.hashCode); + _$hash = $jc(_$hash, distinctFromInsensitiveAny.hashCode); + _$hash = $jc(_$hash, endsWith.hashCode); + _$hash = $jc(_$hash, endsWithAll.hashCode); + _$hash = $jc(_$hash, endsWithAny.hashCode); + _$hash = $jc(_$hash, endsWithInsensitive.hashCode); + _$hash = $jc(_$hash, endsWithInsensitiveAll.hashCode); + _$hash = $jc(_$hash, endsWithInsensitiveAny.hashCode); + _$hash = $jc(_$hash, equalTo.hashCode); + _$hash = $jc(_$hash, greaterThan.hashCode); + _$hash = $jc(_$hash, greaterThanInsensitive.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, greaterThanOrEqualToInsensitive.hashCode); + _$hash = $jc(_$hash, Gin.hashCode); + _$hash = $jc(_$hash, inInsensitive.hashCode); + _$hash = $jc(_$hash, includes.hashCode); + _$hash = $jc(_$hash, includesAll.hashCode); + _$hash = $jc(_$hash, includesAny.hashCode); + _$hash = $jc(_$hash, includesInsensitive.hashCode); + _$hash = $jc(_$hash, includesInsensitiveAll.hashCode); + _$hash = $jc(_$hash, includesInsensitiveAny.hashCode); + _$hash = $jc(_$hash, isNull.hashCode); + _$hash = $jc(_$hash, lessThan.hashCode); + _$hash = $jc(_$hash, lessThanInsensitive.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualTo.hashCode); + _$hash = $jc(_$hash, lessThanOrEqualToInsensitive.hashCode); + _$hash = $jc(_$hash, like.hashCode); + _$hash = $jc(_$hash, likeAll.hashCode); + _$hash = $jc(_$hash, likeAny.hashCode); + _$hash = $jc(_$hash, likeInsensitive.hashCode); + _$hash = $jc(_$hash, likeInsensitiveAll.hashCode); + _$hash = $jc(_$hash, likeInsensitiveAny.hashCode); + _$hash = $jc(_$hash, notDistinctFrom.hashCode); + _$hash = $jc(_$hash, notDistinctFromInsensitive.hashCode); + _$hash = $jc(_$hash, notEndsWith.hashCode); + _$hash = $jc(_$hash, notEndsWithAll.hashCode); + _$hash = $jc(_$hash, notEndsWithAny.hashCode); + _$hash = $jc(_$hash, notEndsWithInsensitive.hashCode); + _$hash = $jc(_$hash, notEndsWithInsensitiveAll.hashCode); + _$hash = $jc(_$hash, notEndsWithInsensitiveAny.hashCode); + _$hash = $jc(_$hash, notEqualTo.hashCode); + _$hash = $jc(_$hash, notEqualToAll.hashCode); + _$hash = $jc(_$hash, notEqualToAny.hashCode); + _$hash = $jc(_$hash, notIn.hashCode); + _$hash = $jc(_$hash, notInInsensitive.hashCode); + _$hash = $jc(_$hash, notIncludes.hashCode); + _$hash = $jc(_$hash, notIncludesAll.hashCode); + _$hash = $jc(_$hash, notIncludesAny.hashCode); + _$hash = $jc(_$hash, notIncludesInsensitive.hashCode); + _$hash = $jc(_$hash, notIncludesInsensitiveAll.hashCode); + _$hash = $jc(_$hash, notIncludesInsensitiveAny.hashCode); + _$hash = $jc(_$hash, notLike.hashCode); + _$hash = $jc(_$hash, notLikeAll.hashCode); + _$hash = $jc(_$hash, notLikeAny.hashCode); + _$hash = $jc(_$hash, notLikeInsensitive.hashCode); + _$hash = $jc(_$hash, notLikeInsensitiveAll.hashCode); + _$hash = $jc(_$hash, notLikeInsensitiveAny.hashCode); + _$hash = $jc(_$hash, notStartsWith.hashCode); + _$hash = $jc(_$hash, notStartsWithAll.hashCode); + _$hash = $jc(_$hash, notStartsWithAny.hashCode); + _$hash = $jc(_$hash, notStartsWithInsensitive.hashCode); + _$hash = $jc(_$hash, notStartsWithInsensitiveAll.hashCode); + _$hash = $jc(_$hash, notStartsWithInsensitiveAny.hashCode); + _$hash = $jc(_$hash, startsWith.hashCode); + _$hash = $jc(_$hash, startsWithAll.hashCode); + _$hash = $jc(_$hash, startsWithAny.hashCode); + _$hash = $jc(_$hash, startsWithInsensitive.hashCode); + _$hash = $jc(_$hash, startsWithInsensitiveAll.hashCode); + _$hash = $jc(_$hash, startsWithInsensitiveAny.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GStringFilterInput') + ..add('distinctFrom', distinctFrom) + ..add('distinctFromAll', distinctFromAll) + ..add('distinctFromAny', distinctFromAny) + ..add('distinctFromInsensitive', distinctFromInsensitive) + ..add('distinctFromInsensitiveAll', distinctFromInsensitiveAll) + ..add('distinctFromInsensitiveAny', distinctFromInsensitiveAny) + ..add('endsWith', endsWith) + ..add('endsWithAll', endsWithAll) + ..add('endsWithAny', endsWithAny) + ..add('endsWithInsensitive', endsWithInsensitive) + ..add('endsWithInsensitiveAll', endsWithInsensitiveAll) + ..add('endsWithInsensitiveAny', endsWithInsensitiveAny) + ..add('equalTo', equalTo) + ..add('greaterThan', greaterThan) + ..add('greaterThanInsensitive', greaterThanInsensitive) + ..add('greaterThanOrEqualTo', greaterThanOrEqualTo) + ..add('greaterThanOrEqualToInsensitive', + greaterThanOrEqualToInsensitive) + ..add('Gin', Gin) + ..add('inInsensitive', inInsensitive) + ..add('includes', includes) + ..add('includesAll', includesAll) + ..add('includesAny', includesAny) + ..add('includesInsensitive', includesInsensitive) + ..add('includesInsensitiveAll', includesInsensitiveAll) + ..add('includesInsensitiveAny', includesInsensitiveAny) + ..add('isNull', isNull) + ..add('lessThan', lessThan) + ..add('lessThanInsensitive', lessThanInsensitive) + ..add('lessThanOrEqualTo', lessThanOrEqualTo) + ..add('lessThanOrEqualToInsensitive', lessThanOrEqualToInsensitive) + ..add('like', like) + ..add('likeAll', likeAll) + ..add('likeAny', likeAny) + ..add('likeInsensitive', likeInsensitive) + ..add('likeInsensitiveAll', likeInsensitiveAll) + ..add('likeInsensitiveAny', likeInsensitiveAny) + ..add('notDistinctFrom', notDistinctFrom) + ..add('notDistinctFromInsensitive', notDistinctFromInsensitive) + ..add('notEndsWith', notEndsWith) + ..add('notEndsWithAll', notEndsWithAll) + ..add('notEndsWithAny', notEndsWithAny) + ..add('notEndsWithInsensitive', notEndsWithInsensitive) + ..add('notEndsWithInsensitiveAll', notEndsWithInsensitiveAll) + ..add('notEndsWithInsensitiveAny', notEndsWithInsensitiveAny) + ..add('notEqualTo', notEqualTo) + ..add('notEqualToAll', notEqualToAll) + ..add('notEqualToAny', notEqualToAny) + ..add('notIn', notIn) + ..add('notInInsensitive', notInInsensitive) + ..add('notIncludes', notIncludes) + ..add('notIncludesAll', notIncludesAll) + ..add('notIncludesAny', notIncludesAny) + ..add('notIncludesInsensitive', notIncludesInsensitive) + ..add('notIncludesInsensitiveAll', notIncludesInsensitiveAll) + ..add('notIncludesInsensitiveAny', notIncludesInsensitiveAny) + ..add('notLike', notLike) + ..add('notLikeAll', notLikeAll) + ..add('notLikeAny', notLikeAny) + ..add('notLikeInsensitive', notLikeInsensitive) + ..add('notLikeInsensitiveAll', notLikeInsensitiveAll) + ..add('notLikeInsensitiveAny', notLikeInsensitiveAny) + ..add('notStartsWith', notStartsWith) + ..add('notStartsWithAll', notStartsWithAll) + ..add('notStartsWithAny', notStartsWithAny) + ..add('notStartsWithInsensitive', notStartsWithInsensitive) + ..add('notStartsWithInsensitiveAll', notStartsWithInsensitiveAll) + ..add('notStartsWithInsensitiveAny', notStartsWithInsensitiveAny) + ..add('startsWith', startsWith) + ..add('startsWithAll', startsWithAll) + ..add('startsWithAny', startsWithAny) + ..add('startsWithInsensitive', startsWithInsensitive) + ..add('startsWithInsensitiveAll', startsWithInsensitiveAll) + ..add('startsWithInsensitiveAny', startsWithInsensitiveAny)) + .toString(); + } +} + +class GStringFilterInputBuilder + implements Builder { + _$GStringFilterInput? _$v; + + String? _distinctFrom; + String? get distinctFrom => _$this._distinctFrom; + set distinctFrom(String? distinctFrom) => _$this._distinctFrom = distinctFrom; + + ListBuilder? _distinctFromAll; + ListBuilder get distinctFromAll => + _$this._distinctFromAll ??= new ListBuilder(); + set distinctFromAll(ListBuilder? distinctFromAll) => + _$this._distinctFromAll = distinctFromAll; + + ListBuilder? _distinctFromAny; + ListBuilder get distinctFromAny => + _$this._distinctFromAny ??= new ListBuilder(); + set distinctFromAny(ListBuilder? distinctFromAny) => + _$this._distinctFromAny = distinctFromAny; + + String? _distinctFromInsensitive; + String? get distinctFromInsensitive => _$this._distinctFromInsensitive; + set distinctFromInsensitive(String? distinctFromInsensitive) => + _$this._distinctFromInsensitive = distinctFromInsensitive; + + ListBuilder? _distinctFromInsensitiveAll; + ListBuilder get distinctFromInsensitiveAll => + _$this._distinctFromInsensitiveAll ??= new ListBuilder(); + set distinctFromInsensitiveAll( + ListBuilder? distinctFromInsensitiveAll) => + _$this._distinctFromInsensitiveAll = distinctFromInsensitiveAll; + + ListBuilder? _distinctFromInsensitiveAny; + ListBuilder get distinctFromInsensitiveAny => + _$this._distinctFromInsensitiveAny ??= new ListBuilder(); + set distinctFromInsensitiveAny( + ListBuilder? distinctFromInsensitiveAny) => + _$this._distinctFromInsensitiveAny = distinctFromInsensitiveAny; + + String? _endsWith; + String? get endsWith => _$this._endsWith; + set endsWith(String? endsWith) => _$this._endsWith = endsWith; + + ListBuilder? _endsWithAll; + ListBuilder get endsWithAll => + _$this._endsWithAll ??= new ListBuilder(); + set endsWithAll(ListBuilder? endsWithAll) => + _$this._endsWithAll = endsWithAll; + + ListBuilder? _endsWithAny; + ListBuilder get endsWithAny => + _$this._endsWithAny ??= new ListBuilder(); + set endsWithAny(ListBuilder? endsWithAny) => + _$this._endsWithAny = endsWithAny; + + String? _endsWithInsensitive; + String? get endsWithInsensitive => _$this._endsWithInsensitive; + set endsWithInsensitive(String? endsWithInsensitive) => + _$this._endsWithInsensitive = endsWithInsensitive; + + ListBuilder? _endsWithInsensitiveAll; + ListBuilder get endsWithInsensitiveAll => + _$this._endsWithInsensitiveAll ??= new ListBuilder(); + set endsWithInsensitiveAll(ListBuilder? endsWithInsensitiveAll) => + _$this._endsWithInsensitiveAll = endsWithInsensitiveAll; + + ListBuilder? _endsWithInsensitiveAny; + ListBuilder get endsWithInsensitiveAny => + _$this._endsWithInsensitiveAny ??= new ListBuilder(); + set endsWithInsensitiveAny(ListBuilder? endsWithInsensitiveAny) => + _$this._endsWithInsensitiveAny = endsWithInsensitiveAny; + + String? _equalTo; + String? get equalTo => _$this._equalTo; + set equalTo(String? equalTo) => _$this._equalTo = equalTo; + + String? _greaterThan; + String? get greaterThan => _$this._greaterThan; + set greaterThan(String? greaterThan) => _$this._greaterThan = greaterThan; + + String? _greaterThanInsensitive; + String? get greaterThanInsensitive => _$this._greaterThanInsensitive; + set greaterThanInsensitive(String? greaterThanInsensitive) => + _$this._greaterThanInsensitive = greaterThanInsensitive; + + String? _greaterThanOrEqualTo; + String? get greaterThanOrEqualTo => _$this._greaterThanOrEqualTo; + set greaterThanOrEqualTo(String? greaterThanOrEqualTo) => + _$this._greaterThanOrEqualTo = greaterThanOrEqualTo; + + String? _greaterThanOrEqualToInsensitive; + String? get greaterThanOrEqualToInsensitive => + _$this._greaterThanOrEqualToInsensitive; + set greaterThanOrEqualToInsensitive( + String? greaterThanOrEqualToInsensitive) => + _$this._greaterThanOrEqualToInsensitive = greaterThanOrEqualToInsensitive; + + ListBuilder? _Gin; + ListBuilder get Gin => _$this._Gin ??= new ListBuilder(); + set Gin(ListBuilder? Gin) => _$this._Gin = Gin; + + ListBuilder? _inInsensitive; + ListBuilder get inInsensitive => + _$this._inInsensitive ??= new ListBuilder(); + set inInsensitive(ListBuilder? inInsensitive) => + _$this._inInsensitive = inInsensitive; + + String? _includes; + String? get includes => _$this._includes; + set includes(String? includes) => _$this._includes = includes; + + ListBuilder? _includesAll; + ListBuilder get includesAll => + _$this._includesAll ??= new ListBuilder(); + set includesAll(ListBuilder? includesAll) => + _$this._includesAll = includesAll; + + ListBuilder? _includesAny; + ListBuilder get includesAny => + _$this._includesAny ??= new ListBuilder(); + set includesAny(ListBuilder? includesAny) => + _$this._includesAny = includesAny; + + String? _includesInsensitive; + String? get includesInsensitive => _$this._includesInsensitive; + set includesInsensitive(String? includesInsensitive) => + _$this._includesInsensitive = includesInsensitive; + + ListBuilder? _includesInsensitiveAll; + ListBuilder get includesInsensitiveAll => + _$this._includesInsensitiveAll ??= new ListBuilder(); + set includesInsensitiveAll(ListBuilder? includesInsensitiveAll) => + _$this._includesInsensitiveAll = includesInsensitiveAll; + + ListBuilder? _includesInsensitiveAny; + ListBuilder get includesInsensitiveAny => + _$this._includesInsensitiveAny ??= new ListBuilder(); + set includesInsensitiveAny(ListBuilder? includesInsensitiveAny) => + _$this._includesInsensitiveAny = includesInsensitiveAny; + + bool? _isNull; + bool? get isNull => _$this._isNull; + set isNull(bool? isNull) => _$this._isNull = isNull; + + String? _lessThan; + String? get lessThan => _$this._lessThan; + set lessThan(String? lessThan) => _$this._lessThan = lessThan; + + String? _lessThanInsensitive; + String? get lessThanInsensitive => _$this._lessThanInsensitive; + set lessThanInsensitive(String? lessThanInsensitive) => + _$this._lessThanInsensitive = lessThanInsensitive; + + String? _lessThanOrEqualTo; + String? get lessThanOrEqualTo => _$this._lessThanOrEqualTo; + set lessThanOrEqualTo(String? lessThanOrEqualTo) => + _$this._lessThanOrEqualTo = lessThanOrEqualTo; + + String? _lessThanOrEqualToInsensitive; + String? get lessThanOrEqualToInsensitive => + _$this._lessThanOrEqualToInsensitive; + set lessThanOrEqualToInsensitive(String? lessThanOrEqualToInsensitive) => + _$this._lessThanOrEqualToInsensitive = lessThanOrEqualToInsensitive; + + String? _like; + String? get like => _$this._like; + set like(String? like) => _$this._like = like; + + ListBuilder? _likeAll; + ListBuilder get likeAll => + _$this._likeAll ??= new ListBuilder(); + set likeAll(ListBuilder? likeAll) => _$this._likeAll = likeAll; + + ListBuilder? _likeAny; + ListBuilder get likeAny => + _$this._likeAny ??= new ListBuilder(); + set likeAny(ListBuilder? likeAny) => _$this._likeAny = likeAny; + + String? _likeInsensitive; + String? get likeInsensitive => _$this._likeInsensitive; + set likeInsensitive(String? likeInsensitive) => + _$this._likeInsensitive = likeInsensitive; + + ListBuilder? _likeInsensitiveAll; + ListBuilder get likeInsensitiveAll => + _$this._likeInsensitiveAll ??= new ListBuilder(); + set likeInsensitiveAll(ListBuilder? likeInsensitiveAll) => + _$this._likeInsensitiveAll = likeInsensitiveAll; + + ListBuilder? _likeInsensitiveAny; + ListBuilder get likeInsensitiveAny => + _$this._likeInsensitiveAny ??= new ListBuilder(); + set likeInsensitiveAny(ListBuilder? likeInsensitiveAny) => + _$this._likeInsensitiveAny = likeInsensitiveAny; + + String? _notDistinctFrom; + String? get notDistinctFrom => _$this._notDistinctFrom; + set notDistinctFrom(String? notDistinctFrom) => + _$this._notDistinctFrom = notDistinctFrom; + + String? _notDistinctFromInsensitive; + String? get notDistinctFromInsensitive => _$this._notDistinctFromInsensitive; + set notDistinctFromInsensitive(String? notDistinctFromInsensitive) => + _$this._notDistinctFromInsensitive = notDistinctFromInsensitive; + + String? _notEndsWith; + String? get notEndsWith => _$this._notEndsWith; + set notEndsWith(String? notEndsWith) => _$this._notEndsWith = notEndsWith; + + ListBuilder? _notEndsWithAll; + ListBuilder get notEndsWithAll => + _$this._notEndsWithAll ??= new ListBuilder(); + set notEndsWithAll(ListBuilder? notEndsWithAll) => + _$this._notEndsWithAll = notEndsWithAll; + + ListBuilder? _notEndsWithAny; + ListBuilder get notEndsWithAny => + _$this._notEndsWithAny ??= new ListBuilder(); + set notEndsWithAny(ListBuilder? notEndsWithAny) => + _$this._notEndsWithAny = notEndsWithAny; + + String? _notEndsWithInsensitive; + String? get notEndsWithInsensitive => _$this._notEndsWithInsensitive; + set notEndsWithInsensitive(String? notEndsWithInsensitive) => + _$this._notEndsWithInsensitive = notEndsWithInsensitive; + + ListBuilder? _notEndsWithInsensitiveAll; + ListBuilder get notEndsWithInsensitiveAll => + _$this._notEndsWithInsensitiveAll ??= new ListBuilder(); + set notEndsWithInsensitiveAll( + ListBuilder? notEndsWithInsensitiveAll) => + _$this._notEndsWithInsensitiveAll = notEndsWithInsensitiveAll; + + ListBuilder? _notEndsWithInsensitiveAny; + ListBuilder get notEndsWithInsensitiveAny => + _$this._notEndsWithInsensitiveAny ??= new ListBuilder(); + set notEndsWithInsensitiveAny( + ListBuilder? notEndsWithInsensitiveAny) => + _$this._notEndsWithInsensitiveAny = notEndsWithInsensitiveAny; + + String? _notEqualTo; + String? get notEqualTo => _$this._notEqualTo; + set notEqualTo(String? notEqualTo) => _$this._notEqualTo = notEqualTo; + + ListBuilder? _notEqualToAll; + ListBuilder get notEqualToAll => + _$this._notEqualToAll ??= new ListBuilder(); + set notEqualToAll(ListBuilder? notEqualToAll) => + _$this._notEqualToAll = notEqualToAll; + + ListBuilder? _notEqualToAny; + ListBuilder get notEqualToAny => + _$this._notEqualToAny ??= new ListBuilder(); + set notEqualToAny(ListBuilder? notEqualToAny) => + _$this._notEqualToAny = notEqualToAny; + + ListBuilder? _notIn; + ListBuilder get notIn => _$this._notIn ??= new ListBuilder(); + set notIn(ListBuilder? notIn) => _$this._notIn = notIn; + + ListBuilder? _notInInsensitive; + ListBuilder get notInInsensitive => + _$this._notInInsensitive ??= new ListBuilder(); + set notInInsensitive(ListBuilder? notInInsensitive) => + _$this._notInInsensitive = notInInsensitive; + + String? _notIncludes; + String? get notIncludes => _$this._notIncludes; + set notIncludes(String? notIncludes) => _$this._notIncludes = notIncludes; + + ListBuilder? _notIncludesAll; + ListBuilder get notIncludesAll => + _$this._notIncludesAll ??= new ListBuilder(); + set notIncludesAll(ListBuilder? notIncludesAll) => + _$this._notIncludesAll = notIncludesAll; + + ListBuilder? _notIncludesAny; + ListBuilder get notIncludesAny => + _$this._notIncludesAny ??= new ListBuilder(); + set notIncludesAny(ListBuilder? notIncludesAny) => + _$this._notIncludesAny = notIncludesAny; + + String? _notIncludesInsensitive; + String? get notIncludesInsensitive => _$this._notIncludesInsensitive; + set notIncludesInsensitive(String? notIncludesInsensitive) => + _$this._notIncludesInsensitive = notIncludesInsensitive; + + ListBuilder? _notIncludesInsensitiveAll; + ListBuilder get notIncludesInsensitiveAll => + _$this._notIncludesInsensitiveAll ??= new ListBuilder(); + set notIncludesInsensitiveAll( + ListBuilder? notIncludesInsensitiveAll) => + _$this._notIncludesInsensitiveAll = notIncludesInsensitiveAll; + + ListBuilder? _notIncludesInsensitiveAny; + ListBuilder get notIncludesInsensitiveAny => + _$this._notIncludesInsensitiveAny ??= new ListBuilder(); + set notIncludesInsensitiveAny( + ListBuilder? notIncludesInsensitiveAny) => + _$this._notIncludesInsensitiveAny = notIncludesInsensitiveAny; + + String? _notLike; + String? get notLike => _$this._notLike; + set notLike(String? notLike) => _$this._notLike = notLike; + + ListBuilder? _notLikeAll; + ListBuilder get notLikeAll => + _$this._notLikeAll ??= new ListBuilder(); + set notLikeAll(ListBuilder? notLikeAll) => + _$this._notLikeAll = notLikeAll; + + ListBuilder? _notLikeAny; + ListBuilder get notLikeAny => + _$this._notLikeAny ??= new ListBuilder(); + set notLikeAny(ListBuilder? notLikeAny) => + _$this._notLikeAny = notLikeAny; + + String? _notLikeInsensitive; + String? get notLikeInsensitive => _$this._notLikeInsensitive; + set notLikeInsensitive(String? notLikeInsensitive) => + _$this._notLikeInsensitive = notLikeInsensitive; + + ListBuilder? _notLikeInsensitiveAll; + ListBuilder get notLikeInsensitiveAll => + _$this._notLikeInsensitiveAll ??= new ListBuilder(); + set notLikeInsensitiveAll(ListBuilder? notLikeInsensitiveAll) => + _$this._notLikeInsensitiveAll = notLikeInsensitiveAll; + + ListBuilder? _notLikeInsensitiveAny; + ListBuilder get notLikeInsensitiveAny => + _$this._notLikeInsensitiveAny ??= new ListBuilder(); + set notLikeInsensitiveAny(ListBuilder? notLikeInsensitiveAny) => + _$this._notLikeInsensitiveAny = notLikeInsensitiveAny; + + String? _notStartsWith; + String? get notStartsWith => _$this._notStartsWith; + set notStartsWith(String? notStartsWith) => + _$this._notStartsWith = notStartsWith; + + ListBuilder? _notStartsWithAll; + ListBuilder get notStartsWithAll => + _$this._notStartsWithAll ??= new ListBuilder(); + set notStartsWithAll(ListBuilder? notStartsWithAll) => + _$this._notStartsWithAll = notStartsWithAll; + + ListBuilder? _notStartsWithAny; + ListBuilder get notStartsWithAny => + _$this._notStartsWithAny ??= new ListBuilder(); + set notStartsWithAny(ListBuilder? notStartsWithAny) => + _$this._notStartsWithAny = notStartsWithAny; + + String? _notStartsWithInsensitive; + String? get notStartsWithInsensitive => _$this._notStartsWithInsensitive; + set notStartsWithInsensitive(String? notStartsWithInsensitive) => + _$this._notStartsWithInsensitive = notStartsWithInsensitive; + + ListBuilder? _notStartsWithInsensitiveAll; + ListBuilder get notStartsWithInsensitiveAll => + _$this._notStartsWithInsensitiveAll ??= new ListBuilder(); + set notStartsWithInsensitiveAll( + ListBuilder? notStartsWithInsensitiveAll) => + _$this._notStartsWithInsensitiveAll = notStartsWithInsensitiveAll; + + ListBuilder? _notStartsWithInsensitiveAny; + ListBuilder get notStartsWithInsensitiveAny => + _$this._notStartsWithInsensitiveAny ??= new ListBuilder(); + set notStartsWithInsensitiveAny( + ListBuilder? notStartsWithInsensitiveAny) => + _$this._notStartsWithInsensitiveAny = notStartsWithInsensitiveAny; + + String? _startsWith; + String? get startsWith => _$this._startsWith; + set startsWith(String? startsWith) => _$this._startsWith = startsWith; + + ListBuilder? _startsWithAll; + ListBuilder get startsWithAll => + _$this._startsWithAll ??= new ListBuilder(); + set startsWithAll(ListBuilder? startsWithAll) => + _$this._startsWithAll = startsWithAll; + + ListBuilder? _startsWithAny; + ListBuilder get startsWithAny => + _$this._startsWithAny ??= new ListBuilder(); + set startsWithAny(ListBuilder? startsWithAny) => + _$this._startsWithAny = startsWithAny; + + String? _startsWithInsensitive; + String? get startsWithInsensitive => _$this._startsWithInsensitive; + set startsWithInsensitive(String? startsWithInsensitive) => + _$this._startsWithInsensitive = startsWithInsensitive; + + ListBuilder? _startsWithInsensitiveAll; + ListBuilder get startsWithInsensitiveAll => + _$this._startsWithInsensitiveAll ??= new ListBuilder(); + set startsWithInsensitiveAll(ListBuilder? startsWithInsensitiveAll) => + _$this._startsWithInsensitiveAll = startsWithInsensitiveAll; + + ListBuilder? _startsWithInsensitiveAny; + ListBuilder get startsWithInsensitiveAny => + _$this._startsWithInsensitiveAny ??= new ListBuilder(); + set startsWithInsensitiveAny(ListBuilder? startsWithInsensitiveAny) => + _$this._startsWithInsensitiveAny = startsWithInsensitiveAny; + + GStringFilterInputBuilder(); + + GStringFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _distinctFrom = $v.distinctFrom; + _distinctFromAll = $v.distinctFromAll?.toBuilder(); + _distinctFromAny = $v.distinctFromAny?.toBuilder(); + _distinctFromInsensitive = $v.distinctFromInsensitive; + _distinctFromInsensitiveAll = $v.distinctFromInsensitiveAll?.toBuilder(); + _distinctFromInsensitiveAny = $v.distinctFromInsensitiveAny?.toBuilder(); + _endsWith = $v.endsWith; + _endsWithAll = $v.endsWithAll?.toBuilder(); + _endsWithAny = $v.endsWithAny?.toBuilder(); + _endsWithInsensitive = $v.endsWithInsensitive; + _endsWithInsensitiveAll = $v.endsWithInsensitiveAll?.toBuilder(); + _endsWithInsensitiveAny = $v.endsWithInsensitiveAny?.toBuilder(); + _equalTo = $v.equalTo; + _greaterThan = $v.greaterThan; + _greaterThanInsensitive = $v.greaterThanInsensitive; + _greaterThanOrEqualTo = $v.greaterThanOrEqualTo; + _greaterThanOrEqualToInsensitive = $v.greaterThanOrEqualToInsensitive; + _Gin = $v.Gin?.toBuilder(); + _inInsensitive = $v.inInsensitive?.toBuilder(); + _includes = $v.includes; + _includesAll = $v.includesAll?.toBuilder(); + _includesAny = $v.includesAny?.toBuilder(); + _includesInsensitive = $v.includesInsensitive; + _includesInsensitiveAll = $v.includesInsensitiveAll?.toBuilder(); + _includesInsensitiveAny = $v.includesInsensitiveAny?.toBuilder(); + _isNull = $v.isNull; + _lessThan = $v.lessThan; + _lessThanInsensitive = $v.lessThanInsensitive; + _lessThanOrEqualTo = $v.lessThanOrEqualTo; + _lessThanOrEqualToInsensitive = $v.lessThanOrEqualToInsensitive; + _like = $v.like; + _likeAll = $v.likeAll?.toBuilder(); + _likeAny = $v.likeAny?.toBuilder(); + _likeInsensitive = $v.likeInsensitive; + _likeInsensitiveAll = $v.likeInsensitiveAll?.toBuilder(); + _likeInsensitiveAny = $v.likeInsensitiveAny?.toBuilder(); + _notDistinctFrom = $v.notDistinctFrom; + _notDistinctFromInsensitive = $v.notDistinctFromInsensitive; + _notEndsWith = $v.notEndsWith; + _notEndsWithAll = $v.notEndsWithAll?.toBuilder(); + _notEndsWithAny = $v.notEndsWithAny?.toBuilder(); + _notEndsWithInsensitive = $v.notEndsWithInsensitive; + _notEndsWithInsensitiveAll = $v.notEndsWithInsensitiveAll?.toBuilder(); + _notEndsWithInsensitiveAny = $v.notEndsWithInsensitiveAny?.toBuilder(); + _notEqualTo = $v.notEqualTo; + _notEqualToAll = $v.notEqualToAll?.toBuilder(); + _notEqualToAny = $v.notEqualToAny?.toBuilder(); + _notIn = $v.notIn?.toBuilder(); + _notInInsensitive = $v.notInInsensitive?.toBuilder(); + _notIncludes = $v.notIncludes; + _notIncludesAll = $v.notIncludesAll?.toBuilder(); + _notIncludesAny = $v.notIncludesAny?.toBuilder(); + _notIncludesInsensitive = $v.notIncludesInsensitive; + _notIncludesInsensitiveAll = $v.notIncludesInsensitiveAll?.toBuilder(); + _notIncludesInsensitiveAny = $v.notIncludesInsensitiveAny?.toBuilder(); + _notLike = $v.notLike; + _notLikeAll = $v.notLikeAll?.toBuilder(); + _notLikeAny = $v.notLikeAny?.toBuilder(); + _notLikeInsensitive = $v.notLikeInsensitive; + _notLikeInsensitiveAll = $v.notLikeInsensitiveAll?.toBuilder(); + _notLikeInsensitiveAny = $v.notLikeInsensitiveAny?.toBuilder(); + _notStartsWith = $v.notStartsWith; + _notStartsWithAll = $v.notStartsWithAll?.toBuilder(); + _notStartsWithAny = $v.notStartsWithAny?.toBuilder(); + _notStartsWithInsensitive = $v.notStartsWithInsensitive; + _notStartsWithInsensitiveAll = + $v.notStartsWithInsensitiveAll?.toBuilder(); + _notStartsWithInsensitiveAny = + $v.notStartsWithInsensitiveAny?.toBuilder(); + _startsWith = $v.startsWith; + _startsWithAll = $v.startsWithAll?.toBuilder(); + _startsWithAny = $v.startsWithAny?.toBuilder(); + _startsWithInsensitive = $v.startsWithInsensitive; + _startsWithInsensitiveAll = $v.startsWithInsensitiveAll?.toBuilder(); + _startsWithInsensitiveAny = $v.startsWithInsensitiveAny?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GStringFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GStringFilterInput; + } + + @override + void update(void Function(GStringFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GStringFilterInput build() => _build(); + + _$GStringFilterInput _build() { + _$GStringFilterInput _$result; + try { + _$result = _$v ?? + new _$GStringFilterInput._( + distinctFrom: distinctFrom, + distinctFromAll: _distinctFromAll?.build(), + distinctFromAny: _distinctFromAny?.build(), + distinctFromInsensitive: distinctFromInsensitive, + distinctFromInsensitiveAll: _distinctFromInsensitiveAll?.build(), + distinctFromInsensitiveAny: _distinctFromInsensitiveAny?.build(), + endsWith: endsWith, + endsWithAll: _endsWithAll?.build(), + endsWithAny: _endsWithAny?.build(), + endsWithInsensitive: endsWithInsensitive, + endsWithInsensitiveAll: _endsWithInsensitiveAll?.build(), + endsWithInsensitiveAny: _endsWithInsensitiveAny?.build(), + equalTo: equalTo, + greaterThan: greaterThan, + greaterThanInsensitive: greaterThanInsensitive, + greaterThanOrEqualTo: greaterThanOrEqualTo, + greaterThanOrEqualToInsensitive: greaterThanOrEqualToInsensitive, + Gin: _Gin?.build(), + inInsensitive: _inInsensitive?.build(), + includes: includes, + includesAll: _includesAll?.build(), + includesAny: _includesAny?.build(), + includesInsensitive: includesInsensitive, + includesInsensitiveAll: _includesInsensitiveAll?.build(), + includesInsensitiveAny: _includesInsensitiveAny?.build(), + isNull: isNull, + lessThan: lessThan, + lessThanInsensitive: lessThanInsensitive, + lessThanOrEqualTo: lessThanOrEqualTo, + lessThanOrEqualToInsensitive: lessThanOrEqualToInsensitive, + like: like, + likeAll: _likeAll?.build(), + likeAny: _likeAny?.build(), + likeInsensitive: likeInsensitive, + likeInsensitiveAll: _likeInsensitiveAll?.build(), + likeInsensitiveAny: _likeInsensitiveAny?.build(), + notDistinctFrom: notDistinctFrom, + notDistinctFromInsensitive: notDistinctFromInsensitive, + notEndsWith: notEndsWith, + notEndsWithAll: _notEndsWithAll?.build(), + notEndsWithAny: _notEndsWithAny?.build(), + notEndsWithInsensitive: notEndsWithInsensitive, + notEndsWithInsensitiveAll: _notEndsWithInsensitiveAll?.build(), + notEndsWithInsensitiveAny: _notEndsWithInsensitiveAny?.build(), + notEqualTo: notEqualTo, + notEqualToAll: _notEqualToAll?.build(), + notEqualToAny: _notEqualToAny?.build(), + notIn: _notIn?.build(), + notInInsensitive: _notInInsensitive?.build(), + notIncludes: notIncludes, + notIncludesAll: _notIncludesAll?.build(), + notIncludesAny: _notIncludesAny?.build(), + notIncludesInsensitive: notIncludesInsensitive, + notIncludesInsensitiveAll: _notIncludesInsensitiveAll?.build(), + notIncludesInsensitiveAny: _notIncludesInsensitiveAny?.build(), + notLike: notLike, + notLikeAll: _notLikeAll?.build(), + notLikeAny: _notLikeAny?.build(), + notLikeInsensitive: notLikeInsensitive, + notLikeInsensitiveAll: _notLikeInsensitiveAll?.build(), + notLikeInsensitiveAny: _notLikeInsensitiveAny?.build(), + notStartsWith: notStartsWith, + notStartsWithAll: _notStartsWithAll?.build(), + notStartsWithAny: _notStartsWithAny?.build(), + notStartsWithInsensitive: notStartsWithInsensitive, + notStartsWithInsensitiveAll: _notStartsWithInsensitiveAll?.build(), + notStartsWithInsensitiveAny: _notStartsWithInsensitiveAny?.build(), + startsWith: startsWith, + startsWithAll: _startsWithAll?.build(), + startsWithAny: _startsWithAny?.build(), + startsWithInsensitive: startsWithInsensitive, + startsWithInsensitiveAll: _startsWithInsensitiveAll?.build(), + startsWithInsensitiveAny: _startsWithInsensitiveAny?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'distinctFromAll'; + _distinctFromAll?.build(); + _$failedField = 'distinctFromAny'; + _distinctFromAny?.build(); + + _$failedField = 'distinctFromInsensitiveAll'; + _distinctFromInsensitiveAll?.build(); + _$failedField = 'distinctFromInsensitiveAny'; + _distinctFromInsensitiveAny?.build(); + + _$failedField = 'endsWithAll'; + _endsWithAll?.build(); + _$failedField = 'endsWithAny'; + _endsWithAny?.build(); + + _$failedField = 'endsWithInsensitiveAll'; + _endsWithInsensitiveAll?.build(); + _$failedField = 'endsWithInsensitiveAny'; + _endsWithInsensitiveAny?.build(); + + _$failedField = 'Gin'; + _Gin?.build(); + _$failedField = 'inInsensitive'; + _inInsensitive?.build(); + + _$failedField = 'includesAll'; + _includesAll?.build(); + _$failedField = 'includesAny'; + _includesAny?.build(); + + _$failedField = 'includesInsensitiveAll'; + _includesInsensitiveAll?.build(); + _$failedField = 'includesInsensitiveAny'; + _includesInsensitiveAny?.build(); + + _$failedField = 'likeAll'; + _likeAll?.build(); + _$failedField = 'likeAny'; + _likeAny?.build(); + + _$failedField = 'likeInsensitiveAll'; + _likeInsensitiveAll?.build(); + _$failedField = 'likeInsensitiveAny'; + _likeInsensitiveAny?.build(); + + _$failedField = 'notEndsWithAll'; + _notEndsWithAll?.build(); + _$failedField = 'notEndsWithAny'; + _notEndsWithAny?.build(); + + _$failedField = 'notEndsWithInsensitiveAll'; + _notEndsWithInsensitiveAll?.build(); + _$failedField = 'notEndsWithInsensitiveAny'; + _notEndsWithInsensitiveAny?.build(); + + _$failedField = 'notEqualToAll'; + _notEqualToAll?.build(); + _$failedField = 'notEqualToAny'; + _notEqualToAny?.build(); + _$failedField = 'notIn'; + _notIn?.build(); + _$failedField = 'notInInsensitive'; + _notInInsensitive?.build(); + + _$failedField = 'notIncludesAll'; + _notIncludesAll?.build(); + _$failedField = 'notIncludesAny'; + _notIncludesAny?.build(); + + _$failedField = 'notIncludesInsensitiveAll'; + _notIncludesInsensitiveAll?.build(); + _$failedField = 'notIncludesInsensitiveAny'; + _notIncludesInsensitiveAny?.build(); + + _$failedField = 'notLikeAll'; + _notLikeAll?.build(); + _$failedField = 'notLikeAny'; + _notLikeAny?.build(); + + _$failedField = 'notLikeInsensitiveAll'; + _notLikeInsensitiveAll?.build(); + _$failedField = 'notLikeInsensitiveAny'; + _notLikeInsensitiveAny?.build(); + + _$failedField = 'notStartsWithAll'; + _notStartsWithAll?.build(); + _$failedField = 'notStartsWithAny'; + _notStartsWithAny?.build(); + + _$failedField = 'notStartsWithInsensitiveAll'; + _notStartsWithInsensitiveAll?.build(); + _$failedField = 'notStartsWithInsensitiveAny'; + _notStartsWithInsensitiveAny?.build(); + + _$failedField = 'startsWithAll'; + _startsWithAll?.build(); + _$failedField = 'startsWithAny'; + _startsWithAny?.build(); + + _$failedField = 'startsWithInsensitiveAll'; + _startsWithInsensitiveAll?.build(); + _$failedField = 'startsWithInsensitiveAny'; + _startsWithInsensitiveAny?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GStringFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GTrackerConditionInput extends GTrackerConditionInput { + @override + final String? icon; + @override + final int? id; + @override + final bool? isLoggedIn; + @override + final String? name; + + factory _$GTrackerConditionInput( + [void Function(GTrackerConditionInputBuilder)? updates]) => + (new GTrackerConditionInputBuilder()..update(updates))._build(); + + _$GTrackerConditionInput._({this.icon, this.id, this.isLoggedIn, this.name}) + : super._(); + + @override + GTrackerConditionInput rebuild( + void Function(GTrackerConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackerConditionInputBuilder toBuilder() => + new GTrackerConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackerConditionInput && + icon == other.icon && + id == other.id && + isLoggedIn == other.isLoggedIn && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, icon.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, isLoggedIn.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackerConditionInput') + ..add('icon', icon) + ..add('id', id) + ..add('isLoggedIn', isLoggedIn) + ..add('name', name)) + .toString(); + } +} + +class GTrackerConditionInputBuilder + implements Builder { + _$GTrackerConditionInput? _$v; + + String? _icon; + String? get icon => _$this._icon; + set icon(String? icon) => _$this._icon = icon; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + bool? _isLoggedIn; + bool? get isLoggedIn => _$this._isLoggedIn; + set isLoggedIn(bool? isLoggedIn) => _$this._isLoggedIn = isLoggedIn; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GTrackerConditionInputBuilder(); + + GTrackerConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _icon = $v.icon; + _id = $v.id; + _isLoggedIn = $v.isLoggedIn; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GTrackerConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackerConditionInput; + } + + @override + void update(void Function(GTrackerConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackerConditionInput build() => _build(); + + _$GTrackerConditionInput _build() { + final _$result = _$v ?? + new _$GTrackerConditionInput._( + icon: icon, + id: id, + isLoggedIn: isLoggedIn, + name: name, + ); + replace(_$result); + return _$result; + } +} + +class _$GTrackerOrderInput extends GTrackerOrderInput { + @override + final GTrackerOrderBy by; + @override + final GSortOrder? byType; + + factory _$GTrackerOrderInput( + [void Function(GTrackerOrderInputBuilder)? updates]) => + (new GTrackerOrderInputBuilder()..update(updates))._build(); + + _$GTrackerOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GTrackerOrderInput', 'by'); + } + + @override + GTrackerOrderInput rebuild( + void Function(GTrackerOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackerOrderInputBuilder toBuilder() => + new GTrackerOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackerOrderInput && + by == other.by && + byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackerOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GTrackerOrderInputBuilder + implements Builder { + _$GTrackerOrderInput? _$v; + + GTrackerOrderBy? _by; + GTrackerOrderBy? get by => _$this._by; + set by(GTrackerOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GTrackerOrderInputBuilder(); + + GTrackerOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GTrackerOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackerOrderInput; + } + + @override + void update(void Function(GTrackerOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackerOrderInput build() => _build(); + + _$GTrackerOrderInput _build() { + final _$result = _$v ?? + new _$GTrackerOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GTrackerOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GTrackProgressInput extends GTrackProgressInput { + @override + final String? clientMutationId; + @override + final int mangaId; + + factory _$GTrackProgressInput( + [void Function(GTrackProgressInputBuilder)? updates]) => + (new GTrackProgressInputBuilder()..update(updates))._build(); + + _$GTrackProgressInput._({this.clientMutationId, required this.mangaId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + mangaId, r'GTrackProgressInput', 'mangaId'); + } + + @override + GTrackProgressInput rebuild( + void Function(GTrackProgressInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackProgressInputBuilder toBuilder() => + new GTrackProgressInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackProgressInput && + clientMutationId == other.clientMutationId && + mangaId == other.mangaId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackProgressInput') + ..add('clientMutationId', clientMutationId) + ..add('mangaId', mangaId)) + .toString(); + } +} + +class GTrackProgressInputBuilder + implements Builder { + _$GTrackProgressInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GTrackProgressInputBuilder(); + + GTrackProgressInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _mangaId = $v.mangaId; + _$v = null; + } + return this; + } + + @override + void replace(GTrackProgressInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackProgressInput; + } + + @override + void update(void Function(GTrackProgressInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackProgressInput build() => _build(); + + _$GTrackProgressInput _build() { + final _$result = _$v ?? + new _$GTrackProgressInput._( + clientMutationId: clientMutationId, + mangaId: BuiltValueNullFieldError.checkNotNull( + mangaId, r'GTrackProgressInput', 'mangaId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GTrackRecordConditionInput extends GTrackRecordConditionInput { + @override + final GLongString? finishDate; + @override + final int? id; + @override + final double? lastChapterRead; + @override + final GLongString? libraryId; + @override + final int? mangaId; + @override + final GLongString? remoteId; + @override + final String? remoteUrl; + @override + final double? score; + @override + final GLongString? startDate; + @override + final int? status; + @override + final String? title; + @override + final int? totalChapters; + @override + final int? trackerId; + + factory _$GTrackRecordConditionInput( + [void Function(GTrackRecordConditionInputBuilder)? updates]) => + (new GTrackRecordConditionInputBuilder()..update(updates))._build(); + + _$GTrackRecordConditionInput._( + {this.finishDate, + this.id, + this.lastChapterRead, + this.libraryId, + this.mangaId, + this.remoteId, + this.remoteUrl, + this.score, + this.startDate, + this.status, + this.title, + this.totalChapters, + this.trackerId}) + : super._(); + + @override + GTrackRecordConditionInput rebuild( + void Function(GTrackRecordConditionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackRecordConditionInputBuilder toBuilder() => + new GTrackRecordConditionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackRecordConditionInput && + finishDate == other.finishDate && + id == other.id && + lastChapterRead == other.lastChapterRead && + libraryId == other.libraryId && + mangaId == other.mangaId && + remoteId == other.remoteId && + remoteUrl == other.remoteUrl && + score == other.score && + startDate == other.startDate && + status == other.status && + title == other.title && + totalChapters == other.totalChapters && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, finishDate.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastChapterRead.hashCode); + _$hash = $jc(_$hash, libraryId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, remoteId.hashCode); + _$hash = $jc(_$hash, remoteUrl.hashCode); + _$hash = $jc(_$hash, score.hashCode); + _$hash = $jc(_$hash, startDate.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, totalChapters.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackRecordConditionInput') + ..add('finishDate', finishDate) + ..add('id', id) + ..add('lastChapterRead', lastChapterRead) + ..add('libraryId', libraryId) + ..add('mangaId', mangaId) + ..add('remoteId', remoteId) + ..add('remoteUrl', remoteUrl) + ..add('score', score) + ..add('startDate', startDate) + ..add('status', status) + ..add('title', title) + ..add('totalChapters', totalChapters) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GTrackRecordConditionInputBuilder + implements + Builder { + _$GTrackRecordConditionInput? _$v; + + GLongStringBuilder? _finishDate; + GLongStringBuilder get finishDate => + _$this._finishDate ??= new GLongStringBuilder(); + set finishDate(GLongStringBuilder? finishDate) => + _$this._finishDate = finishDate; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + double? _lastChapterRead; + double? get lastChapterRead => _$this._lastChapterRead; + set lastChapterRead(double? lastChapterRead) => + _$this._lastChapterRead = lastChapterRead; + + GLongStringBuilder? _libraryId; + GLongStringBuilder get libraryId => + _$this._libraryId ??= new GLongStringBuilder(); + set libraryId(GLongStringBuilder? libraryId) => _$this._libraryId = libraryId; + + int? _mangaId; + int? get mangaId => _$this._mangaId; + set mangaId(int? mangaId) => _$this._mangaId = mangaId; + + GLongStringBuilder? _remoteId; + GLongStringBuilder get remoteId => + _$this._remoteId ??= new GLongStringBuilder(); + set remoteId(GLongStringBuilder? remoteId) => _$this._remoteId = remoteId; + + String? _remoteUrl; + String? get remoteUrl => _$this._remoteUrl; + set remoteUrl(String? remoteUrl) => _$this._remoteUrl = remoteUrl; + + double? _score; + double? get score => _$this._score; + set score(double? score) => _$this._score = score; + + GLongStringBuilder? _startDate; + GLongStringBuilder get startDate => + _$this._startDate ??= new GLongStringBuilder(); + set startDate(GLongStringBuilder? startDate) => _$this._startDate = startDate; + + int? _status; + int? get status => _$this._status; + set status(int? status) => _$this._status = status; + + String? _title; + String? get title => _$this._title; + set title(String? title) => _$this._title = title; + + int? _totalChapters; + int? get totalChapters => _$this._totalChapters; + set totalChapters(int? totalChapters) => + _$this._totalChapters = totalChapters; + + int? _trackerId; + int? get trackerId => _$this._trackerId; + set trackerId(int? trackerId) => _$this._trackerId = trackerId; + + GTrackRecordConditionInputBuilder(); + + GTrackRecordConditionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _finishDate = $v.finishDate?.toBuilder(); + _id = $v.id; + _lastChapterRead = $v.lastChapterRead; + _libraryId = $v.libraryId?.toBuilder(); + _mangaId = $v.mangaId; + _remoteId = $v.remoteId?.toBuilder(); + _remoteUrl = $v.remoteUrl; + _score = $v.score; + _startDate = $v.startDate?.toBuilder(); + _status = $v.status; + _title = $v.title; + _totalChapters = $v.totalChapters; + _trackerId = $v.trackerId; + _$v = null; + } + return this; + } + + @override + void replace(GTrackRecordConditionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackRecordConditionInput; + } + + @override + void update(void Function(GTrackRecordConditionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackRecordConditionInput build() => _build(); + + _$GTrackRecordConditionInput _build() { + _$GTrackRecordConditionInput _$result; + try { + _$result = _$v ?? + new _$GTrackRecordConditionInput._( + finishDate: _finishDate?.build(), + id: id, + lastChapterRead: lastChapterRead, + libraryId: _libraryId?.build(), + mangaId: mangaId, + remoteId: _remoteId?.build(), + remoteUrl: remoteUrl, + score: score, + startDate: _startDate?.build(), + status: status, + title: title, + totalChapters: totalChapters, + trackerId: trackerId, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'finishDate'; + _finishDate?.build(); + + _$failedField = 'libraryId'; + _libraryId?.build(); + + _$failedField = 'remoteId'; + _remoteId?.build(); + + _$failedField = 'startDate'; + _startDate?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GTrackRecordConditionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GTrackRecordFilterInput extends GTrackRecordFilterInput { + @override + final BuiltList? and; + @override + final GLongFilterInput? finishDate; + @override + final GIntFilterInput? id; + @override + final GDoubleFilterInput? lastChapterRead; + @override + final GLongFilterInput? libraryId; + @override + final GIntFilterInput? mangaId; + @override + final GTrackRecordFilterInput? not; + @override + final BuiltList? or; + @override + final GLongFilterInput? remoteId; + @override + final GStringFilterInput? remoteUrl; + @override + final GDoubleFilterInput? score; + @override + final GLongFilterInput? startDate; + @override + final GIntFilterInput? status; + @override + final GStringFilterInput? title; + @override + final GIntFilterInput? totalChapters; + @override + final GIntFilterInput? trackerId; + + factory _$GTrackRecordFilterInput( + [void Function(GTrackRecordFilterInputBuilder)? updates]) => + (new GTrackRecordFilterInputBuilder()..update(updates))._build(); + + _$GTrackRecordFilterInput._( + {this.and, + this.finishDate, + this.id, + this.lastChapterRead, + this.libraryId, + this.mangaId, + this.not, + this.or, + this.remoteId, + this.remoteUrl, + this.score, + this.startDate, + this.status, + this.title, + this.totalChapters, + this.trackerId}) + : super._(); + + @override + GTrackRecordFilterInput rebuild( + void Function(GTrackRecordFilterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackRecordFilterInputBuilder toBuilder() => + new GTrackRecordFilterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackRecordFilterInput && + and == other.and && + finishDate == other.finishDate && + id == other.id && + lastChapterRead == other.lastChapterRead && + libraryId == other.libraryId && + mangaId == other.mangaId && + not == other.not && + or == other.or && + remoteId == other.remoteId && + remoteUrl == other.remoteUrl && + score == other.score && + startDate == other.startDate && + status == other.status && + title == other.title && + totalChapters == other.totalChapters && + trackerId == other.trackerId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, and.hashCode); + _$hash = $jc(_$hash, finishDate.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, lastChapterRead.hashCode); + _$hash = $jc(_$hash, libraryId.hashCode); + _$hash = $jc(_$hash, mangaId.hashCode); + _$hash = $jc(_$hash, not.hashCode); + _$hash = $jc(_$hash, or.hashCode); + _$hash = $jc(_$hash, remoteId.hashCode); + _$hash = $jc(_$hash, remoteUrl.hashCode); + _$hash = $jc(_$hash, score.hashCode); + _$hash = $jc(_$hash, startDate.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, title.hashCode); + _$hash = $jc(_$hash, totalChapters.hashCode); + _$hash = $jc(_$hash, trackerId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackRecordFilterInput') + ..add('and', and) + ..add('finishDate', finishDate) + ..add('id', id) + ..add('lastChapterRead', lastChapterRead) + ..add('libraryId', libraryId) + ..add('mangaId', mangaId) + ..add('not', not) + ..add('or', or) + ..add('remoteId', remoteId) + ..add('remoteUrl', remoteUrl) + ..add('score', score) + ..add('startDate', startDate) + ..add('status', status) + ..add('title', title) + ..add('totalChapters', totalChapters) + ..add('trackerId', trackerId)) + .toString(); + } +} + +class GTrackRecordFilterInputBuilder + implements + Builder { + _$GTrackRecordFilterInput? _$v; + + ListBuilder? _and; + ListBuilder get and => + _$this._and ??= new ListBuilder(); + set and(ListBuilder? and) => _$this._and = and; + + GLongFilterInputBuilder? _finishDate; + GLongFilterInputBuilder get finishDate => + _$this._finishDate ??= new GLongFilterInputBuilder(); + set finishDate(GLongFilterInputBuilder? finishDate) => + _$this._finishDate = finishDate; + + GIntFilterInputBuilder? _id; + GIntFilterInputBuilder get id => _$this._id ??= new GIntFilterInputBuilder(); + set id(GIntFilterInputBuilder? id) => _$this._id = id; + + GDoubleFilterInputBuilder? _lastChapterRead; + GDoubleFilterInputBuilder get lastChapterRead => + _$this._lastChapterRead ??= new GDoubleFilterInputBuilder(); + set lastChapterRead(GDoubleFilterInputBuilder? lastChapterRead) => + _$this._lastChapterRead = lastChapterRead; + + GLongFilterInputBuilder? _libraryId; + GLongFilterInputBuilder get libraryId => + _$this._libraryId ??= new GLongFilterInputBuilder(); + set libraryId(GLongFilterInputBuilder? libraryId) => + _$this._libraryId = libraryId; + + GIntFilterInputBuilder? _mangaId; + GIntFilterInputBuilder get mangaId => + _$this._mangaId ??= new GIntFilterInputBuilder(); + set mangaId(GIntFilterInputBuilder? mangaId) => _$this._mangaId = mangaId; + + GTrackRecordFilterInputBuilder? _not; + GTrackRecordFilterInputBuilder get not => + _$this._not ??= new GTrackRecordFilterInputBuilder(); + set not(GTrackRecordFilterInputBuilder? not) => _$this._not = not; + + ListBuilder? _or; + ListBuilder get or => + _$this._or ??= new ListBuilder(); + set or(ListBuilder? or) => _$this._or = or; + + GLongFilterInputBuilder? _remoteId; + GLongFilterInputBuilder get remoteId => + _$this._remoteId ??= new GLongFilterInputBuilder(); + set remoteId(GLongFilterInputBuilder? remoteId) => + _$this._remoteId = remoteId; + + GStringFilterInputBuilder? _remoteUrl; + GStringFilterInputBuilder get remoteUrl => + _$this._remoteUrl ??= new GStringFilterInputBuilder(); + set remoteUrl(GStringFilterInputBuilder? remoteUrl) => + _$this._remoteUrl = remoteUrl; + + GDoubleFilterInputBuilder? _score; + GDoubleFilterInputBuilder get score => + _$this._score ??= new GDoubleFilterInputBuilder(); + set score(GDoubleFilterInputBuilder? score) => _$this._score = score; + + GLongFilterInputBuilder? _startDate; + GLongFilterInputBuilder get startDate => + _$this._startDate ??= new GLongFilterInputBuilder(); + set startDate(GLongFilterInputBuilder? startDate) => + _$this._startDate = startDate; + + GIntFilterInputBuilder? _status; + GIntFilterInputBuilder get status => + _$this._status ??= new GIntFilterInputBuilder(); + set status(GIntFilterInputBuilder? status) => _$this._status = status; + + GStringFilterInputBuilder? _title; + GStringFilterInputBuilder get title => + _$this._title ??= new GStringFilterInputBuilder(); + set title(GStringFilterInputBuilder? title) => _$this._title = title; + + GIntFilterInputBuilder? _totalChapters; + GIntFilterInputBuilder get totalChapters => + _$this._totalChapters ??= new GIntFilterInputBuilder(); + set totalChapters(GIntFilterInputBuilder? totalChapters) => + _$this._totalChapters = totalChapters; + + GIntFilterInputBuilder? _trackerId; + GIntFilterInputBuilder get trackerId => + _$this._trackerId ??= new GIntFilterInputBuilder(); + set trackerId(GIntFilterInputBuilder? trackerId) => + _$this._trackerId = trackerId; + + GTrackRecordFilterInputBuilder(); + + GTrackRecordFilterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _and = $v.and?.toBuilder(); + _finishDate = $v.finishDate?.toBuilder(); + _id = $v.id?.toBuilder(); + _lastChapterRead = $v.lastChapterRead?.toBuilder(); + _libraryId = $v.libraryId?.toBuilder(); + _mangaId = $v.mangaId?.toBuilder(); + _not = $v.not?.toBuilder(); + _or = $v.or?.toBuilder(); + _remoteId = $v.remoteId?.toBuilder(); + _remoteUrl = $v.remoteUrl?.toBuilder(); + _score = $v.score?.toBuilder(); + _startDate = $v.startDate?.toBuilder(); + _status = $v.status?.toBuilder(); + _title = $v.title?.toBuilder(); + _totalChapters = $v.totalChapters?.toBuilder(); + _trackerId = $v.trackerId?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GTrackRecordFilterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackRecordFilterInput; + } + + @override + void update(void Function(GTrackRecordFilterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackRecordFilterInput build() => _build(); + + _$GTrackRecordFilterInput _build() { + _$GTrackRecordFilterInput _$result; + try { + _$result = _$v ?? + new _$GTrackRecordFilterInput._( + and: _and?.build(), + finishDate: _finishDate?.build(), + id: _id?.build(), + lastChapterRead: _lastChapterRead?.build(), + libraryId: _libraryId?.build(), + mangaId: _mangaId?.build(), + not: _not?.build(), + or: _or?.build(), + remoteId: _remoteId?.build(), + remoteUrl: _remoteUrl?.build(), + score: _score?.build(), + startDate: _startDate?.build(), + status: _status?.build(), + title: _title?.build(), + totalChapters: _totalChapters?.build(), + trackerId: _trackerId?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'and'; + _and?.build(); + _$failedField = 'finishDate'; + _finishDate?.build(); + _$failedField = 'id'; + _id?.build(); + _$failedField = 'lastChapterRead'; + _lastChapterRead?.build(); + _$failedField = 'libraryId'; + _libraryId?.build(); + _$failedField = 'mangaId'; + _mangaId?.build(); + _$failedField = 'not'; + _not?.build(); + _$failedField = 'or'; + _or?.build(); + _$failedField = 'remoteId'; + _remoteId?.build(); + _$failedField = 'remoteUrl'; + _remoteUrl?.build(); + _$failedField = 'score'; + _score?.build(); + _$failedField = 'startDate'; + _startDate?.build(); + _$failedField = 'status'; + _status?.build(); + _$failedField = 'title'; + _title?.build(); + _$failedField = 'totalChapters'; + _totalChapters?.build(); + _$failedField = 'trackerId'; + _trackerId?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GTrackRecordFilterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GTrackRecordOrderInput extends GTrackRecordOrderInput { + @override + final GTrackRecordOrderBy by; + @override + final GSortOrder? byType; + + factory _$GTrackRecordOrderInput( + [void Function(GTrackRecordOrderInputBuilder)? updates]) => + (new GTrackRecordOrderInputBuilder()..update(updates))._build(); + + _$GTrackRecordOrderInput._({required this.by, this.byType}) : super._() { + BuiltValueNullFieldError.checkNotNull(by, r'GTrackRecordOrderInput', 'by'); + } + + @override + GTrackRecordOrderInput rebuild( + void Function(GTrackRecordOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GTrackRecordOrderInputBuilder toBuilder() => + new GTrackRecordOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GTrackRecordOrderInput && + by == other.by && + byType == other.byType; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, by.hashCode); + _$hash = $jc(_$hash, byType.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GTrackRecordOrderInput') + ..add('by', by) + ..add('byType', byType)) + .toString(); + } +} + +class GTrackRecordOrderInputBuilder + implements Builder { + _$GTrackRecordOrderInput? _$v; + + GTrackRecordOrderBy? _by; + GTrackRecordOrderBy? get by => _$this._by; + set by(GTrackRecordOrderBy? by) => _$this._by = by; + + GSortOrder? _byType; + GSortOrder? get byType => _$this._byType; + set byType(GSortOrder? byType) => _$this._byType = byType; + + GTrackRecordOrderInputBuilder(); + + GTrackRecordOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _by = $v.by; + _byType = $v.byType; + _$v = null; + } + return this; + } + + @override + void replace(GTrackRecordOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GTrackRecordOrderInput; + } + + @override + void update(void Function(GTrackRecordOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GTrackRecordOrderInput build() => _build(); + + _$GTrackRecordOrderInput _build() { + final _$result = _$v ?? + new _$GTrackRecordOrderInput._( + by: BuiltValueNullFieldError.checkNotNull( + by, r'GTrackRecordOrderInput', 'by'), + byType: byType, + ); + replace(_$result); + return _$result; + } +} + +class _$GUnbindTrackInput extends GUnbindTrackInput { + @override + final String? clientMutationId; + @override + final bool? deleteRemoteTrack; + @override + final int recordId; + + factory _$GUnbindTrackInput( + [void Function(GUnbindTrackInputBuilder)? updates]) => + (new GUnbindTrackInputBuilder()..update(updates))._build(); + + _$GUnbindTrackInput._( + {this.clientMutationId, this.deleteRemoteTrack, required this.recordId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + recordId, r'GUnbindTrackInput', 'recordId'); + } + + @override + GUnbindTrackInput rebuild(void Function(GUnbindTrackInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUnbindTrackInputBuilder toBuilder() => + new GUnbindTrackInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUnbindTrackInput && + clientMutationId == other.clientMutationId && + deleteRemoteTrack == other.deleteRemoteTrack && + recordId == other.recordId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, deleteRemoteTrack.hashCode); + _$hash = $jc(_$hash, recordId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUnbindTrackInput') + ..add('clientMutationId', clientMutationId) + ..add('deleteRemoteTrack', deleteRemoteTrack) + ..add('recordId', recordId)) + .toString(); + } +} + +class GUnbindTrackInputBuilder + implements Builder { + _$GUnbindTrackInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + bool? _deleteRemoteTrack; + bool? get deleteRemoteTrack => _$this._deleteRemoteTrack; + set deleteRemoteTrack(bool? deleteRemoteTrack) => + _$this._deleteRemoteTrack = deleteRemoteTrack; + + int? _recordId; + int? get recordId => _$this._recordId; + set recordId(int? recordId) => _$this._recordId = recordId; + + GUnbindTrackInputBuilder(); + + GUnbindTrackInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _deleteRemoteTrack = $v.deleteRemoteTrack; + _recordId = $v.recordId; + _$v = null; + } + return this; + } + + @override + void replace(GUnbindTrackInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUnbindTrackInput; + } + + @override + void update(void Function(GUnbindTrackInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUnbindTrackInput build() => _build(); + + _$GUnbindTrackInput _build() { + final _$result = _$v ?? + new _$GUnbindTrackInput._( + clientMutationId: clientMutationId, + deleteRemoteTrack: deleteRemoteTrack, + recordId: BuiltValueNullFieldError.checkNotNull( + recordId, r'GUnbindTrackInput', 'recordId'), + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoriesInput extends GUpdateCategoriesInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateCategoryPatchInput patch; + + factory _$GUpdateCategoriesInput( + [void Function(GUpdateCategoriesInputBuilder)? updates]) => + (new GUpdateCategoriesInputBuilder()..update(updates))._build(); + + _$GUpdateCategoriesInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GUpdateCategoriesInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateCategoriesInput', 'patch'); + } + + @override + GUpdateCategoriesInput rebuild( + void Function(GUpdateCategoriesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoriesInputBuilder toBuilder() => + new GUpdateCategoriesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoriesInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoriesInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateCategoriesInputBuilder + implements Builder { + _$GUpdateCategoriesInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateCategoryPatchInputBuilder? _patch; + GUpdateCategoryPatchInputBuilder get patch => + _$this._patch ??= new GUpdateCategoryPatchInputBuilder(); + set patch(GUpdateCategoryPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateCategoriesInputBuilder(); + + GUpdateCategoriesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoriesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoriesInput; + } + + @override + void update(void Function(GUpdateCategoriesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoriesInput build() => _build(); + + _$GUpdateCategoriesInput _build() { + _$GUpdateCategoriesInput _$result; + try { + _$result = _$v ?? + new _$GUpdateCategoriesInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateCategoriesInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryInput extends GUpdateCategoryInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateCategoryPatchInput patch; + + factory _$GUpdateCategoryInput( + [void Function(GUpdateCategoryInputBuilder)? updates]) => + (new GUpdateCategoryInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateCategoryInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateCategoryInput', 'patch'); + } + + @override + GUpdateCategoryInput rebuild( + void Function(GUpdateCategoryInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryInputBuilder toBuilder() => + new GUpdateCategoryInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateCategoryInputBuilder + implements Builder { + _$GUpdateCategoryInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateCategoryPatchInputBuilder? _patch; + GUpdateCategoryPatchInputBuilder get patch => + _$this._patch ??= new GUpdateCategoryPatchInputBuilder(); + set patch(GUpdateCategoryPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateCategoryInputBuilder(); + + GUpdateCategoryInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryInput; + } + + @override + void update(void Function(GUpdateCategoryInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryInput build() => _build(); + + _$GUpdateCategoryInput _build() { + _$GUpdateCategoryInput _$result; + try { + _$result = _$v ?? + new _$GUpdateCategoryInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateCategoryInput', 'id'), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateCategoryInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryMangaInput extends GUpdateCategoryMangaInput { + @override + final BuiltList categories; + @override + final String? clientMutationId; + + factory _$GUpdateCategoryMangaInput( + [void Function(GUpdateCategoryMangaInputBuilder)? updates]) => + (new GUpdateCategoryMangaInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryMangaInput._( + {required this.categories, this.clientMutationId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + categories, r'GUpdateCategoryMangaInput', 'categories'); + } + + @override + GUpdateCategoryMangaInput rebuild( + void Function(GUpdateCategoryMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryMangaInputBuilder toBuilder() => + new GUpdateCategoryMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryMangaInput && + categories == other.categories && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, categories.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryMangaInput') + ..add('categories', categories) + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GUpdateCategoryMangaInputBuilder + implements + Builder { + _$GUpdateCategoryMangaInput? _$v; + + ListBuilder? _categories; + ListBuilder get categories => + _$this._categories ??= new ListBuilder(); + set categories(ListBuilder? categories) => + _$this._categories = categories; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GUpdateCategoryMangaInputBuilder(); + + GUpdateCategoryMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _categories = $v.categories.toBuilder(); + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryMangaInput; + } + + @override + void update(void Function(GUpdateCategoryMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryMangaInput build() => _build(); + + _$GUpdateCategoryMangaInput _build() { + _$GUpdateCategoryMangaInput _$result; + try { + _$result = _$v ?? + new _$GUpdateCategoryMangaInput._( + categories: categories.build(), + clientMutationId: clientMutationId, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'categories'; + categories.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateCategoryMangaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryOrderInput extends GUpdateCategoryOrderInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final int position; + + factory _$GUpdateCategoryOrderInput( + [void Function(GUpdateCategoryOrderInputBuilder)? updates]) => + (new GUpdateCategoryOrderInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryOrderInput._( + {this.clientMutationId, required this.id, required this.position}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateCategoryOrderInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + position, r'GUpdateCategoryOrderInput', 'position'); + } + + @override + GUpdateCategoryOrderInput rebuild( + void Function(GUpdateCategoryOrderInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryOrderInputBuilder toBuilder() => + new GUpdateCategoryOrderInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryOrderInput && + clientMutationId == other.clientMutationId && + id == other.id && + position == other.position; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, position.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryOrderInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('position', position)) + .toString(); + } +} + +class GUpdateCategoryOrderInputBuilder + implements + Builder { + _$GUpdateCategoryOrderInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + int? _position; + int? get position => _$this._position; + set position(int? position) => _$this._position = position; + + GUpdateCategoryOrderInputBuilder(); + + GUpdateCategoryOrderInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _position = $v.position; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryOrderInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryOrderInput; + } + + @override + void update(void Function(GUpdateCategoryOrderInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryOrderInput build() => _build(); + + _$GUpdateCategoryOrderInput _build() { + final _$result = _$v ?? + new _$GUpdateCategoryOrderInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateCategoryOrderInput', 'id'), + position: BuiltValueNullFieldError.checkNotNull( + position, r'GUpdateCategoryOrderInput', 'position'), + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateCategoryPatchInput extends GUpdateCategoryPatchInput { + @override + final bool? Gdefault; + @override + final GIncludeOrExclude? includeInDownload; + @override + final GIncludeOrExclude? includeInUpdate; + @override + final String? name; + + factory _$GUpdateCategoryPatchInput( + [void Function(GUpdateCategoryPatchInputBuilder)? updates]) => + (new GUpdateCategoryPatchInputBuilder()..update(updates))._build(); + + _$GUpdateCategoryPatchInput._( + {this.Gdefault, this.includeInDownload, this.includeInUpdate, this.name}) + : super._(); + + @override + GUpdateCategoryPatchInput rebuild( + void Function(GUpdateCategoryPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateCategoryPatchInputBuilder toBuilder() => + new GUpdateCategoryPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateCategoryPatchInput && + Gdefault == other.Gdefault && + includeInDownload == other.includeInDownload && + includeInUpdate == other.includeInUpdate && + name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, Gdefault.hashCode); + _$hash = $jc(_$hash, includeInDownload.hashCode); + _$hash = $jc(_$hash, includeInUpdate.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateCategoryPatchInput') + ..add('Gdefault', Gdefault) + ..add('includeInDownload', includeInDownload) + ..add('includeInUpdate', includeInUpdate) + ..add('name', name)) + .toString(); + } +} + +class GUpdateCategoryPatchInputBuilder + implements + Builder { + _$GUpdateCategoryPatchInput? _$v; + + bool? _Gdefault; + bool? get Gdefault => _$this._Gdefault; + set Gdefault(bool? Gdefault) => _$this._Gdefault = Gdefault; + + GIncludeOrExclude? _includeInDownload; + GIncludeOrExclude? get includeInDownload => _$this._includeInDownload; + set includeInDownload(GIncludeOrExclude? includeInDownload) => + _$this._includeInDownload = includeInDownload; + + GIncludeOrExclude? _includeInUpdate; + GIncludeOrExclude? get includeInUpdate => _$this._includeInUpdate; + set includeInUpdate(GIncludeOrExclude? includeInUpdate) => + _$this._includeInUpdate = includeInUpdate; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + GUpdateCategoryPatchInputBuilder(); + + GUpdateCategoryPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _Gdefault = $v.Gdefault; + _includeInDownload = $v.includeInDownload; + _includeInUpdate = $v.includeInUpdate; + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateCategoryPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateCategoryPatchInput; + } + + @override + void update(void Function(GUpdateCategoryPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateCategoryPatchInput build() => _build(); + + _$GUpdateCategoryPatchInput _build() { + final _$result = _$v ?? + new _$GUpdateCategoryPatchInput._( + Gdefault: Gdefault, + includeInDownload: includeInDownload, + includeInUpdate: includeInUpdate, + name: name, + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateChapterInput extends GUpdateChapterInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateChapterPatchInput patch; + + factory _$GUpdateChapterInput( + [void Function(GUpdateChapterInputBuilder)? updates]) => + (new GUpdateChapterInputBuilder()..update(updates))._build(); + + _$GUpdateChapterInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateChapterInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateChapterInput', 'patch'); + } + + @override + GUpdateChapterInput rebuild( + void Function(GUpdateChapterInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateChapterInputBuilder toBuilder() => + new GUpdateChapterInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateChapterInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateChapterInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateChapterInputBuilder + implements Builder { + _$GUpdateChapterInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateChapterPatchInputBuilder? _patch; + GUpdateChapterPatchInputBuilder get patch => + _$this._patch ??= new GUpdateChapterPatchInputBuilder(); + set patch(GUpdateChapterPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateChapterInputBuilder(); + + GUpdateChapterInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateChapterInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateChapterInput; + } + + @override + void update(void Function(GUpdateChapterInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateChapterInput build() => _build(); + + _$GUpdateChapterInput _build() { + _$GUpdateChapterInput _$result; + try { + _$result = _$v ?? + new _$GUpdateChapterInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateChapterInput', 'id'), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateChapterInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateChapterPatchInput extends GUpdateChapterPatchInput { + @override + final bool? isBookmarked; + @override + final bool? isRead; + @override + final int? lastPageRead; + + factory _$GUpdateChapterPatchInput( + [void Function(GUpdateChapterPatchInputBuilder)? updates]) => + (new GUpdateChapterPatchInputBuilder()..update(updates))._build(); + + _$GUpdateChapterPatchInput._( + {this.isBookmarked, this.isRead, this.lastPageRead}) + : super._(); + + @override + GUpdateChapterPatchInput rebuild( + void Function(GUpdateChapterPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateChapterPatchInputBuilder toBuilder() => + new GUpdateChapterPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateChapterPatchInput && + isBookmarked == other.isBookmarked && + isRead == other.isRead && + lastPageRead == other.lastPageRead; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, isBookmarked.hashCode); + _$hash = $jc(_$hash, isRead.hashCode); + _$hash = $jc(_$hash, lastPageRead.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateChapterPatchInput') + ..add('isBookmarked', isBookmarked) + ..add('isRead', isRead) + ..add('lastPageRead', lastPageRead)) + .toString(); + } +} + +class GUpdateChapterPatchInputBuilder + implements + Builder { + _$GUpdateChapterPatchInput? _$v; + + bool? _isBookmarked; + bool? get isBookmarked => _$this._isBookmarked; + set isBookmarked(bool? isBookmarked) => _$this._isBookmarked = isBookmarked; + + bool? _isRead; + bool? get isRead => _$this._isRead; + set isRead(bool? isRead) => _$this._isRead = isRead; + + int? _lastPageRead; + int? get lastPageRead => _$this._lastPageRead; + set lastPageRead(int? lastPageRead) => _$this._lastPageRead = lastPageRead; + + GUpdateChapterPatchInputBuilder(); + + GUpdateChapterPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _isBookmarked = $v.isBookmarked; + _isRead = $v.isRead; + _lastPageRead = $v.lastPageRead; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateChapterPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateChapterPatchInput; + } + + @override + void update(void Function(GUpdateChapterPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateChapterPatchInput build() => _build(); + + _$GUpdateChapterPatchInput _build() { + final _$result = _$v ?? + new _$GUpdateChapterPatchInput._( + isBookmarked: isBookmarked, + isRead: isRead, + lastPageRead: lastPageRead, + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateChaptersInput extends GUpdateChaptersInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateChapterPatchInput patch; + + factory _$GUpdateChaptersInput( + [void Function(GUpdateChaptersInputBuilder)? updates]) => + (new GUpdateChaptersInputBuilder()..update(updates))._build(); + + _$GUpdateChaptersInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(ids, r'GUpdateChaptersInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateChaptersInput', 'patch'); + } + + @override + GUpdateChaptersInput rebuild( + void Function(GUpdateChaptersInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateChaptersInputBuilder toBuilder() => + new GUpdateChaptersInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateChaptersInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateChaptersInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateChaptersInputBuilder + implements Builder { + _$GUpdateChaptersInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateChapterPatchInputBuilder? _patch; + GUpdateChapterPatchInputBuilder get patch => + _$this._patch ??= new GUpdateChapterPatchInputBuilder(); + set patch(GUpdateChapterPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateChaptersInputBuilder(); + + GUpdateChaptersInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateChaptersInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateChaptersInput; + } + + @override + void update(void Function(GUpdateChaptersInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateChaptersInput build() => _build(); + + _$GUpdateChaptersInput _build() { + _$GUpdateChaptersInput _$result; + try { + _$result = _$v ?? + new _$GUpdateChaptersInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateChaptersInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionInput extends GUpdateExtensionInput { + @override + final String? clientMutationId; + @override + final String id; + @override + final GUpdateExtensionPatchInput patch; + + factory _$GUpdateExtensionInput( + [void Function(GUpdateExtensionInputBuilder)? updates]) => + (new GUpdateExtensionInputBuilder()..update(updates))._build(); + + _$GUpdateExtensionInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateExtensionInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateExtensionInput', 'patch'); + } + + @override + GUpdateExtensionInput rebuild( + void Function(GUpdateExtensionInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionInputBuilder toBuilder() => + new GUpdateExtensionInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateExtensionInputBuilder + implements Builder { + _$GUpdateExtensionInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + GUpdateExtensionPatchInputBuilder? _patch; + GUpdateExtensionPatchInputBuilder get patch => + _$this._patch ??= new GUpdateExtensionPatchInputBuilder(); + set patch(GUpdateExtensionPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateExtensionInputBuilder(); + + GUpdateExtensionInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionInput; + } + + @override + void update(void Function(GUpdateExtensionInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionInput build() => _build(); + + _$GUpdateExtensionInput _build() { + _$GUpdateExtensionInput _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateExtensionInput', 'id'), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionPatchInput extends GUpdateExtensionPatchInput { + @override + final bool? install; + @override + final bool? uninstall; + @override + final bool? Gupdate; + + factory _$GUpdateExtensionPatchInput( + [void Function(GUpdateExtensionPatchInputBuilder)? updates]) => + (new GUpdateExtensionPatchInputBuilder()..update(updates))._build(); + + _$GUpdateExtensionPatchInput._({this.install, this.uninstall, this.Gupdate}) + : super._(); + + @override + GUpdateExtensionPatchInput rebuild( + void Function(GUpdateExtensionPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionPatchInputBuilder toBuilder() => + new GUpdateExtensionPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionPatchInput && + install == other.install && + uninstall == other.uninstall && + Gupdate == other.Gupdate; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, install.hashCode); + _$hash = $jc(_$hash, uninstall.hashCode); + _$hash = $jc(_$hash, Gupdate.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionPatchInput') + ..add('install', install) + ..add('uninstall', uninstall) + ..add('Gupdate', Gupdate)) + .toString(); + } +} + +class GUpdateExtensionPatchInputBuilder + implements + Builder { + _$GUpdateExtensionPatchInput? _$v; + + bool? _install; + bool? get install => _$this._install; + set install(bool? install) => _$this._install = install; + + bool? _uninstall; + bool? get uninstall => _$this._uninstall; + set uninstall(bool? uninstall) => _$this._uninstall = uninstall; + + bool? _Gupdate; + bool? get Gupdate => _$this._Gupdate; + set Gupdate(bool? Gupdate) => _$this._Gupdate = Gupdate; + + GUpdateExtensionPatchInputBuilder(); + + GUpdateExtensionPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _install = $v.install; + _uninstall = $v.uninstall; + _Gupdate = $v.Gupdate; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionPatchInput; + } + + @override + void update(void Function(GUpdateExtensionPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionPatchInput build() => _build(); + + _$GUpdateExtensionPatchInput _build() { + final _$result = _$v ?? + new _$GUpdateExtensionPatchInput._( + install: install, + uninstall: uninstall, + Gupdate: Gupdate, + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateExtensionsInput extends GUpdateExtensionsInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateExtensionPatchInput patch; + + factory _$GUpdateExtensionsInput( + [void Function(GUpdateExtensionsInputBuilder)? updates]) => + (new GUpdateExtensionsInputBuilder()..update(updates))._build(); + + _$GUpdateExtensionsInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GUpdateExtensionsInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateExtensionsInput', 'patch'); + } + + @override + GUpdateExtensionsInput rebuild( + void Function(GUpdateExtensionsInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateExtensionsInputBuilder toBuilder() => + new GUpdateExtensionsInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateExtensionsInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateExtensionsInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateExtensionsInputBuilder + implements Builder { + _$GUpdateExtensionsInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateExtensionPatchInputBuilder? _patch; + GUpdateExtensionPatchInputBuilder get patch => + _$this._patch ??= new GUpdateExtensionPatchInputBuilder(); + set patch(GUpdateExtensionPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateExtensionsInputBuilder(); + + GUpdateExtensionsInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateExtensionsInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateExtensionsInput; + } + + @override + void update(void Function(GUpdateExtensionsInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateExtensionsInput build() => _build(); + + _$GUpdateExtensionsInput _build() { + _$GUpdateExtensionsInput _$result; + try { + _$result = _$v ?? + new _$GUpdateExtensionsInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateExtensionsInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateLibraryMangaInput extends GUpdateLibraryMangaInput { + @override + final String? clientMutationId; + + factory _$GUpdateLibraryMangaInput( + [void Function(GUpdateLibraryMangaInputBuilder)? updates]) => + (new GUpdateLibraryMangaInputBuilder()..update(updates))._build(); + + _$GUpdateLibraryMangaInput._({this.clientMutationId}) : super._(); + + @override + GUpdateLibraryMangaInput rebuild( + void Function(GUpdateLibraryMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateLibraryMangaInputBuilder toBuilder() => + new GUpdateLibraryMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateLibraryMangaInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateLibraryMangaInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GUpdateLibraryMangaInputBuilder + implements + Builder { + _$GUpdateLibraryMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GUpdateLibraryMangaInputBuilder(); + + GUpdateLibraryMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateLibraryMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateLibraryMangaInput; + } + + @override + void update(void Function(GUpdateLibraryMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateLibraryMangaInput build() => _build(); + + _$GUpdateLibraryMangaInput _build() { + final _$result = _$v ?? + new _$GUpdateLibraryMangaInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaCategoriesInput extends GUpdateMangaCategoriesInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateMangaCategoriesPatchInput patch; + + factory _$GUpdateMangaCategoriesInput( + [void Function(GUpdateMangaCategoriesInputBuilder)? updates]) => + (new GUpdateMangaCategoriesInputBuilder()..update(updates))._build(); + + _$GUpdateMangaCategoriesInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateMangaCategoriesInput', 'id'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateMangaCategoriesInput', 'patch'); + } + + @override + GUpdateMangaCategoriesInput rebuild( + void Function(GUpdateMangaCategoriesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaCategoriesInputBuilder toBuilder() => + new GUpdateMangaCategoriesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaCategoriesInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaCategoriesInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangaCategoriesInputBuilder + implements + Builder { + _$GUpdateMangaCategoriesInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateMangaCategoriesPatchInputBuilder? _patch; + GUpdateMangaCategoriesPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaCategoriesPatchInputBuilder(); + set patch(GUpdateMangaCategoriesPatchInputBuilder? patch) => + _$this._patch = patch; + + GUpdateMangaCategoriesInputBuilder(); + + GUpdateMangaCategoriesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaCategoriesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaCategoriesInput; + } + + @override + void update(void Function(GUpdateMangaCategoriesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaCategoriesInput build() => _build(); + + _$GUpdateMangaCategoriesInput _build() { + _$GUpdateMangaCategoriesInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaCategoriesInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateMangaCategoriesInput', 'id'), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaCategoriesInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaCategoriesPatchInput + extends GUpdateMangaCategoriesPatchInput { + @override + final BuiltList? addToCategories; + @override + final bool? clearCategories; + @override + final BuiltList? removeFromCategories; + + factory _$GUpdateMangaCategoriesPatchInput( + [void Function(GUpdateMangaCategoriesPatchInputBuilder)? updates]) => + (new GUpdateMangaCategoriesPatchInputBuilder()..update(updates))._build(); + + _$GUpdateMangaCategoriesPatchInput._( + {this.addToCategories, this.clearCategories, this.removeFromCategories}) + : super._(); + + @override + GUpdateMangaCategoriesPatchInput rebuild( + void Function(GUpdateMangaCategoriesPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaCategoriesPatchInputBuilder toBuilder() => + new GUpdateMangaCategoriesPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaCategoriesPatchInput && + addToCategories == other.addToCategories && + clearCategories == other.clearCategories && + removeFromCategories == other.removeFromCategories; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, addToCategories.hashCode); + _$hash = $jc(_$hash, clearCategories.hashCode); + _$hash = $jc(_$hash, removeFromCategories.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaCategoriesPatchInput') + ..add('addToCategories', addToCategories) + ..add('clearCategories', clearCategories) + ..add('removeFromCategories', removeFromCategories)) + .toString(); + } +} + +class GUpdateMangaCategoriesPatchInputBuilder + implements + Builder { + _$GUpdateMangaCategoriesPatchInput? _$v; + + ListBuilder? _addToCategories; + ListBuilder get addToCategories => + _$this._addToCategories ??= new ListBuilder(); + set addToCategories(ListBuilder? addToCategories) => + _$this._addToCategories = addToCategories; + + bool? _clearCategories; + bool? get clearCategories => _$this._clearCategories; + set clearCategories(bool? clearCategories) => + _$this._clearCategories = clearCategories; + + ListBuilder? _removeFromCategories; + ListBuilder get removeFromCategories => + _$this._removeFromCategories ??= new ListBuilder(); + set removeFromCategories(ListBuilder? removeFromCategories) => + _$this._removeFromCategories = removeFromCategories; + + GUpdateMangaCategoriesPatchInputBuilder(); + + GUpdateMangaCategoriesPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _addToCategories = $v.addToCategories?.toBuilder(); + _clearCategories = $v.clearCategories; + _removeFromCategories = $v.removeFromCategories?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaCategoriesPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaCategoriesPatchInput; + } + + @override + void update(void Function(GUpdateMangaCategoriesPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaCategoriesPatchInput build() => _build(); + + _$GUpdateMangaCategoriesPatchInput _build() { + _$GUpdateMangaCategoriesPatchInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaCategoriesPatchInput._( + addToCategories: _addToCategories?.build(), + clearCategories: clearCategories, + removeFromCategories: _removeFromCategories?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'addToCategories'; + _addToCategories?.build(); + + _$failedField = 'removeFromCategories'; + _removeFromCategories?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaCategoriesPatchInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaInput extends GUpdateMangaInput { + @override + final String? clientMutationId; + @override + final int id; + @override + final GUpdateMangaPatchInput patch; + + factory _$GUpdateMangaInput( + [void Function(GUpdateMangaInputBuilder)? updates]) => + (new GUpdateMangaInputBuilder()..update(updates))._build(); + + _$GUpdateMangaInput._( + {this.clientMutationId, required this.id, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(id, r'GUpdateMangaInput', 'id'); + BuiltValueNullFieldError.checkNotNull(patch, r'GUpdateMangaInput', 'patch'); + } + + @override + GUpdateMangaInput rebuild(void Function(GUpdateMangaInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaInputBuilder toBuilder() => + new GUpdateMangaInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaInput && + clientMutationId == other.clientMutationId && + id == other.id && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaInput') + ..add('clientMutationId', clientMutationId) + ..add('id', id) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangaInputBuilder + implements Builder { + _$GUpdateMangaInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + int? _id; + int? get id => _$this._id; + set id(int? id) => _$this._id = id; + + GUpdateMangaPatchInputBuilder? _patch; + GUpdateMangaPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaPatchInputBuilder(); + set patch(GUpdateMangaPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateMangaInputBuilder(); + + GUpdateMangaInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _id = $v.id; + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaInput; + } + + @override + void update(void Function(GUpdateMangaInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaInput build() => _build(); + + _$GUpdateMangaInput _build() { + _$GUpdateMangaInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangaInput._( + clientMutationId: clientMutationId, + id: BuiltValueNullFieldError.checkNotNull( + id, r'GUpdateMangaInput', 'id'), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangaInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangaPatchInput extends GUpdateMangaPatchInput { + @override + final bool? inLibrary; + + factory _$GUpdateMangaPatchInput( + [void Function(GUpdateMangaPatchInputBuilder)? updates]) => + (new GUpdateMangaPatchInputBuilder()..update(updates))._build(); + + _$GUpdateMangaPatchInput._({this.inLibrary}) : super._(); + + @override + GUpdateMangaPatchInput rebuild( + void Function(GUpdateMangaPatchInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangaPatchInputBuilder toBuilder() => + new GUpdateMangaPatchInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangaPatchInput && inLibrary == other.inLibrary; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, inLibrary.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangaPatchInput') + ..add('inLibrary', inLibrary)) + .toString(); + } +} + +class GUpdateMangaPatchInputBuilder + implements Builder { + _$GUpdateMangaPatchInput? _$v; + + bool? _inLibrary; + bool? get inLibrary => _$this._inLibrary; + set inLibrary(bool? inLibrary) => _$this._inLibrary = inLibrary; + + GUpdateMangaPatchInputBuilder(); + + GUpdateMangaPatchInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _inLibrary = $v.inLibrary; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangaPatchInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangaPatchInput; + } + + @override + void update(void Function(GUpdateMangaPatchInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangaPatchInput build() => _build(); + + _$GUpdateMangaPatchInput _build() { + final _$result = _$v ?? + new _$GUpdateMangaPatchInput._( + inLibrary: inLibrary, + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangasCategoriesInput extends GUpdateMangasCategoriesInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateMangaCategoriesPatchInput patch; + + factory _$GUpdateMangasCategoriesInput( + [void Function(GUpdateMangasCategoriesInputBuilder)? updates]) => + (new GUpdateMangasCategoriesInputBuilder()..update(updates))._build(); + + _$GUpdateMangasCategoriesInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + ids, r'GUpdateMangasCategoriesInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateMangasCategoriesInput', 'patch'); + } + + @override + GUpdateMangasCategoriesInput rebuild( + void Function(GUpdateMangasCategoriesInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangasCategoriesInputBuilder toBuilder() => + new GUpdateMangasCategoriesInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangasCategoriesInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangasCategoriesInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangasCategoriesInputBuilder + implements + Builder { + _$GUpdateMangasCategoriesInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateMangaCategoriesPatchInputBuilder? _patch; + GUpdateMangaCategoriesPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaCategoriesPatchInputBuilder(); + set patch(GUpdateMangaCategoriesPatchInputBuilder? patch) => + _$this._patch = patch; + + GUpdateMangasCategoriesInputBuilder(); + + GUpdateMangasCategoriesInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangasCategoriesInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangasCategoriesInput; + } + + @override + void update(void Function(GUpdateMangasCategoriesInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangasCategoriesInput build() => _build(); + + _$GUpdateMangasCategoriesInput _build() { + _$GUpdateMangasCategoriesInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangasCategoriesInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangasCategoriesInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateMangasInput extends GUpdateMangasInput { + @override + final String? clientMutationId; + @override + final BuiltList ids; + @override + final GUpdateMangaPatchInput patch; + + factory _$GUpdateMangasInput( + [void Function(GUpdateMangasInputBuilder)? updates]) => + (new GUpdateMangasInputBuilder()..update(updates))._build(); + + _$GUpdateMangasInput._( + {this.clientMutationId, required this.ids, required this.patch}) + : super._() { + BuiltValueNullFieldError.checkNotNull(ids, r'GUpdateMangasInput', 'ids'); + BuiltValueNullFieldError.checkNotNull( + patch, r'GUpdateMangasInput', 'patch'); + } + + @override + GUpdateMangasInput rebuild( + void Function(GUpdateMangasInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateMangasInputBuilder toBuilder() => + new GUpdateMangasInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateMangasInput && + clientMutationId == other.clientMutationId && + ids == other.ids && + patch == other.patch; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, ids.hashCode); + _$hash = $jc(_$hash, patch.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateMangasInput') + ..add('clientMutationId', clientMutationId) + ..add('ids', ids) + ..add('patch', patch)) + .toString(); + } +} + +class GUpdateMangasInputBuilder + implements Builder { + _$GUpdateMangasInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + ListBuilder? _ids; + ListBuilder get ids => _$this._ids ??= new ListBuilder(); + set ids(ListBuilder? ids) => _$this._ids = ids; + + GUpdateMangaPatchInputBuilder? _patch; + GUpdateMangaPatchInputBuilder get patch => + _$this._patch ??= new GUpdateMangaPatchInputBuilder(); + set patch(GUpdateMangaPatchInputBuilder? patch) => _$this._patch = patch; + + GUpdateMangasInputBuilder(); + + GUpdateMangasInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _ids = $v.ids.toBuilder(); + _patch = $v.patch.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateMangasInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateMangasInput; + } + + @override + void update(void Function(GUpdateMangasInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateMangasInput build() => _build(); + + _$GUpdateMangasInput _build() { + _$GUpdateMangasInput _$result; + try { + _$result = _$v ?? + new _$GUpdateMangasInput._( + clientMutationId: clientMutationId, + ids: ids.build(), + patch: patch.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ids'; + ids.build(); + _$failedField = 'patch'; + patch.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateMangasInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateSourcePreferenceInput extends GUpdateSourcePreferenceInput { + @override + final GSourcePreferenceChangeInput change; + @override + final String? clientMutationId; + @override + final GLongString source; + + factory _$GUpdateSourcePreferenceInput( + [void Function(GUpdateSourcePreferenceInputBuilder)? updates]) => + (new GUpdateSourcePreferenceInputBuilder()..update(updates))._build(); + + _$GUpdateSourcePreferenceInput._( + {required this.change, this.clientMutationId, required this.source}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + change, r'GUpdateSourcePreferenceInput', 'change'); + BuiltValueNullFieldError.checkNotNull( + source, r'GUpdateSourcePreferenceInput', 'source'); + } + + @override + GUpdateSourcePreferenceInput rebuild( + void Function(GUpdateSourcePreferenceInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateSourcePreferenceInputBuilder toBuilder() => + new GUpdateSourcePreferenceInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateSourcePreferenceInput && + change == other.change && + clientMutationId == other.clientMutationId && + source == other.source; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, change.hashCode); + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, source.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateSourcePreferenceInput') + ..add('change', change) + ..add('clientMutationId', clientMutationId) + ..add('source', source)) + .toString(); + } +} + +class GUpdateSourcePreferenceInputBuilder + implements + Builder { + _$GUpdateSourcePreferenceInput? _$v; + + GSourcePreferenceChangeInputBuilder? _change; + GSourcePreferenceChangeInputBuilder get change => + _$this._change ??= new GSourcePreferenceChangeInputBuilder(); + set change(GSourcePreferenceChangeInputBuilder? change) => + _$this._change = change; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GLongStringBuilder? _source; + GLongStringBuilder get source => _$this._source ??= new GLongStringBuilder(); + set source(GLongStringBuilder? source) => _$this._source = source; + + GUpdateSourcePreferenceInputBuilder(); + + GUpdateSourcePreferenceInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _change = $v.change.toBuilder(); + _clientMutationId = $v.clientMutationId; + _source = $v.source.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(GUpdateSourcePreferenceInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateSourcePreferenceInput; + } + + @override + void update(void Function(GUpdateSourcePreferenceInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateSourcePreferenceInput build() => _build(); + + _$GUpdateSourcePreferenceInput _build() { + _$GUpdateSourcePreferenceInput _$result; + try { + _$result = _$v ?? + new _$GUpdateSourcePreferenceInput._( + change: change.build(), + clientMutationId: clientMutationId, + source: source.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'change'; + change.build(); + + _$failedField = 'source'; + source.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateSourcePreferenceInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GUpdateStopInput extends GUpdateStopInput { + @override + final String? clientMutationId; + + factory _$GUpdateStopInput( + [void Function(GUpdateStopInputBuilder)? updates]) => + (new GUpdateStopInputBuilder()..update(updates))._build(); + + _$GUpdateStopInput._({this.clientMutationId}) : super._(); + + @override + GUpdateStopInput rebuild(void Function(GUpdateStopInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateStopInputBuilder toBuilder() => + new GUpdateStopInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateStopInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateStopInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GUpdateStopInputBuilder + implements Builder { + _$GUpdateStopInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GUpdateStopInputBuilder(); + + GUpdateStopInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateStopInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateStopInput; + } + + @override + void update(void Function(GUpdateStopInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateStopInput build() => _build(); + + _$GUpdateStopInput _build() { + final _$result = _$v ?? + new _$GUpdateStopInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +class _$GUpdateTrackInput extends GUpdateTrackInput { + @override + final String? clientMutationId; + @override + final GLongString? finishDate; + @override + final double? lastChapterRead; + @override + final int recordId; + @override + final String? scoreString; + @override + final GLongString? startDate; + @override + final int? status; + + factory _$GUpdateTrackInput( + [void Function(GUpdateTrackInputBuilder)? updates]) => + (new GUpdateTrackInputBuilder()..update(updates))._build(); + + _$GUpdateTrackInput._( + {this.clientMutationId, + this.finishDate, + this.lastChapterRead, + required this.recordId, + this.scoreString, + this.startDate, + this.status}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + recordId, r'GUpdateTrackInput', 'recordId'); + } + + @override + GUpdateTrackInput rebuild(void Function(GUpdateTrackInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GUpdateTrackInputBuilder toBuilder() => + new GUpdateTrackInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GUpdateTrackInput && + clientMutationId == other.clientMutationId && + finishDate == other.finishDate && + lastChapterRead == other.lastChapterRead && + recordId == other.recordId && + scoreString == other.scoreString && + startDate == other.startDate && + status == other.status; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jc(_$hash, finishDate.hashCode); + _$hash = $jc(_$hash, lastChapterRead.hashCode); + _$hash = $jc(_$hash, recordId.hashCode); + _$hash = $jc(_$hash, scoreString.hashCode); + _$hash = $jc(_$hash, startDate.hashCode); + _$hash = $jc(_$hash, status.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GUpdateTrackInput') + ..add('clientMutationId', clientMutationId) + ..add('finishDate', finishDate) + ..add('lastChapterRead', lastChapterRead) + ..add('recordId', recordId) + ..add('scoreString', scoreString) + ..add('startDate', startDate) + ..add('status', status)) + .toString(); + } +} + +class GUpdateTrackInputBuilder + implements Builder { + _$GUpdateTrackInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GLongStringBuilder? _finishDate; + GLongStringBuilder get finishDate => + _$this._finishDate ??= new GLongStringBuilder(); + set finishDate(GLongStringBuilder? finishDate) => + _$this._finishDate = finishDate; + + double? _lastChapterRead; + double? get lastChapterRead => _$this._lastChapterRead; + set lastChapterRead(double? lastChapterRead) => + _$this._lastChapterRead = lastChapterRead; + + int? _recordId; + int? get recordId => _$this._recordId; + set recordId(int? recordId) => _$this._recordId = recordId; + + String? _scoreString; + String? get scoreString => _$this._scoreString; + set scoreString(String? scoreString) => _$this._scoreString = scoreString; + + GLongStringBuilder? _startDate; + GLongStringBuilder get startDate => + _$this._startDate ??= new GLongStringBuilder(); + set startDate(GLongStringBuilder? startDate) => _$this._startDate = startDate; + + int? _status; + int? get status => _$this._status; + set status(int? status) => _$this._status = status; + + GUpdateTrackInputBuilder(); + + GUpdateTrackInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _finishDate = $v.finishDate?.toBuilder(); + _lastChapterRead = $v.lastChapterRead; + _recordId = $v.recordId; + _scoreString = $v.scoreString; + _startDate = $v.startDate?.toBuilder(); + _status = $v.status; + _$v = null; + } + return this; + } + + @override + void replace(GUpdateTrackInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GUpdateTrackInput; + } + + @override + void update(void Function(GUpdateTrackInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GUpdateTrackInput build() => _build(); + + _$GUpdateTrackInput _build() { + _$GUpdateTrackInput _$result; + try { + _$result = _$v ?? + new _$GUpdateTrackInput._( + clientMutationId: clientMutationId, + finishDate: _finishDate?.build(), + lastChapterRead: lastChapterRead, + recordId: BuiltValueNullFieldError.checkNotNull( + recordId, r'GUpdateTrackInput', 'recordId'), + scoreString: scoreString, + startDate: _startDate?.build(), + status: status, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'finishDate'; + _finishDate?.build(); + + _$failedField = 'startDate'; + _startDate?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'GUpdateTrackInput', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +class _$GValidateBackupInput extends GValidateBackupInput { + @override + final _i3.MultipartFile backup; + + factory _$GValidateBackupInput( + [void Function(GValidateBackupInputBuilder)? updates]) => + (new GValidateBackupInputBuilder()..update(updates))._build(); + + _$GValidateBackupInput._({required this.backup}) : super._() { + BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupInput', 'backup'); + } + + @override + GValidateBackupInput rebuild( + void Function(GValidateBackupInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GValidateBackupInputBuilder toBuilder() => + new GValidateBackupInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GValidateBackupInput && backup == other.backup; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, backup.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GValidateBackupInput') + ..add('backup', backup)) + .toString(); + } +} + +class GValidateBackupInputBuilder + implements Builder { + _$GValidateBackupInput? _$v; + + _i3.MultipartFile? _backup; + _i3.MultipartFile? get backup => _$this._backup; + set backup(_i3.MultipartFile? backup) => _$this._backup = backup; + + GValidateBackupInputBuilder(); + + GValidateBackupInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _backup = $v.backup; + _$v = null; + } + return this; + } + + @override + void replace(GValidateBackupInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GValidateBackupInput; + } + + @override + void update(void Function(GValidateBackupInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GValidateBackupInput build() => _build(); + + _$GValidateBackupInput _build() { + final _$result = _$v ?? + new _$GValidateBackupInput._( + backup: BuiltValueNullFieldError.checkNotNull( + backup, r'GValidateBackupInput', 'backup'), + ); + replace(_$result); + return _$result; + } +} + +class _$GWebUIUpdateInput extends GWebUIUpdateInput { + @override + final String? clientMutationId; + + factory _$GWebUIUpdateInput( + [void Function(GWebUIUpdateInputBuilder)? updates]) => + (new GWebUIUpdateInputBuilder()..update(updates))._build(); + + _$GWebUIUpdateInput._({this.clientMutationId}) : super._(); + + @override + GWebUIUpdateInput rebuild(void Function(GWebUIUpdateInputBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + GWebUIUpdateInputBuilder toBuilder() => + new GWebUIUpdateInputBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is GWebUIUpdateInput && + clientMutationId == other.clientMutationId; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, clientMutationId.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'GWebUIUpdateInput') + ..add('clientMutationId', clientMutationId)) + .toString(); + } +} + +class GWebUIUpdateInputBuilder + implements Builder { + _$GWebUIUpdateInput? _$v; + + String? _clientMutationId; + String? get clientMutationId => _$this._clientMutationId; + set clientMutationId(String? clientMutationId) => + _$this._clientMutationId = clientMutationId; + + GWebUIUpdateInputBuilder(); + + GWebUIUpdateInputBuilder get _$this { + final $v = _$v; + if ($v != null) { + _clientMutationId = $v.clientMutationId; + _$v = null; + } + return this; + } + + @override + void replace(GWebUIUpdateInput other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$GWebUIUpdateInput; + } + + @override + void update(void Function(GWebUIUpdateInputBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + GWebUIUpdateInput build() => _build(); + + _$GWebUIUpdateInput _build() { + final _$result = _$v ?? + new _$GWebUIUpdateInput._( + clientMutationId: clientMutationId, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/__generated__/serializers.gql.dart b/lib/src/graphql/__generated__/serializers.gql.dart new file mode 100644 index 00000000..71265133 --- /dev/null +++ b/lib/src/graphql/__generated__/serializers.gql.dart @@ -0,0 +1,1264 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint + +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/serializer.dart'; +import 'package:built_value/standard_json_plugin.dart' show StandardJsonPlugin; +import 'package:ferry_exec/ferry_exec.dart'; +import 'package:gql_code_builder_serializers/gql_code_builder_serializers.dart' + show OperationSerializer; +import 'package:http/http.dart'; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/about_query.data.gql.dart' + show GAboutData, GAboutData_aboutServer; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/about_query.req.gql.dart' + show GAboutReq; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/about_query.var.gql.dart' + show GAboutVars; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/server_update.data.gql.dart' + show GServerUpdateData, GServerUpdateData_checkForServerUpdates; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/server_update.req.gql.dart' + show GServerUpdateReq; +import 'package:tachidesk_sorayomi/src/features/about/data/graphql/queries/__generated__/server_update.var.gql.dart' + show GServerUpdateVars; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.data.gql.dart' + show GAboutFragmentData; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.req.gql.dart' + show GAboutFragmentReq; +import 'package:tachidesk_sorayomi/src/features/about/domain/about/graphql/__generated__/about_fragment.var.gql.dart' + show GAboutFragmentVars; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.data.gql.dart' + show GServerUpdateFragmentData; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.req.gql.dart' + show GServerUpdateFragmentReq; +import 'package:tachidesk_sorayomi/src/features/about/domain/server_update/graphql/__generated__/service_update_fragment.var.gql.dart' + show GServerUpdateFragmentVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.data.gql.dart' + show + GFetchExtensionListData, + GFetchExtensionListData_fetchExtensions, + GFetchExtensionListData_fetchExtensions_extensions; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.req.gql.dart' + show GFetchExtensionListReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/fetch_extension_list.var.gql.dart' + show GFetchExtensionListVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.data.gql.dart' + show + GInstallExternalExtensionData, + GInstallExternalExtensionData_installExternalExtension, + GInstallExternalExtensionData_installExternalExtension_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.req.gql.dart' + show GInstallExternalExtensionReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/install_external_extension.var.gql.dart' + show GInstallExternalExtensionVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.data.gql.dart' + show + GUpdateExtensionData, + GUpdateExtensionData_updateExtension, + GUpdateExtensionData_updateExtension_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.req.gql.dart' + show GUpdateExtensionReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/extension_repository/graphql/queries/__generated__/update_extension.var.gql.dart' + show GUpdateExtensionVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.data.gql.dart' + show + GFetchSourceMangaData, + GFetchSourceMangaData_fetchSourceManga, + GFetchSourceMangaData_fetchSourceManga_mangas, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_source, + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.req.gql.dart' + show GFetchSourceMangaReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/fetch_source_manga.var.gql.dart' + show GFetchSourceMangaVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.data.gql.dart' + show + GSourceByIdData, + GSourceByIdData_source, + GSourceByIdData_source_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.req.gql.dart' + show GSourceByIdReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_by_id.var.gql.dart' + show GSourceByIdVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.data.gql.dart' + show + GFilterFragmentData, + GPrimitiveFilterFragmentData, + GFilterFragmentData__asGroupFilter, + GFilterFragmentData__asGroupFilter_groupState, + GFilterFragmentData__base, + GPrimitiveFilterFragmentData__asCheckBoxFilter, + GPrimitiveFilterFragmentData__asHeaderFilter, + GPrimitiveFilterFragmentData__asSelectFilter, + GPrimitiveFilterFragmentData__asSeparatorFilter, + GPrimitiveFilterFragmentData__asSortFilter, + GPrimitiveFilterFragmentData__asSortFilter_sortState, + GPrimitiveFilterFragmentData__asTextFilter, + GPrimitiveFilterFragmentData__asTriStateFilter, + GPrimitiveFilterFragmentData__base, + GSortSelectionFragmentData, + GSourceFilterByIdData, + GSourceFilterByIdData_source, + GSourceFilterByIdData_source_filters; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.req.gql.dart' + show + GFilterFragmentReq, + GPrimitiveFilterFragmentReq, + GSortSelectionFragmentReq, + GSourceFilterByIdReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_filter_by_id.var.gql.dart' + show + GFilterFragmentVars, + GPrimitiveFilterFragmentVars, + GSortSelectionFragmentVars, + GSourceFilterByIdVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.data.gql.dart' + show + GSourceListData, + GSourceListData_sources, + GSourceListData_sources_nodes, + GSourceListData_sources_nodes_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.req.gql.dart' + show GSourceListReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_list.var.gql.dart' + show GSourceListVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.data.gql.dart' + show + GSourcePreferenceByIdData_source_preferences, + GSourcePreferenceByIdData, + GSourcePreferenceByIdData_source, + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference, + GSourcePreferenceByIdData_source_preferences__asEditTextPreference, + GSourcePreferenceByIdData_source_preferences__asListPreference, + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference, + GSourcePreferenceByIdData_source_preferences__asSwitchPreference, + GSourcePreferenceByIdData_source_preferences__base, + GUpdateSourcePreferenceData, + GUpdateSourcePreferenceData_updateSourcePreference; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.req.gql.dart' + show GSourcePreferenceByIdReq, GUpdateSourcePreferenceReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/data/source_repository/graphql/queries/__generated__/source_preferences_by_id.var.gql.dart' + show GSourcePreferenceByIdVars, GUpdateSourcePreferenceVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.data.gql.dart' + show GExtensionFragmentData; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.req.gql.dart' + show GExtensionFragmentReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/extension/graphql/__generated__/extension_fragment.var.gql.dart' + show GExtensionFragmentVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.data.gql.dart' + show + GSourceMangaPageData, + GSourceMangaPageData_mangas, + GSourceMangaPageData_mangas_lastReadChapter, + GSourceMangaPageData_mangas_lastReadChapter_meta, + GSourceMangaPageData_mangas_latestFetchedChapter, + GSourceMangaPageData_mangas_latestFetchedChapter_meta, + GSourceMangaPageData_mangas_latestReadChapter, + GSourceMangaPageData_mangas_latestReadChapter_meta, + GSourceMangaPageData_mangas_latestUploadedChapter, + GSourceMangaPageData_mangas_latestUploadedChapter_meta, + GSourceMangaPageData_mangas_meta, + GSourceMangaPageData_mangas_source, + GSourceMangaPageData_mangas_source_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.req.gql.dart' + show GSourceMangaPageReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/manga_page/graphql/__generated__/manga_page_fragment.var.gql.dart' + show GSourceMangaPageVars; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.data.gql.dart' + show GSourceFragmentData, GSourceFragmentData_extension; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.req.gql.dart' + show GSourceFragmentReq; +import 'package:tachidesk_sorayomi/src/features/browse_center/domain/source/graphql/__generated__/source_fragment.var.gql.dart' + show GSourceFragmentVars; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/all_categories_query.data.gql.dart' + show + GAllCategoriesData, + GAllCategoriesData_categories, + GAllCategoriesData_categories_nodes, + GAllCategoriesData_categories_nodes_mangas, + GAllCategoriesData_categories_nodes_meta, + GAllCategoriesData_categories_pageInfo; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/all_categories_query.req.gql.dart' + show GAllCategoriesReq; +import 'package:tachidesk_sorayomi/src/features/library/data/graphql/__generated__/all_categories_query.var.gql.dart' + show GAllCategoriesVars; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.data.gql.dart' + show + GCategoryFragmentData, + GCategoryFragmentData_mangas, + GCategoryFragmentData_meta; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.req.gql.dart' + show GCategoryFragmentReq; +import 'package:tachidesk_sorayomi/src/features/library/domain/category/graphql/__generated__/category_fragment.var.gql.dart' + show GCategoryFragmentVars; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.data.gql.dart' + show GChapterFragmentData, GChapterFragmentData_meta; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.req.gql.dart' + show GChapterFragmentReq; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/chapter/graphql/__generated__/chapter_fragment.var.gql.dart' + show GChapterFragmentVars; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.data.gql.dart' + show + GMangaFragmentData, + GMangaFragmentData_lastReadChapter, + GMangaFragmentData_lastReadChapter_meta, + GMangaFragmentData_latestFetchedChapter, + GMangaFragmentData_latestFetchedChapter_meta, + GMangaFragmentData_latestReadChapter, + GMangaFragmentData_latestReadChapter_meta, + GMangaFragmentData_latestUploadedChapter, + GMangaFragmentData_latestUploadedChapter_meta, + GMangaFragmentData_meta, + GMangaFragmentData_source, + GMangaFragmentData_source_extension; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.req.gql.dart' + show GMangaFragmentReq; +import 'package:tachidesk_sorayomi/src/features/manga_book/domain/manga/graphql/__generated__/manga_fragment.var.gql.dart' + show GMangaFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/server_settings_query.data.gql.dart' + show GServerSettingsData, GServerSettingsData_settings; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/server_settings_query.req.gql.dart' + show GServerSettingsReq; +import 'package:tachidesk_sorayomi/src/features/settings/data/graphql/__generated__/server_settings_query.var.gql.dart' + show GServerSettingsVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.data.gql.dart' + show GAutomaticBackupSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.req.gql.dart' + show GAutomaticBackupSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/automatic_backup_settings/graphql/__generated__/automatic_backup_settings_fragment.var.gql.dart' + show GAutomaticBackupSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.data.gql.dart' + show GBrowserSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.req.gql.dart' + show GBrowserSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/browse/graphql/__generated__/fragment.var.gql.dart' + show GBrowserSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.data.gql.dart' + show GCloudFlareBypassFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.req.gql.dart' + show GCloudFlareBypassFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/cloud_flare/graphql/__generated__/fragment.var.gql.dart' + show GCloudFlareBypassFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.data.gql.dart' + show GDownloadsSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.req.gql.dart' + show GDownloadsSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/downloads_settings/graphql/__generated__/fragment.var.gql.dart' + show GDownloadsSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.data.gql.dart' + show GLibrarySettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.req.gql.dart' + show GLibrarySettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/library_settings/graphql/__generated__/fragment.var.gql.dart' + show GLibrarySettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.data.gql.dart' + show GMiscSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.req.gql.dart' + show GMiscSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/misc_settings/graphql/__generated__/fragment.var.gql.dart' + show GMiscSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.data.gql.dart' + show GRestoreStatusFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.req.gql.dart' + show GRestoreStatusFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/restore_status/graphql/__generated__/restore_status_fragment.var.gql.dart' + show GRestoreStatusFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.data.gql.dart' + show GServerBindingFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.req.gql.dart' + show GServerBindingFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/server_binding/graphql/__generated__/fragment.var.gql.dart' + show GServerBindingFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.data.gql.dart' + show GSettingsFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.req.gql.dart' + show GSettingsFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/settings/graphql/__generated__/settings_fragment.var.gql.dart' + show GSettingsFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.data.gql.dart' + show GSocksProxyFragmentData; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.req.gql.dart' + show GSocksProxyFragmentReq; +import 'package:tachidesk_sorayomi/src/features/settings/domain/socks_proxy/graphql/__generated__/fragment.var.gql.dart' + show GSocksProxyFragmentVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.data.gql.dart' + show GCreateBackupData, GCreateBackupData_createBackup; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.req.gql.dart' + show GCreateBackupReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/create_backup.var.gql.dart' + show GCreateBackupVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.data.gql.dart' + show + GRestoreBackupData, + GRestoreBackupData_restoreBackup, + GRestoreBackupData_restoreBackup_status; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.req.gql.dart' + show GRestoreBackupReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_backup.var.gql.dart' + show GRestoreBackupVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.data.gql.dart' + show GRestoreStatusData, GRestoreStatusData_restoreStatus; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.req.gql.dart' + show GRestoreStatusReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/restore_status.var.gql.dart' + show GRestoreStatusVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.data.gql.dart' + show + GUpdateBackupIntervalData, + GUpdateBackupIntervalData_setSettings, + GUpdateBackupIntervalData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.req.gql.dart' + show GUpdateBackupIntervalReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_interval.var.gql.dart' + show GUpdateBackupIntervalVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.data.gql.dart' + show + GUpdateBackupPathData, + GUpdateBackupPathData_setSettings, + GUpdateBackupPathData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.req.gql.dart' + show GUpdateBackupPathReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_path.var.gql.dart' + show GUpdateBackupPathVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.data.gql.dart' + show + GUpdateBackupTimeData, + GUpdateBackupTimeData_setSettings, + GUpdateBackupTimeData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.req.gql.dart' + show GUpdateBackupTimeReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_time.var.gql.dart' + show GUpdateBackupTimeVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.data.gql.dart' + show + GUpdateBackupTTLData, + GUpdateBackupTTLData_setSettings, + GUpdateBackupTTLData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.req.gql.dart' + show GUpdateBackupTTLReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/update_backup_ttl.var.gql.dart' + show GUpdateBackupTTLVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.data.gql.dart' + show + GValidateBackupData, + GValidateBackupData_validateBackup, + GValidateBackupData_validateBackup_missingSources; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.req.gql.dart' + show GValidateBackupReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/backup/data/graphql/queries/__generated__/validate_backup.var.gql.dart' + show GValidateBackupVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.data.gql.dart' + show + GUpdateExtensionReposData, + GUpdateExtensionReposData_setSettings, + GUpdateExtensionReposData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.req.gql.dart' + show GUpdateExtensionReposReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_extension_repos.var.gql.dart' + show GUpdateExtensionReposVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.data.gql.dart' + show + GUpdateLocalSourcePathData, + GUpdateLocalSourcePathData_setSettings, + GUpdateLocalSourcePathData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.req.gql.dart' + show GUpdateLocalSourcePathReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_local_source_path.var.gql.dart' + show GUpdateLocalSourcePathVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.data.gql.dart' + show + GUpdateSourceInParallelData, + GUpdateSourceInParallelData_setSettings, + GUpdateSourceInParallelData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.req.gql.dart' + show GUpdateSourceInParallelReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/browse/data/graphql/queries/__generated__/update_source_in_parallel.var.gql.dart' + show GUpdateSourceInParallelVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.data.gql.dart' + show + GToggleAutoDownloadNewChaptersData, + GToggleAutoDownloadNewChaptersData_setSettings, + GToggleAutoDownloadNewChaptersData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.req.gql.dart' + show GToggleAutoDownloadNewChaptersReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_auto_download_new_chapters.var.gql.dart' + show GToggleAutoDownloadNewChaptersVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.data.gql.dart' + show + GToggleExcludeEntryWithUnreadChaptersData, + GToggleExcludeEntryWithUnreadChaptersData_setSettings, + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.req.gql.dart' + show GToggleExcludeEntryWithUnreadChaptersReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/toggle_exclude_entry_with_unread_chapters.var.gql.dart' + show GToggleExcludeEntryWithUnreadChaptersVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.data.gql.dart' + show + GUpdateAutoDownloadNewChaptersLimitData, + GUpdateAutoDownloadNewChaptersLimitData_setSettings, + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.req.gql.dart' + show GUpdateAutoDownloadNewChaptersLimitReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_auto_download_new_chapters_limit.var.gql.dart' + show GUpdateAutoDownloadNewChaptersLimitVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.data.gql.dart' + show + GUpdateDownloadAsCbzData, + GUpdateDownloadAsCbzData_setSettings, + GUpdateDownloadAsCbzData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.req.gql.dart' + show GUpdateDownloadAsCbzReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_download_as_cbz.var.gql.dart' + show GUpdateDownloadAsCbzVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.data.gql.dart' + show + GUpdateDownloadsLocationData, + GUpdateDownloadsLocationData_setSettings, + GUpdateDownloadsLocationData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.req.gql.dart' + show GUpdateDownloadsLocationReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/downloads/data/graphql/queries/__generated__/update_downloads_location.var.gql.dart' + show GUpdateDownloadsLocationVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.data.gql.dart' + show + GToggleExcludeCompletedData, + GToggleExcludeCompletedData_setSettings, + GToggleExcludeCompletedData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.req.gql.dart' + show GToggleExcludeCompletedReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_completed.var.gql.dart' + show GToggleExcludeCompletedVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.data.gql.dart' + show + GToggleExcludeNotStartedData, + GToggleExcludeNotStartedData_setSettings, + GToggleExcludeNotStartedData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.req.gql.dart' + show GToggleExcludeNotStartedReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_not_started.var.gql.dart' + show GToggleExcludeNotStartedVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.data.gql.dart' + show + GToggleExcludeUnreadChaptersData, + GToggleExcludeUnreadChaptersData_setSettings, + GToggleExcludeUnreadChaptersData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.req.gql.dart' + show GToggleExcludeUnreadChaptersReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/toggle_exclude_unread_chapters.var.gql.dart' + show GToggleExcludeUnreadChaptersVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.data.gql.dart' + show + GUpdateGlobalUpdateIntervalData, + GUpdateGlobalUpdateIntervalData_setSettings, + GUpdateGlobalUpdateIntervalData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.req.gql.dart' + show GUpdateGlobalUpdateIntervalReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_global_update_interval.var.gql.dart' + show GUpdateGlobalUpdateIntervalVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.data.gql.dart' + show + GUpdateMangaMetaDataData, + GUpdateMangaMetaDataData_setSettings, + GUpdateMangaMetaDataData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.req.gql.dart' + show GUpdateMangaMetaDataReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/library/data/graphql/queries/__generated__/update_manga_meta_data.var.gql.dart' + show GUpdateMangaMetaDataVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.data.gql.dart' + show + GToggleDebugLogsData, + GToggleDebugLogsData_setSettings, + GToggleDebugLogsData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.req.gql.dart' + show GToggleDebugLogsReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_debug_logs.var.gql.dart' + show GToggleDebugLogsVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.data.gql.dart' + show + GToggleFlareSolverrData, + GToggleFlareSolverrData_setSettings, + GToggleFlareSolverrData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.req.gql.dart' + show GToggleFlareSolverrReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_flare_solverr.var.gql.dart' + show GToggleFlareSolverrVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.data.gql.dart' + show + GToggleGqlDebugLogsData, + GToggleGqlDebugLogsData_setSettings, + GToggleGqlDebugLogsData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.req.gql.dart' + show GToggleGqlDebugLogsReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_gql_debug_logs.var.gql.dart' + show GToggleGqlDebugLogsVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.data.gql.dart' + show + GToggleSocksProxyData, + GToggleSocksProxyData_setSettings, + GToggleSocksProxyData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.req.gql.dart' + show GToggleSocksProxyReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_socks_proxy.var.gql.dart' + show GToggleSocksProxyVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.data.gql.dart' + show + GToggleSystemTrayEnabledData, + GToggleSystemTrayEnabledData_setSettings, + GToggleSystemTrayEnabledData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.req.gql.dart' + show GToggleSystemTrayEnabledReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/toggle_system_tray_enabled.var.gql.dart' + show GToggleSystemTrayEnabledVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.data.gql.dart' + show + GUpdateFlareSolverrSessionNameData, + GUpdateFlareSolverrSessionNameData_setSettings, + GUpdateFlareSolverrSessionNameData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.req.gql.dart' + show GUpdateFlareSolverrSessionNameReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_name.var.gql.dart' + show GUpdateFlareSolverrSessionNameVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.data.gql.dart' + show + GUpdateFlareSolverrSessionTtlData, + GUpdateFlareSolverrSessionTtlData_setSettings, + GUpdateFlareSolverrSessionTtlData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.req.gql.dart' + show GUpdateFlareSolverrSessionTtlReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_session_ttl.var.gql.dart' + show GUpdateFlareSolverrSessionTtlVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.data.gql.dart' + show + GUpdateFlareSolverrTimeoutData, + GUpdateFlareSolverrTimeoutData_setSettings, + GUpdateFlareSolverrTimeoutData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.req.gql.dart' + show GUpdateFlareSolverrTimeoutReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_timeout.var.gql.dart' + show GUpdateFlareSolverrTimeoutVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.data.gql.dart' + show + GUpdateFlareSolverrUrlData, + GUpdateFlareSolverrUrlData_setSettings, + GUpdateFlareSolverrUrlData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.req.gql.dart' + show GUpdateFlareSolverrUrlReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_flare_solverr_url.var.gql.dart' + show GUpdateFlareSolverrUrlVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.data.gql.dart' + show + GUpdatePortData, + GUpdatePortData_setSettings, + GUpdatePortData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.req.gql.dart' + show GUpdatePortReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_port.var.gql.dart' + show GUpdatePortVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.data.gql.dart' + show + GUpdateServerIpData, + GUpdateServerIpData_setSettings, + GUpdateServerIpData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.req.gql.dart' + show GUpdateServerIpReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_server_ip.var.gql.dart' + show GUpdateServerIpVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.data.gql.dart' + show + GUpdateSocksHostData, + GUpdateSocksHostData_setSettings, + GUpdateSocksHostData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.req.gql.dart' + show GUpdateSocksHostReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_host.var.gql.dart' + show GUpdateSocksHostVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.data.gql.dart' + show + GUpdateSocksPasswordData, + GUpdateSocksPasswordData_setSettings, + GUpdateSocksPasswordData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.req.gql.dart' + show GUpdateSocksPasswordReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_password.var.gql.dart' + show GUpdateSocksPasswordVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.data.gql.dart' + show + GUpdateSocksPortData, + GUpdateSocksPortData_setSettings, + GUpdateSocksPortData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.req.gql.dart' + show GUpdateSocksPortReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_port.var.gql.dart' + show GUpdateSocksPortVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.data.gql.dart' + show + GUpdateSocksUserNameData, + GUpdateSocksUserNameData_setSettings, + GUpdateSocksUserNameData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.req.gql.dart' + show GUpdateSocksUserNameReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_user_name.var.gql.dart' + show GUpdateSocksUserNameVars; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.data.gql.dart' + show + GUpdateSocksVersionData, + GUpdateSocksVersionData_setSettings, + GUpdateSocksVersionData_setSettings_settings; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.req.gql.dart' + show GUpdateSocksVersionReq; +import 'package:tachidesk_sorayomi/src/features/settings/presentation/server/data/graphql/queries/__generated__/update_socks_version.var.gql.dart' + show GUpdateSocksVersionVars; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.data.gql.dart' + show GPageInfoFragmentData; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.req.gql.dart' + show GPageInfoFragmentReq; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/fragments.var.gql.dart' + show GPageInfoFragmentVars; +import 'package:tachidesk_sorayomi/src/graphql/__generated__/schema.schema.gql.dart' + show + GBackupRestoreState, + GBindTrackInput, + GBooleanFilterInput, + GCategoryConditionInput, + GCategoryFilterInput, + GCategoryMetaTypeInput, + GCategoryOrderBy, + GCategoryOrderInput, + GChapterConditionInput, + GChapterFilterInput, + GChapterMetaTypeInput, + GChapterOrderBy, + GChapterOrderInput, + GClearCachedImagesInput, + GClearDownloaderInput, + GCreateBackupInput, + GCreateCategoryInput, + GCursor, + GDeleteCategoryInput, + GDeleteCategoryMetaInput, + GDeleteChapterMetaInput, + GDeleteDownloadedChapterInput, + GDeleteDownloadedChaptersInput, + GDeleteGlobalMetaInput, + GDeleteMangaMetaInput, + GDeleteSourceMetaInput, + GDequeueChapterDownloadInput, + GDequeueChapterDownloadsInput, + GDoubleFilterInput, + GDownloadChangedInput, + GDownloadState, + GDownloadUpdateType, + GDownloaderState, + GEnqueueChapterDownloadInput, + GEnqueueChapterDownloadsInput, + GExtensionConditionInput, + GExtensionFilterInput, + GExtensionOrderBy, + GExtensionOrderInput, + GFetchChapterPagesInput, + GFetchChaptersInput, + GFetchExtensionsInput, + GFetchMangaInput, + GFetchSourceMangaInput, + GFetchSourceMangaType, + GFetchTrackInput, + GFilterChangeInput, + GFloatFilterInput, + GGlobalMetaTypeInput, + GIncludeOrExclude, + GInstallExternalExtensionInput, + GIntFilterInput, + GLoginTrackerCredentialsInput, + GLoginTrackerOAuthInput, + GLogoutTrackerInput, + GLongFilterInput, + GLongString, + GMangaConditionInput, + GMangaFilterInput, + GMangaMetaTypeInput, + GMangaOrderBy, + GMangaOrderInput, + GMangaStatus, + GMangaStatusFilterInput, + GMetaConditionInput, + GMetaFilterInput, + GMetaOrderBy, + GMetaOrderInput, + GPartialSettingsTypeInput, + GReorderChapterDownloadInput, + GResetSettingsInput, + GRestoreBackupInput, + GSearchTrackerInput, + GSetCategoryMetaInput, + GSetChapterMetaInput, + GSetGlobalMetaInput, + GSetMangaMetaInput, + GSetSettingsInput, + GSetSourceMetaInput, + GSortOrder, + GSortSelectionInput, + GSourceConditionInput, + GSourceFilterInput, + GSourceMetaTypeInput, + GSourceOrderBy, + GSourceOrderInput, + GSourcePreferenceChangeInput, + GStartDownloaderInput, + GStopDownloaderInput, + GStringFilterInput, + GTrackProgressInput, + GTrackRecordConditionInput, + GTrackRecordFilterInput, + GTrackRecordOrderBy, + GTrackRecordOrderInput, + GTrackerConditionInput, + GTrackerOrderBy, + GTrackerOrderInput, + GTriState, + GUnbindTrackInput, + GUpdateCategoriesInput, + GUpdateCategoryInput, + GUpdateCategoryMangaInput, + GUpdateCategoryOrderInput, + GUpdateCategoryPatchInput, + GUpdateChapterInput, + GUpdateChapterPatchInput, + GUpdateChaptersInput, + GUpdateExtensionInput, + GUpdateExtensionPatchInput, + GUpdateExtensionsInput, + GUpdateLibraryMangaInput, + GUpdateMangaCategoriesInput, + GUpdateMangaCategoriesPatchInput, + GUpdateMangaInput, + GUpdateMangaPatchInput, + GUpdateMangasCategoriesInput, + GUpdateMangasInput, + GUpdateSourcePreferenceInput, + GUpdateState, + GUpdateStopInput, + GUpdateStrategy, + GUpdateTrackInput, + GValidateBackupInput, + GWebUIChannel, + GWebUIFlavor, + GWebUIInterface, + GWebUIUpdateInput; +import 'package:tachidesk_sorayomi/src/utils/misc/upload_serializer.dart' + show UploadSerializer; + +part 'serializers.gql.g.dart'; + +final SerializersBuilder _serializersBuilder = _$serializers.toBuilder() + ..add(OperationSerializer()) + ..add(UploadSerializer()) + ..add(GFilterFragmentData.serializer) + ..add(GPrimitiveFilterFragmentData.serializer) + ..add(GSourcePreferenceByIdData_source_preferences.serializer) + ..addPlugin(StandardJsonPlugin()); +@SerializersFor([ + GAboutData, + GAboutData_aboutServer, + GAboutFragmentData, + GAboutFragmentReq, + GAboutFragmentVars, + GAboutReq, + GAboutVars, + GAllCategoriesData, + GAllCategoriesData_categories, + GAllCategoriesData_categories_nodes, + GAllCategoriesData_categories_nodes_mangas, + GAllCategoriesData_categories_nodes_meta, + GAllCategoriesData_categories_pageInfo, + GAllCategoriesReq, + GAllCategoriesVars, + GAutomaticBackupSettingsFragmentData, + GAutomaticBackupSettingsFragmentReq, + GAutomaticBackupSettingsFragmentVars, + GBackupRestoreState, + GBindTrackInput, + GBooleanFilterInput, + GBrowserSettingsFragmentData, + GBrowserSettingsFragmentReq, + GBrowserSettingsFragmentVars, + GCategoryConditionInput, + GCategoryFilterInput, + GCategoryFragmentData, + GCategoryFragmentData_mangas, + GCategoryFragmentData_meta, + GCategoryFragmentReq, + GCategoryFragmentVars, + GCategoryMetaTypeInput, + GCategoryOrderBy, + GCategoryOrderInput, + GChapterConditionInput, + GChapterFilterInput, + GChapterFragmentData, + GChapterFragmentData_meta, + GChapterFragmentReq, + GChapterFragmentVars, + GChapterMetaTypeInput, + GChapterOrderBy, + GChapterOrderInput, + GClearCachedImagesInput, + GClearDownloaderInput, + GCloudFlareBypassFragmentData, + GCloudFlareBypassFragmentReq, + GCloudFlareBypassFragmentVars, + GCreateBackupData, + GCreateBackupData_createBackup, + GCreateBackupInput, + GCreateBackupReq, + GCreateBackupVars, + GCreateCategoryInput, + GCursor, + GDeleteCategoryInput, + GDeleteCategoryMetaInput, + GDeleteChapterMetaInput, + GDeleteDownloadedChapterInput, + GDeleteDownloadedChaptersInput, + GDeleteGlobalMetaInput, + GDeleteMangaMetaInput, + GDeleteSourceMetaInput, + GDequeueChapterDownloadInput, + GDequeueChapterDownloadsInput, + GDoubleFilterInput, + GDownloadChangedInput, + GDownloadState, + GDownloadUpdateType, + GDownloaderState, + GDownloadsSettingsFragmentData, + GDownloadsSettingsFragmentReq, + GDownloadsSettingsFragmentVars, + GEnqueueChapterDownloadInput, + GEnqueueChapterDownloadsInput, + GExtensionConditionInput, + GExtensionFilterInput, + GExtensionFragmentData, + GExtensionFragmentReq, + GExtensionFragmentVars, + GExtensionOrderBy, + GExtensionOrderInput, + GFetchChapterPagesInput, + GFetchChaptersInput, + GFetchExtensionListData, + GFetchExtensionListData_fetchExtensions, + GFetchExtensionListData_fetchExtensions_extensions, + GFetchExtensionListReq, + GFetchExtensionListVars, + GFetchExtensionsInput, + GFetchMangaInput, + GFetchSourceMangaData, + GFetchSourceMangaData_fetchSourceManga, + GFetchSourceMangaData_fetchSourceManga_mangas, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter, + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_meta, + GFetchSourceMangaData_fetchSourceManga_mangas_source, + GFetchSourceMangaData_fetchSourceManga_mangas_source_extension, + GFetchSourceMangaInput, + GFetchSourceMangaReq, + GFetchSourceMangaType, + GFetchSourceMangaVars, + GFetchTrackInput, + GFilterChangeInput, + GFilterFragmentData__asGroupFilter, + GFilterFragmentData__asGroupFilter_groupState, + GFilterFragmentData__base, + GFilterFragmentReq, + GFilterFragmentVars, + GFloatFilterInput, + GGlobalMetaTypeInput, + GIncludeOrExclude, + GInstallExternalExtensionData, + GInstallExternalExtensionData_installExternalExtension, + GInstallExternalExtensionData_installExternalExtension_extension, + GInstallExternalExtensionInput, + GInstallExternalExtensionReq, + GInstallExternalExtensionVars, + GIntFilterInput, + GLibrarySettingsFragmentData, + GLibrarySettingsFragmentReq, + GLibrarySettingsFragmentVars, + GLoginTrackerCredentialsInput, + GLoginTrackerOAuthInput, + GLogoutTrackerInput, + GLongFilterInput, + GLongString, + GMangaConditionInput, + GMangaFilterInput, + GMangaFragmentData, + GMangaFragmentData_lastReadChapter, + GMangaFragmentData_lastReadChapter_meta, + GMangaFragmentData_latestFetchedChapter, + GMangaFragmentData_latestFetchedChapter_meta, + GMangaFragmentData_latestReadChapter, + GMangaFragmentData_latestReadChapter_meta, + GMangaFragmentData_latestUploadedChapter, + GMangaFragmentData_latestUploadedChapter_meta, + GMangaFragmentData_meta, + GMangaFragmentData_source, + GMangaFragmentData_source_extension, + GMangaFragmentReq, + GMangaFragmentVars, + GMangaMetaTypeInput, + GMangaOrderBy, + GMangaOrderInput, + GMangaStatus, + GMangaStatusFilterInput, + GMetaConditionInput, + GMetaFilterInput, + GMetaOrderBy, + GMetaOrderInput, + GMiscSettingsFragmentData, + GMiscSettingsFragmentReq, + GMiscSettingsFragmentVars, + GPageInfoFragmentData, + GPageInfoFragmentReq, + GPageInfoFragmentVars, + GPartialSettingsTypeInput, + GPrimitiveFilterFragmentData__asCheckBoxFilter, + GPrimitiveFilterFragmentData__asHeaderFilter, + GPrimitiveFilterFragmentData__asSelectFilter, + GPrimitiveFilterFragmentData__asSeparatorFilter, + GPrimitiveFilterFragmentData__asSortFilter, + GPrimitiveFilterFragmentData__asSortFilter_sortState, + GPrimitiveFilterFragmentData__asTextFilter, + GPrimitiveFilterFragmentData__asTriStateFilter, + GPrimitiveFilterFragmentData__base, + GPrimitiveFilterFragmentReq, + GPrimitiveFilterFragmentVars, + GReorderChapterDownloadInput, + GResetSettingsInput, + GRestoreBackupData, + GRestoreBackupData_restoreBackup, + GRestoreBackupData_restoreBackup_status, + GRestoreBackupInput, + GRestoreBackupReq, + GRestoreBackupVars, + GRestoreStatusData, + GRestoreStatusData_restoreStatus, + GRestoreStatusFragmentData, + GRestoreStatusFragmentReq, + GRestoreStatusFragmentVars, + GRestoreStatusReq, + GRestoreStatusVars, + GSearchTrackerInput, + GServerBindingFragmentData, + GServerBindingFragmentReq, + GServerBindingFragmentVars, + GServerSettingsData, + GServerSettingsData_settings, + GServerSettingsReq, + GServerSettingsVars, + GServerUpdateData, + GServerUpdateData_checkForServerUpdates, + GServerUpdateFragmentData, + GServerUpdateFragmentReq, + GServerUpdateFragmentVars, + GServerUpdateReq, + GServerUpdateVars, + GSetCategoryMetaInput, + GSetChapterMetaInput, + GSetGlobalMetaInput, + GSetMangaMetaInput, + GSetSettingsInput, + GSetSourceMetaInput, + GSettingsFragmentData, + GSettingsFragmentReq, + GSettingsFragmentVars, + GSocksProxyFragmentData, + GSocksProxyFragmentReq, + GSocksProxyFragmentVars, + GSortOrder, + GSortSelectionFragmentData, + GSortSelectionFragmentReq, + GSortSelectionFragmentVars, + GSortSelectionInput, + GSourceByIdData, + GSourceByIdData_source, + GSourceByIdData_source_extension, + GSourceByIdReq, + GSourceByIdVars, + GSourceConditionInput, + GSourceFilterByIdData, + GSourceFilterByIdData_source, + GSourceFilterByIdData_source_filters, + GSourceFilterByIdReq, + GSourceFilterByIdVars, + GSourceFilterInput, + GSourceFragmentData, + GSourceFragmentData_extension, + GSourceFragmentReq, + GSourceFragmentVars, + GSourceListData, + GSourceListData_sources, + GSourceListData_sources_nodes, + GSourceListData_sources_nodes_extension, + GSourceListReq, + GSourceListVars, + GSourceMangaPageData, + GSourceMangaPageData_mangas, + GSourceMangaPageData_mangas_lastReadChapter, + GSourceMangaPageData_mangas_lastReadChapter_meta, + GSourceMangaPageData_mangas_latestFetchedChapter, + GSourceMangaPageData_mangas_latestFetchedChapter_meta, + GSourceMangaPageData_mangas_latestReadChapter, + GSourceMangaPageData_mangas_latestReadChapter_meta, + GSourceMangaPageData_mangas_latestUploadedChapter, + GSourceMangaPageData_mangas_latestUploadedChapter_meta, + GSourceMangaPageData_mangas_meta, + GSourceMangaPageData_mangas_source, + GSourceMangaPageData_mangas_source_extension, + GSourceMangaPageReq, + GSourceMangaPageVars, + GSourceMetaTypeInput, + GSourceOrderBy, + GSourceOrderInput, + GSourcePreferenceByIdData, + GSourcePreferenceByIdData_source, + GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference, + GSourcePreferenceByIdData_source_preferences__asEditTextPreference, + GSourcePreferenceByIdData_source_preferences__asListPreference, + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference, + GSourcePreferenceByIdData_source_preferences__asSwitchPreference, + GSourcePreferenceByIdData_source_preferences__base, + GSourcePreferenceByIdReq, + GSourcePreferenceByIdVars, + GSourcePreferenceChangeInput, + GStartDownloaderInput, + GStopDownloaderInput, + GStringFilterInput, + GToggleAutoDownloadNewChaptersData, + GToggleAutoDownloadNewChaptersData_setSettings, + GToggleAutoDownloadNewChaptersData_setSettings_settings, + GToggleAutoDownloadNewChaptersReq, + GToggleAutoDownloadNewChaptersVars, + GToggleDebugLogsData, + GToggleDebugLogsData_setSettings, + GToggleDebugLogsData_setSettings_settings, + GToggleDebugLogsReq, + GToggleDebugLogsVars, + GToggleExcludeCompletedData, + GToggleExcludeCompletedData_setSettings, + GToggleExcludeCompletedData_setSettings_settings, + GToggleExcludeCompletedReq, + GToggleExcludeCompletedVars, + GToggleExcludeEntryWithUnreadChaptersData, + GToggleExcludeEntryWithUnreadChaptersData_setSettings, + GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings, + GToggleExcludeEntryWithUnreadChaptersReq, + GToggleExcludeEntryWithUnreadChaptersVars, + GToggleExcludeNotStartedData, + GToggleExcludeNotStartedData_setSettings, + GToggleExcludeNotStartedData_setSettings_settings, + GToggleExcludeNotStartedReq, + GToggleExcludeNotStartedVars, + GToggleExcludeUnreadChaptersData, + GToggleExcludeUnreadChaptersData_setSettings, + GToggleExcludeUnreadChaptersData_setSettings_settings, + GToggleExcludeUnreadChaptersReq, + GToggleExcludeUnreadChaptersVars, + GToggleFlareSolverrData, + GToggleFlareSolverrData_setSettings, + GToggleFlareSolverrData_setSettings_settings, + GToggleFlareSolverrReq, + GToggleFlareSolverrVars, + GToggleGqlDebugLogsData, + GToggleGqlDebugLogsData_setSettings, + GToggleGqlDebugLogsData_setSettings_settings, + GToggleGqlDebugLogsReq, + GToggleGqlDebugLogsVars, + GToggleSocksProxyData, + GToggleSocksProxyData_setSettings, + GToggleSocksProxyData_setSettings_settings, + GToggleSocksProxyReq, + GToggleSocksProxyVars, + GToggleSystemTrayEnabledData, + GToggleSystemTrayEnabledData_setSettings, + GToggleSystemTrayEnabledData_setSettings_settings, + GToggleSystemTrayEnabledReq, + GToggleSystemTrayEnabledVars, + GTrackProgressInput, + GTrackRecordConditionInput, + GTrackRecordFilterInput, + GTrackRecordOrderBy, + GTrackRecordOrderInput, + GTrackerConditionInput, + GTrackerOrderBy, + GTrackerOrderInput, + GTriState, + GUnbindTrackInput, + GUpdateAutoDownloadNewChaptersLimitData, + GUpdateAutoDownloadNewChaptersLimitData_setSettings, + GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings, + GUpdateAutoDownloadNewChaptersLimitReq, + GUpdateAutoDownloadNewChaptersLimitVars, + GUpdateBackupIntervalData, + GUpdateBackupIntervalData_setSettings, + GUpdateBackupIntervalData_setSettings_settings, + GUpdateBackupIntervalReq, + GUpdateBackupIntervalVars, + GUpdateBackupPathData, + GUpdateBackupPathData_setSettings, + GUpdateBackupPathData_setSettings_settings, + GUpdateBackupPathReq, + GUpdateBackupPathVars, + GUpdateBackupTTLData, + GUpdateBackupTTLData_setSettings, + GUpdateBackupTTLData_setSettings_settings, + GUpdateBackupTTLReq, + GUpdateBackupTTLVars, + GUpdateBackupTimeData, + GUpdateBackupTimeData_setSettings, + GUpdateBackupTimeData_setSettings_settings, + GUpdateBackupTimeReq, + GUpdateBackupTimeVars, + GUpdateCategoriesInput, + GUpdateCategoryInput, + GUpdateCategoryMangaInput, + GUpdateCategoryOrderInput, + GUpdateCategoryPatchInput, + GUpdateChapterInput, + GUpdateChapterPatchInput, + GUpdateChaptersInput, + GUpdateDownloadAsCbzData, + GUpdateDownloadAsCbzData_setSettings, + GUpdateDownloadAsCbzData_setSettings_settings, + GUpdateDownloadAsCbzReq, + GUpdateDownloadAsCbzVars, + GUpdateDownloadsLocationData, + GUpdateDownloadsLocationData_setSettings, + GUpdateDownloadsLocationData_setSettings_settings, + GUpdateDownloadsLocationReq, + GUpdateDownloadsLocationVars, + GUpdateExtensionData, + GUpdateExtensionData_updateExtension, + GUpdateExtensionData_updateExtension_extension, + GUpdateExtensionInput, + GUpdateExtensionPatchInput, + GUpdateExtensionReposData, + GUpdateExtensionReposData_setSettings, + GUpdateExtensionReposData_setSettings_settings, + GUpdateExtensionReposReq, + GUpdateExtensionReposVars, + GUpdateExtensionReq, + GUpdateExtensionVars, + GUpdateExtensionsInput, + GUpdateFlareSolverrSessionNameData, + GUpdateFlareSolverrSessionNameData_setSettings, + GUpdateFlareSolverrSessionNameData_setSettings_settings, + GUpdateFlareSolverrSessionNameReq, + GUpdateFlareSolverrSessionNameVars, + GUpdateFlareSolverrSessionTtlData, + GUpdateFlareSolverrSessionTtlData_setSettings, + GUpdateFlareSolverrSessionTtlData_setSettings_settings, + GUpdateFlareSolverrSessionTtlReq, + GUpdateFlareSolverrSessionTtlVars, + GUpdateFlareSolverrTimeoutData, + GUpdateFlareSolverrTimeoutData_setSettings, + GUpdateFlareSolverrTimeoutData_setSettings_settings, + GUpdateFlareSolverrTimeoutReq, + GUpdateFlareSolverrTimeoutVars, + GUpdateFlareSolverrUrlData, + GUpdateFlareSolverrUrlData_setSettings, + GUpdateFlareSolverrUrlData_setSettings_settings, + GUpdateFlareSolverrUrlReq, + GUpdateFlareSolverrUrlVars, + GUpdateGlobalUpdateIntervalData, + GUpdateGlobalUpdateIntervalData_setSettings, + GUpdateGlobalUpdateIntervalData_setSettings_settings, + GUpdateGlobalUpdateIntervalReq, + GUpdateGlobalUpdateIntervalVars, + GUpdateLibraryMangaInput, + GUpdateLocalSourcePathData, + GUpdateLocalSourcePathData_setSettings, + GUpdateLocalSourcePathData_setSettings_settings, + GUpdateLocalSourcePathReq, + GUpdateLocalSourcePathVars, + GUpdateMangaCategoriesInput, + GUpdateMangaCategoriesPatchInput, + GUpdateMangaInput, + GUpdateMangaMetaDataData, + GUpdateMangaMetaDataData_setSettings, + GUpdateMangaMetaDataData_setSettings_settings, + GUpdateMangaMetaDataReq, + GUpdateMangaMetaDataVars, + GUpdateMangaPatchInput, + GUpdateMangasCategoriesInput, + GUpdateMangasInput, + GUpdatePortData, + GUpdatePortData_setSettings, + GUpdatePortData_setSettings_settings, + GUpdatePortReq, + GUpdatePortVars, + GUpdateServerIpData, + GUpdateServerIpData_setSettings, + GUpdateServerIpData_setSettings_settings, + GUpdateServerIpReq, + GUpdateServerIpVars, + GUpdateSocksHostData, + GUpdateSocksHostData_setSettings, + GUpdateSocksHostData_setSettings_settings, + GUpdateSocksHostReq, + GUpdateSocksHostVars, + GUpdateSocksPasswordData, + GUpdateSocksPasswordData_setSettings, + GUpdateSocksPasswordData_setSettings_settings, + GUpdateSocksPasswordReq, + GUpdateSocksPasswordVars, + GUpdateSocksPortData, + GUpdateSocksPortData_setSettings, + GUpdateSocksPortData_setSettings_settings, + GUpdateSocksPortReq, + GUpdateSocksPortVars, + GUpdateSocksUserNameData, + GUpdateSocksUserNameData_setSettings, + GUpdateSocksUserNameData_setSettings_settings, + GUpdateSocksUserNameReq, + GUpdateSocksUserNameVars, + GUpdateSocksVersionData, + GUpdateSocksVersionData_setSettings, + GUpdateSocksVersionData_setSettings_settings, + GUpdateSocksVersionReq, + GUpdateSocksVersionVars, + GUpdateSourceInParallelData, + GUpdateSourceInParallelData_setSettings, + GUpdateSourceInParallelData_setSettings_settings, + GUpdateSourceInParallelReq, + GUpdateSourceInParallelVars, + GUpdateSourcePreferenceData, + GUpdateSourcePreferenceData_updateSourcePreference, + GUpdateSourcePreferenceInput, + GUpdateSourcePreferenceReq, + GUpdateSourcePreferenceVars, + GUpdateState, + GUpdateStopInput, + GUpdateStrategy, + GUpdateTrackInput, + GValidateBackupData, + GValidateBackupData_validateBackup, + GValidateBackupData_validateBackup_missingSources, + GValidateBackupInput, + GValidateBackupReq, + GValidateBackupVars, + GWebUIChannel, + GWebUIFlavor, + GWebUIInterface, + GWebUIUpdateInput, +]) +final Serializers serializers = _serializersBuilder.build(); diff --git a/lib/src/graphql/__generated__/serializers.gql.g.dart b/lib/src/graphql/__generated__/serializers.gql.g.dart new file mode 100644 index 00000000..20ff8195 --- /dev/null +++ b/lib/src/graphql/__generated__/serializers.gql.g.dart @@ -0,0 +1,1153 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'serializers.gql.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializers _$serializers = (new Serializers().toBuilder() + ..add(FetchPolicy.serializer) + ..add(GAboutData.serializer) + ..add(GAboutData_aboutServer.serializer) + ..add(GAboutFragmentData.serializer) + ..add(GAboutFragmentReq.serializer) + ..add(GAboutFragmentVars.serializer) + ..add(GAboutReq.serializer) + ..add(GAboutVars.serializer) + ..add(GAllCategoriesData.serializer) + ..add(GAllCategoriesData_categories.serializer) + ..add(GAllCategoriesData_categories_nodes.serializer) + ..add(GAllCategoriesData_categories_nodes_mangas.serializer) + ..add(GAllCategoriesData_categories_nodes_meta.serializer) + ..add(GAllCategoriesData_categories_pageInfo.serializer) + ..add(GAllCategoriesReq.serializer) + ..add(GAllCategoriesVars.serializer) + ..add(GAutomaticBackupSettingsFragmentData.serializer) + ..add(GAutomaticBackupSettingsFragmentReq.serializer) + ..add(GAutomaticBackupSettingsFragmentVars.serializer) + ..add(GBackupRestoreState.serializer) + ..add(GBindTrackInput.serializer) + ..add(GBooleanFilterInput.serializer) + ..add(GBrowserSettingsFragmentData.serializer) + ..add(GBrowserSettingsFragmentReq.serializer) + ..add(GBrowserSettingsFragmentVars.serializer) + ..add(GCategoryConditionInput.serializer) + ..add(GCategoryFilterInput.serializer) + ..add(GCategoryFragmentData.serializer) + ..add(GCategoryFragmentData_mangas.serializer) + ..add(GCategoryFragmentData_meta.serializer) + ..add(GCategoryFragmentReq.serializer) + ..add(GCategoryFragmentVars.serializer) + ..add(GCategoryMetaTypeInput.serializer) + ..add(GCategoryOrderBy.serializer) + ..add(GCategoryOrderInput.serializer) + ..add(GChapterConditionInput.serializer) + ..add(GChapterFilterInput.serializer) + ..add(GChapterFragmentData.serializer) + ..add(GChapterFragmentData_meta.serializer) + ..add(GChapterFragmentReq.serializer) + ..add(GChapterFragmentVars.serializer) + ..add(GChapterMetaTypeInput.serializer) + ..add(GChapterOrderBy.serializer) + ..add(GChapterOrderInput.serializer) + ..add(GClearCachedImagesInput.serializer) + ..add(GClearDownloaderInput.serializer) + ..add(GCloudFlareBypassFragmentData.serializer) + ..add(GCloudFlareBypassFragmentReq.serializer) + ..add(GCloudFlareBypassFragmentVars.serializer) + ..add(GCreateBackupData.serializer) + ..add(GCreateBackupData_createBackup.serializer) + ..add(GCreateBackupInput.serializer) + ..add(GCreateBackupReq.serializer) + ..add(GCreateBackupVars.serializer) + ..add(GCreateCategoryInput.serializer) + ..add(GCursor.serializer) + ..add(GDeleteCategoryInput.serializer) + ..add(GDeleteCategoryMetaInput.serializer) + ..add(GDeleteChapterMetaInput.serializer) + ..add(GDeleteDownloadedChapterInput.serializer) + ..add(GDeleteDownloadedChaptersInput.serializer) + ..add(GDeleteGlobalMetaInput.serializer) + ..add(GDeleteMangaMetaInput.serializer) + ..add(GDeleteSourceMetaInput.serializer) + ..add(GDequeueChapterDownloadInput.serializer) + ..add(GDequeueChapterDownloadsInput.serializer) + ..add(GDoubleFilterInput.serializer) + ..add(GDownloadChangedInput.serializer) + ..add(GDownloadState.serializer) + ..add(GDownloadUpdateType.serializer) + ..add(GDownloaderState.serializer) + ..add(GDownloadsSettingsFragmentData.serializer) + ..add(GDownloadsSettingsFragmentReq.serializer) + ..add(GDownloadsSettingsFragmentVars.serializer) + ..add(GEnqueueChapterDownloadInput.serializer) + ..add(GEnqueueChapterDownloadsInput.serializer) + ..add(GExtensionConditionInput.serializer) + ..add(GExtensionFilterInput.serializer) + ..add(GExtensionFragmentData.serializer) + ..add(GExtensionFragmentReq.serializer) + ..add(GExtensionFragmentVars.serializer) + ..add(GExtensionOrderBy.serializer) + ..add(GExtensionOrderInput.serializer) + ..add(GFetchChapterPagesInput.serializer) + ..add(GFetchChaptersInput.serializer) + ..add(GFetchExtensionListData.serializer) + ..add(GFetchExtensionListData_fetchExtensions.serializer) + ..add(GFetchExtensionListData_fetchExtensions_extensions.serializer) + ..add(GFetchExtensionListReq.serializer) + ..add(GFetchExtensionListVars.serializer) + ..add(GFetchExtensionsInput.serializer) + ..add(GFetchMangaInput.serializer) + ..add(GFetchSourceMangaData.serializer) + ..add(GFetchSourceMangaData_fetchSourceManga.serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas.serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter + .serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta + .serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter + .serializer) + ..add( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta + .serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter + .serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta + .serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter + .serializer) + ..add( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta + .serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_meta.serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_source.serializer) + ..add(GFetchSourceMangaData_fetchSourceManga_mangas_source_extension + .serializer) + ..add(GFetchSourceMangaInput.serializer) + ..add(GFetchSourceMangaReq.serializer) + ..add(GFetchSourceMangaType.serializer) + ..add(GFetchSourceMangaVars.serializer) + ..add(GFetchTrackInput.serializer) + ..add(GFilterChangeInput.serializer) + ..add(GFilterFragmentData__asGroupFilter.serializer) + ..add(GFilterFragmentData__asGroupFilter_groupState.serializer) + ..add(GFilterFragmentData__base.serializer) + ..add(GFilterFragmentReq.serializer) + ..add(GFilterFragmentVars.serializer) + ..add(GFloatFilterInput.serializer) + ..add(GGlobalMetaTypeInput.serializer) + ..add(GIncludeOrExclude.serializer) + ..add(GInstallExternalExtensionData.serializer) + ..add(GInstallExternalExtensionData_installExternalExtension.serializer) + ..add(GInstallExternalExtensionData_installExternalExtension_extension + .serializer) + ..add(GInstallExternalExtensionInput.serializer) + ..add(GInstallExternalExtensionReq.serializer) + ..add(GInstallExternalExtensionVars.serializer) + ..add(GIntFilterInput.serializer) + ..add(GLibrarySettingsFragmentData.serializer) + ..add(GLibrarySettingsFragmentReq.serializer) + ..add(GLibrarySettingsFragmentVars.serializer) + ..add(GLoginTrackerCredentialsInput.serializer) + ..add(GLoginTrackerOAuthInput.serializer) + ..add(GLogoutTrackerInput.serializer) + ..add(GLongFilterInput.serializer) + ..add(GLongString.serializer) + ..add(GMangaConditionInput.serializer) + ..add(GMangaFilterInput.serializer) + ..add(GMangaFragmentData.serializer) + ..add(GMangaFragmentData_lastReadChapter.serializer) + ..add(GMangaFragmentData_lastReadChapter_meta.serializer) + ..add(GMangaFragmentData_latestFetchedChapter.serializer) + ..add(GMangaFragmentData_latestFetchedChapter_meta.serializer) + ..add(GMangaFragmentData_latestReadChapter.serializer) + ..add(GMangaFragmentData_latestReadChapter_meta.serializer) + ..add(GMangaFragmentData_latestUploadedChapter.serializer) + ..add(GMangaFragmentData_latestUploadedChapter_meta.serializer) + ..add(GMangaFragmentData_meta.serializer) + ..add(GMangaFragmentData_source.serializer) + ..add(GMangaFragmentData_source_extension.serializer) + ..add(GMangaFragmentReq.serializer) + ..add(GMangaFragmentVars.serializer) + ..add(GMangaMetaTypeInput.serializer) + ..add(GMangaOrderBy.serializer) + ..add(GMangaOrderInput.serializer) + ..add(GMangaStatus.serializer) + ..add(GMangaStatusFilterInput.serializer) + ..add(GMetaConditionInput.serializer) + ..add(GMetaFilterInput.serializer) + ..add(GMetaOrderBy.serializer) + ..add(GMetaOrderInput.serializer) + ..add(GMiscSettingsFragmentData.serializer) + ..add(GMiscSettingsFragmentReq.serializer) + ..add(GMiscSettingsFragmentVars.serializer) + ..add(GPageInfoFragmentData.serializer) + ..add(GPageInfoFragmentReq.serializer) + ..add(GPageInfoFragmentVars.serializer) + ..add(GPartialSettingsTypeInput.serializer) + ..add(GPrimitiveFilterFragmentData__asCheckBoxFilter.serializer) + ..add(GPrimitiveFilterFragmentData__asHeaderFilter.serializer) + ..add(GPrimitiveFilterFragmentData__asSelectFilter.serializer) + ..add(GPrimitiveFilterFragmentData__asSeparatorFilter.serializer) + ..add(GPrimitiveFilterFragmentData__asSortFilter.serializer) + ..add(GPrimitiveFilterFragmentData__asSortFilter_sortState.serializer) + ..add(GPrimitiveFilterFragmentData__asTextFilter.serializer) + ..add(GPrimitiveFilterFragmentData__asTriStateFilter.serializer) + ..add(GPrimitiveFilterFragmentData__base.serializer) + ..add(GPrimitiveFilterFragmentReq.serializer) + ..add(GPrimitiveFilterFragmentVars.serializer) + ..add(GReorderChapterDownloadInput.serializer) + ..add(GResetSettingsInput.serializer) + ..add(GRestoreBackupData.serializer) + ..add(GRestoreBackupData_restoreBackup.serializer) + ..add(GRestoreBackupData_restoreBackup_status.serializer) + ..add(GRestoreBackupInput.serializer) + ..add(GRestoreBackupReq.serializer) + ..add(GRestoreBackupVars.serializer) + ..add(GRestoreStatusData.serializer) + ..add(GRestoreStatusData_restoreStatus.serializer) + ..add(GRestoreStatusFragmentData.serializer) + ..add(GRestoreStatusFragmentReq.serializer) + ..add(GRestoreStatusFragmentVars.serializer) + ..add(GRestoreStatusReq.serializer) + ..add(GRestoreStatusVars.serializer) + ..add(GSearchTrackerInput.serializer) + ..add(GServerBindingFragmentData.serializer) + ..add(GServerBindingFragmentReq.serializer) + ..add(GServerBindingFragmentVars.serializer) + ..add(GServerSettingsData.serializer) + ..add(GServerSettingsData_settings.serializer) + ..add(GServerSettingsReq.serializer) + ..add(GServerSettingsVars.serializer) + ..add(GServerUpdateData.serializer) + ..add(GServerUpdateData_checkForServerUpdates.serializer) + ..add(GServerUpdateFragmentData.serializer) + ..add(GServerUpdateFragmentReq.serializer) + ..add(GServerUpdateFragmentVars.serializer) + ..add(GServerUpdateReq.serializer) + ..add(GServerUpdateVars.serializer) + ..add(GSetCategoryMetaInput.serializer) + ..add(GSetChapterMetaInput.serializer) + ..add(GSetGlobalMetaInput.serializer) + ..add(GSetMangaMetaInput.serializer) + ..add(GSetSettingsInput.serializer) + ..add(GSetSourceMetaInput.serializer) + ..add(GSettingsFragmentData.serializer) + ..add(GSettingsFragmentReq.serializer) + ..add(GSettingsFragmentVars.serializer) + ..add(GSocksProxyFragmentData.serializer) + ..add(GSocksProxyFragmentReq.serializer) + ..add(GSocksProxyFragmentVars.serializer) + ..add(GSortOrder.serializer) + ..add(GSortSelectionFragmentData.serializer) + ..add(GSortSelectionFragmentReq.serializer) + ..add(GSortSelectionFragmentVars.serializer) + ..add(GSortSelectionInput.serializer) + ..add(GSourceByIdData.serializer) + ..add(GSourceByIdData_source.serializer) + ..add(GSourceByIdData_source_extension.serializer) + ..add(GSourceByIdReq.serializer) + ..add(GSourceByIdVars.serializer) + ..add(GSourceConditionInput.serializer) + ..add(GSourceFilterByIdData.serializer) + ..add(GSourceFilterByIdData_source.serializer) + ..add(GSourceFilterByIdData_source_filters.serializer) + ..add(GSourceFilterByIdReq.serializer) + ..add(GSourceFilterByIdVars.serializer) + ..add(GSourceFilterInput.serializer) + ..add(GSourceFragmentData.serializer) + ..add(GSourceFragmentData_extension.serializer) + ..add(GSourceFragmentReq.serializer) + ..add(GSourceFragmentVars.serializer) + ..add(GSourceListData.serializer) + ..add(GSourceListData_sources.serializer) + ..add(GSourceListData_sources_nodes.serializer) + ..add(GSourceListData_sources_nodes_extension.serializer) + ..add(GSourceListReq.serializer) + ..add(GSourceListVars.serializer) + ..add(GSourceMangaPageData.serializer) + ..add(GSourceMangaPageData_mangas.serializer) + ..add(GSourceMangaPageData_mangas_lastReadChapter.serializer) + ..add(GSourceMangaPageData_mangas_lastReadChapter_meta.serializer) + ..add(GSourceMangaPageData_mangas_latestFetchedChapter.serializer) + ..add(GSourceMangaPageData_mangas_latestFetchedChapter_meta.serializer) + ..add(GSourceMangaPageData_mangas_latestReadChapter.serializer) + ..add(GSourceMangaPageData_mangas_latestReadChapter_meta.serializer) + ..add(GSourceMangaPageData_mangas_latestUploadedChapter.serializer) + ..add(GSourceMangaPageData_mangas_latestUploadedChapter_meta.serializer) + ..add(GSourceMangaPageData_mangas_meta.serializer) + ..add(GSourceMangaPageData_mangas_source.serializer) + ..add(GSourceMangaPageData_mangas_source_extension.serializer) + ..add(GSourceMangaPageReq.serializer) + ..add(GSourceMangaPageVars.serializer) + ..add(GSourceMetaTypeInput.serializer) + ..add(GSourceOrderBy.serializer) + ..add(GSourceOrderInput.serializer) + ..add(GSourcePreferenceByIdData.serializer) + ..add(GSourcePreferenceByIdData_source.serializer) + ..add(GSourcePreferenceByIdData_source_preferences__asCheckBoxPreference + .serializer) + ..add(GSourcePreferenceByIdData_source_preferences__asEditTextPreference + .serializer) + ..add(GSourcePreferenceByIdData_source_preferences__asListPreference + .serializer) + ..add( + GSourcePreferenceByIdData_source_preferences__asMultiSelectListPreference + .serializer) + ..add(GSourcePreferenceByIdData_source_preferences__asSwitchPreference + .serializer) + ..add(GSourcePreferenceByIdData_source_preferences__base.serializer) + ..add(GSourcePreferenceByIdReq.serializer) + ..add(GSourcePreferenceByIdVars.serializer) + ..add(GSourcePreferenceChangeInput.serializer) + ..add(GStartDownloaderInput.serializer) + ..add(GStopDownloaderInput.serializer) + ..add(GStringFilterInput.serializer) + ..add(GToggleAutoDownloadNewChaptersData.serializer) + ..add(GToggleAutoDownloadNewChaptersData_setSettings.serializer) + ..add(GToggleAutoDownloadNewChaptersData_setSettings_settings.serializer) + ..add(GToggleAutoDownloadNewChaptersReq.serializer) + ..add(GToggleAutoDownloadNewChaptersVars.serializer) + ..add(GToggleDebugLogsData.serializer) + ..add(GToggleDebugLogsData_setSettings.serializer) + ..add(GToggleDebugLogsData_setSettings_settings.serializer) + ..add(GToggleDebugLogsReq.serializer) + ..add(GToggleDebugLogsVars.serializer) + ..add(GToggleExcludeCompletedData.serializer) + ..add(GToggleExcludeCompletedData_setSettings.serializer) + ..add(GToggleExcludeCompletedData_setSettings_settings.serializer) + ..add(GToggleExcludeCompletedReq.serializer) + ..add(GToggleExcludeCompletedVars.serializer) + ..add(GToggleExcludeEntryWithUnreadChaptersData.serializer) + ..add(GToggleExcludeEntryWithUnreadChaptersData_setSettings.serializer) + ..add(GToggleExcludeEntryWithUnreadChaptersData_setSettings_settings + .serializer) + ..add(GToggleExcludeEntryWithUnreadChaptersReq.serializer) + ..add(GToggleExcludeEntryWithUnreadChaptersVars.serializer) + ..add(GToggleExcludeNotStartedData.serializer) + ..add(GToggleExcludeNotStartedData_setSettings.serializer) + ..add(GToggleExcludeNotStartedData_setSettings_settings.serializer) + ..add(GToggleExcludeNotStartedReq.serializer) + ..add(GToggleExcludeNotStartedVars.serializer) + ..add(GToggleExcludeUnreadChaptersData.serializer) + ..add(GToggleExcludeUnreadChaptersData_setSettings.serializer) + ..add(GToggleExcludeUnreadChaptersData_setSettings_settings.serializer) + ..add(GToggleExcludeUnreadChaptersReq.serializer) + ..add(GToggleExcludeUnreadChaptersVars.serializer) + ..add(GToggleFlareSolverrData.serializer) + ..add(GToggleFlareSolverrData_setSettings.serializer) + ..add(GToggleFlareSolverrData_setSettings_settings.serializer) + ..add(GToggleFlareSolverrReq.serializer) + ..add(GToggleFlareSolverrVars.serializer) + ..add(GToggleGqlDebugLogsData.serializer) + ..add(GToggleGqlDebugLogsData_setSettings.serializer) + ..add(GToggleGqlDebugLogsData_setSettings_settings.serializer) + ..add(GToggleGqlDebugLogsReq.serializer) + ..add(GToggleGqlDebugLogsVars.serializer) + ..add(GToggleSocksProxyData.serializer) + ..add(GToggleSocksProxyData_setSettings.serializer) + ..add(GToggleSocksProxyData_setSettings_settings.serializer) + ..add(GToggleSocksProxyReq.serializer) + ..add(GToggleSocksProxyVars.serializer) + ..add(GToggleSystemTrayEnabledData.serializer) + ..add(GToggleSystemTrayEnabledData_setSettings.serializer) + ..add(GToggleSystemTrayEnabledData_setSettings_settings.serializer) + ..add(GToggleSystemTrayEnabledReq.serializer) + ..add(GToggleSystemTrayEnabledVars.serializer) + ..add(GTrackProgressInput.serializer) + ..add(GTrackRecordConditionInput.serializer) + ..add(GTrackRecordFilterInput.serializer) + ..add(GTrackRecordOrderBy.serializer) + ..add(GTrackRecordOrderInput.serializer) + ..add(GTrackerConditionInput.serializer) + ..add(GTrackerOrderBy.serializer) + ..add(GTrackerOrderInput.serializer) + ..add(GTriState.serializer) + ..add(GUnbindTrackInput.serializer) + ..add(GUpdateAutoDownloadNewChaptersLimitData.serializer) + ..add(GUpdateAutoDownloadNewChaptersLimitData_setSettings.serializer) + ..add(GUpdateAutoDownloadNewChaptersLimitData_setSettings_settings + .serializer) + ..add(GUpdateAutoDownloadNewChaptersLimitReq.serializer) + ..add(GUpdateAutoDownloadNewChaptersLimitVars.serializer) + ..add(GUpdateBackupIntervalData.serializer) + ..add(GUpdateBackupIntervalData_setSettings.serializer) + ..add(GUpdateBackupIntervalData_setSettings_settings.serializer) + ..add(GUpdateBackupIntervalReq.serializer) + ..add(GUpdateBackupIntervalVars.serializer) + ..add(GUpdateBackupPathData.serializer) + ..add(GUpdateBackupPathData_setSettings.serializer) + ..add(GUpdateBackupPathData_setSettings_settings.serializer) + ..add(GUpdateBackupPathReq.serializer) + ..add(GUpdateBackupPathVars.serializer) + ..add(GUpdateBackupTTLData.serializer) + ..add(GUpdateBackupTTLData_setSettings.serializer) + ..add(GUpdateBackupTTLData_setSettings_settings.serializer) + ..add(GUpdateBackupTTLReq.serializer) + ..add(GUpdateBackupTTLVars.serializer) + ..add(GUpdateBackupTimeData.serializer) + ..add(GUpdateBackupTimeData_setSettings.serializer) + ..add(GUpdateBackupTimeData_setSettings_settings.serializer) + ..add(GUpdateBackupTimeReq.serializer) + ..add(GUpdateBackupTimeVars.serializer) + ..add(GUpdateCategoriesInput.serializer) + ..add(GUpdateCategoryInput.serializer) + ..add(GUpdateCategoryMangaInput.serializer) + ..add(GUpdateCategoryOrderInput.serializer) + ..add(GUpdateCategoryPatchInput.serializer) + ..add(GUpdateChapterInput.serializer) + ..add(GUpdateChapterPatchInput.serializer) + ..add(GUpdateChaptersInput.serializer) + ..add(GUpdateDownloadAsCbzData.serializer) + ..add(GUpdateDownloadAsCbzData_setSettings.serializer) + ..add(GUpdateDownloadAsCbzData_setSettings_settings.serializer) + ..add(GUpdateDownloadAsCbzReq.serializer) + ..add(GUpdateDownloadAsCbzVars.serializer) + ..add(GUpdateDownloadsLocationData.serializer) + ..add(GUpdateDownloadsLocationData_setSettings.serializer) + ..add(GUpdateDownloadsLocationData_setSettings_settings.serializer) + ..add(GUpdateDownloadsLocationReq.serializer) + ..add(GUpdateDownloadsLocationVars.serializer) + ..add(GUpdateExtensionData.serializer) + ..add(GUpdateExtensionData_updateExtension.serializer) + ..add(GUpdateExtensionData_updateExtension_extension.serializer) + ..add(GUpdateExtensionInput.serializer) + ..add(GUpdateExtensionPatchInput.serializer) + ..add(GUpdateExtensionReposData.serializer) + ..add(GUpdateExtensionReposData_setSettings.serializer) + ..add(GUpdateExtensionReposData_setSettings_settings.serializer) + ..add(GUpdateExtensionReposReq.serializer) + ..add(GUpdateExtensionReposVars.serializer) + ..add(GUpdateExtensionReq.serializer) + ..add(GUpdateExtensionVars.serializer) + ..add(GUpdateExtensionsInput.serializer) + ..add(GUpdateFlareSolverrSessionNameData.serializer) + ..add(GUpdateFlareSolverrSessionNameData_setSettings.serializer) + ..add(GUpdateFlareSolverrSessionNameData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrSessionNameReq.serializer) + ..add(GUpdateFlareSolverrSessionNameVars.serializer) + ..add(GUpdateFlareSolverrSessionTtlData.serializer) + ..add(GUpdateFlareSolverrSessionTtlData_setSettings.serializer) + ..add(GUpdateFlareSolverrSessionTtlData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrSessionTtlReq.serializer) + ..add(GUpdateFlareSolverrSessionTtlVars.serializer) + ..add(GUpdateFlareSolverrTimeoutData.serializer) + ..add(GUpdateFlareSolverrTimeoutData_setSettings.serializer) + ..add(GUpdateFlareSolverrTimeoutData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrTimeoutReq.serializer) + ..add(GUpdateFlareSolverrTimeoutVars.serializer) + ..add(GUpdateFlareSolverrUrlData.serializer) + ..add(GUpdateFlareSolverrUrlData_setSettings.serializer) + ..add(GUpdateFlareSolverrUrlData_setSettings_settings.serializer) + ..add(GUpdateFlareSolverrUrlReq.serializer) + ..add(GUpdateFlareSolverrUrlVars.serializer) + ..add(GUpdateGlobalUpdateIntervalData.serializer) + ..add(GUpdateGlobalUpdateIntervalData_setSettings.serializer) + ..add(GUpdateGlobalUpdateIntervalData_setSettings_settings.serializer) + ..add(GUpdateGlobalUpdateIntervalReq.serializer) + ..add(GUpdateGlobalUpdateIntervalVars.serializer) + ..add(GUpdateLibraryMangaInput.serializer) + ..add(GUpdateLocalSourcePathData.serializer) + ..add(GUpdateLocalSourcePathData_setSettings.serializer) + ..add(GUpdateLocalSourcePathData_setSettings_settings.serializer) + ..add(GUpdateLocalSourcePathReq.serializer) + ..add(GUpdateLocalSourcePathVars.serializer) + ..add(GUpdateMangaCategoriesInput.serializer) + ..add(GUpdateMangaCategoriesPatchInput.serializer) + ..add(GUpdateMangaInput.serializer) + ..add(GUpdateMangaMetaDataData.serializer) + ..add(GUpdateMangaMetaDataData_setSettings.serializer) + ..add(GUpdateMangaMetaDataData_setSettings_settings.serializer) + ..add(GUpdateMangaMetaDataReq.serializer) + ..add(GUpdateMangaMetaDataVars.serializer) + ..add(GUpdateMangaPatchInput.serializer) + ..add(GUpdateMangasCategoriesInput.serializer) + ..add(GUpdateMangasInput.serializer) + ..add(GUpdatePortData.serializer) + ..add(GUpdatePortData_setSettings.serializer) + ..add(GUpdatePortData_setSettings_settings.serializer) + ..add(GUpdatePortReq.serializer) + ..add(GUpdatePortVars.serializer) + ..add(GUpdateServerIpData.serializer) + ..add(GUpdateServerIpData_setSettings.serializer) + ..add(GUpdateServerIpData_setSettings_settings.serializer) + ..add(GUpdateServerIpReq.serializer) + ..add(GUpdateServerIpVars.serializer) + ..add(GUpdateSocksHostData.serializer) + ..add(GUpdateSocksHostData_setSettings.serializer) + ..add(GUpdateSocksHostData_setSettings_settings.serializer) + ..add(GUpdateSocksHostReq.serializer) + ..add(GUpdateSocksHostVars.serializer) + ..add(GUpdateSocksPasswordData.serializer) + ..add(GUpdateSocksPasswordData_setSettings.serializer) + ..add(GUpdateSocksPasswordData_setSettings_settings.serializer) + ..add(GUpdateSocksPasswordReq.serializer) + ..add(GUpdateSocksPasswordVars.serializer) + ..add(GUpdateSocksPortData.serializer) + ..add(GUpdateSocksPortData_setSettings.serializer) + ..add(GUpdateSocksPortData_setSettings_settings.serializer) + ..add(GUpdateSocksPortReq.serializer) + ..add(GUpdateSocksPortVars.serializer) + ..add(GUpdateSocksUserNameData.serializer) + ..add(GUpdateSocksUserNameData_setSettings.serializer) + ..add(GUpdateSocksUserNameData_setSettings_settings.serializer) + ..add(GUpdateSocksUserNameReq.serializer) + ..add(GUpdateSocksUserNameVars.serializer) + ..add(GUpdateSocksVersionData.serializer) + ..add(GUpdateSocksVersionData_setSettings.serializer) + ..add(GUpdateSocksVersionData_setSettings_settings.serializer) + ..add(GUpdateSocksVersionReq.serializer) + ..add(GUpdateSocksVersionVars.serializer) + ..add(GUpdateSourceInParallelData.serializer) + ..add(GUpdateSourceInParallelData_setSettings.serializer) + ..add(GUpdateSourceInParallelData_setSettings_settings.serializer) + ..add(GUpdateSourceInParallelReq.serializer) + ..add(GUpdateSourceInParallelVars.serializer) + ..add(GUpdateSourcePreferenceData.serializer) + ..add(GUpdateSourcePreferenceData_updateSourcePreference.serializer) + ..add(GUpdateSourcePreferenceInput.serializer) + ..add(GUpdateSourcePreferenceReq.serializer) + ..add(GUpdateSourcePreferenceVars.serializer) + ..add(GUpdateState.serializer) + ..add(GUpdateStopInput.serializer) + ..add(GUpdateStrategy.serializer) + ..add(GUpdateTrackInput.serializer) + ..add(GValidateBackupData.serializer) + ..add(GValidateBackupData_validateBackup.serializer) + ..add(GValidateBackupData_validateBackup_missingSources.serializer) + ..add(GValidateBackupInput.serializer) + ..add(GValidateBackupReq.serializer) + ..add(GValidateBackupVars.serializer) + ..add(GWebUIChannel.serializer) + ..add(GWebUIFlavor.serializer) + ..add(GWebUIInterface.serializer) + ..add(GWebUIUpdateInput.serializer) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GAllCategoriesData_categories_nodes)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GAllCategoriesData_categories_nodes_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GCategoryFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GCategoryFragmentData_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GChapterFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GChapterFragmentData_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GExtensionFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GFetchExtensionListData_fetchExtensions_extensions) + ]), + () => new ListBuilder< + GFetchExtensionListData_fetchExtensions_extensions>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GFetchSourceMangaData_fetchSourceManga_mangas) + ]), + () => + new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta) + ]), + () => new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_lastReadChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta) + ]), + () => new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestFetchedChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta) + ]), + () => new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestReadChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType( + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta) + ]), + () => new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_latestUploadedChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GFilterChangeInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GFilterFragmentData__asGroupFilter_groupState) + ]), + () => + new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GLongString)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GMangaFragmentData_lastReadChapter_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestFetchedChapter_meta) + ]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestReadChapter_meta) + ]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GMangaFragmentData_latestUploadedChapter_meta) + ]), + () => + new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMangaStatus)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMetaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GMetaFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GServerUpdateData_checkForServerUpdates)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GSourceFilterByIdData_source_filters)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GSourceFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(GSourceFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GSourceListData_sources_nodes)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GSourceMangaPageData_mangas)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GSourceMangaPageData_mangas_lastReadChapter_meta) + ]), + () => new ListBuilder< + GSourceMangaPageData_mangas_lastReadChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType( + GSourceMangaPageData_mangas_latestFetchedChapter_meta) + ]), + () => new ListBuilder< + GSourceMangaPageData_mangas_latestFetchedChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GSourceMangaPageData_mangas_latestReadChapter_meta) + ]), + () => new ListBuilder< + GSourceMangaPageData_mangas_latestReadChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType( + GSourceMangaPageData_mangas_latestUploadedChapter_meta) + ]), + () => new ListBuilder< + GSourceMangaPageData_mangas_latestUploadedChapter_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GSourcePreferenceByIdData_source_preferences) + ]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GTrackRecordFilterInput)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GValidateBackupData_validateBackup_missingSources) + ]), + () => new ListBuilder< + GValidateBackupData_validateBackup_missingSources>()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(GFetchSourceMangaData_fetchSourceManga_mangas_meta) + ]), + () => new ListBuilder< + GFetchSourceMangaData_fetchSourceManga_mangas_meta>()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType( + BuiltList, const [const FullType(GMangaFragmentData_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, + const [const FullType(GSourceMangaPageData_mangas_meta)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(bool)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(double)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(int)]), + () => new ListBuilder())) + .build(); + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/lib/src/graphql/fragments.graphql b/lib/src/graphql/fragments.graphql new file mode 100644 index 00000000..b5706909 --- /dev/null +++ b/lib/src/graphql/fragments.graphql @@ -0,0 +1,6 @@ +fragment PageInfoFragment on PageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor +} diff --git a/lib/src/graphql/schema.graphql b/lib/src/graphql/schema.graphql new file mode 100644 index 00000000..fe619ef0 --- /dev/null +++ b/lib/src/graphql/schema.graphql @@ -0,0 +1,2190 @@ +"""Exposes a URL that specifies the behaviour of this scalar.""" +directive @specifiedBy( + """The URL that specifies the behaviour of this scalar.""" + url: String! +) on SCALAR + +"""Indicates an Input Object is a OneOf Input Object.""" +directive @oneOf on INPUT_OBJECT + +type AboutServerPayload { + buildTime: LongString! + buildType: String! + discord: String! + github: String! + name: String! + revision: String! + version: String! +} + +type AboutWebUI { + channel: String! + tag: String! +} + +enum BackupRestoreState { + IDLE + SUCCESS + FAILURE + RESTORING_CATEGORIES + RESTORING_MANGA +} + +type BackupRestoreStatus { + mangaProgress: Int! + state: BackupRestoreState! + totalManga: Int! +} + +input BindTrackInput { + clientMutationId: String + mangaId: Int! + remoteId: LongString! + trackerId: Int! +} + +type BindTrackPayload { + clientMutationId: String + trackRecord: TrackRecordType! +} + +input BooleanFilterInput { + distinctFrom: Boolean + distinctFromAll: [Boolean!] + distinctFromAny: [Boolean!] + equalTo: Boolean + greaterThan: Boolean + greaterThanOrEqualTo: Boolean + in: [Boolean!] + isNull: Boolean + lessThan: Boolean + lessThanOrEqualTo: Boolean + notDistinctFrom: Boolean + notEqualTo: Boolean + notEqualToAll: [Boolean!] + notEqualToAny: [Boolean!] + notIn: [Boolean!] +} + +input CategoryConditionInput { + default: Boolean + id: Int + name: String + order: Int +} + +type CategoryEdge implements Edge { + cursor: Cursor! + node: CategoryType! +} + +input CategoryFilterInput { + and: [CategoryFilterInput!] + default: BooleanFilterInput + id: IntFilterInput + name: StringFilterInput + not: CategoryFilterInput + or: [CategoryFilterInput!] + order: IntFilterInput +} + +type CategoryMetaType implements MetaType { + categoryId: Int! + key: String! + value: String! + category: CategoryType! +} + +input CategoryMetaTypeInput { + categoryId: Int! + key: String! + value: String! +} + +type CategoryNodeList implements NodeList { + edges: [CategoryEdge!]! + nodes: [CategoryType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum CategoryOrderBy { + ID + NAME + ORDER +} + +input CategoryOrderInput { + by: CategoryOrderBy! + byType: SortOrder +} + +type CategoryType { + default: Boolean! + id: Int! + includeInDownload: IncludeOrExclude! + includeInUpdate: IncludeOrExclude! + name: String! + order: Int! + mangas: MangaNodeList! + meta: [CategoryMetaType!]! +} + +input ChapterConditionInput { + chapterNumber: Float + fetchedAt: LongString + id: Int + isBookmarked: Boolean + isDownloaded: Boolean + isRead: Boolean + lastPageRead: Int + lastReadAt: LongString + mangaId: Int + name: String + pageCount: Int + realUrl: String + scanlator: String + sourceOrder: Int + uploadDate: LongString + url: String +} + +type ChapterEdge implements Edge { + cursor: Cursor! + node: ChapterType! +} + +input ChapterFilterInput { + and: [ChapterFilterInput!] + chapterNumber: FloatFilterInput + fetchedAt: LongFilterInput + id: IntFilterInput + inLibrary: BooleanFilterInput + isBookmarked: BooleanFilterInput + isDownloaded: BooleanFilterInput + isRead: BooleanFilterInput + lastPageRead: IntFilterInput + lastReadAt: LongFilterInput + mangaId: IntFilterInput + name: StringFilterInput + not: ChapterFilterInput + or: [ChapterFilterInput!] + pageCount: IntFilterInput + realUrl: StringFilterInput + scanlator: StringFilterInput + sourceOrder: IntFilterInput + uploadDate: LongFilterInput + url: StringFilterInput +} + +type ChapterMetaType implements MetaType { + chapterId: Int! + key: String! + value: String! + chapter: ChapterType! +} + +input ChapterMetaTypeInput { + chapterId: Int! + key: String! + value: String! +} + +type ChapterNodeList implements NodeList { + edges: [ChapterEdge!]! + nodes: [ChapterType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum ChapterOrderBy { + ID + SOURCE_ORDER + NAME + UPLOAD_DATE + CHAPTER_NUMBER + LAST_READ_AT + FETCHED_AT +} + +input ChapterOrderInput { + by: ChapterOrderBy! + byType: SortOrder +} + +type ChapterType { + chapterNumber: Float! + fetchedAt: LongString! + id: Int! + isBookmarked: Boolean! + isDownloaded: Boolean! + isRead: Boolean! + lastPageRead: Int! + lastReadAt: LongString! + mangaId: Int! + name: String! + pageCount: Int! + realUrl: String + scanlator: String + sourceOrder: Int! + uploadDate: LongString! + url: String! + manga: MangaType! + meta: [ChapterMetaType!]! +} + +type CheckBoxFilter { + default: Boolean! + name: String! +} + +type CheckBoxPreference { + currentValue: Boolean + default: Boolean! + key: String! + summary: String + title: String! + visible: Boolean! +} + +type CheckForServerUpdatesPayload { + channel: String! + tag: String! + url: String! +} + +input ClearCachedImagesInput { + cachedPages: Boolean + cachedThumbnails: Boolean + clientMutationId: String + downloadedThumbnails: Boolean +} + +type ClearCachedImagesPayload { + cachedPages: Boolean + cachedThumbnails: Boolean + clientMutationId: String + downloadedThumbnails: Boolean +} + +input ClearDownloaderInput { + clientMutationId: String +} + +type ClearDownloaderPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input CreateBackupInput { + clientMutationId: String + includeCategories: Boolean + includeChapters: Boolean +} + +type CreateBackupPayload { + clientMutationId: String + url: String! +} + +input CreateCategoryInput { + clientMutationId: String + default: Boolean + includeInDownload: IncludeOrExclude + includeInUpdate: IncludeOrExclude + name: String! + order: Int +} + +type CreateCategoryPayload { + category: CategoryType! + clientMutationId: String +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +input DeleteCategoryInput { + categoryId: Int! + clientMutationId: String +} + +input DeleteCategoryMetaInput { + categoryId: Int! + clientMutationId: String + key: String! +} + +type DeleteCategoryMetaPayload { + category: CategoryType! + clientMutationId: String + meta: CategoryMetaType +} + +type DeleteCategoryPayload { + category: CategoryType + clientMutationId: String + mangas: [MangaType!]! +} + +input DeleteChapterMetaInput { + chapterId: Int! + clientMutationId: String + key: String! +} + +type DeleteChapterMetaPayload { + chapter: ChapterType! + clientMutationId: String + meta: ChapterMetaType +} + +input DeleteDownloadedChapterInput { + clientMutationId: String + id: Int! +} + +type DeleteDownloadedChapterPayload { + chapters: ChapterType! + clientMutationId: String +} + +input DeleteDownloadedChaptersInput { + clientMutationId: String + ids: [Int!]! +} + +type DeleteDownloadedChaptersPayload { + chapters: [ChapterType!]! + clientMutationId: String +} + +input DeleteGlobalMetaInput { + clientMutationId: String + key: String! +} + +type DeleteGlobalMetaPayload { + clientMutationId: String + meta: GlobalMetaType +} + +input DeleteMangaMetaInput { + clientMutationId: String + key: String! + mangaId: Int! +} + +type DeleteMangaMetaPayload { + clientMutationId: String + manga: MangaType! + meta: MangaMetaType +} + +input DeleteSourceMetaInput { + clientMutationId: String + key: String! + sourceId: LongString! +} + +type DeleteSourceMetaPayload { + clientMutationId: String + meta: SourceMetaType + source: SourceType +} + +input DequeueChapterDownloadInput { + clientMutationId: String + id: Int! +} + +type DequeueChapterDownloadPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input DequeueChapterDownloadsInput { + clientMutationId: String + ids: [Int!]! +} + +type DequeueChapterDownloadsPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input DoubleFilterInput { + distinctFrom: Float + distinctFromAll: [Float!] + distinctFromAny: [Float!] + equalTo: Float + greaterThan: Float + greaterThanOrEqualTo: Float + in: [Float!] + isNull: Boolean + lessThan: Float + lessThanOrEqualTo: Float + notDistinctFrom: Float + notEqualTo: Float + notEqualToAll: [Float!] + notEqualToAny: [Float!] + notIn: [Float!] +} + +input DownloadChangedInput { + """ + Sets a max number of updates that can be contained in a download update + message.Everything above this limit will be omitted and the "downloadStatus" + should be re-fetched via the corresponding query. Due to the graphql + subscription execution strategy not supporting batching for data loaders, the + data loaders run into the n+1 problem, which can cause the server to get + unresponsive until the status update has been handled. This is an issue e.g. + when mass en- or dequeuing downloads. + """ + maxUpdates: Int +} + +type DownloadEdge implements Edge { + cursor: Cursor! + node: DownloadType! +} + +enum DownloaderState { + STARTED + STOPPED +} + +type DownloadNodeList implements NodeList { + edges: [DownloadEdge!]! + nodes: [DownloadType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum DownloadState { + QUEUED + DOWNLOADING + FINISHED + ERROR +} + +type DownloadStatus { + queue: [DownloadType!]! + state: DownloaderState! +} + +type DownloadType { + position: Int! + progress: Float! + state: DownloadState! + tries: Int! + chapter: ChapterType! + manga: MangaType! +} + +type DownloadUpdate { + download: DownloadType! + type: DownloadUpdateType! +} + +type DownloadUpdates { + """ + The current download queue at the time of sending initial message. Is null for all following messages + """ + initial: [DownloadType!] + + """ + Indicates whether updates have been omitted based on the "maxUpdates" + subscription variable. In case updates have been omitted, the "downloadStatus" + query should be re-fetched. + """ + omittedUpdates: Boolean! + state: DownloaderState! + updates: [DownloadUpdate!]! +} + +enum DownloadUpdateType { + QUEUED + DEQUEUED + PAUSED + STOPPED + PROGRESS + FINISHED + ERROR + POSITION +} + +interface Edge { + """A cursor for use in pagination.""" + cursor: Cursor! + + """The [T] at the end of the edge.""" + node: Node! +} + +type EditTextPreference { + currentValue: String + default: String + dialogMessage: String + dialogTitle: String + key: String! + summary: String + text: String + title: String + visible: Boolean! +} + +input EnqueueChapterDownloadInput { + clientMutationId: String + id: Int! +} + +type EnqueueChapterDownloadPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input EnqueueChapterDownloadsInput { + clientMutationId: String + ids: [Int!]! +} + +type EnqueueChapterDownloadsPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input ExtensionConditionInput { + apkName: String + hasUpdate: Boolean + iconUrl: String + isInstalled: Boolean + isNsfw: Boolean + isObsolete: Boolean + lang: String + name: String + pkgName: String + repo: String + versionCode: Int + versionName: String +} + +type ExtensionEdge implements Edge { + cursor: Cursor! + node: ExtensionType! +} + +input ExtensionFilterInput { + and: [ExtensionFilterInput!] + apkName: StringFilterInput + hasUpdate: BooleanFilterInput + iconUrl: StringFilterInput + isInstalled: BooleanFilterInput + isNsfw: BooleanFilterInput + isObsolete: BooleanFilterInput + lang: StringFilterInput + name: StringFilterInput + not: ExtensionFilterInput + or: [ExtensionFilterInput!] + pkgName: StringFilterInput + repo: StringFilterInput + versionCode: IntFilterInput + versionName: StringFilterInput +} + +type ExtensionNodeList implements NodeList { + edges: [ExtensionEdge!]! + nodes: [ExtensionType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum ExtensionOrderBy { + PKG_NAME + NAME + APK_NAME +} + +input ExtensionOrderInput { + by: ExtensionOrderBy! + byType: SortOrder +} + +type ExtensionType { + apkName: String! + hasUpdate: Boolean! + iconUrl: String! + isInstalled: Boolean! + isNsfw: Boolean! + isObsolete: Boolean! + lang: String! + name: String! + pkgName: String! + repo: String + versionCode: Int! + versionName: String! + source: SourceNodeList! +} + +input FetchChapterPagesInput { + chapterId: Int! + clientMutationId: String +} + +type FetchChapterPagesPayload { + chapter: ChapterType! + clientMutationId: String + pages: [String!]! +} + +input FetchChaptersInput { + clientMutationId: String + mangaId: Int! +} + +type FetchChaptersPayload { + chapters: [ChapterType!]! + clientMutationId: String +} + +input FetchExtensionsInput { + clientMutationId: String +} + +type FetchExtensionsPayload { + clientMutationId: String + extensions: [ExtensionType!]! +} + +input FetchMangaInput { + clientMutationId: String + id: Int! +} + +type FetchMangaPayload { + clientMutationId: String + manga: MangaType! +} + +input FetchSourceMangaInput { + clientMutationId: String + filters: [FilterChangeInput!] + page: Int! + query: String + source: LongString! + type: FetchSourceMangaType! +} + +type FetchSourceMangaPayload { + clientMutationId: String + hasNextPage: Boolean! + mangas: [MangaType!]! +} + +enum FetchSourceMangaType { + SEARCH + POPULAR + LATEST +} + +input FetchTrackInput { + clientMutationId: String + recordId: Int! +} + +type FetchTrackPayload { + clientMutationId: String + trackRecord: TrackRecordType! +} + +union Filter = CheckBoxFilter | GroupFilter | HeaderFilter | SelectFilter | SeparatorFilter | SortFilter | TextFilter | TriStateFilter + +input FilterChangeInput { + checkBoxState: Boolean + groupChange: FilterChangeInput + position: Int! + selectState: Int + sortState: SortSelectionInput + textState: String + triState: TriState +} + +input FloatFilterInput { + distinctFrom: Float + distinctFromAll: [Float!] + distinctFromAny: [Float!] + equalTo: Float + greaterThan: Float + greaterThanOrEqualTo: Float + in: [Float!] + isNull: Boolean + lessThan: Float + lessThanOrEqualTo: Float + notDistinctFrom: Float + notEqualTo: Float + notEqualToAll: [Float!] + notEqualToAny: [Float!] + notIn: [Float!] +} + +type GlobalMetaNodeList implements NodeList { + edges: [MetaEdge!]! + nodes: [GlobalMetaType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +type GlobalMetaType implements MetaType { + key: String! + value: String! +} + +input GlobalMetaTypeInput { + key: String! + value: String! +} + +type GroupFilter { + filters: [Filter!]! + name: String! +} + +type HeaderFilter { + name: String! +} + +enum IncludeOrExclude { + EXCLUDE + INCLUDE + UNSET +} + +input InstallExternalExtensionInput { + clientMutationId: String + extensionFile: Upload! +} + +type InstallExternalExtensionPayload { + clientMutationId: String + extension: ExtensionType! +} + +input IntFilterInput { + distinctFrom: Int + distinctFromAll: [Int!] + distinctFromAny: [Int!] + equalTo: Int + greaterThan: Int + greaterThanOrEqualTo: Int + in: [Int!] + isNull: Boolean + lessThan: Int + lessThanOrEqualTo: Int + notDistinctFrom: Int + notEqualTo: Int + notEqualToAll: [Int!] + notEqualToAny: [Int!] + notIn: [Int!] +} + +type LastUpdateTimestampPayload { + timestamp: LongString! +} + +type ListPreference { + currentValue: String + default: String + entries: [String!]! + entryValues: [String!]! + key: String! + summary: String + title: String + visible: Boolean! +} + +input LoginTrackerCredentialsInput { + clientMutationId: String + password: String! + trackerId: Int! + username: String! +} + +type LoginTrackerCredentialsPayload { + clientMutationId: String + isLoggedIn: Boolean! + tracker: TrackerType! +} + +input LoginTrackerOAuthInput { + callbackUrl: String! + clientMutationId: String + trackerId: Int! +} + +type LoginTrackerOAuthPayload { + clientMutationId: String + isLoggedIn: Boolean! + tracker: TrackerType! +} + +input LogoutTrackerInput { + clientMutationId: String + trackerId: Int! +} + +type LogoutTrackerPayload { + clientMutationId: String + isLoggedIn: Boolean! + tracker: TrackerType! +} + +input LongFilterInput { + distinctFrom: LongString + distinctFromAll: [LongString!] + distinctFromAny: [LongString!] + equalTo: LongString + greaterThan: LongString + greaterThanOrEqualTo: LongString + in: [LongString!] + isNull: Boolean + lessThan: LongString + lessThanOrEqualTo: LongString + notDistinctFrom: LongString + notEqualTo: LongString + notEqualToAll: [LongString!] + notEqualToAny: [LongString!] + notIn: [LongString!] +} + +"""A 64-bit signed integer as a String""" +scalar LongString + +input MangaConditionInput { + artist: String + author: String + categoryIds: [Int!] + chaptersLastFetchedAt: LongString + description: String + genre: [String!] + id: Int + inLibrary: Boolean + inLibraryAt: LongString + initialized: Boolean + lastFetchedAt: LongString + realUrl: String + sourceId: LongString + status: MangaStatus + thumbnailUrl: String + title: String + url: String +} + +type MangaEdge implements Edge { + cursor: Cursor! + node: MangaType! +} + +input MangaFilterInput { + and: [MangaFilterInput!] + artist: StringFilterInput + author: StringFilterInput + categoryId: IntFilterInput + chaptersLastFetchedAt: LongFilterInput + description: StringFilterInput + genre: StringFilterInput + id: IntFilterInput + inLibrary: BooleanFilterInput + inLibraryAt: LongFilterInput + initialized: BooleanFilterInput + lastFetchedAt: LongFilterInput + not: MangaFilterInput + or: [MangaFilterInput!] + realUrl: StringFilterInput + sourceId: LongFilterInput + status: MangaStatusFilterInput + thumbnailUrl: StringFilterInput + title: StringFilterInput + url: StringFilterInput +} + +type MangaMetaType implements MetaType { + key: String! + mangaId: Int! + value: String! + manga: MangaType! +} + +input MangaMetaTypeInput { + key: String! + mangaId: Int! + value: String! +} + +type MangaNodeList implements NodeList { + edges: [MangaEdge!]! + nodes: [MangaType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum MangaOrderBy { + ID + TITLE + IN_LIBRARY_AT + LAST_FETCHED_AT +} + +input MangaOrderInput { + by: MangaOrderBy! + byType: SortOrder +} + +enum MangaStatus { + UNKNOWN + ONGOING + COMPLETED + LICENSED + PUBLISHING_FINISHED + CANCELLED + ON_HIATUS +} + +input MangaStatusFilterInput { + distinctFrom: MangaStatus + distinctFromAll: [MangaStatus!] + distinctFromAny: [MangaStatus!] + equalTo: MangaStatus + greaterThan: MangaStatus + greaterThanOrEqualTo: MangaStatus + in: [MangaStatus!] + isNull: Boolean + lessThan: MangaStatus + lessThanOrEqualTo: MangaStatus + notDistinctFrom: MangaStatus + notEqualTo: MangaStatus + notEqualToAll: [MangaStatus!] + notEqualToAny: [MangaStatus!] + notIn: [MangaStatus!] +} + +type MangaType { + artist: String + author: String + chaptersLastFetchedAt: LongString + description: String + genre: [String!]! + id: Int! + inLibrary: Boolean! + inLibraryAt: LongString! + initialized: Boolean! + lastFetchedAt: LongString + realUrl: String + sourceId: LongString! + status: MangaStatus! + thumbnailUrl: String + thumbnailUrlLastFetched: LongString + title: String! + updateStrategy: UpdateStrategy! + url: String! + age: LongString + bookmarkCount: Int! + categories: CategoryNodeList! + chapters: ChapterNodeList! + chaptersAge: LongString + downloadCount: Int! + firstUnreadChapter: ChapterType + hasDuplicateChapters: Boolean! + lastReadChapter: ChapterType + latestFetchedChapter: ChapterType + latestReadChapter: ChapterType + latestUploadedChapter: ChapterType + meta: [MangaMetaType!]! + source: SourceType + trackRecords: TrackRecordNodeList! + unreadCount: Int! +} + +input MetaConditionInput { + key: String + value: String +} + +type MetaEdge implements Edge { + cursor: Cursor! + node: GlobalMetaType! +} + +input MetaFilterInput { + and: [MetaFilterInput!] + key: StringFilterInput + not: MetaFilterInput + or: [MetaFilterInput!] + value: StringFilterInput +} + +enum MetaOrderBy { + KEY + VALUE +} + +input MetaOrderInput { + by: MetaOrderBy! + byType: SortOrder +} + +interface MetaType { + key: String! + value: String! +} + +type MultiSelectListPreference { + currentValue: [String!] + default: [String!] + dialogMessage: String + dialogTitle: String + entries: [String!]! + entryValues: [String!]! + key: String! + summary: String + title: String + visible: Boolean! +} + +type Mutation { + createBackup(input: CreateBackupInput): CreateBackupPayload! + restoreBackup(input: RestoreBackupInput!): RestoreBackupPayload! + createCategory(input: CreateCategoryInput!): CreateCategoryPayload + deleteCategory(input: DeleteCategoryInput!): DeleteCategoryPayload + deleteCategoryMeta(input: DeleteCategoryMetaInput!): DeleteCategoryMetaPayload + setCategoryMeta(input: SetCategoryMetaInput!): SetCategoryMetaPayload + updateCategories(input: UpdateCategoriesInput!): UpdateCategoriesPayload + updateCategory(input: UpdateCategoryInput!): UpdateCategoryPayload + updateCategoryOrder(input: UpdateCategoryOrderInput!): UpdateCategoryOrderPayload + updateMangaCategories(input: UpdateMangaCategoriesInput!): UpdateMangaCategoriesPayload + updateMangasCategories(input: UpdateMangasCategoriesInput!): UpdateMangasCategoriesPayload + deleteChapterMeta(input: DeleteChapterMetaInput!): DeleteChapterMetaPayload + fetchChapterPages(input: FetchChapterPagesInput!): FetchChapterPagesPayload + fetchChapters(input: FetchChaptersInput!): FetchChaptersPayload + setChapterMeta(input: SetChapterMetaInput!): SetChapterMetaPayload + updateChapter(input: UpdateChapterInput!): UpdateChapterPayload + updateChapters(input: UpdateChaptersInput!): UpdateChaptersPayload + clearDownloader(input: ClearDownloaderInput!): ClearDownloaderPayload + deleteDownloadedChapter(input: DeleteDownloadedChapterInput!): DeleteDownloadedChapterPayload + deleteDownloadedChapters(input: DeleteDownloadedChaptersInput!): DeleteDownloadedChaptersPayload + dequeueChapterDownload(input: DequeueChapterDownloadInput!): DequeueChapterDownloadPayload + dequeueChapterDownloads(input: DequeueChapterDownloadsInput!): DequeueChapterDownloadsPayload + enqueueChapterDownload(input: EnqueueChapterDownloadInput!): EnqueueChapterDownloadPayload + enqueueChapterDownloads(input: EnqueueChapterDownloadsInput!): EnqueueChapterDownloadsPayload + reorderChapterDownload(input: ReorderChapterDownloadInput!): ReorderChapterDownloadPayload + startDownloader(input: StartDownloaderInput!): StartDownloaderPayload + stopDownloader(input: StopDownloaderInput!): StopDownloaderPayload + fetchExtensions(input: FetchExtensionsInput!): FetchExtensionsPayload + installExternalExtension(input: InstallExternalExtensionInput!): InstallExternalExtensionPayload + updateExtension(input: UpdateExtensionInput!): UpdateExtensionPayload + updateExtensions(input: UpdateExtensionsInput!): UpdateExtensionsPayload + clearCachedImages(input: ClearCachedImagesInput!): ClearCachedImagesPayload! + resetWebUIUpdateStatus: WebUIUpdateStatus + updateWebUI(input: WebUIUpdateInput!): WebUIUpdatePayload + deleteMangaMeta(input: DeleteMangaMetaInput!): DeleteMangaMetaPayload + fetchManga(input: FetchMangaInput!): FetchMangaPayload + setMangaMeta(input: SetMangaMetaInput!): SetMangaMetaPayload + updateManga(input: UpdateMangaInput!): UpdateMangaPayload + updateMangas(input: UpdateMangasInput!): UpdateMangasPayload + deleteGlobalMeta(input: DeleteGlobalMetaInput!): DeleteGlobalMetaPayload + setGlobalMeta(input: SetGlobalMetaInput!): SetGlobalMetaPayload + resetSettings(input: ResetSettingsInput!): ResetSettingsPayload! + setSettings(input: SetSettingsInput!): SetSettingsPayload! + deleteSourceMeta(input: DeleteSourceMetaInput!): DeleteSourceMetaPayload + fetchSourceManga(input: FetchSourceMangaInput!): FetchSourceMangaPayload + setSourceMeta(input: SetSourceMetaInput!): SetSourceMetaPayload + updateSourcePreference(input: UpdateSourcePreferenceInput!): UpdateSourcePreferencePayload + bindTrack(input: BindTrackInput!): BindTrackPayload! + fetchTrack(input: FetchTrackInput!): FetchTrackPayload! + loginTrackerCredentials(input: LoginTrackerCredentialsInput!): LoginTrackerCredentialsPayload! + loginTrackerOAuth(input: LoginTrackerOAuthInput!): LoginTrackerOAuthPayload! + logoutTracker(input: LogoutTrackerInput!): LogoutTrackerPayload! + trackProgress(input: TrackProgressInput!): TrackProgressPayload + unbindTrack(input: UnbindTrackInput!): UnbindTrackPayload! + updateTrack(input: UpdateTrackInput!): UpdateTrackPayload! + updateCategoryManga(input: UpdateCategoryMangaInput!): UpdateCategoryMangaPayload + updateLibraryManga(input: UpdateLibraryMangaInput!): UpdateLibraryMangaPayload + updateStop(input: UpdateStopInput!): UpdateStopPayload! +} + +union Node = CategoryMetaType | CategoryType | ChapterMetaType | ChapterType | DownloadType | DownloadUpdate | ExtensionType | GlobalMetaType | MangaMetaType | MangaType | PartialSettingsType | SettingsType | SourceMetaType | SourceType | TrackRecordType | TrackerType + +interface NodeList { + """ + A list of edges which contains the [T] and cursor to aid in pagination. + """ + edges: [Edge!]! + + """A list of [T] objects.""" + nodes: [Node!]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of all nodes you could get from the connection.""" + totalCount: Int! +} + +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor + + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! + + """When paginating backwards, the cursor to continue.""" + startCursor: Cursor +} + +type PartialSettingsType implements Settings { + autoDownloadAheadLimit: Int @deprecated(reason: "Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit") + autoDownloadIgnoreReUploads: Boolean + autoDownloadNewChapters: Boolean + autoDownloadNewChaptersLimit: Int + backupInterval: Int + backupPath: String + backupTTL: Int + backupTime: String + basicAuthEnabled: Boolean + basicAuthPassword: String + basicAuthUsername: String + debugLogsEnabled: Boolean + downloadAsCbz: Boolean + downloadsPath: String + electronPath: String + excludeCompleted: Boolean + excludeEntryWithUnreadChapters: Boolean + excludeNotStarted: Boolean + excludeUnreadChapters: Boolean + extensionRepos: [String!] + flareSolverrAsResponseFallback: Boolean + flareSolverrEnabled: Boolean + flareSolverrSessionName: String + flareSolverrSessionTtl: Int + flareSolverrTimeout: Int + flareSolverrUrl: String + globalUpdateInterval: Float + gqlDebugLogsEnabled: Boolean @deprecated(reason: "Removed - does not do anything") + initialOpenInBrowserEnabled: Boolean + ip: String + localSourcePath: String + maxLogFileSize: String + maxLogFiles: Int + maxLogFolderSize: String + maxSourcesInParallel: Int + port: Int + socksProxyEnabled: Boolean + socksProxyHost: String + socksProxyPassword: String + socksProxyPort: String + socksProxyUsername: String + socksProxyVersion: Int + systemTrayEnabled: Boolean + updateMangas: Boolean + webUIChannel: WebUIChannel + webUIFlavor: WebUIFlavor + webUIInterface: WebUIInterface + webUIUpdateCheckInterval: Float +} + +input PartialSettingsTypeInput { + autoDownloadIgnoreReUploads: Boolean + autoDownloadNewChapters: Boolean + autoDownloadNewChaptersLimit: Int + backupInterval: Int + backupPath: String + backupTTL: Int + backupTime: String + basicAuthEnabled: Boolean + basicAuthPassword: String + basicAuthUsername: String + debugLogsEnabled: Boolean + downloadAsCbz: Boolean + downloadsPath: String + electronPath: String + excludeCompleted: Boolean + excludeEntryWithUnreadChapters: Boolean + excludeNotStarted: Boolean + excludeUnreadChapters: Boolean + extensionRepos: [String!] + flareSolverrAsResponseFallback: Boolean + flareSolverrEnabled: Boolean + flareSolverrSessionName: String + flareSolverrSessionTtl: Int + flareSolverrTimeout: Int + flareSolverrUrl: String + globalUpdateInterval: Float + initialOpenInBrowserEnabled: Boolean + ip: String + localSourcePath: String + maxLogFileSize: String + maxLogFiles: Int + maxLogFolderSize: String + maxSourcesInParallel: Int + port: Int + socksProxyEnabled: Boolean + socksProxyHost: String + socksProxyPassword: String + socksProxyPort: String + socksProxyUsername: String + socksProxyVersion: Int + systemTrayEnabled: Boolean + updateMangas: Boolean + webUIChannel: WebUIChannel + webUIFlavor: WebUIFlavor + webUIInterface: WebUIInterface + webUIUpdateCheckInterval: Float +} + +union Preference = CheckBoxPreference | EditTextPreference | ListPreference | MultiSelectListPreference | SwitchPreference + +type Query { + restoreStatus(id: String!): BackupRestoreStatus + validateBackup(input: ValidateBackupInput!): ValidateBackupResult! + categories(condition: CategoryConditionInput, filter: CategoryFilterInput, orderBy: CategoryOrderBy, orderByType: SortOrder, order: [CategoryOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): CategoryNodeList! + category(id: Int!): CategoryType! + chapter(id: Int!): ChapterType! + chapters(condition: ChapterConditionInput, filter: ChapterFilterInput, orderBy: ChapterOrderBy, orderByType: SortOrder, order: [ChapterOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): ChapterNodeList! + downloadStatus: DownloadStatus! + extension(pkgName: String!): ExtensionType! + extensions(condition: ExtensionConditionInput, filter: ExtensionFilterInput, orderBy: ExtensionOrderBy, orderByType: SortOrder, order: [ExtensionOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): ExtensionNodeList! + aboutServer: AboutServerPayload! + aboutWebUI: AboutWebUI! + checkForServerUpdates: [CheckForServerUpdatesPayload!]! + checkForWebUIUpdate: WebUIUpdateCheck! + getWebUIUpdateStatus: WebUIUpdateStatus! + manga(id: Int!): MangaType! + mangas(condition: MangaConditionInput, filter: MangaFilterInput, orderBy: MangaOrderBy, orderByType: SortOrder, order: [MangaOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): MangaNodeList! + meta(key: String!): GlobalMetaType! + metas(condition: MetaConditionInput, filter: MetaFilterInput, orderBy: MetaOrderBy, orderByType: SortOrder, order: [MetaOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): GlobalMetaNodeList! + settings: SettingsType! + source(id: LongString!): SourceType! + sources(condition: SourceConditionInput, filter: SourceFilterInput, orderBy: SourceOrderBy, orderByType: SortOrder, order: [SourceOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): SourceNodeList! + searchTracker(input: SearchTrackerInput!): SearchTrackerPayload! + trackRecord(id: Int!): TrackRecordType! + trackRecords(condition: TrackRecordConditionInput, filter: TrackRecordFilterInput, orderBy: TrackRecordOrderBy, orderByType: SortOrder, order: [TrackRecordOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): TrackRecordNodeList! + tracker(id: Int!): TrackerType! + trackers(condition: TrackerConditionInput, orderBy: TrackerOrderBy, orderByType: SortOrder, order: [TrackerOrderInput!], before: Cursor, after: Cursor, first: Int, last: Int, offset: Int): TrackerNodeList! + lastUpdateTimestamp: LastUpdateTimestampPayload! + updateStatus: UpdateStatus! +} + +input ReorderChapterDownloadInput { + chapterId: Int! + clientMutationId: String + to: Int! +} + +type ReorderChapterDownloadPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input ResetSettingsInput { + clientMutationId: String +} + +type ResetSettingsPayload { + clientMutationId: String + settings: SettingsType! +} + +input RestoreBackupInput { + backup: Upload! + clientMutationId: String +} + +type RestoreBackupPayload { + clientMutationId: String + id: String! + status: BackupRestoreStatus +} + +input SearchTrackerInput { + query: String! + trackerId: Int! +} + +type SearchTrackerPayload { + trackSearches: [TrackSearchType!]! +} + +type SelectFilter { + default: Int! + name: String! + values: [String!]! +} + +type SeparatorFilter { + name: String! +} + +input SetCategoryMetaInput { + clientMutationId: String + meta: CategoryMetaTypeInput! +} + +type SetCategoryMetaPayload { + clientMutationId: String + meta: CategoryMetaType! +} + +input SetChapterMetaInput { + clientMutationId: String + meta: ChapterMetaTypeInput! +} + +type SetChapterMetaPayload { + clientMutationId: String + meta: ChapterMetaType! +} + +input SetGlobalMetaInput { + clientMutationId: String + meta: GlobalMetaTypeInput! +} + +type SetGlobalMetaPayload { + clientMutationId: String + meta: GlobalMetaType! +} + +input SetMangaMetaInput { + clientMutationId: String + meta: MangaMetaTypeInput! +} + +type SetMangaMetaPayload { + clientMutationId: String + meta: MangaMetaType! +} + +input SetSettingsInput { + clientMutationId: String + settings: PartialSettingsTypeInput! +} + +type SetSettingsPayload { + clientMutationId: String + settings: SettingsType! +} + +input SetSourceMetaInput { + clientMutationId: String + meta: SourceMetaTypeInput! +} + +type SetSourceMetaPayload { + clientMutationId: String + meta: SourceMetaType! +} + +interface Settings { + autoDownloadAheadLimit: Int @deprecated(reason: "Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit") + autoDownloadIgnoreReUploads: Boolean + autoDownloadNewChapters: Boolean + autoDownloadNewChaptersLimit: Int + backupInterval: Int + backupPath: String + backupTTL: Int + backupTime: String + basicAuthEnabled: Boolean + basicAuthPassword: String + basicAuthUsername: String + debugLogsEnabled: Boolean + downloadAsCbz: Boolean + downloadsPath: String + electronPath: String + excludeCompleted: Boolean + excludeEntryWithUnreadChapters: Boolean + excludeNotStarted: Boolean + excludeUnreadChapters: Boolean + extensionRepos: [String!] + flareSolverrAsResponseFallback: Boolean + flareSolverrEnabled: Boolean + flareSolverrSessionName: String + flareSolverrSessionTtl: Int + flareSolverrTimeout: Int + flareSolverrUrl: String + globalUpdateInterval: Float + gqlDebugLogsEnabled: Boolean @deprecated(reason: "Removed - does not do anything") + initialOpenInBrowserEnabled: Boolean + ip: String + localSourcePath: String + maxLogFileSize: String + maxLogFiles: Int + maxLogFolderSize: String + maxSourcesInParallel: Int + port: Int + socksProxyEnabled: Boolean + socksProxyHost: String + socksProxyPassword: String + socksProxyPort: String + socksProxyUsername: String + socksProxyVersion: Int + systemTrayEnabled: Boolean + updateMangas: Boolean + webUIChannel: WebUIChannel + webUIFlavor: WebUIFlavor + webUIInterface: WebUIInterface + webUIUpdateCheckInterval: Float +} + +type SettingsType implements Settings { + autoDownloadAheadLimit: Int! @deprecated(reason: "Replaced with autoDownloadNewChaptersLimit, replace with autoDownloadNewChaptersLimit") + autoDownloadIgnoreReUploads: Boolean + autoDownloadNewChapters: Boolean! + autoDownloadNewChaptersLimit: Int! + backupInterval: Int! + backupPath: String! + backupTTL: Int! + backupTime: String! + basicAuthEnabled: Boolean! + basicAuthPassword: String! + basicAuthUsername: String! + debugLogsEnabled: Boolean! + downloadAsCbz: Boolean! + downloadsPath: String! + electronPath: String! + excludeCompleted: Boolean! + excludeEntryWithUnreadChapters: Boolean! + excludeNotStarted: Boolean! + excludeUnreadChapters: Boolean! + extensionRepos: [String!]! + flareSolverrAsResponseFallback: Boolean! + flareSolverrEnabled: Boolean! + flareSolverrSessionName: String! + flareSolverrSessionTtl: Int! + flareSolverrTimeout: Int! + flareSolverrUrl: String! + globalUpdateInterval: Float! + gqlDebugLogsEnabled: Boolean! @deprecated(reason: "Removed - does not do anything") + initialOpenInBrowserEnabled: Boolean! + ip: String! + localSourcePath: String! + maxLogFileSize: String! + maxLogFiles: Int! + maxLogFolderSize: String! + maxSourcesInParallel: Int! + port: Int! + socksProxyEnabled: Boolean! + socksProxyHost: String! + socksProxyPassword: String! + socksProxyPort: String! + socksProxyUsername: String! + socksProxyVersion: Int! + systemTrayEnabled: Boolean! + updateMangas: Boolean! + webUIChannel: WebUIChannel! + webUIFlavor: WebUIFlavor! + webUIInterface: WebUIInterface! + webUIUpdateCheckInterval: Float! +} + +type SortFilter { + default: SortSelection + name: String! + values: [String!]! +} + +enum SortOrder { + ASC + DESC + ASC_NULLS_FIRST + DESC_NULLS_FIRST + ASC_NULLS_LAST + DESC_NULLS_LAST +} + +type SortSelection { + ascending: Boolean! + index: Int! +} + +input SortSelectionInput { + ascending: Boolean! + index: Int! +} + +input SourceConditionInput { + id: LongString + isNsfw: Boolean + lang: String + name: String +} + +type SourceEdge implements Edge { + cursor: Cursor! + node: SourceType! +} + +input SourceFilterInput { + and: [SourceFilterInput!] + id: LongFilterInput + isNsfw: BooleanFilterInput + lang: StringFilterInput + name: StringFilterInput + not: SourceFilterInput + or: [SourceFilterInput!] +} + +type SourceMetaType implements MetaType { + key: String! + sourceId: LongString! + value: String! + source: SourceType! +} + +input SourceMetaTypeInput { + key: String! + sourceId: LongString! + value: String! +} + +type SourceNodeList implements NodeList { + edges: [SourceEdge!]! + nodes: [SourceType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum SourceOrderBy { + ID + NAME + LANG +} + +input SourceOrderInput { + by: SourceOrderBy! + byType: SortOrder +} + +input SourcePreferenceChangeInput { + checkBoxState: Boolean + editTextState: String + listState: String + multiSelectState: [String!] + position: Int! + switchState: Boolean +} + +type SourceType { + displayName: String! + iconUrl: String! + id: LongString! + isConfigurable: Boolean! + isNsfw: Boolean! + lang: String! + name: String! + supportsLatest: Boolean! + extension: ExtensionType! + filters: [Filter!]! + manga: MangaNodeList! + meta: [SourceMetaType!]! + preferences: [Preference!]! +} + +input StartDownloaderInput { + clientMutationId: String +} + +type StartDownloaderPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input StopDownloaderInput { + clientMutationId: String +} + +type StopDownloaderPayload { + clientMutationId: String + downloadStatus: DownloadStatus! +} + +input StringFilterInput { + distinctFrom: String + distinctFromAll: [String!] + distinctFromAny: [String!] + distinctFromInsensitive: String + distinctFromInsensitiveAll: [String!] + distinctFromInsensitiveAny: [String!] + endsWith: String + endsWithAll: [String!] + endsWithAny: [String!] + endsWithInsensitive: String + endsWithInsensitiveAll: [String!] + endsWithInsensitiveAny: [String!] + equalTo: String + greaterThan: String + greaterThanInsensitive: String + greaterThanOrEqualTo: String + greaterThanOrEqualToInsensitive: String + in: [String!] + inInsensitive: [String!] + includes: String + includesAll: [String!] + includesAny: [String!] + includesInsensitive: String + includesInsensitiveAll: [String!] + includesInsensitiveAny: [String!] + isNull: Boolean + lessThan: String + lessThanInsensitive: String + lessThanOrEqualTo: String + lessThanOrEqualToInsensitive: String + like: String + likeAll: [String!] + likeAny: [String!] + likeInsensitive: String + likeInsensitiveAll: [String!] + likeInsensitiveAny: [String!] + notDistinctFrom: String + notDistinctFromInsensitive: String + notEndsWith: String + notEndsWithAll: [String!] + notEndsWithAny: [String!] + notEndsWithInsensitive: String + notEndsWithInsensitiveAll: [String!] + notEndsWithInsensitiveAny: [String!] + notEqualTo: String + notEqualToAll: [String!] + notEqualToAny: [String!] + notIn: [String!] + notInInsensitive: [String!] + notIncludes: String + notIncludesAll: [String!] + notIncludesAny: [String!] + notIncludesInsensitive: String + notIncludesInsensitiveAll: [String!] + notIncludesInsensitiveAny: [String!] + notLike: String + notLikeAll: [String!] + notLikeAny: [String!] + notLikeInsensitive: String + notLikeInsensitiveAll: [String!] + notLikeInsensitiveAny: [String!] + notStartsWith: String + notStartsWithAll: [String!] + notStartsWithAny: [String!] + notStartsWithInsensitive: String + notStartsWithInsensitiveAll: [String!] + notStartsWithInsensitiveAny: [String!] + startsWith: String + startsWithAll: [String!] + startsWithAny: [String!] + startsWithInsensitive: String + startsWithInsensitiveAll: [String!] + startsWithInsensitiveAny: [String!] +} + +type Subscription { + downloadChanged: DownloadStatus! @deprecated(reason: "Replaced width downloadStatusChanged, replace with downloadStatusChanged(input)") + downloadStatusChanged(input: DownloadChangedInput!): DownloadUpdates! + webUIUpdateStatusChange: WebUIUpdateStatus! + updateStatusChanged: UpdateStatus! +} + +type SwitchPreference { + currentValue: Boolean + default: Boolean! + key: String! + summary: String + title: String! + visible: Boolean! +} + +type TextFilter { + default: String! + name: String! +} + +input TrackerConditionInput { + icon: String + id: Int + isLoggedIn: Boolean + name: String +} + +type TrackerEdge implements Edge { + cursor: Cursor! + node: TrackerType! +} + +type TrackerNodeList implements NodeList { + edges: [TrackerEdge!]! + nodes: [TrackerType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum TrackerOrderBy { + ID + NAME + IS_LOGGED_IN +} + +input TrackerOrderInput { + by: TrackerOrderBy! + byType: SortOrder +} + +type TrackerType { + authUrl: String + icon: String! + id: Int! + isLoggedIn: Boolean! + name: String! + supportsTrackDeletion: Boolean + isTokenExpired: Boolean! + scores: [String!]! + statuses: [TrackStatusType!]! + trackRecords: TrackRecordNodeList! +} + +input TrackProgressInput { + clientMutationId: String + mangaId: Int! +} + +type TrackProgressPayload { + clientMutationId: String + trackRecords: [TrackRecordType!]! +} + +input TrackRecordConditionInput { + finishDate: LongString + id: Int + lastChapterRead: Float + libraryId: LongString + mangaId: Int + remoteId: LongString + remoteUrl: String + score: Float + startDate: LongString + status: Int + title: String + totalChapters: Int + trackerId: Int +} + +type TrackRecordEdge implements Edge { + cursor: Cursor! + node: TrackRecordType! +} + +input TrackRecordFilterInput { + and: [TrackRecordFilterInput!] + finishDate: LongFilterInput + id: IntFilterInput + lastChapterRead: DoubleFilterInput + libraryId: LongFilterInput + mangaId: IntFilterInput + not: TrackRecordFilterInput + or: [TrackRecordFilterInput!] + remoteId: LongFilterInput + remoteUrl: StringFilterInput + score: DoubleFilterInput + startDate: LongFilterInput + status: IntFilterInput + title: StringFilterInput + totalChapters: IntFilterInput + trackerId: IntFilterInput +} + +type TrackRecordNodeList implements NodeList { + edges: [TrackRecordEdge!]! + nodes: [TrackRecordType!]! + pageInfo: PageInfo! + totalCount: Int! +} + +enum TrackRecordOrderBy { + ID + MANGA_ID + TRACKER_ID + REMOTE_ID + TITLE + LAST_CHAPTER_READ + TOTAL_CHAPTERS + SCORE + START_DATE + FINISH_DATE +} + +input TrackRecordOrderInput { + by: TrackRecordOrderBy! + byType: SortOrder +} + +type TrackRecordType { + finishDate: LongString! + id: Int! + lastChapterRead: Float! + libraryId: LongString + mangaId: Int! + remoteId: LongString! + remoteUrl: String! + score: Float! + startDate: LongString! + status: Int! + title: String! + totalChapters: Int! + trackerId: Int! + displayScore: String! + manga: MangaType! + tracker: TrackerType! +} + +type TrackSearchType { + coverUrl: String! + id: Int! + publishingStatus: String! + publishingType: String! + remoteId: LongString! + startDate: String! + summary: String! + title: String! + totalChapters: Int! + trackerId: Int! + trackingUrl: String! + tracker: TrackerType! +} + +type TrackStatusType { + name: String! + value: Int! +} + +enum TriState { + IGNORE + INCLUDE + EXCLUDE +} + +type TriStateFilter { + default: TriState! + name: String! +} + +input UnbindTrackInput { + clientMutationId: String + + """ + This will only work if the tracker of the track record supports deleting tracks + """ + deleteRemoteTrack: Boolean + recordId: Int! +} + +type UnbindTrackPayload { + clientMutationId: String + trackRecord: TrackRecordType +} + +input UpdateCategoriesInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateCategoryPatchInput! +} + +type UpdateCategoriesPayload { + categories: [CategoryType!]! + clientMutationId: String +} + +input UpdateCategoryInput { + clientMutationId: String + id: Int! + patch: UpdateCategoryPatchInput! +} + +input UpdateCategoryMangaInput { + categories: [Int!]! + clientMutationId: String +} + +type UpdateCategoryMangaPayload { + clientMutationId: String + updateStatus: UpdateStatus! +} + +input UpdateCategoryOrderInput { + clientMutationId: String + id: Int! + position: Int! +} + +type UpdateCategoryOrderPayload { + categories: [CategoryType!]! + clientMutationId: String +} + +input UpdateCategoryPatchInput { + default: Boolean + includeInDownload: IncludeOrExclude + includeInUpdate: IncludeOrExclude + name: String +} + +type UpdateCategoryPayload { + category: CategoryType! + clientMutationId: String +} + +input UpdateChapterInput { + clientMutationId: String + id: Int! + patch: UpdateChapterPatchInput! +} + +input UpdateChapterPatchInput { + isBookmarked: Boolean + isRead: Boolean + lastPageRead: Int +} + +type UpdateChapterPayload { + chapter: ChapterType! + clientMutationId: String +} + +input UpdateChaptersInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateChapterPatchInput! +} + +type UpdateChaptersPayload { + chapters: [ChapterType!]! + clientMutationId: String +} + +input UpdateExtensionInput { + clientMutationId: String + id: String! + patch: UpdateExtensionPatchInput! +} + +input UpdateExtensionPatchInput { + install: Boolean + uninstall: Boolean + update: Boolean +} + +type UpdateExtensionPayload { + clientMutationId: String + extension: ExtensionType +} + +input UpdateExtensionsInput { + clientMutationId: String + ids: [String!]! + patch: UpdateExtensionPatchInput! +} + +type UpdateExtensionsPayload { + clientMutationId: String + extensions: [ExtensionType!]! +} + +input UpdateLibraryMangaInput { + clientMutationId: String +} + +type UpdateLibraryMangaPayload { + clientMutationId: String + updateStatus: UpdateStatus! +} + +input UpdateMangaCategoriesInput { + clientMutationId: String + id: Int! + patch: UpdateMangaCategoriesPatchInput! +} + +input UpdateMangaCategoriesPatchInput { + addToCategories: [Int!] + clearCategories: Boolean + removeFromCategories: [Int!] +} + +type UpdateMangaCategoriesPayload { + clientMutationId: String + manga: MangaType! +} + +input UpdateMangaInput { + clientMutationId: String + id: Int! + patch: UpdateMangaPatchInput! +} + +input UpdateMangaPatchInput { + inLibrary: Boolean +} + +type UpdateMangaPayload { + clientMutationId: String + manga: MangaType! +} + +input UpdateMangasCategoriesInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateMangaCategoriesPatchInput! +} + +type UpdateMangasCategoriesPayload { + clientMutationId: String + mangas: [MangaType!]! +} + +input UpdateMangasInput { + clientMutationId: String + ids: [Int!]! + patch: UpdateMangaPatchInput! +} + +type UpdateMangasPayload { + clientMutationId: String + mangas: [MangaType!]! +} + +input UpdateSourcePreferenceInput { + change: SourcePreferenceChangeInput! + clientMutationId: String + source: LongString! +} + +type UpdateSourcePreferencePayload { + clientMutationId: String + preferences: [Preference!]! + source: SourceType! +} + +enum UpdateState { + IDLE + DOWNLOADING + FINISHED + ERROR +} + +type UpdateStatus { + completeJobs: UpdateStatusType! + failedJobs: UpdateStatusType! + isRunning: Boolean! + pendingJobs: UpdateStatusType! + runningJobs: UpdateStatusType! + skippedCategories: UpdateStatusCategoryType! + skippedJobs: UpdateStatusType! + updatingCategories: UpdateStatusCategoryType! +} + +type UpdateStatusCategoryType { + categories: CategoryNodeList! +} + +type UpdateStatusType { + mangas: MangaNodeList! +} + +input UpdateStopInput { + clientMutationId: String +} + +type UpdateStopPayload { + clientMutationId: String +} + +enum UpdateStrategy { + ALWAYS_UPDATE + ONLY_FETCH_ONCE +} + +input UpdateTrackInput { + clientMutationId: String + finishDate: LongString + lastChapterRead: Float + recordId: Int! + scoreString: String + startDate: LongString + status: Int +} + +type UpdateTrackPayload { + clientMutationId: String + trackRecord: TrackRecordType +} + +"""A file part in a multipart request""" +scalar Upload + +input ValidateBackupInput { + backup: Upload! +} + +type ValidateBackupResult { + missingSources: [ValidateBackupSource!]! + missingTrackers: [ValidateBackupTracker!]! +} + +type ValidateBackupSource { + id: LongString! + name: String! +} + +type ValidateBackupTracker { + name: String! +} + +enum WebUIChannel { + BUNDLED + STABLE + PREVIEW +} + +enum WebUIFlavor { + WEBUI + VUI + CUSTOM +} + +enum WebUIInterface { + BROWSER + ELECTRON +} + +type WebUIUpdateCheck { + channel: String! + tag: String! + updateAvailable: Boolean! +} + +type WebUIUpdateInfo { + channel: String! + tag: String! +} + +input WebUIUpdateInput { + clientMutationId: String +} + +type WebUIUpdatePayload { + clientMutationId: String + updateStatus: WebUIUpdateStatus! +} + +type WebUIUpdateStatus { + info: WebUIUpdateInfo! + progress: Int! + state: UpdateState! +} + diff --git a/lib/src/l10n/app_ar.arb b/lib/src/l10n/app_ar.arb index 47babc1a..1327271e 100644 --- a/lib/src/l10n/app_ar.arb +++ b/lib/src/l10n/app_ar.arb @@ -21,7 +21,7 @@ }, "appTitle": "تاشيديسك سورايومي", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "authType": "نوع المصادقة", "@authType": { @@ -118,7 +118,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_de.arb b/lib/src/l10n/app_de.arb index 757189b8..75ec23ec 100644 --- a/lib/src/l10n/app_de.arb +++ b/lib/src/l10n/app_de.arb @@ -36,7 +36,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -107,9 +107,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "appearance": "Aussehen", "@appearance": { diff --git a/lib/src/l10n/app_en.arb b/lib/src/l10n/app_en.arb index 681db081..76219faa 100644 --- a/lib/src/l10n/app_en.arb +++ b/lib/src/l10n/app_en.arb @@ -9,6 +9,9 @@ "@addToLibrary": { "description": "Button text to add Manga to Library in Manga Details Screen" }, + "@advanced": { + "description": "Section title Text for Advanced Section" + }, "@allScanlators": { "description": "Text for all Scanlators in manga description screen chapter filter" }, @@ -19,7 +22,7 @@ "description": "Popup title and Button text to change App Theme Mode" }, "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "@appearance": { "description": "Screen title and Button text of Appearance screen" @@ -33,9 +36,48 @@ "@authTypeNone": { "description": "Radio button text for no Authentication" }, + "@authentication": { + "description": "Section title for server authentication" + }, + "@autoDownload": { + "description": "Title for Auto-download Section in downloads settings" + }, + "@autoDownloadNewChapters": { + "description": "Toggle's title to change Auto Download New Chapters settings" + }, + "@automaticBackup": { + "description": "Settings group title for automatic backup settings" + }, + "@automaticUpdate": { + "description": "Popup title and Settings text to update Automatic Global Update interval" + }, + "@automaticallyRefreshMetadata": { + "description": "Settings text to update Automatically refresh metadata" + }, + "@automaticallyRefreshMetadataSubtitle": { + "description": "Settings sub title text to update Automatically refresh metadata" + }, "@backup": { "description": "Screen title and Button text of Backup & Restore screen" }, + "@backupAndRestore": { + "description": "Title for Backup and Restore section in settings" + }, + "@backupCleanup": { + "description": "Title for file backup cleanup edit tile" + }, + "@backupInterval": { + "description": "Title for file backup interval edit tile" + }, + "@backupLocation": { + "description": "Title for backup file storage location edit tile" + }, + "@backupLocationDescription": { + "description": "description for editing backup location" + }, + "@backupTime": { + "description": "Title for file backup time edit tile" + }, "@badges": { "description": "Checkbox Group title to enable Badges on manga Cover in Library Screen" }, @@ -63,6 +105,12 @@ "@channel": { "description": "Text title to show Channel of the Server (Stable, preview) in About Screen" }, + "@chapterDownloadLimit": { + "description": "Title Text for changing Chapter download limit settings" + }, + "@chapterDownloadLimitDesc": { + "description": "Sub Title Text for changing Chapter download limit settings" + }, "@chapterNumber": { "description": "Text title for Chapter name in chapter list", "placeholders": { @@ -99,14 +147,20 @@ "@close": { "description": "Text for close button" }, + "@cloudflareBypass": { + "description": "Section title for Cloudflare Bypass" + }, "@completed": { "description": "Checkbox text to filter Completed mangas in Library screen and Manga Grouping text in Update Summary screen" }, + "@copied": { + "description": "Copied Text" + }, "@copyMsg": { "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -126,6 +180,9 @@ "@daysAgo": { "description": "Days ago text to show the release date of manga" }, + "@debugLogs": { + "description": "Switch title for Debug logs in settings" + }, "@defaultCategory": { "description": "Checkbox description when creating a Category to add manga to the Category by Default" }, @@ -156,6 +213,12 @@ "@displayModeList": { "description": "Radio button text for Manga Cover display mode - List" }, + "@downloadLocation": { + "description": "Settings label Text to update Download location" + }, + "@downloadLocationHint": { + "description": "Hint text for updating downloads location" + }, "@downloaded": { "description": "Text to show downloaded chapters status in Filters " }, @@ -171,6 +234,18 @@ "@emptyCategory": { "description": "Description to show that category list is empty in Edit Category screen" }, + "@enableSocksProxy": { + "description": "Switch title to enable SOCKS Proxy" + }, + "@enterProp": { + "description": "Hint text for text field to enter value of Property" + }, + "@errorBackupCreate": { + "description": "Error Text to show that backup creating failed" + }, + "@errorBackupRestore": { + "description": "toast to show that backup restoration failed" + }, "@errorExtension": { "description": "Error Description to show when user selected unknown extension from list" }, @@ -198,12 +273,21 @@ "@errorUserName": { "description": "Error Description to show that UserName cannot be empty" }, + "@excludeEntryWithUnreadChapters": { + "description": "Toggle's title to change Toggle Exclude Entry With Unread Chapters setting" + }, "@extensionInstalled": { "description": "Toast text to show that the Extension Installed successfully" }, "@extensionListEmpty": { "description": "Description to show that Extension list is empty in Extension list tab of Browse screen" }, + "@extensionRepository": { + "description": "Screen title text for Extension repository settings screen" + }, + "@extensionRepositoryDescription": { + "description": "Subtitle text for Extension repository settings property" + }, "@extensions": { "description": "Extension list Tab title in Browse Screen" }, @@ -219,6 +303,21 @@ "@finished": { "description": "Text to show the Currently Finished reading chapter in Reader Screen" }, + "@flareSolverr": { + "description": "Toggle title to enable FlareSolverr" + }, + "@flareSolverrRequestTimeout": { + "description": "Title text for FlareSolverr Request Timeout property" + }, + "@flareSolverrServerUrl": { + "description": "Title text for FlareSolverr Server Url property" + }, + "@flareSolverrSessionName": { + "description": "Title text for FlareSolverr Session Name property" + }, + "@flareSolverrSessionTTL": { + "description": "Title text for FlareSolverr Session TTL property" + }, "@general": { "description": "Screen title and Button text of General setting screen" }, @@ -231,12 +330,24 @@ "@globalUpdate": { "description": "Button text of Global Manga Update" }, + "@gqlDebugLogs": { + "description": "Switch title for Graphql Debug logs in settings" + }, + "@gqlDebugLogsHint": { + "description": "Switch subTitle for Graphql Debug logs in settings" + }, "@help": { "description": "Button text of help in about screen" }, "@inLibrary": { "description": "Button and Chip text to show that the manga is in Library" }, + "@includeCategories": { + "description": "Check box text to include categories during create backup" + }, + "@includeChapters": { + "description": "Check box text to include chapters during create backup" + }, "@install": { "description": "Button text to install the extension" }, @@ -246,6 +357,15 @@ "@installingExtension": { "description": "Toast text to show that the extension is installing" }, + "@invalidPort": { + "description": "Error when Submitted invalid Port Number" + }, + "@invalidProp": { + "description": "Toast text for select invalid property value" + }, + "@ip": { + "description": "Option title for Server IP Address in Server settings" + }, "@isTrueBlack": { "description": "Switch title to enable {} black theme" }, @@ -258,6 +378,12 @@ "@library": { "description": "Screen title and Button text of Library and Library Settings screen" }, + "@localSourceLocation": { + "description": "Text for Local Source Location settings property" + }, + "@localSourceLocationDescription": { + "description": "Description text for Local Source Location property" + }, "@manga": { "description": "Screen title and Button text of Manga details screen" }, @@ -300,6 +426,9 @@ "@mangaStatusUnknown": { "description": "Text to show Manga Status Unknown in Manga details screen" }, + "@misc": { + "description": "Section title for misc settings" + }, "@missingExtension": { "description": "Group title to show the Missing Extensions when restoring Backup" }, @@ -315,6 +444,27 @@ "@moveToTop": { "description": "Button text to move download/category to the top of list" }, + "@nChapters": { + "description": "Text for showing N chapters" + }, + "@nDays": { + "description": "to show Number of days with plural" + }, + "@nHours": { + "description": "Text to represent 'n' hours" + }, + "@nMinutes": { + "description": "Text to represent 'n' Minutes" + }, + "@nRepo": { + "description": "Text to show n repo as subtitle" + }, + "@nSeconds": { + "description": "Text to represent 'n' seconds" + }, + "@nSources": { + "description": "Text to represent n number Parallel source requests" + }, "@nameCountDisplay": { "description": "Text pattern to display an name and count in a string", "placeholders": { @@ -361,6 +511,9 @@ } } }, + "@noPropFound": { + "description": "Template text to say No value for property found" + }, "@noResultFound": { "description": "Text to show that no results found for the given search query" }, @@ -376,6 +529,9 @@ "@noUpdatesFound": { "description": "Toast Text to show that there are no Updates available" }, + "@none": { + "description": "Text for None" + }, "@nsfw": { "description": "Switch text to show/hide the nsfw extensions" }, @@ -397,6 +553,12 @@ "@obsolete": { "description": "Text to show that the extension has become Obsolete" }, + "@openFlareSolverr": { + "description": "Text for link to Open Flare Solverr setup documentation" + }, + "@or": { + "description": "text literal for word or" + }, "@page": { "description": "Text to show the last read Page number of the chapter in Manga details screen", "placeholders": { @@ -406,6 +568,9 @@ } } }, + "@parallelSourceRequest": { + "description": "Text for Parallel source requests property" + }, "@password": { "description": "Title text for password field" }, @@ -544,6 +709,9 @@ "@reset": { "description": "Button text of reset button in source filters" }, + "@restore": { + "description": "Button Text to create backup" + }, "@restoreBackupDescription": { "description": "Button text description to create backup" }, @@ -568,6 +736,9 @@ "@save": { "description": "Save Button Text" }, + "@saveAsCBZArchive": { + "description": "Settings toggle label for Save as CBZ archive" + }, "@scanlators": { "description": "Title text for Scanlators" }, @@ -589,6 +760,9 @@ "@server": { "description": "Text title for the server in About screen" }, + "@serverBindings": { + "description": "Title for server bindings settings" + }, "@serverPort": { "description": "Popup title and Button text to update Server Port" }, @@ -607,6 +781,15 @@ "@settings": { "description": "Screen title and Button text of Settings screen" }, + "@skipUpdatingEntries": { + "description": "Settings Text to update skip Updating Entries" + }, + "@socksProxy": { + "description": "Section title for SOCKS Proxy settings" + }, + "@socksVersion": { + "description": "Title for Socks version picker" + }, "@sort": { "description": "title of sort Tab across the app" }, @@ -628,6 +811,12 @@ "@start": { "description": "Button text start reading the manga" }, + "@systemTrayIcon": { + "description": "Switch title to Show icon in system tray in settings" + }, + "@thatHaventBeenStarted": { + "description": "Setting option Text for Skip updating entries to toggle That haven't been started" + }, "@themeModeDark": { "description": "Radio button text for App theme - Dark" }, @@ -664,6 +853,9 @@ "@updateCompleted": { "description": "Button text to show that extension update is completed" }, + "@updateFailed": { + "description": "Failed to update Text" + }, "@updates": { "description": "Screen title and Button text of Updates screen" }, @@ -676,6 +868,9 @@ "@userName": { "description": "Title text for User Name field" }, + "@validating": { + "description": "toast to show backup validation is in progress" + }, "@versionAvailable": { "description": "Text to show that there is an update to App/Server", "placeholders": { @@ -698,21 +893,42 @@ "@whatsNew": { "description": "Button text to open whats new page of app in web" }, + "@withCompletedStatus": { + "description": "Setting option Text for Skip updating entries to toggle With Completed status" + }, + "@withUnreadChapter": { + "description": "Setting option Text for Skip updating entries to toggle With unread chapter(s)" + }, "@yesterday": { "description": "Yesterday Text to show the release date of manga" }, "about": "About", "addCategory": "Add Category", "addToLibrary": "Add to Library", + "advanced": "Advanced", "allScanlators": "All Scanlators", "appLanguage": "App Language", "appTheme": "App Theme Mode", - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "appearance": "Appearance", "authType": "Authentication Type", "authTypeBasic": "Basic Auth", "authTypeNone": "None", + "authentication": "Authentication", + "autoDownload": "Auto-download", + "autoDownloadNewChapters": "Download new chapters", + "automaticBackup": "Automatic Backup", + "automaticUpdate": "Automatic Update", + "automaticallyRefreshMetadata": "Automatically refresh metadata", + "automaticallyRefreshMetadataSubtitle": "Check for new cover and details when updating library", "backup": "Backup & Restore", + "backupAndRestore": "Backup and Restore", + "backupCleanup": "Backup Cleanup", + "backupCleanupDescription": "{count, select, 0{Never} 01{Delete Backups that are older 1 day} other{Delete Backups that are older {count} days}}", + "backupInterval": "Backup Interval", + "backupLocation": "Backup Location", + "backupLocationDescription": "The path to the directory on the server where automated backups should get saved in", + "backupTime": "Backup Time", "badges": "Badges", "bookmarked": "Bookmarked", "browse": "Browse", @@ -722,6 +938,8 @@ "categories": "Categories", "categoryUpdate": "Category Update", "channel": "Channel", + "chapterDownloadLimit": "Chapter download limit", + "chapterDownloadLimitDesc": "Limit the amount of new chapters that are going to get downloaded.", "chapterNumber": "Chapter {number}", "chapterSortFetchedDate": "By Fetched Date", "chapterSortSource": "By Source", @@ -732,13 +950,16 @@ "client": "Client", "clientVersion": "Client version", "close": "Close", + "cloudflareBypass": "Cloudflare Bypass", "completed": "Completed", + "copied": "Copied!", "copyMsg": "'{msg}' Copied!", "createBackupDescription": "Backup library as a Tachidesk backup", "createBackupTitle": "Create Backup", "credentials": "Credentials", "current": "Current", "daysAgo": "{days} days ago", + "debugLogs": "Debug logs", "defaultCategory": "Default category when adding new manga to library", "delete": "Delete", "deleteCategoryDescription": "This will merge all Mangas in this Category to Default!", @@ -749,11 +970,17 @@ "displayModeDescriptiveList": "Descriptive List", "displayModeGrid": "Grid", "displayModeList": "List", + "downloadLocation": "Download location", + "downloadLocationHint": "The path to the directory on the server where downloaded files should get saved in", "downloaded": "Downloaded", "downloads": "Downloads", "edit": "Edit", "editCategory": "Edit Category", "emptyCategory": "Category name can't be Empty", + "enableSocksProxy": "Use SOCKS Proxy", + "enterProp": "Enter {prop}", + "errorBackupCreate": "Failed to create Backup", + "errorBackupRestore": "Failed to restore backup!", "errorExtension": "Can't find the selected extension", "errorFilePick": "File not selected!", "errorFilePickUnknownExtension": "Please select a file with {extensionName} extension", @@ -761,26 +988,44 @@ "errorPassword": "Password can't be empty", "errorSomethingWentWrong": "Something went wrong!", "errorUserName": "UserName can't be empty", + "excludeEntryWithUnreadChapters": "Ignore automatic chapter downloads for entries with unread chapters", "extensionInstalled": "Extension Installed!", "extensionListEmpty": "Extension list is Empty", + "extensionRepository": "Extension Repository", + "extensionRepositoryDescription": "Add repositories from which extensions can be installed", "extensions": "Extensions", "failed": "Failed", "filter": "Filter", "findServer": "Find", "finished": "Finished", + "flareSolverr": "FlareSolverr", + "flareSolverrRequestTimeout": "FlareSolverr Request Timeout", + "flareSolverrServerUrl": "FlareSolverr Server Url", + "flareSolverrSessionName": "FlareSolverr session name", + "flareSolverrSessionTTL": "FlareSolverr session TTL", "general": "General", "gitHub": "GitHub", "globalSearch": "Global Search", "globalUpdate": "Global Update", + "gqlDebugLogs": "Graphql debug logs", + "gqlDebugLogsHint": "This includes logs with non privacy safe information", "help": "Help", "inLibrary": "In library", + "includeCategories": "Categories", + "includeChapters": "Chapters", "install": "Install", "installing": "Installing", "installingExtension": "Installing Extension", + "invalidPort": "Invalid Port", + "invalidProp": "Invalid {property}", + "ip": "IP Address", + "ipHintText": "Enter server binding IP address", "isTrueBlack": "True Black", "languages": "Languages", "latest": "Latest", "library": "Library", + "localSourceLocation": "Local source location", + "localSourceLocationDescription": "The path to the directory on the server where local source files are saved in", "manga": "Manga", "mangaGridSize": "Manga Grid Size", "mangaMissingSources": "Manga Missing Sources", @@ -795,11 +1040,19 @@ "mangaStatusOngoing": "Ongoing", "mangaStatusPublishingFinished": "Publishing Finished", "mangaStatusUnknown": "Unknown", + "misc": "Misc", "missingExtension": "Missing Extensions", "missingTrackers": "Missing Trackers", "more": "More", "moveToBottom": "Move to Bottom", "moveToTop": "Move to top", + "nChapters": "{n, plural, =0{None} =1{1 Chapter} other{{n} Chapters}}", + "nDays": "{count, select, 01{01 Day} other{{count} Days}}", + "nHours": "{n, plural, =1{1 hour} other{{n} hours}}", + "nMinutes": "{n, plural, =1{1 Minute} other{{n} Minutes}}", + "nRepo": "{n, plural, =1{1 Repo} other{{n} Repos}}", + "nSeconds": "{n, plural, =1{1 second} other{{n} seconds}}", + "nSources": "{n, plural, =1{1 Source} other{{n} Sources}}", "nameCountDisplay": "{name}: {count}", "newUpdateAvailable": "New update available", "nextChapter": "Next: {chapterTitle}", @@ -810,17 +1063,22 @@ "noDownloads": "No Downloads", "noMangaFound": "No Mangas Found", "noOfChapters": "{count} Chapters", + "noPropFound": "No {prop} Found", "noResultFound": "No results found", "noServerFound": "No Server found in your local network", "noSourcesFound": "No sources found", "noUpdatesAvailable": "You're using the latest version", "noUpdatesFound": "No updates found", + "none": "None", "nsfw": "Show NSFW extensions and sources", "nsfw18": "18+", "nsfwInfo": "This does not prevent unofficial or potentially incorrectly flagged extensions from surfacing NSFW(18+) content within app", "numSelected": "{num} Selected", "obsolete": "Obsolete", + "openFlareSolverr": "Checkout FlareSolverr for information on how to set it up", + "or": "or", "page": "Page: {number}", + "parallelSourceRequest": "Parallel source requests", "password": "Password", "pause": "Pause", "pending": "Pending", @@ -868,6 +1126,7 @@ "remove": "Remove", "removeFromLibrary": "Remove from Library?", "reset": "Reset", + "restore": "Restore", "restoreBackupDescription": "Restore Tachidesk from backup", "restoreBackupTitle": "Restore Backup", "restored": "Backup restored!", @@ -876,6 +1135,7 @@ "retry": "Retry", "running": "Running", "save": "Save", + "saveAsCBZArchive": "Save as CBZ archive", "scanlators": "Scanlators", "search": "Search", "searchingForUpdates": "Searching for updates", @@ -883,12 +1143,20 @@ "selectNext10": "Select next 10", "selectUnread": "Select Unread", "server": "Server", + "serverBindings": "Server Bindings", "serverPort": "Server Port", "serverPortHintText": "Server port", "serverUrl": "Server URL", "serverUrlHintText": "Server url", "serverVersion": "Server version", "settings": "Settings", + "skipUpdatingEntries": "Skip updating entries", + "socksHost": "SOCKS Host", + "socksPassword": "SOCKS Password", + "socksPort": "SOCKS Port", + "socksProxy": "SOCKS Proxy", + "socksUserName": "SOCKS UserName", + "socksVersion": "SOCKS Version", "sort": "Sort", "source": "Source", "sourceTypeFilter": "Filter", @@ -896,6 +1164,8 @@ "sourceTypePopular": "Popular", "sources": "Sources", "start": "Start", + "systemTrayIcon": "Show icon in system tray", + "thatHaventBeenStarted": "That haven't been started", "themeModeDark": "Dark", "themeModeLight": "Light", "themeModeSystem": "System", @@ -908,13 +1178,17 @@ "unread": "Unread", "update": "Update", "updateCompleted": "Update Completed", + "updateFailed": "Failed to update {property}", "updates": "Updates", "updatesSummary": "Updates Summary", "updating": "Updating", "userName": "User Name", + "validating": "Validating", "versionAvailable": "Version {version} available for {app}!!", "webUI": "Open in WEB", "webView": "Web View", "whatsNew": "What's New?", + "withCompletedStatus": "With Completed status", + "withUnreadChapter": "With unread chapter(s)", "yesterday": "Yesterday" } diff --git a/lib/src/l10n/app_es.arb b/lib/src/l10n/app_es.arb index dff1580a..236634ab 100644 --- a/lib/src/l10n/app_es.arb +++ b/lib/src/l10n/app_es.arb @@ -10,7 +10,7 @@ "@appLanguage": {}, "appTheme": "Tema de la aplicación", "@appTheme": {}, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": {}, "appearance": "Apariencia", "@appearance": {}, diff --git a/lib/src/l10n/app_fr.arb b/lib/src/l10n/app_fr.arb index 4e7a9693..e92c2374 100644 --- a/lib/src/l10n/app_fr.arb +++ b/lib/src/l10n/app_fr.arb @@ -27,9 +27,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "browse": "Parcourir", "@browse": { @@ -106,7 +106,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_ko.arb b/lib/src/l10n/app_ko.arb index f46f0a1c..ff46d518 100644 --- a/lib/src/l10n/app_ko.arb +++ b/lib/src/l10n/app_ko.arb @@ -11,9 +11,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "appearance": "모양", "@appearance": { @@ -66,7 +66,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_pt.arb b/lib/src/l10n/app_pt.arb index 5e74ca73..c2d8999d 100644 --- a/lib/src/l10n/app_pt.arb +++ b/lib/src/l10n/app_pt.arb @@ -10,7 +10,7 @@ "@appLanguage": {}, "appTheme": "Tema da Aplicação", "@appTheme": {}, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": {}, "appearance": "Aparência", "@appearance": {}, diff --git a/lib/src/l10n/app_pt_PT.arb b/lib/src/l10n/app_pt_PT.arb index ecd0b058..c3dfd958 100644 --- a/lib/src/l10n/app_pt_PT.arb +++ b/lib/src/l10n/app_pt_PT.arb @@ -10,7 +10,7 @@ "@appLanguage": {}, "appTheme": "Tema da Aplicação", "@appTheme": {}, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": {}, "appearance": "Aparência", "@appearance": {}, diff --git a/lib/src/l10n/app_uk.arb b/lib/src/l10n/app_uk.arb index caaa23c5..4838317b 100644 --- a/lib/src/l10n/app_uk.arb +++ b/lib/src/l10n/app_uk.arb @@ -11,9 +11,9 @@ "@appTheme": { "description": "Popup title and Button text to change App Theme" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "appearance": "Зовнішній вигляд", "@appearance": { @@ -76,7 +76,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/l10n/app_zh.arb b/lib/src/l10n/app_zh.arb index 0f504ac9..bd1ccfdb 100644 --- a/lib/src/l10n/app_zh.arb +++ b/lib/src/l10n/app_zh.arb @@ -76,7 +76,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -107,7 +107,7 @@ }, "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "addToLibrary": "添加到书架", "@addToLibrary": { diff --git a/lib/src/l10n/app_zh_Hans.arb b/lib/src/l10n/app_zh_Hans.arb index d7ff0003..c646e279 100644 --- a/lib/src/l10n/app_zh_Hans.arb +++ b/lib/src/l10n/app_zh_Hans.arb @@ -76,7 +76,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } @@ -107,7 +107,7 @@ }, "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "addToLibrary": "添加到书架", "@addToLibrary": { diff --git a/lib/src/l10n/app_zh_Hant.arb b/lib/src/l10n/app_zh_Hant.arb index 34274fad..18c50461 100644 --- a/lib/src/l10n/app_zh_Hant.arb +++ b/lib/src/l10n/app_zh_Hant.arb @@ -361,9 +361,9 @@ "@authType": { "description": "Popup title and Button text to change App Authentication" }, - "appTitle": "Tachidesk Sorayomi", + "appTitle": "Sorayomi", "@appTitle": { - "description": "Name of the app (Tachidesk Sorayomi in native script)" + "description": "Name of the app (Sorayomi in native script)" }, "credentials": "認證", "@credentials": { @@ -454,7 +454,7 @@ "description": "Toast text to show that the message has been copied", "placeholders": { "msg": { - "example": "Client : Tachidesk Sorayomi", + "example": "Client : Sorayomi", "type": "String" } } diff --git a/lib/src/routes/router_config.dart b/lib/src/routes/router_config.dart index 25c0c269..efe70fa5 100644 --- a/lib/src/routes/router_config.dart +++ b/lib/src/routes/router_config.dart @@ -1,20 +1,16 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - import 'package:flex_color_scheme/flex_color_scheme.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:go_router/go_router.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import '../constants/enum.dart'; import '../features/about/presentation/about/about_screen.dart'; -import '../features/browse_center/domain/filter/filter_model.dart'; +import '../features/browse_center/domain/source/source_model.dart'; import '../features/browse_center/presentation/browse/browse_screen.dart'; +import '../features/browse_center/presentation/extension/extension_screen.dart'; import '../features/browse_center/presentation/global_search/global_search_screen.dart'; +import '../features/browse_center/presentation/source/source_screen.dart'; import '../features/browse_center/presentation/source_manga_list/source_manga_list_screen.dart'; import '../features/browse_center/presentation/source_preference/source_preference_screen.dart'; import '../features/library/presentation/category/edit_category_screen.dart'; @@ -28,6 +24,8 @@ import '../features/quick_open/presentation/search_stack/search_stack_screen.dar import '../features/settings/presentation/appearance/appearance_screen.dart'; import '../features/settings/presentation/backup/backup_screen.dart'; import '../features/settings/presentation/browse/browse_settings_screen.dart'; +import '../features/settings/presentation/browse/widgets/extension_repository/extension_repository_screen.dart'; +import '../features/settings/presentation/downloads/downloads_settings_screen.dart'; import '../features/settings/presentation/general/general_screen.dart'; import '../features/settings/presentation/library/library_settings_screen.dart'; import '../features/settings/presentation/more/more_screen.dart'; @@ -35,44 +33,57 @@ import '../features/settings/presentation/reader/reader_settings_screen.dart'; import '../features/settings/presentation/server/server_screen.dart'; import '../features/settings/presentation/settings/settings_screen.dart'; import '../utils/extensions/custom_extensions.dart'; -import '../widgets/shell/shell_screen.dart'; +import '../widgets/shell/navigation_shell_screen.dart'; part 'router_config.g.dart'; +part 'sub_routes/browser_routes.dart'; +part 'sub_routes/common_routes.dart'; +part 'sub_routes/downloads_routes.dart'; +part 'sub_routes/library_routes.dart'; +part 'sub_routes/more_routes.dart'; +part 'sub_routes/updates_routes.dart'; -final GlobalKey _rootNavigatorKey = - GlobalKey(debugLabel: 'root'); +final rootNavigatorKey = GlobalKey(debugLabel: 'root'); -final GlobalKey _quickOpenNavigatorKey = +final _quickOpenNavigatorKey = GlobalKey(debugLabel: 'Quick Open'); -final GlobalKey _shellNavigatorKey = - GlobalKey(debugLabel: 'shell'); +final _shellNavigatorKey = GlobalKey(debugLabel: 'shell'); +final _browseNavigatorKey = GlobalKey(debugLabel: 'browse'); abstract class Routes { - static const home = '/'; - static const library = '/library'; - static const librarySettings = 'library'; + static const library = '/library/:categoryId'; + static const updates = '/updates'; - static const browse = '/browse'; + static const downloads = '/downloads'; + + static const extensionRoute = '/extension'; + static const source = '/source'; + static const sourceManga = ':sourceId'; + static const sourceMangaType = '$sourceManga/:sourceType'; + static const sourcePreference = '$sourceManga/preference'; + + // More static const more = '/more'; - static const about = '/about'; + static const settings = 'settings'; + static const librarySettings = 'library'; + static const editCategories = 'edit-categories'; + static const browseSettings = 'browse'; + static const extensionRepositorySettings = 'repo'; + static const readerSettings = 'reader'; static const appearanceSettings = 'appearance'; static const generalSettings = 'general'; static const backup = 'backup'; - static const settings = '/settings'; - static const browseSettings = 'browse'; - static const readerSettings = 'reader'; - static const reader = '/manga/:mangaId/chapter/:chapterIndex'; static const serverSettings = 'server'; - static const editCategories = 'edit-categories'; - static const extensions = '/extensions'; - static const manga = '$mangaRoute:mangaId'; - static const mangaRoute = '/manga/'; - static const sourceManga = '/source/:sourceId/:sourceType'; - static const sourcePreference = '/source/:sourceId/preference'; - static const globalSearch = '/global-search'; + static const downloadsSettings = 'downloads'; + + // Commons + static const mangaRoute = '/manga/:mangaId'; + static const reader = 'chapter/:chapterIndex'; static const updateStatus = "/update-status"; + static const about = 'about'; + static const globalSearch = '/global-search'; } @riverpod @@ -80,46 +91,110 @@ GoRouter routerConfig(ref) { return GoRouter( routes: $appRoutes, debugLogDiagnostics: true, - initialLocation: Routes.library, - navigatorKey: _rootNavigatorKey, + initialLocation: const BrowseSourceRoute().location, + navigatorKey: rootNavigatorKey, ); } @TypedShellRoute( routes: [ - TypedShellRoute( - routes: [ - TypedGoRoute(path: Routes.home), - TypedGoRoute(path: Routes.library), - TypedGoRoute(path: Routes.updates), - TypedGoRoute(path: Routes.browse), - TypedGoRoute(path: Routes.downloads), - TypedGoRoute(path: Routes.more), + TypedStatefulShellRoute( + branches: [ + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.library, + routes: [], + ), + ], + ), + TypedStatefulShellBranch( + routes: [TypedGoRoute(path: Routes.updates)], + ), + TypedStatefulShellBranch( + routes: [ + TypedStatefulShellRoute( + branches: [ + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.source, + routes: [ + TypedGoRoute( + path: Routes.sourcePreference, + ), + TypedGoRoute( + path: Routes.sourceMangaType, + ), + ], + ), + ], + ), + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.extensionRoute, + ), + ], + ), + ], + ), + ], + ), + TypedStatefulShellBranch( + routes: [TypedGoRoute(path: Routes.downloads)], + ), + TypedStatefulShellBranch( + routes: [ + TypedGoRoute( + path: Routes.more, + routes: [ + TypedGoRoute(path: Routes.about), + TypedGoRoute( + path: Routes.settings, + routes: [ + TypedGoRoute( + path: Routes.librarySettings, + routes: [ + TypedGoRoute( + path: Routes.editCategories) + ], + ), + TypedGoRoute( + path: Routes.serverSettings), + TypedGoRoute( + path: Routes.readerSettings), + TypedGoRoute( + path: Routes.appearanceSettings), + TypedGoRoute( + path: Routes.generalSettings), + TypedGoRoute( + path: Routes.browseSettings, + routes: [ + TypedGoRoute( + path: Routes.extensionRepositorySettings) + ], + ), + TypedGoRoute(path: Routes.backup), + TypedGoRoute( + path: Routes.downloadsSettings), + ], + ), + ], + ), + ], + ), ], ), - TypedGoRoute(path: Routes.manga), + TypedGoRoute( + path: Routes.mangaRoute, + routes: [TypedGoRoute(path: Routes.reader)], + ), TypedGoRoute(path: Routes.updateStatus), TypedGoRoute(path: Routes.globalSearch), - TypedGoRoute(path: Routes.sourcePreference), - TypedGoRoute(path: Routes.sourceManga), - TypedGoRoute(path: Routes.about), - TypedGoRoute(path: Routes.reader), - TypedGoRoute(path: Routes.settings, routes: [ - TypedGoRoute( - path: Routes.librarySettings, - routes: [ - TypedGoRoute(path: Routes.editCategories) - ], - ), - TypedGoRoute(path: Routes.serverSettings), - TypedGoRoute(path: Routes.readerSettings), - TypedGoRoute(path: Routes.appearanceSettings), - TypedGoRoute(path: Routes.generalSettings), - TypedGoRoute(path: Routes.browseSettings), - TypedGoRoute(path: Routes.backup), - ]) ], ) +@immutable class QuickSearchRoute extends ShellRouteData { const QuickSearchRoute(); @@ -139,273 +214,12 @@ class QuickSearchRoute extends ShellRouteData { } // Shell Routes -class ShellRoute extends ShellRouteData { - const ShellRoute(); +class NavigationShellRoute extends StatefulShellRouteData { + const NavigationShellRoute(); static final $navigatorKey = _shellNavigatorKey; @override - Widget builder(context, state, navigator) => ShellScreen(child: navigator); -} - -class HomeRoute extends GoRouteData { - const HomeRoute(); - @override - FutureOr redirect(context, state) => Routes.library; -} - -class LibraryRoute extends GoRouteData { - const LibraryRoute({this.initialCategoryOrder}); - final int? initialCategoryOrder; - @override - Page buildPage(BuildContext context, GoRouterState state) => - NoTransitionPage( - child: LibraryScreen(initialCategoryOrder: initialCategoryOrder), - ); -} - -class UpdatesRoute extends GoRouteData { - const UpdatesRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: UpdatesScreen()); -} - -class BrowseRoute extends GoRouteData { - const BrowseRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: BrowseScreen()); -} - -class DownloadsRoute extends GoRouteData { - const DownloadsRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: DownloadsScreen()); -} - -class MoreRoute extends GoRouteData { - const MoreRoute(); - @override - Page buildPage(BuildContext context, GoRouterState state) => - const NoTransitionPage(child: MoreScreen()); -} - -// -class MangaRoute extends GoRouteData { - const MangaRoute({required this.mangaId, this.categoryId}); - final int mangaId; - final int? categoryId; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - MangaDetailsScreen(mangaId: mangaId, categoryId: categoryId); -} - -class UpdateStatusRoute extends GoRouteData { - const UpdateStatusRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const UpdateStatusSummaryDialog(); -} - -class GlobalSearchRoute extends GoRouteData { - const GlobalSearchRoute({this.query}); - final String? query; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - GlobalSearchScreen(key: ValueKey(query), initialQuery: query); -} - -class SourceMangaRoute extends GoRouteData { - const SourceMangaRoute({ - required this.sourceId, - required this.sourceType, - this.query, - this.$extra, - }); - final String sourceId; - final SourceType sourceType; - final String? query; - final List? $extra; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - SourceMangaListScreen( - key: ValueKey(sourceId), - sourceId: sourceId, - sourceType: sourceType, - initialQuery: query, - initialFilter: $extra, - ); -} - -class SourcePreferenceRoute extends GoRouteData { - final String sourceId; - const SourcePreferenceRoute({required this.sourceId}); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) { - return SourcePreferenceScreen(sourceId: sourceId); - } -} - -class AboutRoute extends GoRouteData { - const AboutRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const AboutScreen(); -} - -class ReaderRoute extends GoRouteData { - const ReaderRoute({ - required this.mangaId, - required this.chapterIndex, - this.transVertical, - this.toPrev, - this.showReaderLayoutAnimation = false, - }); - final int mangaId; - final int chapterIndex; - final bool? transVertical; - final bool? toPrev; - final bool showReaderLayoutAnimation; - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Page buildPage(BuildContext context, GoRouterState state) { - return CustomTransitionPage( - key: state.pageKey, - child: ReaderScreen( - mangaId: mangaId, - chapterIndex: chapterIndex, - showReaderLayoutAnimation: showReaderLayoutAnimation, - ), - transitionsBuilder: (context, animation, secondaryAnimation, child) { - Offset offset = Offset.zero; - offset += Offset( - transVertical.ifNull() ? 0 : 1, - transVertical.ifNull() ? 1 : 0, - ); - if (toPrev.ifNull()) { - offset *= -1; - } - - return SlideTransition( - position: Tween( - begin: offset, - end: Offset.zero, - ).animate(animation), - child: child, - ); - }, - ); - } -} - -class SettingsRoute extends GoRouteData { - const SettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const SettingsScreen(); -} - -class LibrarySettingsRoute extends GoRouteData { - const LibrarySettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const LibrarySettingsScreen(); -} - -class EditCategoriesRoute extends GoRouteData { - const EditCategoriesRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const EditCategoryScreen(); -} - -class ServerSettingsRoute extends GoRouteData { - const ServerSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const ServerScreen(); -} - -class ReaderSettingsRoute extends GoRouteData { - const ReaderSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const ReaderSettingsScreen(); -} - -class AppearanceSettingsRoute extends GoRouteData { - const AppearanceSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const AppearanceScreen(); -} - -class GeneralSettingsRoute extends GoRouteData { - const GeneralSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const GeneralScreen(); -} - -class BrowseSettingsRoute extends GoRouteData { - const BrowseSettingsRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const BrowseSettingsScreen(); -} - -class BackupRoute extends GoRouteData { - const BackupRoute(); - - static final $parentNavigatorKey = _quickOpenNavigatorKey; - - @override - Widget build(BuildContext context, GoRouterState state) => - const BackupScreen(); + Widget builder(context, state, navigationShell) => + NavigationShellScreen(child: navigationShell); } diff --git a/lib/src/routes/router_config.g.dart b/lib/src/routes/router_config.g.dart index 419a6622..1fc8e222 100644 --- a/lib/src/routes/router_config.g.dart +++ b/lib/src/routes/router_config.g.dart @@ -14,44 +14,159 @@ RouteBase get $quickSearchRoute => ShellRouteData.$route( navigatorKey: QuickSearchRoute.$navigatorKey, factory: $QuickSearchRouteExtension._fromState, routes: [ - ShellRouteData.$route( - navigatorKey: ShellRoute.$navigatorKey, - factory: $ShellRouteExtension._fromState, - routes: [ - GoRouteData.$route( - path: '/', - factory: $HomeRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/library', - factory: $LibraryRouteExtension._fromState, + StatefulShellRouteData.$route( + factory: $NavigationShellRouteExtension._fromState, + branches: [ + StatefulShellBranchData.$branch( + initialLocation: LibraryBranch.$initialLocation, + routes: [ + GoRouteData.$route( + path: '/library/:categoryId', + factory: $LibraryRouteExtension._fromState, + ), + ], ), - GoRouteData.$route( - path: '/updates', - factory: $UpdatesRouteExtension._fromState, + StatefulShellBranchData.$branch( + routes: [ + GoRouteData.$route( + path: '/updates', + factory: $UpdatesRouteExtension._fromState, + ), + ], ), - GoRouteData.$route( - path: '/browse', - factory: $BrowseRouteExtension._fromState, + StatefulShellBranchData.$branch( + initialLocation: BrowserBranch.$initialLocation, + routes: [ + StatefulShellRouteData.$route( + navigatorContainerBuilder: + BrowseShellRoute.$navigatorContainerBuilder, + factory: $BrowseShellRouteExtension._fromState, + branches: [ + StatefulShellBranchData.$branch( + initialLocation: BrowseSourceBranch.$initialLocation, + routes: [ + GoRouteData.$route( + path: '/source', + factory: $BrowseSourceRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: ':sourceId/preference', + parentNavigatorKey: + SourcePreferenceRoute.$parentNavigatorKey, + factory: + $SourcePreferenceRouteExtension._fromState, + ), + GoRouteData.$route( + path: ':sourceId/:sourceType', + parentNavigatorKey: + SourceTypeRoute.$parentNavigatorKey, + factory: $SourceTypeRouteExtension._fromState, + ), + ], + ), + ], + ), + StatefulShellBranchData.$branch( + initialLocation: BrowseExtensionBranch.$initialLocation, + routes: [ + GoRouteData.$route( + path: '/extension', + factory: $BrowseExtensionRouteExtension._fromState, + ), + ], + ), + ], + ), + ], ), - GoRouteData.$route( - path: '/downloads', - factory: $DownloadsRouteExtension._fromState, + StatefulShellBranchData.$branch( + routes: [ + GoRouteData.$route( + path: '/downloads', + factory: $DownloadsRouteExtension._fromState, + ), + ], ), - GoRouteData.$route( - path: '/more', - factory: $MoreRouteExtension._fromState, + StatefulShellBranchData.$branch( + routes: [ + GoRouteData.$route( + path: '/more', + factory: $MoreRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'about', + factory: $AboutRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'settings', + factory: $SettingsRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'library', + factory: $LibrarySettingsRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'edit-categories', + factory: $EditCategoriesRouteExtension._fromState, + ), + ], + ), + GoRouteData.$route( + path: 'server', + factory: $ServerSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'reader', + factory: $ReaderSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'appearance', + factory: $AppearanceSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'general', + factory: $GeneralSettingsRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'browse', + factory: $BrowseSettingsRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'repo', + factory: + $ExtensionRepositoryRouteExtension._fromState, + ), + ], + ), + GoRouteData.$route( + path: 'backup', + factory: $BackupRouteExtension._fromState, + ), + GoRouteData.$route( + path: 'downloads', + factory: $DownloadsSettingsRouteExtension._fromState, + ), + ], + ), + ], + ), + ], ), ], ), GoRouteData.$route( path: '/manga/:mangaId', - parentNavigatorKey: MangaRoute.$parentNavigatorKey, factory: $MangaRouteExtension._fromState, + routes: [ + GoRouteData.$route( + path: 'chapter/:chapterIndex', + parentNavigatorKey: ReaderRoute.$parentNavigatorKey, + factory: $ReaderRouteExtension._fromState, + ), + ], ), GoRouteData.$route( path: '/update-status', - parentNavigatorKey: UpdateStatusRoute.$parentNavigatorKey, factory: $UpdateStatusRouteExtension._fromState, ), GoRouteData.$route( @@ -59,75 +174,6 @@ RouteBase get $quickSearchRoute => ShellRouteData.$route( parentNavigatorKey: GlobalSearchRoute.$parentNavigatorKey, factory: $GlobalSearchRouteExtension._fromState, ), - GoRouteData.$route( - path: '/source/:sourceId/preference', - parentNavigatorKey: SourcePreferenceRoute.$parentNavigatorKey, - factory: $SourcePreferenceRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/source/:sourceId/:sourceType', - parentNavigatorKey: SourceMangaRoute.$parentNavigatorKey, - factory: $SourceMangaRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/about', - parentNavigatorKey: AboutRoute.$parentNavigatorKey, - factory: $AboutRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/manga/:mangaId/chapter/:chapterIndex', - parentNavigatorKey: ReaderRoute.$parentNavigatorKey, - factory: $ReaderRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/settings', - parentNavigatorKey: SettingsRoute.$parentNavigatorKey, - factory: $SettingsRouteExtension._fromState, - routes: [ - GoRouteData.$route( - path: 'library', - parentNavigatorKey: LibrarySettingsRoute.$parentNavigatorKey, - factory: $LibrarySettingsRouteExtension._fromState, - routes: [ - GoRouteData.$route( - path: 'edit-categories', - parentNavigatorKey: EditCategoriesRoute.$parentNavigatorKey, - factory: $EditCategoriesRouteExtension._fromState, - ), - ], - ), - GoRouteData.$route( - path: 'server', - parentNavigatorKey: ServerSettingsRoute.$parentNavigatorKey, - factory: $ServerSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'reader', - parentNavigatorKey: ReaderSettingsRoute.$parentNavigatorKey, - factory: $ReaderSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'appearance', - parentNavigatorKey: AppearanceSettingsRoute.$parentNavigatorKey, - factory: $AppearanceSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'general', - parentNavigatorKey: GeneralSettingsRoute.$parentNavigatorKey, - factory: $GeneralSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'browse', - parentNavigatorKey: BrowseSettingsRoute.$parentNavigatorKey, - factory: $BrowseSettingsRouteExtension._fromState, - ), - GoRouteData.$route( - path: 'backup', - parentNavigatorKey: BackupRoute.$parentNavigatorKey, - factory: $BackupRouteExtension._fromState, - ), - ], - ), ], ); @@ -136,15 +182,18 @@ extension $QuickSearchRouteExtension on QuickSearchRoute { const QuickSearchRoute(); } -extension $ShellRouteExtension on ShellRoute { - static ShellRoute _fromState(GoRouterState state) => const ShellRoute(); +extension $NavigationShellRouteExtension on NavigationShellRoute { + static NavigationShellRoute _fromState(GoRouterState state) => + const NavigationShellRoute(); } -extension $HomeRouteExtension on HomeRoute { - static HomeRoute _fromState(GoRouterState state) => const HomeRoute(); +extension $LibraryRouteExtension on LibraryRoute { + static LibraryRoute _fromState(GoRouterState state) => LibraryRoute( + categoryId: int.parse(state.pathParameters['categoryId']!), + ); String get location => GoRouteData.$location( - '/', + '/library/${Uri.encodeComponent(categoryId.toString())}', ); void go(BuildContext context) => context.go(location); @@ -157,18 +206,34 @@ extension $HomeRouteExtension on HomeRoute { void replace(BuildContext context) => context.replace(location); } -extension $LibraryRouteExtension on LibraryRoute { - static LibraryRoute _fromState(GoRouterState state) => LibraryRoute( - initialCategoryOrder: _$convertMapValue( - 'initial-category-order', state.uri.queryParameters, int.parse), +extension $UpdatesRouteExtension on UpdatesRoute { + static UpdatesRoute _fromState(GoRouterState state) => const UpdatesRoute(); + + String get location => GoRouteData.$location( + '/updates', ); + void go(BuildContext context) => context.go(location); + + Future push(BuildContext context) => context.push(location); + + void pushReplacement(BuildContext context) => + context.pushReplacement(location); + + void replace(BuildContext context) => context.replace(location); +} + +extension $BrowseShellRouteExtension on BrowseShellRoute { + static BrowseShellRoute _fromState(GoRouterState state) => + const BrowseShellRoute(); +} + +extension $BrowseSourceRouteExtension on BrowseSourceRoute { + static BrowseSourceRoute _fromState(GoRouterState state) => + const BrowseSourceRoute(); + String get location => GoRouteData.$location( - '/library', - queryParams: { - if (initialCategoryOrder != null) - 'initial-category-order': initialCategoryOrder!.toString(), - }, + '/source', ); void go(BuildContext context) => context.go(location); @@ -181,11 +246,14 @@ extension $LibraryRouteExtension on LibraryRoute { void replace(BuildContext context) => context.replace(location); } -extension $UpdatesRouteExtension on UpdatesRoute { - static UpdatesRoute _fromState(GoRouterState state) => const UpdatesRoute(); +extension $SourcePreferenceRouteExtension on SourcePreferenceRoute { + static SourcePreferenceRoute _fromState(GoRouterState state) => + SourcePreferenceRoute( + sourceId: state.pathParameters['sourceId']!, + ); String get location => GoRouteData.$location( - '/updates', + '/source/${Uri.encodeComponent(sourceId)}/preference', ); void go(BuildContext context) => context.go(location); @@ -198,11 +266,36 @@ extension $UpdatesRouteExtension on UpdatesRoute { void replace(BuildContext context) => context.replace(location); } -extension $BrowseRouteExtension on BrowseRoute { - static BrowseRoute _fromState(GoRouterState state) => const BrowseRoute(); +extension $SourceTypeRouteExtension on SourceTypeRoute { + static SourceTypeRoute _fromState(GoRouterState state) => SourceTypeRoute( + sourceId: state.pathParameters['sourceId']!, + sourceType: state.pathParameters['sourceType']!, + query: state.uri.queryParameters['query'], + ); String get location => GoRouteData.$location( - '/browse', + '/source/${Uri.encodeComponent(sourceId)}/${Uri.encodeComponent(sourceType)}', + queryParams: { + if (query != null) 'query': query, + }, + ); + + void go(BuildContext context) => context.go(location); + + Future push(BuildContext context) => context.push(location); + + void pushReplacement(BuildContext context) => + context.pushReplacement(location); + + void replace(BuildContext context) => context.replace(location); +} + +extension $BrowseExtensionRouteExtension on BrowseExtensionRoute { + static BrowseExtensionRoute _fromState(GoRouterState state) => + const BrowseExtensionRoute(); + + String get location => GoRouteData.$location( + '/extension', ); void go(BuildContext context) => context.go(location); @@ -250,18 +343,11 @@ extension $MoreRouteExtension on MoreRoute { void replace(BuildContext context) => context.replace(location); } -extension $MangaRouteExtension on MangaRoute { - static MangaRoute _fromState(GoRouterState state) => MangaRoute( - mangaId: int.parse(state.pathParameters['mangaId']!), - categoryId: _$convertMapValue( - 'category-id', state.uri.queryParameters, int.parse), - ); +extension $AboutRouteExtension on AboutRoute { + static AboutRoute _fromState(GoRouterState state) => const AboutRoute(); String get location => GoRouteData.$location( - '/manga/${Uri.encodeComponent(mangaId.toString())}', - queryParams: { - if (categoryId != null) 'category-id': categoryId!.toString(), - }, + '/more/about', ); void go(BuildContext context) => context.go(location); @@ -274,12 +360,11 @@ extension $MangaRouteExtension on MangaRoute { void replace(BuildContext context) => context.replace(location); } -extension $UpdateStatusRouteExtension on UpdateStatusRoute { - static UpdateStatusRoute _fromState(GoRouterState state) => - const UpdateStatusRoute(); +extension $SettingsRouteExtension on SettingsRoute { + static SettingsRoute _fromState(GoRouterState state) => const SettingsRoute(); String get location => GoRouteData.$location( - '/update-status', + '/more/settings', ); void go(BuildContext context) => context.go(location); @@ -292,16 +377,12 @@ extension $UpdateStatusRouteExtension on UpdateStatusRoute { void replace(BuildContext context) => context.replace(location); } -extension $GlobalSearchRouteExtension on GlobalSearchRoute { - static GlobalSearchRoute _fromState(GoRouterState state) => GlobalSearchRoute( - query: state.uri.queryParameters['query'], - ); +extension $LibrarySettingsRouteExtension on LibrarySettingsRoute { + static LibrarySettingsRoute _fromState(GoRouterState state) => + const LibrarySettingsRoute(); String get location => GoRouteData.$location( - '/global-search', - queryParams: { - if (query != null) 'query': query, - }, + '/more/settings/library', ); void go(BuildContext context) => context.go(location); @@ -314,14 +395,12 @@ extension $GlobalSearchRouteExtension on GlobalSearchRoute { void replace(BuildContext context) => context.replace(location); } -extension $SourcePreferenceRouteExtension on SourcePreferenceRoute { - static SourcePreferenceRoute _fromState(GoRouterState state) => - SourcePreferenceRoute( - sourceId: state.pathParameters['sourceId']!, - ); +extension $EditCategoriesRouteExtension on EditCategoriesRoute { + static EditCategoriesRoute _fromState(GoRouterState state) => + const EditCategoriesRoute(); String get location => GoRouteData.$location( - '/source/${Uri.encodeComponent(sourceId)}/preference', + '/more/settings/library/edit-categories', ); void go(BuildContext context) => context.go(location); @@ -334,45 +413,30 @@ extension $SourcePreferenceRouteExtension on SourcePreferenceRoute { void replace(BuildContext context) => context.replace(location); } -extension $SourceMangaRouteExtension on SourceMangaRoute { - static SourceMangaRoute _fromState(GoRouterState state) => SourceMangaRoute( - sourceId: state.pathParameters['sourceId']!, - sourceType: - _$SourceTypeEnumMap._$fromName(state.pathParameters['sourceType']!), - query: state.uri.queryParameters['query'], - $extra: state.extra as List?, - ); +extension $ServerSettingsRouteExtension on ServerSettingsRoute { + static ServerSettingsRoute _fromState(GoRouterState state) => + const ServerSettingsRoute(); String get location => GoRouteData.$location( - '/source/${Uri.encodeComponent(sourceId)}/${Uri.encodeComponent(_$SourceTypeEnumMap[sourceType]!)}', - queryParams: { - if (query != null) 'query': query, - }, + '/more/settings/server', ); - void go(BuildContext context) => context.go(location, extra: $extra); + void go(BuildContext context) => context.go(location); - Future push(BuildContext context) => - context.push(location, extra: $extra); + Future push(BuildContext context) => context.push(location); void pushReplacement(BuildContext context) => - context.pushReplacement(location, extra: $extra); + context.pushReplacement(location); - void replace(BuildContext context) => - context.replace(location, extra: $extra); + void replace(BuildContext context) => context.replace(location); } -const _$SourceTypeEnumMap = { - SourceType.latest: 'latest', - SourceType.popular: 'popular', - SourceType.filter: 'filter', -}; - -extension $AboutRouteExtension on AboutRoute { - static AboutRoute _fromState(GoRouterState state) => const AboutRoute(); +extension $ReaderSettingsRouteExtension on ReaderSettingsRoute { + static ReaderSettingsRoute _fromState(GoRouterState state) => + const ReaderSettingsRoute(); String get location => GoRouteData.$location( - '/about', + '/more/settings/reader', ); void go(BuildContext context) => context.go(location); @@ -385,31 +449,12 @@ extension $AboutRouteExtension on AboutRoute { void replace(BuildContext context) => context.replace(location); } -extension $ReaderRouteExtension on ReaderRoute { - static ReaderRoute _fromState(GoRouterState state) => ReaderRoute( - mangaId: int.parse(state.pathParameters['mangaId']!), - chapterIndex: int.parse(state.pathParameters['chapterIndex']!), - transVertical: _$convertMapValue( - 'trans-vertical', state.uri.queryParameters, _$boolConverter), - toPrev: _$convertMapValue( - 'to-prev', state.uri.queryParameters, _$boolConverter), - showReaderLayoutAnimation: _$convertMapValue( - 'show-reader-layout-animation', - state.uri.queryParameters, - _$boolConverter) ?? - false, - ); +extension $AppearanceSettingsRouteExtension on AppearanceSettingsRoute { + static AppearanceSettingsRoute _fromState(GoRouterState state) => + const AppearanceSettingsRoute(); String get location => GoRouteData.$location( - '/manga/${Uri.encodeComponent(mangaId.toString())}/chapter/${Uri.encodeComponent(chapterIndex.toString())}', - queryParams: { - if (transVertical != null) - 'trans-vertical': transVertical!.toString(), - if (toPrev != null) 'to-prev': toPrev!.toString(), - if (showReaderLayoutAnimation != false) - 'show-reader-layout-animation': - showReaderLayoutAnimation.toString(), - }, + '/more/settings/appearance', ); void go(BuildContext context) => context.go(location); @@ -422,11 +467,12 @@ extension $ReaderRouteExtension on ReaderRoute { void replace(BuildContext context) => context.replace(location); } -extension $SettingsRouteExtension on SettingsRoute { - static SettingsRoute _fromState(GoRouterState state) => const SettingsRoute(); +extension $GeneralSettingsRouteExtension on GeneralSettingsRoute { + static GeneralSettingsRoute _fromState(GoRouterState state) => + const GeneralSettingsRoute(); String get location => GoRouteData.$location( - '/settings', + '/more/settings/general', ); void go(BuildContext context) => context.go(location); @@ -439,12 +485,12 @@ extension $SettingsRouteExtension on SettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $LibrarySettingsRouteExtension on LibrarySettingsRoute { - static LibrarySettingsRoute _fromState(GoRouterState state) => - const LibrarySettingsRoute(); +extension $BrowseSettingsRouteExtension on BrowseSettingsRoute { + static BrowseSettingsRoute _fromState(GoRouterState state) => + const BrowseSettingsRoute(); String get location => GoRouteData.$location( - '/settings/library', + '/more/settings/browse', ); void go(BuildContext context) => context.go(location); @@ -457,12 +503,12 @@ extension $LibrarySettingsRouteExtension on LibrarySettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $EditCategoriesRouteExtension on EditCategoriesRoute { - static EditCategoriesRoute _fromState(GoRouterState state) => - const EditCategoriesRoute(); +extension $ExtensionRepositoryRouteExtension on ExtensionRepositoryRoute { + static ExtensionRepositoryRoute _fromState(GoRouterState state) => + const ExtensionRepositoryRoute(); String get location => GoRouteData.$location( - '/settings/library/edit-categories', + '/more/settings/browse/repo', ); void go(BuildContext context) => context.go(location); @@ -475,12 +521,11 @@ extension $EditCategoriesRouteExtension on EditCategoriesRoute { void replace(BuildContext context) => context.replace(location); } -extension $ServerSettingsRouteExtension on ServerSettingsRoute { - static ServerSettingsRoute _fromState(GoRouterState state) => - const ServerSettingsRoute(); +extension $BackupRouteExtension on BackupRoute { + static BackupRoute _fromState(GoRouterState state) => const BackupRoute(); String get location => GoRouteData.$location( - '/settings/server', + '/more/settings/backup', ); void go(BuildContext context) => context.go(location); @@ -493,12 +538,12 @@ extension $ServerSettingsRouteExtension on ServerSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $ReaderSettingsRouteExtension on ReaderSettingsRoute { - static ReaderSettingsRoute _fromState(GoRouterState state) => - const ReaderSettingsRoute(); +extension $DownloadsSettingsRouteExtension on DownloadsSettingsRoute { + static DownloadsSettingsRoute _fromState(GoRouterState state) => + const DownloadsSettingsRoute(); String get location => GoRouteData.$location( - '/settings/reader', + '/more/settings/downloads', ); void go(BuildContext context) => context.go(location); @@ -511,12 +556,18 @@ extension $ReaderSettingsRouteExtension on ReaderSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $AppearanceSettingsRouteExtension on AppearanceSettingsRoute { - static AppearanceSettingsRoute _fromState(GoRouterState state) => - const AppearanceSettingsRoute(); +extension $MangaRouteExtension on MangaRoute { + static MangaRoute _fromState(GoRouterState state) => MangaRoute( + mangaId: int.parse(state.pathParameters['mangaId']!), + categoryId: _$convertMapValue( + 'category-id', state.uri.queryParameters, int.parse), + ); String get location => GoRouteData.$location( - '/settings/appearance', + '/manga/${Uri.encodeComponent(mangaId.toString())}', + queryParams: { + if (categoryId != null) 'category-id': categoryId!.toString(), + }, ); void go(BuildContext context) => context.go(location); @@ -529,12 +580,31 @@ extension $AppearanceSettingsRouteExtension on AppearanceSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $GeneralSettingsRouteExtension on GeneralSettingsRoute { - static GeneralSettingsRoute _fromState(GoRouterState state) => - const GeneralSettingsRoute(); +extension $ReaderRouteExtension on ReaderRoute { + static ReaderRoute _fromState(GoRouterState state) => ReaderRoute( + mangaId: int.parse(state.pathParameters['mangaId']!), + chapterIndex: int.parse(state.pathParameters['chapterIndex']!), + transVertical: _$convertMapValue( + 'trans-vertical', state.uri.queryParameters, _$boolConverter), + toPrev: _$convertMapValue( + 'to-prev', state.uri.queryParameters, _$boolConverter), + showReaderLayoutAnimation: _$convertMapValue( + 'show-reader-layout-animation', + state.uri.queryParameters, + _$boolConverter) ?? + false, + ); String get location => GoRouteData.$location( - '/settings/general', + '/manga/${Uri.encodeComponent(mangaId.toString())}/chapter/${Uri.encodeComponent(chapterIndex.toString())}', + queryParams: { + if (transVertical != null) + 'trans-vertical': transVertical!.toString(), + if (toPrev != null) 'to-prev': toPrev!.toString(), + if (showReaderLayoutAnimation != false) + 'show-reader-layout-animation': + showReaderLayoutAnimation.toString(), + }, ); void go(BuildContext context) => context.go(location); @@ -547,12 +617,12 @@ extension $GeneralSettingsRouteExtension on GeneralSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $BrowseSettingsRouteExtension on BrowseSettingsRoute { - static BrowseSettingsRoute _fromState(GoRouterState state) => - const BrowseSettingsRoute(); +extension $UpdateStatusRouteExtension on UpdateStatusRoute { + static UpdateStatusRoute _fromState(GoRouterState state) => + const UpdateStatusRoute(); String get location => GoRouteData.$location( - '/settings/browse', + '/update-status', ); void go(BuildContext context) => context.go(location); @@ -565,11 +635,16 @@ extension $BrowseSettingsRouteExtension on BrowseSettingsRoute { void replace(BuildContext context) => context.replace(location); } -extension $BackupRouteExtension on BackupRoute { - static BackupRoute _fromState(GoRouterState state) => const BackupRoute(); +extension $GlobalSearchRouteExtension on GlobalSearchRoute { + static GlobalSearchRoute _fromState(GoRouterState state) => GlobalSearchRoute( + query: state.uri.queryParameters['query'], + ); String get location => GoRouteData.$location( - '/settings/backup', + '/global-search', + queryParams: { + if (query != null) 'query': query, + }, ); void go(BuildContext context) => context.go(location); @@ -591,11 +666,6 @@ T? _$convertMapValue( return value == null ? null : converter(value); } -extension on Map { - T _$fromName(String value) => - entries.singleWhere((element) => element.value == value).key; -} - bool _$boolConverter(String value) { switch (value) { case 'true': @@ -611,7 +681,7 @@ bool _$boolConverter(String value) { // RiverpodGenerator // ************************************************************************** -String _$routerConfigHash() => r'c9473ad31b2ecd6bf97eb8e0a2a4edf6683e5f6f'; +String _$routerConfigHash() => r'542d13c256628ae8942029d7160095b088482a3f'; /// See also [routerConfig]. @ProviderFor(routerConfig) @@ -624,6 +694,8 @@ final routerConfigProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef RouterConfigRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/routes/sub_routes/browser_routes.dart b/lib/src/routes/sub_routes/browser_routes.dart new file mode 100644 index 00000000..fac7fcd7 --- /dev/null +++ b/lib/src/routes/sub_routes/browser_routes.dart @@ -0,0 +1,85 @@ +part of '../router_config.dart'; + +class BrowserBranch extends StatefulShellBranchData { + const BrowserBranch(); + static final $initialLocation = const BrowseSourceRoute().location; +} + +class BrowseShellRoute extends StatefulShellRouteData { + const BrowseShellRoute(); + + static final $navigatorKey = _browseNavigatorKey; + + static Widget $navigatorContainerBuilder( + BuildContext context, + StatefulNavigationShell navigationShell, + List children, + ) => + BrowseScreen( + key: const ValueKey('browse'), + currentIndex: navigationShell.currentIndex, + onDestinationSelected: (index) => navigationShell.goBranch( + index, + initialLocation: index == navigationShell.currentIndex, + ), + children: children, + ); + + @override + Widget builder(context, state, navigationShell) => navigationShell; +} + +class BrowseExtensionBranch extends StatefulShellBranchData { + const BrowseExtensionBranch(); + static final $initialLocation = const BrowseExtensionRoute().location; +} + +class BrowseExtensionRoute extends GoRouteData { + const BrowseExtensionRoute(); + + @override + Widget build(context, state) => const ExtensionScreen(); +} + +class BrowseSourceBranch extends StatefulShellBranchData { + const BrowseSourceBranch(); + static final $initialLocation = const BrowseSourceRoute().location; +} + +class BrowseSourceRoute extends GoRouteData { + const BrowseSourceRoute(); + + @override + Widget build(context, state) => const SourceScreen(); +} + +class SourceTypeRoute extends GoRouteData { + const SourceTypeRoute({ + required this.sourceId, + required this.sourceType, + this.query, + }); + final String sourceId; + final String sourceType; + final String? query; + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + + @override + Widget build(context, state) => SourceMangaListScreen( + key: ValueKey('$sourceId-$sourceType'), + sourceId: sourceId, + sourceType: SourceType.valueOf(sourceType), + initialQuery: query, + ); +} + +class SourcePreferenceRoute extends GoRouteData { + const SourcePreferenceRoute({required this.sourceId}); + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + final String sourceId; + + @override + Widget build(context, state) => SourcePreferenceScreen(sourceId: sourceId); +} diff --git a/lib/src/routes/sub_routes/common_routes.dart b/lib/src/routes/sub_routes/common_routes.dart new file mode 100644 index 00000000..042d532d --- /dev/null +++ b/lib/src/routes/sub_routes/common_routes.dart @@ -0,0 +1,77 @@ +part of '../router_config.dart'; + +// +class MangaRoute extends GoRouteData { + const MangaRoute({required this.mangaId, this.categoryId}); + final int mangaId; + final int? categoryId; + + @override + Widget build(BuildContext context, GoRouterState state) => + MangaDetailsScreen(mangaId: mangaId, categoryId: categoryId); +} + +class UpdateStatusRoute extends GoRouteData { + const UpdateStatusRoute(); + @override + Widget build(BuildContext context, GoRouterState state) => + const UpdateStatusSummaryDialog(); +} + +class ReaderRoute extends GoRouteData { + const ReaderRoute({ + required this.mangaId, + required this.chapterIndex, + this.transVertical, + this.toPrev, + this.showReaderLayoutAnimation = false, + }); + final int mangaId; + final int chapterIndex; + final bool? transVertical; + final bool? toPrev; + final bool showReaderLayoutAnimation; + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + + @override + Page buildPage(context, state) { + return CustomTransitionPage( + key: state.pageKey, + child: ReaderScreen( + mangaId: mangaId, + chapterIndex: chapterIndex, + showReaderLayoutAnimation: showReaderLayoutAnimation, + ), + transitionsBuilder: (context, animation, secondaryAnimation, child) { + Offset offset = Offset.zero; + offset += Offset( + transVertical.ifNull() ? 0 : 1, + transVertical.ifNull() ? 1 : 0, + ); + if (toPrev.ifNull()) { + offset *= -1; + } + + return SlideTransition( + position: Tween( + begin: offset, + end: Offset.zero, + ).animate(animation), + child: child, + ); + }, + ); + } +} + +class GlobalSearchRoute extends GoRouteData { + const GlobalSearchRoute({this.query}); + final String? query; + + static final $parentNavigatorKey = _quickOpenNavigatorKey; + + @override + Widget build(BuildContext context, GoRouterState state) => + GlobalSearchScreen(key: ValueKey(query), initialQuery: query); +} diff --git a/lib/src/routes/sub_routes/downloads_routes.dart b/lib/src/routes/sub_routes/downloads_routes.dart new file mode 100644 index 00000000..af5ef8a6 --- /dev/null +++ b/lib/src/routes/sub_routes/downloads_routes.dart @@ -0,0 +1,11 @@ +part of '../router_config.dart'; + +class DownloadsBranch extends StatefulShellBranchData { + const DownloadsBranch(); +} + +class DownloadsRoute extends GoRouteData { + const DownloadsRoute(); + @override + Widget build(context, state) => const DownloadsScreen(); +} diff --git a/lib/src/routes/sub_routes/library_routes.dart b/lib/src/routes/sub_routes/library_routes.dart new file mode 100644 index 00000000..58349c07 --- /dev/null +++ b/lib/src/routes/sub_routes/library_routes.dart @@ -0,0 +1,14 @@ +part of '../router_config.dart'; + +// Library Branch +class LibraryBranch extends StatefulShellBranchData { + static final $initialLocation = const LibraryRoute(categoryId: 0).location; + const LibraryBranch(); +} + +class LibraryRoute extends GoRouteData { + const LibraryRoute({required this.categoryId}); + final int categoryId; + @override + Widget build(context, state) => LibraryScreen(categoryId: categoryId); +} diff --git a/lib/src/routes/sub_routes/more_routes.dart b/lib/src/routes/sub_routes/more_routes.dart new file mode 100644 index 00000000..cefab6f2 --- /dev/null +++ b/lib/src/routes/sub_routes/more_routes.dart @@ -0,0 +1,95 @@ +part of '../router_config.dart'; + +class MoreBranch extends StatefulShellBranchData { + const MoreBranch(); +} + +class MoreRoute extends GoRouteData { + const MoreRoute(); + @override + Page buildPage(context, state) => + const NoTransitionPage(child: MoreScreen()); +} + +class AboutRoute extends GoRouteData { + const AboutRoute(); + + @override + Widget build(context, state) => const AboutScreen(); +} + +class SettingsRoute extends GoRouteData { + const SettingsRoute(); + + @override + Widget build(context, state) => const SettingsScreen(); +} + +class LibrarySettingsRoute extends GoRouteData { + const LibrarySettingsRoute(); + + @override + Widget build(context, state) => const LibrarySettingsScreen(); +} + +class EditCategoriesRoute extends GoRouteData { + const EditCategoriesRoute(); + + @override + Widget build(context, state) => const EditCategoryScreen(); +} + +class ReaderSettingsRoute extends GoRouteData { + const ReaderSettingsRoute(); + + @override + Widget build(context, state) => const ReaderSettingsScreen(); +} + +class AppearanceSettingsRoute extends GoRouteData { + const AppearanceSettingsRoute(); + + @override + Widget build(context, state) => const AppearanceScreen(); +} + +class GeneralSettingsRoute extends GoRouteData { + const GeneralSettingsRoute(); + + @override + Widget build(context, state) => const GeneralScreen(); +} + +class BrowseSettingsRoute extends GoRouteData { + const BrowseSettingsRoute(); + + @override + Widget build(context, state) => const BrowseSettingsScreen(); +} + +class ExtensionRepositoryRoute extends GoRouteData { + const ExtensionRepositoryRoute(); + + @override + Widget build(context, state) => const ExtensionRepositoryScreen(); +} + +class BackupRoute extends GoRouteData { + const BackupRoute(); + @override + Widget build(context, state) => const BackupScreen(); +} + +class ServerSettingsRoute extends GoRouteData { + const ServerSettingsRoute(); + + @override + Widget build(context, state) => const ServerScreen(); +} + +class DownloadsSettingsRoute extends GoRouteData { + const DownloadsSettingsRoute(); + + @override + Widget build(context, state) => const DownloadsSettingsScreen(); +} diff --git a/lib/src/routes/sub_routes/updates_routes.dart b/lib/src/routes/sub_routes/updates_routes.dart new file mode 100644 index 00000000..7e3e0e1d --- /dev/null +++ b/lib/src/routes/sub_routes/updates_routes.dart @@ -0,0 +1,11 @@ +part of '../router_config.dart'; + +class UpdatesBranch extends StatefulShellBranchData { + const UpdatesBranch(); +} + +class UpdatesRoute extends GoRouteData { + const UpdatesRoute(); + @override + Widget build(context, state) => const UpdatesScreen(); +} diff --git a/lib/src/sorayomi.dart b/lib/src/sorayomi.dart index d9b4827a..eddb6e70 100644 --- a/lib/src/sorayomi.dart +++ b/lib/src/sorayomi.dart @@ -29,7 +29,7 @@ class Sorayomi extends ConsumerWidget { final isTrueBlack = ref.watch(isTrueBlackProvider); return MaterialApp.router( builder: FToastBuilder(), - onGenerateTitle: (context) => context.l10n!.appTitle, + onGenerateTitle: (context) => context.l10n.appTitle, debugShowCheckedModeBanner: false, theme: FlexThemeData.light( scheme: appScheme, diff --git a/lib/src/utils/extensions/cache_manager_extensions.dart b/lib/src/utils/extensions/cache_manager_extensions.dart index df46839c..8ba39bd2 100644 --- a/lib/src/utils/extensions/cache_manager_extensions.dart +++ b/lib/src/utils/extensions/cache_manager_extensions.dart @@ -11,9 +11,9 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../constants/endpoints.dart'; import '../../constants/enum.dart'; +import '../../features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart'; +import '../../features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart'; import '../../features/settings/presentation/server/widget/credential_popup/credentials_popup.dart'; -import '../../features/settings/widgets/server_port_tile/server_port_tile.dart'; -import '../../features/settings/widgets/server_url_tile/server_url_tile.dart'; import '../../global_providers/global_providers.dart'; import 'custom_extensions.dart'; diff --git a/lib/src/utils/extensions/custom_extensions.dart b/lib/src/utils/extensions/custom_extensions.dart index 5cb7a22a..62c10cf0 100644 --- a/lib/src/utils/extensions/custom_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions.dart @@ -4,11 +4,17 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'dart:developer' as dev; import 'dart:math'; +import 'package:ferry/ferry.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:go_router/go_router.dart'; +// we use the gql_exec from ferry itself to avoid version incompatibility +// ignore: depend_on_referenced_packages +import 'package:gql_exec/gql_exec.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:intl/intl.dart'; @@ -22,6 +28,7 @@ part 'custom_extensions/bool_extensions.dart'; part 'custom_extensions/context_extensions.dart'; part 'custom_extensions/date_time_extensions.dart'; part 'custom_extensions/double_extensions.dart'; +part 'custom_extensions/ferry_extensions.dart'; part 'custom_extensions/int_extensions.dart'; part 'custom_extensions/iterable_extensions.dart'; part 'custom_extensions/map_extensions.dart'; diff --git a/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart b/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart index 83b34fae..9ef6eb10 100644 --- a/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/async_value_extensions.dart @@ -20,7 +20,8 @@ extension AsyncValueExtensions on AsyncValue { } } - void showToastOnError(Toast toast, {bool withMicrotask = false}) { + void showToastOnError(Toast? toast, {bool withMicrotask = false}) { + if (toast == null) return; if (withMicrotask) { Future.microtask(() => (this._showToastOnError(toast))); } else { @@ -28,7 +29,7 @@ extension AsyncValueExtensions on AsyncValue { } } - T? valueOrToast(Toast toast, {bool withMicrotask = false}) => + T? valueOrToast(Toast? toast, {bool withMicrotask = false}) => (this..showToastOnError(toast, withMicrotask: withMicrotask)).valueOrNull; Widget showUiWhenData( @@ -45,21 +46,21 @@ extension AsyncValueExtensions on AsyncValue { return when( data: data, skipError: true, - error: (error, trace) => AppUtils.wrapIf( + error: (error, trace) => AppUtils.wrapOn( wrapper, Emoticons( - text: showGenericError - ? context.l10n!.errorSomethingWentWrong + title: showGenericError + ? context.l10n.errorSomethingWentWrong : error.toString(), button: refresh != null ? TextButton( onPressed: refresh, - child: Text(context.l10n!.refresh), + child: Text(context.l10n.refresh), ) : null, )), loading: () => - AppUtils.wrapIf(wrapper, const CenterSorayomiShimmerIndicator()), + AppUtils.wrapOn(wrapper, const CenterSorayomiShimmerIndicator()), ); } diff --git a/lib/src/utils/extensions/custom_extensions/context_extensions.dart b/lib/src/utils/extensions/custom_extensions/context_extensions.dart index f252089b..c86de0b9 100644 --- a/lib/src/utils/extensions/custom_extensions/context_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/context_extensions.dart @@ -16,7 +16,7 @@ extension ContextExtensions on BuildContext { final RouteMatchList matchList = lastMatch is ImperativeRouteMatch ? lastMatch.matches : router.routerDelegate.currentConfiguration; - return matchList.uri.toString(); + return matchList.uri.path; } /// @@ -190,7 +190,9 @@ extension ContextExtensions on BuildContext { /// True if the width is greater than 1200p bool get isDesktop => isDesktopOrWider; - AppLocalizations? get l10n => AppLocalizations.of(this); + AppLocalizations get l10n => AppLocalizations.of(this)!; + + navPop([T? result]) => Navigator.pop(this, result); Locale get currentLocale => Localizations.localeOf(this); @@ -227,4 +229,34 @@ extension ContextExtensions on BuildContext { ].whereType(); return strictValues.firstOrNull ?? looseValues.first; } + + Future pushBottomSheet(Widget sheet) async { + return showModalBottomSheet( + context: this, + useSafeArea: true, + isScrollControlled: true, + enableDrag: false, + isDismissible: false, + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.vertical(top: Radius.circular(16)), + ), + builder: (context) => Padding( + padding: + EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), + child: sheet, + ), + ); + } + + Future showFullScreenDialog(Widget dialog) async { + return showDialog( + context: this, + useSafeArea: true, + useRootNavigator: false, + barrierDismissible: true, + builder: (context) => Dialog.fullscreen( + child: dialog, + ), + ); + } } diff --git a/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart b/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart index 30b50692..e80e2261 100644 --- a/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/date_time_extensions.dart @@ -104,11 +104,11 @@ extension DateTimeExtensions on DateTime { Duration diff = DateTime.now().difference(this); if (diff.inDays < 1) { - return context.l10n!.today; + return context.l10n.today; } else if (diff.inDays < 2) { - return context.l10n!.yesterday; + return context.l10n.yesterday; } else if (diff.inDays < 10) { - return context.l10n!.daysAgo(diff.inDays); + return context.l10n.daysAgo(diff.inDays); } else { return DateFormat.yMMMd(context.currentLocale.toLanguageTag()) .format(this); diff --git a/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart b/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart new file mode 100644 index 00000000..ceaca216 --- /dev/null +++ b/lib/src/utils/extensions/custom_extensions/ferry_extensions.dart @@ -0,0 +1,43 @@ +part of '../custom_extensions.dart'; + +extension FerryExtensions on Client { + Stream fetch( + OperationRequest request, [ + T? Function(TData)? converter, + forward, + ]) => + this.request(request, forward).map((event) { + if (kDebugMode) dev.log("${event.data}"); + TData? data = event.data; + if (event.hasErrors) { + if (event.linkException != null) { + if (event.linkException! is ServerException) { + throw ServerMessageException( + event.linkException! as ServerException); + } + throw event.linkException!; + } else { + throw GraphQlException(event.graphqlErrors!); + } + } + return data != null ? converter?.call(data) : null; + }); +} + +class GraphQlException implements Exception { + final List errors; + + GraphQlException(this.errors); + + @override + String toString() => errors.map((e) => e.message).join(", "); +} + +class ServerMessageException implements Exception { + final ServerException serverException; + + ServerMessageException(this.serverException); + + @override + String toString() => (serverException.parsedResponse?.response).toToastString; +} diff --git a/lib/src/utils/extensions/custom_extensions/int_extensions.dart b/lib/src/utils/extensions/custom_extensions/int_extensions.dart index 8c36defc..a64d4f67 100644 --- a/lib/src/utils/extensions/custom_extensions/int_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/int_extensions.dart @@ -19,6 +19,8 @@ extension IntExtensions on int? { bool? get toBool => (this == null || this == 0) ? null : this == 1; + int ifNull([int value = 0]) => isNull ? value : this!; + int ifNullOrZero([int value = 1]) => isNull || isZero ? value : this!; String get toDateString { if (isNull) return ""; return DateFormat.yMMMd().format( @@ -26,7 +28,7 @@ extension IntExtensions on int? { ); } - String? padLeft([int width = 2, String padding = '0']) { + String? padLeft({int width = 2, String padding = '0'}) { if (isNull) return null; return toString().padLeft(width, padding); } @@ -52,4 +54,30 @@ extension IntExtensions on int? { return DateTime.fromMillisecondsSinceEpoch(this! * 1000) .isSameDay(DateTime.fromMillisecondsSinceEpoch(anotherDate! * 1000)); } + + String? compact({ + int width = 2, + String padding = '0', + bool addPrefixAndSuffix = false, + String prefix = " (", + String suffix = ")", + bool returnNullOnZero = false, + int shortenAfter = 1000, + }) { + String? result; + if (this == null) { + result = null; + } else if (this == 0) { + result = returnNullOnZero ? null : toString(); + } else if (this! > shortenAfter) { + result = NumberFormat.compact(locale: const Locale('en', 'IN').toString()) + .format(this); + } else { + result = padLeft(width: width, padding: padding); + } + if (addPrefixAndSuffix) { + result = result?.wrap(prefix: prefix, suffix: suffix); + } + return result; + } } diff --git a/lib/src/utils/extensions/custom_extensions/map_extensions.dart b/lib/src/utils/extensions/custom_extensions/map_extensions.dart index 4884438e..c42ddb06 100644 --- a/lib/src/utils/extensions/custom_extensions/map_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/map_extensions.dart @@ -29,4 +29,16 @@ extension NullableMapExtensions on Map? { bool get isBlank => isNull || this!.isEmpty; bool get isNotBlank => !isBlank; + + String get toToastString { + String result = ""; + this?.forEach((key, value) { + if (value == null) return; + if (result.isNotBlank) { + result += "\n"; + } + result += value.toString(); + }); + return result; + } } diff --git a/lib/src/utils/extensions/custom_extensions/string_extensions.dart b/lib/src/utils/extensions/custom_extensions/string_extensions.dart index c68a7c40..c509d0f5 100644 --- a/lib/src/utils/extensions/custom_extensions/string_extensions.dart +++ b/lib/src/utils/extensions/custom_extensions/string_extensions.dart @@ -19,6 +19,15 @@ extension StringExtensions on String? { double? get tryParseInt => isNull ? null : double.tryParse(this!); + String ifNull([String value = '']) => isNull ? value : this!; + + String ifBlank([String value = '']) => isBlank ? value : this!; + + String? wrap({String? prefix = " (", String? suffix = ")"}) { + if (isBlank) return null; + return "${prefix.ifNull()}$this${suffix.ifNull()}"; + } + bool hasMatch(String pattern) => (isNull) ? false : RegExp(pattern).hasMatch(this!); @@ -66,6 +75,12 @@ extension StringExtensions on String? { r'^(([^<>[\]\\.,;:\s@\"]+(\.[^<>[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'); } + bool get isUrl { + if (isNull) return false; + return this!.hasMatch( + r'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)'); + } + bool query([String? query]) { if (isNull) return false; if (query.isBlank) return true; @@ -100,4 +115,16 @@ extension StringExtensions on String? { if (isBlank) return null; return this!.replaceFirst(RegExp('http', caseSensitive: false), 'ws'); } + + TimeOfDay? get toTimeOfDay { + if (isBlank) return null; + final timeList = this!.split(':').map(int.tryParse).filterOutNulls!; + if (timeList.length != 2) { + return null; + } + return TimeOfDay(hour: timeList.first!, minute: timeList.last!); + } + + int getValueOnNullOrNegative([int i = 0]) => + int.tryParse(this ?? '')?.getValueOnNullOrNegative(i) ?? i; } diff --git a/lib/src/utils/hooks/polling_hook.dart b/lib/src/utils/hooks/polling_hook.dart new file mode 100644 index 00000000..2699977f --- /dev/null +++ b/lib/src/utils/hooks/polling_hook.dart @@ -0,0 +1,35 @@ +import 'dart:async'; + +import 'package:flutter_hooks/flutter_hooks.dart'; + +T? usePolling({ + required Duration pollingInterval, + required FutureOr Function() pollFunction, + bool delayedStart = false, +}) { + final data = useState(null); + + useEffect(() { + Future poll() async { + while (true) { + if (delayedStart) { + await Future.delayed(pollingInterval); + } + final result = await pollFunction(); + data.value = result; + if (!delayedStart) { + await Future.delayed(pollingInterval); + } + } + } + + poll(); + + // Cleanup function + return () { + // No cleanup needed for this simple example + }; + }, []); + + return data.value; +} diff --git a/lib/src/utils/launch_url_in_web.dart b/lib/src/utils/launch_url_in_web.dart index 8f2858f5..fb626651 100644 --- a/lib/src/utils/launch_url_in_web.dart +++ b/lib/src/utils/launch_url_in_web.dart @@ -19,6 +19,6 @@ Future launchUrlInWeb(BuildContext context, String url, webOnlyWindowName: "_blank", )) { await Clipboard.setData(ClipboardData(text: url)); - if (context.mounted) toast?.showError(context.l10n!.errorLaunchURL(url)); + if (context.mounted) toast?.showError(context.l10n.errorLaunchURL(url)); } } diff --git a/lib/src/utils/misc/app_utils.dart b/lib/src/utils/misc/app_utils.dart index 76649063..c15366e9 100644 --- a/lib/src/utils/misc/app_utils.dart +++ b/lib/src/utils/misc/app_utils.dart @@ -1,10 +1,73 @@ +import 'dart:math'; + import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../extensions/custom_extensions.dart'; +import 'toast/toast.dart'; abstract class AppUtils { - static Widget wrapIf(Widget Function(Widget)? wrapper, Widget child) { + static String? getPanFromGst(String gst) { + return gst.isBlank || gst.length < 10 + ? null + : gst.substring(2, min(12, gst.length)).toUpperCase(); + } + + static Widget wrapOn(Widget Function(Widget)? wrapper, Widget child) { if (wrapper != null) { return wrapper(child); } return child; } + + static Widget wrapChildIf({ + bool? condition, + Widget Function(Widget)? wrap, + Widget Function(Widget)? elseWrap, + required Widget child, + }) { + if (wrap != null && condition.ifNull()) { + return wrap(child); + } + return elseWrap?.call(child) ?? child; + } + + static T? wrapIf({ + bool? condition, + required U? child, + T? Function(U?)? wrap, + }) { + if (wrap != null && condition.ifNull()) { + return wrap(child); + } + return null; + } + + static T? returnIf( + bool? condition, + T? value, [ + T? elseValue, + ]) { + if (condition.ifNull()) { + return value; + } + return elseValue; + } + + static String stringCompose( + List composeList, String param) { + String resultParam = param; + final reversedList = composeList.reversed; + for (Function f in reversedList) { + resultParam = f(resultParam); + } + return resultParam; + } + + static Future guard( + Future Function() future, + Toast? toast, [ + bool Function(Object)? test, + ]) async => + (await AsyncValue.guard(future, test)).valueOrToast(toast); } diff --git a/lib/src/utils/misc/file_picker_utils.dart b/lib/src/utils/misc/file_picker_utils.dart new file mode 100644 index 00000000..818436f2 --- /dev/null +++ b/lib/src/utils/misc/file_picker_utils.dart @@ -0,0 +1,56 @@ +import 'dart:async'; + +import 'package:file_picker/file_picker.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:http/http.dart'; + +import '../extensions/custom_extensions.dart'; + +abstract class FilePickerUtils { + static Future pickFile({ + BuildContext? context, + List? extensions, + }) async { + final pickedFiles = await FilePicker.platform.pickFiles( + type: FileType.custom, + allowedExtensions: extensions, + ); + final file = pickedFiles?.files.first; + if (context != null && context.mounted) { + if (file == null || + file.name.isBlank || + (kIsWeb && (file.bytes).isBlank || + (!kIsWeb && (file.path).isBlank))) { + throw context.l10n.errorFilePick; + } + if (extensions.isNotBlank && + !extensions!.any((e) => file.name.endsWith(".$e"))) { + throw context.l10n.errorFilePickUnknownExtension( + extensions.join(" ${context.l10n.or} ")); + } + } + return file; + } + + static Future convertToMultipartFile(PlatformFile file, + [String? fileName]) async { + final String newFileName = fileName ?? file.name.split('.').first; + final String newFileNameWithExtension = file.extension.isNotBlank + ? "$newFileName.${file.extension}" + : newFileName; + if (kIsWeb) { + return MultipartFile.fromBytes( + newFileName, + file.bytes!, + filename: newFileNameWithExtension, + ); + } else { + return MultipartFile.fromPath( + newFileName, + file.path!, + filename: newFileNameWithExtension, + ); + } + } +} diff --git a/lib/src/utils/misc/material_color_generator.dart b/lib/src/utils/misc/material_color_generator.dart deleted file mode 100644 index 708639ab..00000000 --- a/lib/src/utils/misc/material_color_generator.dart +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2022 Contributors to the Suwayomi project -// -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -import 'dart:math'; - -import 'package:flutter/material.dart'; - -abstract class MaterialColorGenerator { - MaterialColorGenerator._(); - static MaterialColor generate({required Color color}) => - MaterialColor(color.value, { - 50: _tintColor(color, 0.9), - 100: _tintColor(color, 0.8), - 200: _tintColor(color, 0.6), - 300: _tintColor(color, 0.4), - 400: _tintColor(color, 0.2), - 500: color, - 600: _shadeColor(color, 0.1), - 700: _shadeColor(color, 0.2), - 800: _shadeColor(color, 0.3), - 900: _shadeColor(color, 0.4), - }); - - static int _tintValue(int value, double factor) => - max(0, min((value + ((255 - value) * factor)).round(), 255)); - - static Color _tintColor(Color color, double factor) => Color.fromRGBO( - _tintValue(color.red, factor), - _tintValue(color.green, factor), - _tintValue(color.blue, factor), - 1); - - static int _shadeValue(int value, double factor) => - max(0, min(value - (value * factor).round(), 255)); - - static Color _shadeColor(Color color, double factor) => Color.fromRGBO( - _shadeValue(color.red, factor), - _shadeValue(color.green, factor), - _shadeValue(color.blue, factor), - 1); -} diff --git a/lib/src/utils/misc/number_range_formatter.dart b/lib/src/utils/misc/number_range_formatter.dart new file mode 100644 index 00000000..ee7dfc1b --- /dev/null +++ b/lib/src/utils/misc/number_range_formatter.dart @@ -0,0 +1,34 @@ +import 'package:flutter/services.dart'; + +class NumberRangeFormatter extends TextInputFormatter { + final int maxValue; + + NumberRangeFormatter({required this.maxValue}); + + @override + TextEditingValue formatEditUpdate( + TextEditingValue oldValue, + TextEditingValue newValue, + ) { + if (newValue.text.isEmpty) { + return const TextEditingValue( + text: "", + selection: TextSelection.collapsed(offset: 0), + ); + } + String truncated = newValue.text; + TextSelection newSelection = newValue.selection; + + int parsedValue = int.tryParse(newValue.text) ?? 0; + if (parsedValue > maxValue) { + truncated = oldValue.text; + newSelection = oldValue.selection; + } + + return TextEditingValue( + text: truncated, + selection: newSelection, + composing: TextRange.empty, + ); + } +} diff --git a/lib/src/utils/misc/toast/toast.dart b/lib/src/utils/misc/toast/toast.dart index f576a286..6362f42f 100644 --- a/lib/src/utils/misc/toast/toast.dart +++ b/lib/src/utils/misc/toast/toast.dart @@ -7,9 +7,12 @@ import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:gap/gap.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../../constants/app_sizes.dart'; +import '../../../routes/router_config.dart'; +import '../../extensions/custom_extensions.dart'; part 'toast.g.dart'; @@ -20,32 +23,52 @@ class Toast { final BuildContext _context; late FToast _fToast; - void instantShow(String msg) { - close(); - show(msg); - } - - void show(String msg, {bool withMicrotask = false}) { - if (withMicrotask) { - Future.microtask(() => _fToast.showToast( - child: ToastWidget(text: msg), - gravity: ToastGravity.BOTTOM, - )); - } else { + void show( + String msg, { + bool withMicrotask = false, + bool instantShow = false, + }) { + toast() { + if (instantShow) close(); _fToast.showToast( - child: ToastWidget(text: msg), + child: ToastWidget( + text: msg, + backgroundColor: Colors.black, + ), gravity: ToastGravity.BOTTOM, ); } + + if (withMicrotask) { + Future.microtask(toast); + } else { + toast(); + } } - void showError(String error) => _fToast.showToast( + void showError( + String error, { + bool withMicrotask = false, + bool instantShow = false, + }) { + toast() { + if (instantShow) close(); + _fToast.showToast( child: ToastWidget( text: error, backgroundColor: Colors.red.shade400, + textColor: Colors.white, ), gravity: ToastGravity.TOP, ); + } + + if (withMicrotask) { + Future.microtask(toast); + } else { + toast(); + } + } void close() => _fToast.removeCustomToast(); } @@ -66,14 +89,15 @@ class ToastWidget extends StatelessWidget { Widget build(BuildContext context) { Widget textWidget = Text( text, - style: TextStyle(color: textColor ?? Colors.white), + style: + TextStyle(color: textColor ?? context.colorScheme.onPrimaryContainer), textAlign: TextAlign.center, ); return Container( padding: KEdgeInsets.h16v8.size, decoration: BoxDecoration( borderRadius: KBorderRadius.r16.radius, - color: backgroundColor ?? Colors.black54, + color: backgroundColor ?? context.colorScheme.primaryContainer, ), child: icon != null ? Row( @@ -89,4 +113,10 @@ class ToastWidget extends StatelessWidget { } @riverpod -Toast toast(ToastRef ref, BuildContext context) => Toast(context); +Toast? toast(Ref ref) { + final context = rootNavigatorKey.currentContext; + if (context == null) { + return null; + } + return Toast(context); +} diff --git a/lib/src/utils/misc/toast/toast.g.dart b/lib/src/utils/misc/toast/toast.g.dart index 7cc4d9f1..1882c82b 100644 --- a/lib/src/utils/misc/toast/toast.g.dart +++ b/lib/src/utils/misc/toast/toast.g.dart @@ -6,152 +6,21 @@ part of 'toast.dart'; // RiverpodGenerator // ************************************************************************** -String _$toastHash() => r'6bc9df511e9180eea4d509e57fdd4eed4c062779'; - -/// Copied from Dart SDK -class _SystemHash { - _SystemHash._(); - - static int combine(int hash, int value) { - // ignore: parameter_assignments - hash = 0x1fffffff & (hash + value); - // ignore: parameter_assignments - hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); - return hash ^ (hash >> 6); - } - - static int finish(int hash) { - // ignore: parameter_assignments - hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); - // ignore: parameter_assignments - hash = hash ^ (hash >> 11); - return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); - } -} +String _$toastHash() => r'4eab7035f1d1e114b7d64b8f3728579b33cdbec6'; /// See also [toast]. @ProviderFor(toast) -const toastProvider = ToastFamily(); - -/// See also [toast]. -class ToastFamily extends Family { - /// See also [toast]. - const ToastFamily(); - - /// See also [toast]. - ToastProvider call( - BuildContext context, - ) { - return ToastProvider( - context, - ); - } - - @override - ToastProvider getProviderOverride( - covariant ToastProvider provider, - ) { - return call( - provider.context, - ); - } - - static const Iterable? _dependencies = null; - - @override - Iterable? get dependencies => _dependencies; - - static const Iterable? _allTransitiveDependencies = null; - - @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; - - @override - String? get name => r'toastProvider'; -} - -/// See also [toast]. -class ToastProvider extends AutoDisposeProvider { - /// See also [toast]. - ToastProvider( - BuildContext context, - ) : this._internal( - (ref) => toast( - ref as ToastRef, - context, - ), - from: toastProvider, - name: r'toastProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$toastHash, - dependencies: ToastFamily._dependencies, - allTransitiveDependencies: ToastFamily._allTransitiveDependencies, - context: context, - ); - - ToastProvider._internal( - super._createNotifier, { - required super.name, - required super.dependencies, - required super.allTransitiveDependencies, - required super.debugGetCreateSourceHash, - required super.from, - required this.context, - }) : super.internal(); - - final BuildContext context; - - @override - Override overrideWith( - Toast Function(ToastRef provider) create, - ) { - return ProviderOverride( - origin: this, - override: ToastProvider._internal( - (ref) => create(ref as ToastRef), - from: from, - name: null, - dependencies: null, - allTransitiveDependencies: null, - debugGetCreateSourceHash: null, - context: context, - ), - ); - } - - @override - AutoDisposeProviderElement createElement() { - return _ToastProviderElement(this); - } - - @override - bool operator ==(Object other) { - return other is ToastProvider && other.context == context; - } - - @override - int get hashCode { - var hash = _SystemHash.combine(0, runtimeType.hashCode); - hash = _SystemHash.combine(hash, context.hashCode); - - return _SystemHash.finish(hash); - } -} - -mixin ToastRef on AutoDisposeProviderRef { - /// The parameter `context` of this provider. - BuildContext get context; -} - -class _ToastProviderElement extends AutoDisposeProviderElement - with ToastRef { - _ToastProviderElement(super.provider); - - @override - BuildContext get context => (origin as ToastProvider).context; -} +final toastProvider = AutoDisposeProvider.internal( + toast, + name: r'toastProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$toastHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef ToastRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/utils/misc/upload_serializer.dart b/lib/src/utils/misc/upload_serializer.dart new file mode 100644 index 00000000..8d4a4727 --- /dev/null +++ b/lib/src/utils/misc/upload_serializer.dart @@ -0,0 +1,30 @@ +// ignore: depend_on_referenced_packages +import 'package:built_value/serializer.dart'; +import 'package:http/http.dart' show MultipartFile; + +class UploadSerializer extends PrimitiveSerializer { + @override + MultipartFile deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + assert(serialized is List, + "FileSerializer expected 'Uint8List' but got ${serialized.runtimeType}"); + return MultipartFile.fromBytes("field", serialized as List); + } + + @override + Object serialize( + Serializers serializers, + MultipartFile object, { + FullType specifiedType = FullType.unspecified, + }) => + object; + + @override + Iterable get types => [MultipartFile]; + + @override + String get wireName => "Upload"; +} diff --git a/lib/src/utils/mixin/shared_preferences_client_mixin.dart b/lib/src/utils/mixin/shared_preferences_client_mixin.dart index 8b631727..1c1a1ee1 100644 --- a/lib/src/utils/mixin/shared_preferences_client_mixin.dart +++ b/lib/src/utils/mixin/shared_preferences_client_mixin.dart @@ -4,9 +4,11 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +// ignore_for_file: deprecated_member_use + import 'dart:convert'; -import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:shared_preferences/shared_preferences.dart'; import '../../constants/db_keys.dart'; diff --git a/lib/src/utils/storage/dio/dio_client.dart b/lib/src/utils/storage/dio/dio_client.dart index 538d4940..99d43b09 100644 --- a/lib/src/utils/storage/dio/dio_client.dart +++ b/lib/src/utils/storage/dio/dio_client.dart @@ -7,7 +7,7 @@ import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; -import '../dio_error_util.dart'; +import 'dio_error_util.dart'; typedef ResponseDecoderCallBack = DecoderType Function(dynamic); diff --git a/lib/src/utils/storage/dio_error_util.dart b/lib/src/utils/storage/dio/dio_error_util.dart similarity index 100% rename from lib/src/utils/storage/dio_error_util.dart rename to lib/src/utils/storage/dio/dio_error_util.dart diff --git a/lib/src/utils/storage/dio/network_module.dart b/lib/src/utils/storage/dio/network_module.dart index 6c2d212e..069b04c1 100644 --- a/lib/src/utils/storage/dio/network_module.dart +++ b/lib/src/utils/storage/dio/network_module.dart @@ -46,7 +46,7 @@ class DioNetworkModule { maxStale: const Duration(days: 14), ); final dio = Dio(); - (dio.transformer as BackgroundTransformer).jsonDecodeCallback = parseJson; + // (dio.transformer as BackgroundTransformer).jsonDecodeCallback = parseJson; dio ..options.baseUrl = Endpoints.baseApi( diff --git a/lib/src/utils/storage/dio/network_module.g.dart b/lib/src/utils/storage/dio/network_module.g.dart index c3d8a442..9e46c7dd 100644 --- a/lib/src/utils/storage/dio/network_module.g.dart +++ b/lib/src/utils/storage/dio/network_module.g.dart @@ -20,6 +20,8 @@ final networkModuleProvider = AutoDisposeProvider.internal( allTransitiveDependencies: null, ); +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element typedef NetworkModuleRef = AutoDisposeProviderRef; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/utils/storage/ferry/network_module.dart b/lib/src/utils/storage/ferry/network_module.dart new file mode 100644 index 00000000..a0fc55c5 --- /dev/null +++ b/lib/src/utils/storage/ferry/network_module.dart @@ -0,0 +1,61 @@ +import 'dart:convert'; + +import 'package:ferry/ferry.dart'; +import 'package:ferry_hive_store/ferry_hive_store.dart'; +import 'package:flutter/foundation.dart'; +import 'package:gql_http_link/gql_http_link.dart'; +import "package:http/http.dart" as http; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import '../../../constants/endpoints.dart'; +import '../../../constants/enum.dart'; +import '../../extensions/custom_extensions.dart'; + +part 'network_module.g.dart'; + +// Must be top-level function +FutureOr> httpResponseDecoder( + http.Response httpResponse) async { + try { + return await compute(jsonDecode, httpResponse.body) as Map; + } catch (e) { + return {"response": httpResponse.body}; + } +} + +class FerryNetworkModule { + Client provideFerry({ + required String baseUrl, + int? port, + bool addPort = true, + required AuthType authType, + HiveStore? hiveStore, + String? credentials, + }) { + final cache = Cache(store: hiveStore); + + final link = HttpLink( + Endpoints.baseApi( + baseUrl: baseUrl, + port: port, + addPort: addPort, + isGraphQl: true, + ), + followRedirects: true, + httpResponseDecoder: httpResponseDecoder, + defaultHeaders: { + 'Content-Type': 'application/json; charset=utf-8', + if (authType == AuthType.basic && credentials.isNotBlank) + 'Authorization': credentials!, + }, + ); + return Client(link: link, cache: cache, defaultFetchPolicies: { + OperationType.query: FetchPolicy.NoCache, + OperationType.mutation: FetchPolicy.NoCache, + OperationType.subscription: FetchPolicy.NoCache, + }); + } +} + +@riverpod +FerryNetworkModule ferryNetworkModule(ref) => FerryNetworkModule(); diff --git a/lib/src/utils/storage/ferry/network_module.g.dart b/lib/src/utils/storage/ferry/network_module.g.dart new file mode 100644 index 00000000..42d6a887 --- /dev/null +++ b/lib/src/utils/storage/ferry/network_module.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'network_module.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$ferryNetworkModuleHash() => + r'26c3851eb0886ef92038a1f97e2988e62daaec72'; + +/// See also [ferryNetworkModule]. +@ProviderFor(ferryNetworkModule) +final ferryNetworkModuleProvider = + AutoDisposeProvider.internal( + ferryNetworkModule, + name: r'ferryNetworkModuleProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$ferryNetworkModuleHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef FerryNetworkModuleRef = AutoDisposeProviderRef; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/widgets/async_buttons/async_elevated_button.dart b/lib/src/widgets/async_buttons/async_elevated_button.dart new file mode 100644 index 00000000..5665646b --- /dev/null +++ b/lib/src/widgets/async_buttons/async_elevated_button.dart @@ -0,0 +1,34 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../custom_circular_progress_indicator.dart'; + +class AsyncElevatedButton extends HookWidget { + const AsyncElevatedButton({ + super.key, + required this.onPressed, + required this.child, + this.style, + }); + final AsyncCallback? onPressed; + final Widget child; + final ButtonStyle? style; + @override + Widget build(BuildContext context) { + final isLoading = useState(false); + return ElevatedButton( + onPressed: onPressed == null || isLoading.value + ? null + : () async { + isLoading.value = (true); + await onPressed?.call(); + isLoading.value = (false); + }, + style: style, + child: isLoading.value + ? const MiniCircularProgressIndicator(color: Colors.white) + : child, + ); + } +} diff --git a/lib/src/widgets/async_buttons/async_list_tile.dart b/lib/src/widgets/async_buttons/async_list_tile.dart new file mode 100644 index 00000000..efef1b00 --- /dev/null +++ b/lib/src/widgets/async_buttons/async_list_tile.dart @@ -0,0 +1,42 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../custom_circular_progress_indicator.dart'; + +class AsyncListTile extends HookWidget { + const AsyncListTile({ + super.key, + this.leading, + this.title, + this.subtitle, + this.trailing, + this.onTap, + this.showInLeading = true, + }); + final Widget? leading; + final Widget? title; + final Widget? subtitle; + final Widget? trailing; + final AsyncValueSetter>? onTap; + final bool showInLeading; + @override + Widget build(BuildContext context) { + final isLoading = useState(false); + return ListTile( + leading: showInLeading && isLoading.value + ? const MiniCircularProgressIndicator() + : leading, + title: title, + subtitle: subtitle, + trailing: trailing, + onTap: onTap == null + ? null + : () async { + isLoading.value = true; + await onTap?.call(isLoading); + isLoading.value = false; + }, + ); + } +} diff --git a/lib/src/widgets/async_buttons/async_outline_button.dart b/lib/src/widgets/async_buttons/async_outline_button.dart new file mode 100644 index 00000000..09391ed2 --- /dev/null +++ b/lib/src/widgets/async_buttons/async_outline_button.dart @@ -0,0 +1,32 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../custom_circular_progress_indicator.dart'; + +class AsyncOutlineButton extends HookWidget { + const AsyncOutlineButton({ + super.key, + required this.onPressed, + required this.child, + this.style, + }); + final AsyncCallback? onPressed; + final Widget child; + final ButtonStyle? style; + @override + Widget build(BuildContext context) { + final isLoading = useState(false); + return OutlinedButton( + onPressed: onPressed == null || isLoading.value + ? null + : () async { + isLoading.value = (true); + await onPressed?.call(); + isLoading.value = (false); + }, + style: style, + child: isLoading.value ? const MiniCircularProgressIndicator() : child, + ); + } +} diff --git a/lib/src/widgets/async_buttons/async_text_button.dart b/lib/src/widgets/async_buttons/async_text_button.dart index 4bddb8d3..0befd17b 100644 --- a/lib/src/widgets/async_buttons/async_text_button.dart +++ b/lib/src/widgets/async_buttons/async_text_button.dart @@ -15,12 +15,12 @@ class AsyncTextButton extends HookWidget { super.key, required this.onPressed, required this.child, - required this.icon, + this.icon, }); final AsyncCallback? onPressed; final Widget child; - final Widget icon; + final Widget? icon; @override Widget build(BuildContext context) { diff --git a/lib/src/widgets/custom_circular_progress_indicator.dart b/lib/src/widgets/custom_circular_progress_indicator.dart index 93b9c542..48c19c65 100644 --- a/lib/src/widgets/custom_circular_progress_indicator.dart +++ b/lib/src/widgets/custom_circular_progress_indicator.dart @@ -31,7 +31,7 @@ class SorayomiShimmerIndicator extends StatelessWidget { @override Widget build(BuildContext context) { return Shimmer.fromColors( - baseColor: context.colorScheme.background, + baseColor: context.colorScheme.surface, highlightColor: context.theme.indicatorColor, child: ImageIcon(AssetImage(Assets.icons.darkIcon.path)), ); diff --git a/lib/src/widgets/emoticons.dart b/lib/src/widgets/emoticons.dart index 50900175..9809a222 100644 --- a/lib/src/widgets/emoticons.dart +++ b/lib/src/widgets/emoticons.dart @@ -23,11 +23,13 @@ const errorFaces = [ class Emoticons extends HookWidget { const Emoticons({ super.key, - this.text, + this.title, + this.subTitle, this.button, this.iconData, }); - final String? text; + final String? title; + final String? subTitle; final IconData? iconData; final Widget? button; @@ -49,14 +51,22 @@ class Emoticons extends HookWidget { style: context.textTheme.displayMedium, ), const Gap(16), - if (text.isNotBlank) + if (title.isNotBlank) Text( - text!, + title!, textAlign: TextAlign.center, style: context.textTheme.titleMedium, overflow: TextOverflow.ellipsis, maxLines: 3, ), + if (subTitle.isNotBlank) + Text( + subTitle!, + textAlign: TextAlign.center, + style: context.textTheme.bodySmall, + overflow: TextOverflow.ellipsis, + maxLines: 2, + ), if (button != null) button!, ], ), diff --git a/lib/src/widgets/input_popup/domain/settings_prop_type.dart b/lib/src/widgets/input_popup/domain/settings_prop_type.dart new file mode 100644 index 00000000..43305594 --- /dev/null +++ b/lib/src/widgets/input_popup/domain/settings_prop_type.dart @@ -0,0 +1,31 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'settings_prop_type.freezed.dart'; + +typedef SettingsUpdateRequest = Future Function(V); + +@freezed +sealed class SettingsPropType with _$SettingsPropType { + const factory SettingsPropType.textField({ + String? hintText, + String? value, + SettingsUpdateRequest? onChanged, + @Default(false) bool canObscure, + }) = TextFieldProp; + const factory SettingsPropType.numberPicker({ + required int min, + required int max, + int? value, + SettingsUpdateRequest? onChanged, + }) = NumberPickerProp; + const factory SettingsPropType.numberSlider({ + required int min, + required int max, + int? value, + SettingsUpdateRequest? onChanged, + }) = NumberSliderProp; + const factory SettingsPropType.switchTile({ + bool? value, + SettingsUpdateRequest? onChanged, + }) = SwitchProp; +} diff --git a/lib/src/widgets/input_popup/domain/settings_prop_type.freezed.dart b/lib/src/widgets/input_popup/domain/settings_prop_type.freezed.dart new file mode 100644 index 00000000..b82068f2 --- /dev/null +++ b/lib/src/widgets/input_popup/domain/settings_prop_type.freezed.dart @@ -0,0 +1,945 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'settings_prop_type.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$SettingsPropType { + Object? get value => throw _privateConstructorUsedError; + Future Function(Never)? get onChanged => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure) + textField, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberPicker, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberSlider, + required TResult Function( + bool? value, SettingsUpdateRequest? onChanged) + switchTile, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult? Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldProp value) textField, + required TResult Function(NumberPickerProp value) numberPicker, + required TResult Function(NumberSliderProp value) numberSlider, + required TResult Function(SwitchProp value) switchTile, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldProp value)? textField, + TResult? Function(NumberPickerProp value)? numberPicker, + TResult? Function(NumberSliderProp value)? numberSlider, + TResult? Function(SwitchProp value)? switchTile, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldProp value)? textField, + TResult Function(NumberPickerProp value)? numberPicker, + TResult Function(NumberSliderProp value)? numberSlider, + TResult Function(SwitchProp value)? switchTile, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $SettingsPropTypeCopyWith { + factory $SettingsPropTypeCopyWith( + SettingsPropType value, $Res Function(SettingsPropType) then) = + _$SettingsPropTypeCopyWithImpl>; +} + +/// @nodoc +class _$SettingsPropTypeCopyWithImpl> + implements $SettingsPropTypeCopyWith { + _$SettingsPropTypeCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. +} + +/// @nodoc +abstract class _$$TextFieldPropImplCopyWith { + factory _$$TextFieldPropImplCopyWith(_$TextFieldPropImpl value, + $Res Function(_$TextFieldPropImpl) then) = + __$$TextFieldPropImplCopyWithImpl; + @useResult + $Res call( + {String? hintText, + String? value, + SettingsUpdateRequest? onChanged, + bool canObscure}); +} + +/// @nodoc +class __$$TextFieldPropImplCopyWithImpl + extends _$SettingsPropTypeCopyWithImpl> + implements _$$TextFieldPropImplCopyWith { + __$$TextFieldPropImplCopyWithImpl(_$TextFieldPropImpl _value, + $Res Function(_$TextFieldPropImpl) _then) + : super(_value, _then); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? hintText = freezed, + Object? value = freezed, + Object? onChanged = freezed, + Object? canObscure = null, + }) { + return _then(_$TextFieldPropImpl( + hintText: freezed == hintText + ? _value.hintText + : hintText // ignore: cast_nullable_to_non_nullable + as String?, + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as String?, + onChanged: freezed == onChanged + ? _value.onChanged + : onChanged // ignore: cast_nullable_to_non_nullable + as SettingsUpdateRequest?, + canObscure: null == canObscure + ? _value.canObscure + : canObscure // ignore: cast_nullable_to_non_nullable + as bool, + )); + } +} + +/// @nodoc + +class _$TextFieldPropImpl implements TextFieldProp { + const _$TextFieldPropImpl( + {this.hintText, this.value, this.onChanged, this.canObscure = false}); + + @override + final String? hintText; + @override + final String? value; + @override + final SettingsUpdateRequest? onChanged; + @override + @JsonKey() + final bool canObscure; + + @override + String toString() { + return 'SettingsPropType<$T>.textField(hintText: $hintText, value: $value, onChanged: $onChanged, canObscure: $canObscure)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$TextFieldPropImpl && + (identical(other.hintText, hintText) || + other.hintText == hintText) && + (identical(other.value, value) || other.value == value) && + (identical(other.onChanged, onChanged) || + other.onChanged == onChanged) && + (identical(other.canObscure, canObscure) || + other.canObscure == canObscure)); + } + + @override + int get hashCode => + Object.hash(runtimeType, hintText, value, onChanged, canObscure); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$TextFieldPropImplCopyWith> get copyWith => + __$$TextFieldPropImplCopyWithImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure) + textField, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberPicker, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberSlider, + required TResult Function( + bool? value, SettingsUpdateRequest? onChanged) + switchTile, + }) { + return textField(hintText, value, onChanged, canObscure); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult? Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + }) { + return textField?.call(hintText, value, onChanged, canObscure); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + required TResult orElse(), + }) { + if (textField != null) { + return textField(hintText, value, onChanged, canObscure); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldProp value) textField, + required TResult Function(NumberPickerProp value) numberPicker, + required TResult Function(NumberSliderProp value) numberSlider, + required TResult Function(SwitchProp value) switchTile, + }) { + return textField(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldProp value)? textField, + TResult? Function(NumberPickerProp value)? numberPicker, + TResult? Function(NumberSliderProp value)? numberSlider, + TResult? Function(SwitchProp value)? switchTile, + }) { + return textField?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldProp value)? textField, + TResult Function(NumberPickerProp value)? numberPicker, + TResult Function(NumberSliderProp value)? numberSlider, + TResult Function(SwitchProp value)? switchTile, + required TResult orElse(), + }) { + if (textField != null) { + return textField(this); + } + return orElse(); + } +} + +abstract class TextFieldProp implements SettingsPropType { + const factory TextFieldProp( + {final String? hintText, + final String? value, + final SettingsUpdateRequest? onChanged, + final bool canObscure}) = _$TextFieldPropImpl; + + String? get hintText; + @override + String? get value; + @override + SettingsUpdateRequest? get onChanged; + bool get canObscure; + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + _$$TextFieldPropImplCopyWith> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$NumberPickerPropImplCopyWith { + factory _$$NumberPickerPropImplCopyWith(_$NumberPickerPropImpl value, + $Res Function(_$NumberPickerPropImpl) then) = + __$$NumberPickerPropImplCopyWithImpl; + @useResult + $Res call( + {int min, int max, int? value, SettingsUpdateRequest? onChanged}); +} + +/// @nodoc +class __$$NumberPickerPropImplCopyWithImpl + extends _$SettingsPropTypeCopyWithImpl> + implements _$$NumberPickerPropImplCopyWith { + __$$NumberPickerPropImplCopyWithImpl(_$NumberPickerPropImpl _value, + $Res Function(_$NumberPickerPropImpl) _then) + : super(_value, _then); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? min = null, + Object? max = null, + Object? value = freezed, + Object? onChanged = freezed, + }) { + return _then(_$NumberPickerPropImpl( + min: null == min + ? _value.min + : min // ignore: cast_nullable_to_non_nullable + as int, + max: null == max + ? _value.max + : max // ignore: cast_nullable_to_non_nullable + as int, + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as int?, + onChanged: freezed == onChanged + ? _value.onChanged + : onChanged // ignore: cast_nullable_to_non_nullable + as SettingsUpdateRequest?, + )); + } +} + +/// @nodoc + +class _$NumberPickerPropImpl implements NumberPickerProp { + const _$NumberPickerPropImpl( + {required this.min, required this.max, this.value, this.onChanged}); + + @override + final int min; + @override + final int max; + @override + final int? value; + @override + final SettingsUpdateRequest? onChanged; + + @override + String toString() { + return 'SettingsPropType<$T>.numberPicker(min: $min, max: $max, value: $value, onChanged: $onChanged)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$NumberPickerPropImpl && + (identical(other.min, min) || other.min == min) && + (identical(other.max, max) || other.max == max) && + (identical(other.value, value) || other.value == value) && + (identical(other.onChanged, onChanged) || + other.onChanged == onChanged)); + } + + @override + int get hashCode => Object.hash(runtimeType, min, max, value, onChanged); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$NumberPickerPropImplCopyWith> get copyWith => + __$$NumberPickerPropImplCopyWithImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure) + textField, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberPicker, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberSlider, + required TResult Function( + bool? value, SettingsUpdateRequest? onChanged) + switchTile, + }) { + return numberPicker(min, max, value, onChanged); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult? Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + }) { + return numberPicker?.call(min, max, value, onChanged); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + required TResult orElse(), + }) { + if (numberPicker != null) { + return numberPicker(min, max, value, onChanged); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldProp value) textField, + required TResult Function(NumberPickerProp value) numberPicker, + required TResult Function(NumberSliderProp value) numberSlider, + required TResult Function(SwitchProp value) switchTile, + }) { + return numberPicker(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldProp value)? textField, + TResult? Function(NumberPickerProp value)? numberPicker, + TResult? Function(NumberSliderProp value)? numberSlider, + TResult? Function(SwitchProp value)? switchTile, + }) { + return numberPicker?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldProp value)? textField, + TResult Function(NumberPickerProp value)? numberPicker, + TResult Function(NumberSliderProp value)? numberSlider, + TResult Function(SwitchProp value)? switchTile, + required TResult orElse(), + }) { + if (numberPicker != null) { + return numberPicker(this); + } + return orElse(); + } +} + +abstract class NumberPickerProp implements SettingsPropType { + const factory NumberPickerProp( + {required final int min, + required final int max, + final int? value, + final SettingsUpdateRequest? onChanged}) = + _$NumberPickerPropImpl; + + int get min; + int get max; + @override + int? get value; + @override + SettingsUpdateRequest? get onChanged; + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + _$$NumberPickerPropImplCopyWith> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$NumberSliderPropImplCopyWith { + factory _$$NumberSliderPropImplCopyWith(_$NumberSliderPropImpl value, + $Res Function(_$NumberSliderPropImpl) then) = + __$$NumberSliderPropImplCopyWithImpl; + @useResult + $Res call( + {int min, int max, int? value, SettingsUpdateRequest? onChanged}); +} + +/// @nodoc +class __$$NumberSliderPropImplCopyWithImpl + extends _$SettingsPropTypeCopyWithImpl> + implements _$$NumberSliderPropImplCopyWith { + __$$NumberSliderPropImplCopyWithImpl(_$NumberSliderPropImpl _value, + $Res Function(_$NumberSliderPropImpl) _then) + : super(_value, _then); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? min = null, + Object? max = null, + Object? value = freezed, + Object? onChanged = freezed, + }) { + return _then(_$NumberSliderPropImpl( + min: null == min + ? _value.min + : min // ignore: cast_nullable_to_non_nullable + as int, + max: null == max + ? _value.max + : max // ignore: cast_nullable_to_non_nullable + as int, + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as int?, + onChanged: freezed == onChanged + ? _value.onChanged + : onChanged // ignore: cast_nullable_to_non_nullable + as SettingsUpdateRequest?, + )); + } +} + +/// @nodoc + +class _$NumberSliderPropImpl implements NumberSliderProp { + const _$NumberSliderPropImpl( + {required this.min, required this.max, this.value, this.onChanged}); + + @override + final int min; + @override + final int max; + @override + final int? value; + @override + final SettingsUpdateRequest? onChanged; + + @override + String toString() { + return 'SettingsPropType<$T>.numberSlider(min: $min, max: $max, value: $value, onChanged: $onChanged)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$NumberSliderPropImpl && + (identical(other.min, min) || other.min == min) && + (identical(other.max, max) || other.max == max) && + (identical(other.value, value) || other.value == value) && + (identical(other.onChanged, onChanged) || + other.onChanged == onChanged)); + } + + @override + int get hashCode => Object.hash(runtimeType, min, max, value, onChanged); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$NumberSliderPropImplCopyWith> get copyWith => + __$$NumberSliderPropImplCopyWithImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure) + textField, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberPicker, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberSlider, + required TResult Function( + bool? value, SettingsUpdateRequest? onChanged) + switchTile, + }) { + return numberSlider(min, max, value, onChanged); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult? Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + }) { + return numberSlider?.call(min, max, value, onChanged); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + required TResult orElse(), + }) { + if (numberSlider != null) { + return numberSlider(min, max, value, onChanged); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldProp value) textField, + required TResult Function(NumberPickerProp value) numberPicker, + required TResult Function(NumberSliderProp value) numberSlider, + required TResult Function(SwitchProp value) switchTile, + }) { + return numberSlider(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldProp value)? textField, + TResult? Function(NumberPickerProp value)? numberPicker, + TResult? Function(NumberSliderProp value)? numberSlider, + TResult? Function(SwitchProp value)? switchTile, + }) { + return numberSlider?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldProp value)? textField, + TResult Function(NumberPickerProp value)? numberPicker, + TResult Function(NumberSliderProp value)? numberSlider, + TResult Function(SwitchProp value)? switchTile, + required TResult orElse(), + }) { + if (numberSlider != null) { + return numberSlider(this); + } + return orElse(); + } +} + +abstract class NumberSliderProp implements SettingsPropType { + const factory NumberSliderProp( + {required final int min, + required final int max, + final int? value, + final SettingsUpdateRequest? onChanged}) = + _$NumberSliderPropImpl; + + int get min; + int get max; + @override + int? get value; + @override + SettingsUpdateRequest? get onChanged; + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + _$$NumberSliderPropImplCopyWith> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$SwitchPropImplCopyWith { + factory _$$SwitchPropImplCopyWith( + _$SwitchPropImpl value, $Res Function(_$SwitchPropImpl) then) = + __$$SwitchPropImplCopyWithImpl; + @useResult + $Res call({bool? value, SettingsUpdateRequest? onChanged}); +} + +/// @nodoc +class __$$SwitchPropImplCopyWithImpl + extends _$SettingsPropTypeCopyWithImpl> + implements _$$SwitchPropImplCopyWith { + __$$SwitchPropImplCopyWithImpl( + _$SwitchPropImpl _value, $Res Function(_$SwitchPropImpl) _then) + : super(_value, _then); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? value = freezed, + Object? onChanged = freezed, + }) { + return _then(_$SwitchPropImpl( + value: freezed == value + ? _value.value + : value // ignore: cast_nullable_to_non_nullable + as bool?, + onChanged: freezed == onChanged + ? _value.onChanged + : onChanged // ignore: cast_nullable_to_non_nullable + as SettingsUpdateRequest?, + )); + } +} + +/// @nodoc + +class _$SwitchPropImpl implements SwitchProp { + const _$SwitchPropImpl({this.value, this.onChanged}); + + @override + final bool? value; + @override + final SettingsUpdateRequest? onChanged; + + @override + String toString() { + return 'SettingsPropType<$T>.switchTile(value: $value, onChanged: $onChanged)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$SwitchPropImpl && + (identical(other.value, value) || other.value == value) && + (identical(other.onChanged, onChanged) || + other.onChanged == onChanged)); + } + + @override + int get hashCode => Object.hash(runtimeType, value, onChanged); + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @override + @pragma('vm:prefer-inline') + _$$SwitchPropImplCopyWith> get copyWith => + __$$SwitchPropImplCopyWithImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure) + textField, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberPicker, + required TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged) + numberSlider, + required TResult Function( + bool? value, SettingsUpdateRequest? onChanged) + switchTile, + }) { + return switchTile(value, onChanged); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult? Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult? Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + }) { + return switchTile?.call(value, onChanged); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String? hintText, String? value, + SettingsUpdateRequest? onChanged, bool canObscure)? + textField, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberPicker, + TResult Function(int min, int max, int? value, + SettingsUpdateRequest? onChanged)? + numberSlider, + TResult Function(bool? value, SettingsUpdateRequest? onChanged)? + switchTile, + required TResult orElse(), + }) { + if (switchTile != null) { + return switchTile(value, onChanged); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(TextFieldProp value) textField, + required TResult Function(NumberPickerProp value) numberPicker, + required TResult Function(NumberSliderProp value) numberSlider, + required TResult Function(SwitchProp value) switchTile, + }) { + return switchTile(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(TextFieldProp value)? textField, + TResult? Function(NumberPickerProp value)? numberPicker, + TResult? Function(NumberSliderProp value)? numberSlider, + TResult? Function(SwitchProp value)? switchTile, + }) { + return switchTile?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(TextFieldProp value)? textField, + TResult Function(NumberPickerProp value)? numberPicker, + TResult Function(NumberSliderProp value)? numberSlider, + TResult Function(SwitchProp value)? switchTile, + required TResult orElse(), + }) { + if (switchTile != null) { + return switchTile(this); + } + return orElse(); + } +} + +abstract class SwitchProp implements SettingsPropType { + const factory SwitchProp( + {final bool? value, + final SettingsUpdateRequest? onChanged}) = _$SwitchPropImpl; + + @override + bool? get value; + @override + SettingsUpdateRequest? get onChanged; + + /// Create a copy of SettingsPropType + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + _$$SwitchPropImplCopyWith> get copyWith => + throw _privateConstructorUsedError; +} diff --git a/lib/src/widgets/input_popup/settings_prop_pop_up.dart b/lib/src/widgets/input_popup/settings_prop_pop_up.dart new file mode 100644 index 00000000..9cc1840e --- /dev/null +++ b/lib/src/widgets/input_popup/settings_prop_pop_up.dart @@ -0,0 +1,92 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../features/settings/controller/server_controller.dart'; +import '../../features/settings/domain/settings/settings.dart'; +import '../../utils/misc/app_utils.dart'; +import '../../utils/misc/toast/toast.dart'; +import 'domain/settings_prop_type.dart'; +import 'widgets/number_picker_dialog.dart'; +import 'widgets/number_slider_dialog.dart'; +import 'widgets/text_field_dialog.dart'; + +class SettingsPropPopUp extends ConsumerWidget { + const SettingsPropPopUp({ + super.key, + this.title, + this.titleWidget, + this.description, + required this.type, + }) : assert(titleWidget != null || title != null); + + final String? title; + final Widget? titleWidget; + final String? description; + final SettingsPropType type; + + @override + Widget build(context, ref) { + Future settingsUpdateReq( + V value, + SettingsUpdateRequest? onChange, + ) async { + if (onChange == null) return; + final result = await AppUtils.guard( + () => onChange(value), + ref.read(toastProvider), + ); + if (result != null && result is SettingsDto) { + ref.watch(settingsProvider.notifier).updateState(result); + } + } + + return switch (type) { + TextFieldProp( + hintText: String? hintText, + value: String? value, + onChanged: SettingsUpdateRequest? onChange, + canObscure: bool canObscure, + ) => + TextFieldDialog( + title: title, + titleWidget: titleWidget, + hintText: hintText, + value: value, + onChanged: (value) => settingsUpdateReq(value, onChange), + canObscure: canObscure, + description: description, + ), + NumberPickerProp( + min: int min, + max: int max, + value: int? value, + onChanged: SettingsUpdateRequest? onChange + ) => + NumberPickerDialog( + title: title, + titleWidget: titleWidget, + max: max, + min: min, + onChanged: (value) => settingsUpdateReq(value, onChange), + value: value, + description: description, + ), + NumberSliderProp( + min: int min, + max: int max, + value: int? value, + onChanged: SettingsUpdateRequest? onChange + ) => + NumberSliderDialog( + title: title, + titleWidget: titleWidget, + max: max, + min: min, + onChanged: (value) => settingsUpdateReq(value, onChange), + value: value, + description: description, + ), + _ => throw UnimplementedError(), + }; + } +} diff --git a/lib/src/widgets/input_popup/settings_prop_tile.dart b/lib/src/widgets/input_popup/settings_prop_tile.dart new file mode 100644 index 00000000..ded968f5 --- /dev/null +++ b/lib/src/widgets/input_popup/settings_prop_tile.dart @@ -0,0 +1,132 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; + +import '../../features/settings/controller/server_controller.dart'; +import '../../features/settings/domain/settings/settings.dart'; +import '../../utils/extensions/custom_extensions.dart'; +import '../../utils/misc/app_utils.dart'; +import '../../utils/misc/toast/toast.dart'; +import 'domain/settings_prop_type.dart'; +import 'settings_prop_pop_up.dart'; + +class SettingsPropTile extends StatelessWidget { + const SettingsPropTile({ + super.key, + this.title, + this.titleWidget, + this.subtitle, + this.description, + this.leading, + this.trailing, + this.onTap, + required this.type, + }) : assert(title != null || titleWidget != null); + final String? title; + final Widget? titleWidget; + final Widget? leading; + final Widget? trailing; + final String? subtitle; + final String? description; + + final SettingsPropType type; + final VoidCallback? onTap; + + String? get subtitleString { + if (subtitle.isNotBlank) { + return subtitle; + } else if (description.isNotBlank) { + return description; + } + return null; + } + + @override + Widget build(context) { + if (type is SwitchProp) { + return SwitchSettingsPropTile( + subtitleString: subtitleString, + title: title, + leading: leading, + titleWidget: titleWidget, + switchProp: type as SwitchProp, + ); + } + return Tooltip( + message: subtitleString ?? title, + child: ListTile( + leading: leading, + trailing: trailing, + title: titleWidget ?? Text(title!), + subtitle: subtitleString.isNotBlank + ? Text( + subtitleString ?? "", + overflow: TextOverflow.ellipsis, + ) + : null, + onTap: AppUtils.returnIf( + onTap != null, + onTap, + AppUtils.returnIf( + type.onChanged != null, + () => showDialog( + context: context, + builder: (context) => SettingsPropPopUp( + title: title, + description: description, + type: type, + ), + ), + ), + ), + ), + ); + } +} + +class SwitchSettingsPropTile extends ConsumerWidget { + const SwitchSettingsPropTile({ + super.key, + required this.subtitleString, + required this.title, + required this.leading, + required this.titleWidget, + required this.switchProp, + }); + + final String? subtitleString; + final String? title; + final Widget? leading; + final Widget? titleWidget; + final SwitchProp switchProp; + + @override + Widget build(context, ref) { + return Tooltip( + message: subtitleString ?? title, + child: SwitchListTile( + controlAffinity: ListTileControlAffinity.trailing, + secondary: leading, + title: titleWidget ?? Text(title!), + value: switchProp.value.ifNull(), + subtitle: subtitleString.isNotBlank + ? Text( + subtitleString ?? "", + overflow: TextOverflow.ellipsis, + ) + : null, + onChanged: AppUtils.returnIf( + switchProp.onChanged != null, + (val) async { + final result = await AppUtils.guard( + () => switchProp.onChanged!(val), + ref.read(toastProvider), + ); + if (result != null && result is SettingsDto) { + ref.watch(settingsProvider.notifier).updateState(result); + } + }, + ), + ), + ); + } +} diff --git a/lib/src/widgets/input_popup/widgets/number_picker_dialog.dart b/lib/src/widgets/input_popup/widgets/number_picker_dialog.dart new file mode 100644 index 00000000..3da392b8 --- /dev/null +++ b/lib/src/widgets/input_popup/widgets/number_picker_dialog.dart @@ -0,0 +1,66 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:gap/gap.dart'; + +import '../../../utils/extensions/custom_extensions.dart'; +import '../../../utils/misc/app_utils.dart'; +import '../../number_picker/number_picker.dart'; + +class NumberPickerDialog extends HookWidget { + const NumberPickerDialog({ + super.key, + this.title, + this.titleWidget, + this.value, + required this.min, + required this.max, + this.onChanged, + this.description, + }) : assert(titleWidget != null || title != null); + + final String? title; + final Widget? titleWidget; + final int min; + final int max; + final int? value; + final AsyncValueSetter? onChanged; + final String? description; + @override + Widget build(BuildContext context) { + final valueState = useState(value.ifNull(min)); + return AlertDialog( + title: titleWidget ?? Text(title!, overflow: TextOverflow.ellipsis), + content: AppUtils.wrapChildIf( + condition: description.isNotBlank, + wrap: (child) => Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text(description.ifBlank()), + const Gap(16), + child, + ], + ), + child: NumberPicker( + max: max, + min: min, + onChanged: (value) => valueState.value = value, + value: valueState.value, + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: Text(context.l10n.cancel), + ), + TextButton( + onPressed: () async { + await onChanged?.call(valueState.value); + if (context.mounted) Navigator.pop(context); + }, + child: Text(context.l10n.save), + ), + ], + ); + } +} diff --git a/lib/src/widgets/input_popup/widgets/number_slider_dialog.dart b/lib/src/widgets/input_popup/widgets/number_slider_dialog.dart new file mode 100644 index 00000000..df05cb96 --- /dev/null +++ b/lib/src/widgets/input_popup/widgets/number_slider_dialog.dart @@ -0,0 +1,69 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:gap/gap.dart'; + +import '../../../utils/extensions/custom_extensions.dart'; +import '../../../utils/misc/app_utils.dart'; +import '../../async_buttons/async_text_button.dart'; +import '../../popup_widgets/slider_popup.dart'; + +class NumberSliderDialog extends HookWidget { + const NumberSliderDialog({ + super.key, + this.title, + this.titleWidget, + this.value, + required this.min, + required this.max, + this.onChanged, + this.description, + }) : assert(titleWidget != null || title != null); + + final String? title; + final Widget? titleWidget; + + final int min; + final int max; + final int? value; + final AsyncValueSetter? onChanged; + final String? description; + + @override + Widget build(BuildContext context) { + final valueState = useState(value.ifNull(min)); + return AlertDialog( + title: titleWidget ?? Text(title!, overflow: TextOverflow.ellipsis), + content: AppUtils.wrapChildIf( + condition: description.isNotBlank, + wrap: (child) => Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text(description.ifBlank()), + const Gap(16), + child, + ], + ), + child: NumberSlider( + max: max, + min: min, + onChanged: (value) => valueState.value = value, + value: valueState.value, + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: Text(context.l10n.cancel), + ), + AsyncTextButton( + onPressed: () async { + await onChanged?.call(valueState.value); + if (context.mounted) Navigator.pop(context); + }, + child: Text(context.l10n.save), + ), + ], + ); + } +} diff --git a/lib/src/widgets/input_popup/widgets/text_field_dialog.dart b/lib/src/widgets/input_popup/widgets/text_field_dialog.dart new file mode 100644 index 00000000..bfd05dff --- /dev/null +++ b/lib/src/widgets/input_popup/widgets/text_field_dialog.dart @@ -0,0 +1,81 @@ +import 'dart:developer'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:gap/gap.dart'; + +import '../../../utils/extensions/custom_extensions.dart'; +import '../../../utils/misc/app_utils.dart'; +import '../../async_buttons/async_text_button.dart'; + +class TextFieldDialog extends HookWidget { + const TextFieldDialog({ + super.key, + this.title, + this.titleWidget, + this.hintText, + this.value, + this.onChanged, + this.description, + this.canObscure = false, + }) : assert(titleWidget != null || title != null); + + final String? title; + final Widget? titleWidget; + final String? value; + final String? hintText; + final String? description; + final AsyncValueSetter? onChanged; + final bool canObscure; + @override + Widget build(BuildContext context) { + final controller = useTextEditingController(text: value.ifBlank()); + final isObscured = useState(canObscure); + log(description.ifBlank()); + return AlertDialog( + title: titleWidget ?? Text(title!, overflow: TextOverflow.ellipsis), + content: AppUtils.wrapChildIf( + condition: description.isNotBlank, + wrap: (child) => Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text(description.ifBlank()), + const Gap(16), + child, + ], + ), + child: TextField( + controller: controller, + autofocus: true, + obscureText: isObscured.value, + decoration: InputDecoration( + hintText: hintText, + border: const OutlineInputBorder(), + suffixIcon: canObscure + ? IconButton( + icon: isObscured.value + ? const Icon(Icons.visibility_rounded) + : const Icon(Icons.visibility_off_rounded), + onPressed: () => isObscured.value = !isObscured.value, + ) + : null, + ), + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: Text(context.l10n.cancel), + ), + AsyncTextButton( + onPressed: () async { + await onChanged?.call(controller.text); + if (context.mounted) Navigator.pop(context, controller.text); + }, + child: Text(context.l10n.save), + ), + ], + ); + } +} diff --git a/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart b/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart index b7dced7a..39a1868d 100644 --- a/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart +++ b/lib/src/widgets/manga_cover/grid/manga_cover_grid_tile.dart @@ -76,7 +76,7 @@ class MangaCoverGridTile extends StatelessWidget { contentPadding: const EdgeInsets.symmetric(horizontal: 8), dense: true, title: Text( - (manga.title ?? manga.author ?? ""), + manga.title, overflow: TextOverflow.ellipsis, maxLines: 2, ), @@ -92,7 +92,8 @@ class MangaCoverGridTile extends StatelessWidget { boxShadow: showDarkOverlay ? [ BoxShadow( - color: context.theme.canvasColor.withOpacity(.5), + color: context.theme.canvasColor + .withValues(alpha: .5), ) ] : null, @@ -101,9 +102,9 @@ class MangaCoverGridTile extends StatelessWidget { begin: Alignment.center, end: Alignment.bottomCenter, colors: [ - context.theme.canvasColor.withOpacity(0), - context.theme.canvasColor.withOpacity(0.4), - context.theme.canvasColor.withOpacity(0.9), + context.theme.canvasColor.withValues(alpha: 0), + context.theme.canvasColor.withValues(alpha: 0.4), + context.theme.canvasColor.withValues(alpha: 0.9), ], ) : null, diff --git a/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart b/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart index 57d65aac..b2a01f7d 100644 --- a/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart +++ b/lib/src/widgets/manga_cover/list/manga_cover_descriptive_list_tile.dart @@ -7,8 +7,8 @@ import 'package:flutter/material.dart'; import '../../../constants/app_sizes.dart'; +import '../../../constants/enum.dart'; import '../../../features/manga_book/domain/manga/manga_model.dart'; - import '../../../utils/extensions/custom_extensions.dart'; import '../grid/manga_cover_grid_tile.dart'; import '../widgets/manga_badges.dart'; @@ -33,7 +33,7 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { @override Widget build(BuildContext context) { final sourceName = - " • ${manga.source?.displayName ?? context.l10n!.unknownSource}"; + " • ${manga.source?.displayName ?? context.l10n.unknownSource}"; return InkWell( onTap: onPressed, onLongPress: onLongPress, @@ -65,7 +65,7 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { ? () => onTitleClicked!(manga.title) : null, child: Text( - (manga.title ?? context.l10n!.unknownManga), + manga.title, style: context.textTheme.titleLarge, overflow: TextOverflow.ellipsis, maxLines: 2, @@ -75,7 +75,7 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { Padding( padding: const EdgeInsets.symmetric(vertical: 2.0), child: Text( - manga.author ?? context.l10n!.unknownAuthor, + manga.author ?? context.l10n.unknownAuthor, overflow: TextOverflow.ellipsis, style: context.textTheme.bodySmall, ), @@ -83,14 +83,14 @@ class MangaCoverDescriptiveListTile extends StatelessWidget { Wrap( crossAxisAlignment: WrapCrossAlignment.center, children: [ - if (manga.status != null) ...[ + ...[ Icon( - manga.status!.icon, + MangaStatus.fromJson(manga.status.name).icon, size: 16, color: context.textTheme.bodySmall?.color, ), Text( - " ${manga.status!.toLocale(context)}", + " ${MangaStatus.fromJson(manga.status.name).toLocale(context)}", style: context.textTheme.bodySmall, ), ], diff --git a/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart b/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart index e8f7f729..eb9a6632 100644 --- a/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart +++ b/lib/src/widgets/manga_cover/list/manga_cover_list_tile.dart @@ -47,7 +47,7 @@ class MangaCoverListTile extends StatelessWidget { child: Padding( padding: KEdgeInsets.h8.size, child: Text( - (manga.title ?? manga.author ?? ""), + manga.title, overflow: TextOverflow.ellipsis, maxLines: 3, ), diff --git a/lib/src/widgets/manga_cover/providers/manga_cover_providers.g.dart b/lib/src/widgets/manga_cover/providers/manga_cover_providers.g.dart index c546e7f5..70229f1e 100644 --- a/lib/src/widgets/manga_cover/providers/manga_cover_providers.g.dart +++ b/lib/src/widgets/manga_cover/providers/manga_cover_providers.g.dart @@ -38,4 +38,4 @@ final unreadBadgeProvider = typedef _$UnreadBadge = AutoDisposeNotifier; // ignore_for_file: type=lint -// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/src/widgets/manga_cover/widgets/manga_chips.dart b/lib/src/widgets/manga_cover/widgets/manga_chips.dart index 78741d8c..b9ee0f66 100644 --- a/lib/src/widgets/manga_cover/widgets/manga_chips.dart +++ b/lib/src/widgets/manga_cover/widgets/manga_chips.dart @@ -31,7 +31,7 @@ class MangaChipsRow extends ConsumerWidget { children: [ if (!showCountBadges && (manga.inLibrary.ifNull())) MangaChip( - text: context.l10n!.inLibrary, + text: context.l10n.inLibrary, color: context.theme.colorScheme.primary, textColor: context.theme.colorScheme.onPrimary, ), @@ -41,18 +41,18 @@ class MangaChipsRow extends ConsumerWidget { children: [ if (manga.unreadCount.isGreaterThan(0) && unreadBadge) MangaChip( - text: context.l10n!.nameCountDisplay( + text: context.l10n.nameCountDisplay( manga.unreadCount.getValueOnNullOrNegative(), - context.l10n!.unread, + context.l10n.unread, ), color: context.theme.colorScheme.primary, textColor: context.theme.colorScheme.onPrimary, ), if (manga.downloadCount.isGreaterThan(0) && downloadedBadge) MangaChip( - text: context.l10n!.nameCountDisplay( + text: context.l10n.nameCountDisplay( manga.downloadCount.getValueOnNullOrNegative(), - context.l10n!.downloaded, + context.l10n.downloaded, ), color: context.theme.colorScheme.tertiary, textColor: context.theme.colorScheme.onTertiary, diff --git a/lib/src/widgets/number_picker/number_picker.dart b/lib/src/widgets/number_picker/number_picker.dart new file mode 100644 index 00000000..cdacac16 --- /dev/null +++ b/lib/src/widgets/number_picker/number_picker.dart @@ -0,0 +1,96 @@ +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import '../../utils/extensions/custom_extensions.dart'; +import '../../utils/misc/app_utils.dart'; +import '../../utils/misc/number_range_formatter.dart'; + +class NumberPicker extends HookWidget { + const NumberPicker({ + super.key, + required this.min, + required this.max, + required this.value, + required this.onChanged, + this.textFieldWidth = 24, + }) : assert(min >= 0); + + final int min; + final int max; + final int value; + final ValueChanged onChanged; + final double textFieldWidth; + + int getValidValue(String? value) { + int intValue = int.tryParse(value.ifNull()).ifNull(); + intValue = math.max(intValue, min); + intValue = math.min(intValue, max); + return (intValue); + } + + @override + Widget build(BuildContext context) { + final controller = useTextEditingController(text: value.toString()); + final focusNode = useFocusNode(); + useListenable(focusNode); + + useEffect(() { + if (!focusNode.hasFocus) { + Future.microtask(() { + final newValue = getValidValue(controller.text); + onChanged(newValue); + controller.text = newValue.toString(); + }); + } + return null; + }, [focusNode.hasFocus]); + useEffect(() { + controller.text = value.toString(); + return null; + }, [value]); + return Card( + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(24)), + child: Row( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + IconButton( + icon: const Icon(Icons.remove_rounded), + onPressed: + AppUtils.returnIf(value > min, () => onChanged(value - 1)), + ), + Expanded( + child: Container( + padding: const EdgeInsets.only(bottom: 5), + child: Builder(builder: (context) { + return TextField( + controller: controller, + focusNode: focusNode, + inputFormatters: [ + FilteringTextInputFormatter.digitsOnly, + NumberRangeFormatter(maxValue: max) + ], + keyboardType: TextInputType.number, + textAlign: TextAlign.center, + decoration: const InputDecoration( + border: InputBorder.none, + contentPadding: EdgeInsets.zero, + isDense: true, + ), + ); + }), + ), + ), + IconButton( + icon: const Icon(Icons.add_rounded), + onPressed: + AppUtils.returnIf(value < max, () => onChanged(value + 1)), + ), + ], + ), + ); + } +} diff --git a/lib/src/widgets/number_picker/number_picker_with_label.dart b/lib/src/widgets/number_picker/number_picker_with_label.dart new file mode 100644 index 00000000..f155d94e --- /dev/null +++ b/lib/src/widgets/number_picker/number_picker_with_label.dart @@ -0,0 +1,45 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; + +import 'number_picker.dart'; + +class NumberPickerWithLabel extends HookWidget { + const NumberPickerWithLabel({ + super.key, + required this.label, + required this.min, + required this.max, + required this.value, + required this.onChanged, + this.textFieldWidth = 24, + }); + final String label; + + final int min; + final int max; + final int value; + final ValueChanged onChanged; + final double textFieldWidth; + + @override + Widget build(BuildContext context) { + useEffect(() { + Future.microtask(() => onChanged(value)); + return null; + }, []); + return Row( + children: [ + Expanded( + child: Text(label), + ), + NumberPicker( + value: value, + min: min, + max: max, + onChanged: onChanged, + textFieldWidth: textFieldWidth, + ), + ], + ); + } +} diff --git a/lib/src/widgets/multi_select_popup.dart b/lib/src/widgets/popup_widgets/multi_select_popup.dart similarity index 96% rename from lib/src/widgets/multi_select_popup.dart rename to lib/src/widgets/popup_widgets/multi_select_popup.dart index ff88be4d..16377fd3 100644 --- a/lib/src/widgets/multi_select_popup.dart +++ b/lib/src/widgets/popup_widgets/multi_select_popup.dart @@ -7,8 +7,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; -import '../constants/app_sizes.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; import 'pop_button.dart'; class MultiSelectPopup extends HookWidget { @@ -66,7 +66,7 @@ class MultiSelectPopup extends HookWidget { .toList(); onChange(selected); }, - child: Text(context.l10n!.save), + child: Text(context.l10n.save), ) ], ); diff --git a/lib/src/widgets/pop_button.dart b/lib/src/widgets/popup_widgets/pop_button.dart similarity index 83% rename from lib/src/widgets/pop_button.dart rename to lib/src/widgets/popup_widgets/pop_button.dart index eea34d55..45d98515 100644 --- a/lib/src/widgets/pop_button.dart +++ b/lib/src/widgets/popup_widgets/pop_button.dart @@ -6,7 +6,7 @@ import 'package:flutter/material.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../utils/extensions/custom_extensions.dart'; class PopButton extends StatelessWidget { const PopButton({super.key, this.popText}); @@ -15,7 +15,7 @@ class PopButton extends StatelessWidget { Widget build(BuildContext context) { return TextButton( onPressed: () => Navigator.pop(context), - child: Text(popText ?? context.l10n!.cancel), + child: Text(popText ?? context.l10n.cancel), ); } } diff --git a/lib/src/widgets/radio_list_popup.dart b/lib/src/widgets/popup_widgets/radio_list_popup.dart similarity index 96% rename from lib/src/widgets/radio_list_popup.dart rename to lib/src/widgets/popup_widgets/radio_list_popup.dart index 82e8a572..50e0dd5c 100644 --- a/lib/src/widgets/radio_list_popup.dart +++ b/lib/src/widgets/popup_widgets/radio_list_popup.dart @@ -6,8 +6,8 @@ import 'package:flutter/material.dart'; -import '../constants/app_sizes.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; import 'pop_button.dart'; class RadioListPopup extends StatelessWidget { diff --git a/lib/src/widgets/popup_widgets/slider_popup.dart b/lib/src/widgets/popup_widgets/slider_popup.dart new file mode 100644 index 00000000..6382c7b0 --- /dev/null +++ b/lib/src/widgets/popup_widgets/slider_popup.dart @@ -0,0 +1,119 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:gap/gap.dart'; + +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; +import '../async_buttons/async_elevated_button.dart'; +import 'pop_button.dart'; + +class SliderPopup extends HookWidget { + const SliderPopup({ + super.key, + required this.title, + this.subtitle, + required this.initialValue, + required this.onChange, + this.min = 0, + this.max = 100, + }); + + final String title; + final String? subtitle; + final int initialValue; + final AsyncValueSetter onChange; + final int min; + final int max; + @override + Widget build(context) { + final slideValue = useState(initialValue); + return AlertDialog( + contentPadding: KEdgeInsets.a16.size, + title: Text(title), + content: Column( + mainAxisSize: MainAxisSize.min, + children: [ + if (subtitle.isNotBlank) ...[ + Padding(padding: KEdgeInsets.v4.size, child: Text(subtitle!)), + const Gap(8), + ], + NumberSlider( + value: slideValue.value, + onChanged: (value) => slideValue.value = value, + min: min, + max: max, + ), + ], + ), + actions: [ + const PopButton(), + AsyncElevatedButton( + onPressed: () => onChange(slideValue.value), + child: Text(context.l10n.save), + ) + ], + ); + } +} + +class NumberSlider extends StatelessWidget { + const NumberSlider({ + super.key, + required this.value, + required this.onChanged, + required this.min, + required this.max, + }); + + final int value; + final ValueChanged onChanged; + final int min; + final int max; + + @override + Widget build(BuildContext context) { + return Padding( + padding: KEdgeInsets.h8.size, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + value.compact(returnNullOnZero: false).ifNull('0'), + style: const TextStyle(fontSize: 22), + ), + Padding( + padding: KEdgeInsets.v8.size, + child: Row( + children: [ + IconButton( + onPressed: value != min ? () => onChanged(value - 1) : null, + icon: const Icon(Icons.remove_rounded), + ), + Expanded( + child: SliderTheme( + data: const SliderThemeData( + showValueIndicator: ShowValueIndicator.always, + ), + child: Slider( + value: value.toDouble(), + onChanged: (value) => onChanged(value.toInt()), + min: min.toDouble(), + max: max.toDouble(), + label: value.compact(), + secondaryTrackValue: value.toDouble(), + ), + ), + ), + IconButton( + onPressed: value != max ? () => onChanged(value + 1) : null, + icon: const Icon(Icons.add_rounded), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/lib/src/widgets/text_field_popup.dart b/lib/src/widgets/popup_widgets/text_field_popup.dart similarity index 82% rename from lib/src/widgets/text_field_popup.dart rename to lib/src/widgets/popup_widgets/text_field_popup.dart index ab05d073..f0637bed 100644 --- a/lib/src/widgets/text_field_popup.dart +++ b/lib/src/widgets/popup_widgets/text_field_popup.dart @@ -4,11 +4,13 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; -import '../constants/app_sizes.dart'; -import '../utils/extensions/custom_extensions.dart'; +import '../../constants/app_sizes.dart'; +import '../../utils/extensions/custom_extensions.dart'; +import '../async_buttons/async_elevated_button.dart'; import 'pop_button.dart'; class TextFieldPopup extends HookWidget { @@ -23,7 +25,7 @@ class TextFieldPopup extends HookWidget { final String title; final String? subtitle; final String? initialValue; - final ValueChanged onChange; + final AsyncValueSetter onChange; @override Widget build(BuildContext context) { @@ -61,11 +63,9 @@ class TextFieldPopup extends HookWidget { ), actions: [ const PopButton(), - ElevatedButton( - onPressed: () { - onChange(textEditingController.text); - }, - child: Text(context.l10n!.save), + AsyncElevatedButton( + onPressed: () => onChange(textEditingController.text), + child: Text(context.l10n.save), ) ], ); diff --git a/lib/src/widgets/search_field.dart b/lib/src/widgets/search_field.dart index 4630118f..7d4582e3 100644 --- a/lib/src/widgets/search_field.dart +++ b/lib/src/widgets/search_field.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import '../constants/app_sizes.dart'; - import '../utils/extensions/custom_extensions.dart'; class SearchField extends HookWidget { @@ -46,7 +45,7 @@ class SearchField extends HookWidget { return SizedBox( width: context.isLargeTablet ? context.widthScale(scale: .3) : null, child: Padding( - padding: KEdgeInsets.h16v8.size, + padding: KEdgeInsets.h16v4.size, child: TextField( onChanged: onChanged, autofocus: autofocus, @@ -55,7 +54,7 @@ class SearchField extends HookWidget { decoration: InputDecoration( isDense: true, border: const OutlineInputBorder(), - labelText: hintText ?? context.l10n!.search, + labelText: hintText ?? context.l10n.search, suffixIcon: closeIcon, ), ), diff --git a/lib/src/widgets/section_title.dart b/lib/src/widgets/section_title.dart new file mode 100644 index 00000000..aa935f4d --- /dev/null +++ b/lib/src/widgets/section_title.dart @@ -0,0 +1,18 @@ +import 'package:flutter/material.dart'; + +import '../constants/app_sizes.dart'; +import '../utils/extensions/custom_extensions.dart'; + +class SectionTitle extends StatelessWidget { + const SectionTitle({super.key, required this.title}); + final String title; + @override + Widget build(BuildContext context) => Padding( + padding: KEdgeInsets.h16.size + KEdgeInsets.v4.size, + child: Text( + title, + style: context.textTheme.titleSmall + ?.copyWith(color: context.theme.primaryColor), + ), + ); +} diff --git a/lib/src/widgets/server_image.dart b/lib/src/widgets/server_image.dart index 4a494e4a..e0b90833 100644 --- a/lib/src/widgets/server_image.dart +++ b/lib/src/widgets/server_image.dart @@ -15,9 +15,9 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../constants/app_sizes.dart'; import '../constants/endpoints.dart'; import '../constants/enum.dart'; +import '../features/settings/presentation/server/widget/client/server_port_tile/server_port_tile.dart'; +import '../features/settings/presentation/server/widget/client/server_url_tile/server_url_tile.dart'; import '../features/settings/presentation/server/widget/credential_popup/credentials_popup.dart'; -import '../features/settings/widgets/server_port_tile/server_port_tile.dart'; -import '../features/settings/widgets/server_url_tile/server_url_tile.dart'; import '../global_providers/global_providers.dart'; import '../utils/extensions/custom_extensions.dart'; import '../utils/misc/app_utils.dart'; @@ -73,7 +73,7 @@ class ServerImage extends HookConsumerWidget { finalProgressIndicatorBuilder( BuildContext context, String url, DownloadProgress progress) => - AppUtils.wrapIf( + AppUtils.wrapOn( wrapper, progressIndicatorBuilder?.call(context, url, progress) ?? const CenterSorayomiShimmerIndicator(), @@ -81,7 +81,7 @@ class ServerImage extends HookConsumerWidget { Widget errorWidget(BuildContext context, String error, stackTrace) { if (showReloadButton) { - return AppUtils.wrapIf( + return AppUtils.wrapOn( wrapper, Padding( padding: KEdgeInsets.a8.size, @@ -99,7 +99,7 @@ class ServerImage extends HookConsumerWidget { onPressed: () { key.value = (UniqueKey()); }, - child: Text(context.l10n!.reload), + child: Text(context.l10n.reload), ), ], ), @@ -107,7 +107,7 @@ class ServerImage extends HookConsumerWidget { ), ); } else { - return AppUtils.wrapIf( + return AppUtils.wrapOn( wrapper, const Icon( Icons.broken_image_rounded, diff --git a/lib/src/widgets/shell/big_screen_navigation_bar.dart b/lib/src/widgets/shell/big_screen_navigation_bar.dart index 51db62b5..15a16896 100644 --- a/lib/src/widgets/shell/big_screen_navigation_bar.dart +++ b/lib/src/widgets/shell/big_screen_navigation_bar.dart @@ -12,9 +12,13 @@ import '../../routes/router_config.dart'; import '../../utils/extensions/custom_extensions.dart'; class BigScreenNavigationBar extends StatelessWidget { - const BigScreenNavigationBar({super.key, required this.selectedScreen}); + const BigScreenNavigationBar( + {super.key, + required this.selectedIndex, + required this.onDestinationSelected}); - final String selectedScreen; + final int selectedIndex; + final ValueChanged onDestinationSelected; NavigationRailDestination getNavigationRailDestination( BuildContext context, NavigationBarData data) { @@ -30,19 +34,19 @@ class BigScreenNavigationBar extends StatelessWidget { final Widget leadingIcon; if (context.isDesktop) { leadingIcon = TextButton.icon( - onPressed: () => const AboutRoute().push(context), + onPressed: () => const AboutRoute().go(context), icon: ImageIcon( AssetImage(Assets.icons.darkIcon.path), size: 48, ), - label: Text(context.l10n!.appTitle), + label: Text(context.l10n.appTitle), style: TextButton.styleFrom( foregroundColor: context.textTheme.bodyLarge?.color, ), ); } else { leadingIcon = IconButton( - onPressed: () => const AboutRoute().push(context), + onPressed: () => const AboutRoute().go(context), icon: ImageIcon( AssetImage(Assets.icons.darkIcon.path), size: 48, @@ -62,9 +66,8 @@ class BigScreenNavigationBar extends StatelessWidget { .map( (e) => getNavigationRailDestination(context, e)) .toList(), - selectedIndex: NavigationBarData.indexWherePathOrZero(selectedScreen), - onDestinationSelected: (value) => - NavigationBarData.navList[value].go(context), + selectedIndex: selectedIndex, + onDestinationSelected: onDestinationSelected, ); } } diff --git a/lib/src/widgets/shell/shell_screen.dart b/lib/src/widgets/shell/navigation_shell_screen.dart similarity index 54% rename from lib/src/widgets/shell/shell_screen.dart rename to lib/src/widgets/shell/navigation_shell_screen.dart index f3d4e66f..74ec8ba6 100644 --- a/lib/src/widgets/shell/shell_screen.dart +++ b/lib/src/widgets/shell/navigation_shell_screen.dart @@ -6,61 +6,61 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; - +import 'package:go_router/go_router.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:pub_semver/pub_semver.dart'; import '../../features/about/data/about_repository.dart'; import '../../features/about/presentation/about/controllers/about_controller.dart'; import '../../features/about/presentation/about/widget/app_update_dialog.dart'; - import '../../utils/extensions/custom_extensions.dart'; import '../../utils/misc/toast/toast.dart'; import 'big_screen_navigation_bar.dart'; import 'small_screen_navigation_bar.dart'; -class ShellScreen extends HookConsumerWidget { - const ShellScreen({ +class NavigationShellScreen extends HookConsumerWidget { + const NavigationShellScreen({ super.key, required this.child, }); - final Widget child; + final StatefulNavigationShell child; Future checkForUpdate({ required String? title, required BuildContext context, required Future> Function() updateCallback, - required Toast toast, + required Toast? toast, }) async { final AsyncValue versionResult = await updateCallback(); - toast.close(); - if (context.mounted) { - versionResult.whenOrNull( - data: (version) { - if (version != null) { - appUpdateDialog( - title: title ?? context.l10n!.appTitle, - newRelease: "v${version.canonicalizedVersion}", - context: context, - toast: toast, - ); - } - }, - ); - } - return; + toast?.close(); + if (!context.mounted) return; + versionResult.whenOrNull( + data: (version) { + if (version != null) { + appUpdateDialog( + title: title ?? context.l10n.appTitle, + newRelease: "v${version.canonicalizedVersion}", + context: context, + toast: toast, + ); + } + }, + ); } @override Widget build(BuildContext context, WidgetRef ref) { useEffect(() { Future.microtask( - () => checkForUpdate( - title: ref.read(packageInfoProvider).appName, - context: context, - updateCallback: ref.read(aboutRepositoryProvider).checkUpdate, - toast: ref.read(toastProvider(context)), - ), + () async { + if (!context.mounted) return; + await checkForUpdate( + title: ref.read(packageInfoProvider).appName, + context: context, + updateCallback: ref.read(aboutRepositoryProvider).checkUpdate, + toast: ref.read(toastProvider), + ); + }, ); return; }, []); @@ -68,7 +68,13 @@ class ShellScreen extends HookConsumerWidget { return Scaffold( body: Row( children: [ - BigScreenNavigationBar(selectedScreen: context.location), + BigScreenNavigationBar( + selectedIndex: child.currentIndex, + onDestinationSelected: (index) => child.goBranch( + index, + initialLocation: index == child.currentIndex, + ), + ), Expanded(child: child), ], ), @@ -77,8 +83,13 @@ class ShellScreen extends HookConsumerWidget { return Scaffold( body: child, floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, - bottomNavigationBar: - SmallScreenNavigationBar(selectedScreen: context.location), + bottomNavigationBar: SmallScreenNavigationBar( + selectedIndex: child.currentIndex, + onDestinationSelected: (index) => child.goBranch( + index, + initialLocation: index == child.currentIndex, + ), + ), ); } } diff --git a/lib/src/widgets/shell/small_screen_navigation_bar.dart b/lib/src/widgets/shell/small_screen_navigation_bar.dart index e98a967b..aea37a8c 100644 --- a/lib/src/widgets/shell/small_screen_navigation_bar.dart +++ b/lib/src/widgets/shell/small_screen_navigation_bar.dart @@ -9,9 +9,14 @@ import 'package:flutter/material.dart'; import '../../constants/navigation_bar_data.dart'; class SmallScreenNavigationBar extends StatelessWidget { - const SmallScreenNavigationBar({super.key, required this.selectedScreen}); + const SmallScreenNavigationBar({ + super.key, + required this.selectedIndex, + required this.onDestinationSelected, + }); - final String selectedScreen; + final int selectedIndex; + final void Function(int) onDestinationSelected; NavigationDestination getNavigationDestination( BuildContext context, NavigationBarData data) { @@ -27,14 +32,13 @@ class SmallScreenNavigationBar extends StatelessWidget { Widget build(BuildContext context) { return NavigationBarTheme( data: NavigationBarThemeData( - labelTextStyle: MaterialStateProperty.all( + labelTextStyle: WidgetStateProperty.all( const TextStyle(overflow: TextOverflow.ellipsis), ), ), child: NavigationBar( - selectedIndex: NavigationBarData.indexWherePathOrZero(selectedScreen), - onDestinationSelected: (value) => - NavigationBarData.navList[value].go(context), + selectedIndex: selectedIndex, + onDestinationSelected: onDestinationSelected, destinations: NavigationBarData.navList .map( (e) => getNavigationDestination(context, e), diff --git a/linux/my_application.cc b/linux/my_application.cc index aec1c5ae..587576ce 100644 --- a/linux/my_application.cc +++ b/linux/my_application.cc @@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) { if (use_header_bar) { GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); gtk_widget_show(GTK_WIDGET(header_bar)); - gtk_header_bar_set_title(header_bar, "Tachidesk Sorayomi"); + gtk_header_bar_set_title(header_bar, "Sorayomi"); gtk_header_bar_set_show_close_button(header_bar, TRUE); gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); } else { - gtk_window_set_title(window, "Tachidesk Sorayomi"); + gtk_window_set_title(window, "Sorayomi"); } gtk_window_set_default_size(window, 1280, 720); diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 916bd8c6..24cc8d5a 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -9,7 +9,7 @@ import network_info_plus import package_info_plus import path_provider_foundation import shared_preferences_foundation -import sqflite +import sqflite_darwin import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 749bbfda..e9217e05 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -1,8 +1,5 @@ PODS: - FlutterMacOS (1.0.0) - - FMDB (2.7.5): - - FMDB/standard (= 2.7.5) - - FMDB/standard (2.7.5) - network_info_plus (0.0.1): - FlutterMacOS - package_info_plus (0.0.1): @@ -13,9 +10,9 @@ PODS: - shared_preferences_foundation (0.0.1): - Flutter - FlutterMacOS - - sqflite (0.0.2): + - sqflite_darwin (0.0.4): + - Flutter - FlutterMacOS - - FMDB (>= 2.7.5) - url_launcher_macos (0.0.1): - FlutterMacOS @@ -25,13 +22,9 @@ DEPENDENCIES: - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) - shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) - - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`) + - sqflite_darwin (from `Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin`) - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) -SPEC REPOS: - trunk: - - FMDB - EXTERNAL SOURCES: FlutterMacOS: :path: Flutter/ephemeral @@ -43,21 +36,20 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin shared_preferences_foundation: :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin - sqflite: - :path: Flutter/ephemeral/.symlinks/plugins/sqflite/macos + sqflite_darwin: + :path: Flutter/ephemeral/.symlinks/plugins/sqflite_darwin/darwin url_launcher_macos: :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos SPEC CHECKSUMS: FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a - network_info_plus: f4fbc7877ab7b3294500d9441dfa53cd54972d05 - package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce - path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c - shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 - sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea - url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 + network_info_plus: 21d1cd6a015ccb2fdff06a1fbfa88d54b4e92f61 + package_info_plus: f0052d280d17aa382b932f399edf32507174e870 + path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564 + shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7 + sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0 + url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673 PODFILE CHECKSUM: dac0ddf03d136db544afc27b87cc6c08492e67b9 -COCOAPODS: 1.14.3 +COCOAPODS: 1.16.2 diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index c6d22fcc..1c184f9d 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -55,7 +55,7 @@ /* Begin PBXFileReference section */ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* Tachidesk Sorayomi.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Tachidesk Sorayomi.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* Sorayomi.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Sorayomi.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; @@ -112,7 +112,7 @@ 33CC10EE2044A3C60003C045 /* Products */ = { isa = PBXGroup; children = ( - 33CC10ED2044A3C60003C045 /* Tachidesk Sorayomi.app */, + 33CC10ED2044A3C60003C045 /* Sorayomi.app */, ); name = Products; sourceTree = ""; @@ -192,7 +192,7 @@ ); name = Runner; productName = Runner; - productReference = 33CC10ED2044A3C60003C045 /* Tachidesk Sorayomi.app */; + productReference = 33CC10ED2044A3C60003C045 /* Sorayomi.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -202,7 +202,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 33CC10EC2044A3C60003C045 = { diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 50eff254..51785118 100644 --- a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ @@ -31,7 +31,7 @@ @@ -54,7 +54,7 @@ @@ -71,7 +71,7 @@ diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift index d53ef643..b3c17614 100644 --- a/macos/Runner/AppDelegate.swift +++ b/macos/Runner/AppDelegate.swift @@ -1,9 +1,13 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } } diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png index a0df7d3c..480d6d5b 100644 Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png index ff2f5be9..7aabadea 100644 Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png index 809a51cd..fdd65968 100644 Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png index ae9bbd6d..34983cb6 100644 Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png index b2da70c2..f6c802f1 100644 Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png index 73e7a69b..eb3cd34c 100644 Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png index 5b176e08..6e5a0d70 100644 Binary files a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/macos/Runner/Configs/AppInfo.xcconfig b/macos/Runner/Configs/AppInfo.xcconfig index 5a2fde6d..3c5e07ab 100644 --- a/macos/Runner/Configs/AppInfo.xcconfig +++ b/macos/Runner/Configs/AppInfo.xcconfig @@ -5,7 +5,7 @@ // 'flutter create' template. // The application's name. By default this is also the title of the Flutter window. -PRODUCT_NAME = Tachidesk Sorayomi +PRODUCT_NAME = Sorayomi // The application's bundle identifier PRODUCT_BUNDLE_IDENTIFIER = com.suwayomi.tachideskSorayomi diff --git a/pubspec.lock b/pubspec.lock index 3a34205f..4c72e3be 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,18 +5,23 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 + sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab" url: "https://pub.dev" source: hosted - version: "64.0.0" + version: "76.0.0" + _macros: + dependency: transitive + description: dart + source: sdk + version: "0.3.3" analyzer: dependency: transitive description: name: analyzer - sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" + sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e" url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.11.0" analyzer_plugin: dependency: transitive description: @@ -29,26 +34,26 @@ packages: dependency: transitive description: name: ansicolor - sha256: "8bf17a8ff6ea17499e40a2d2542c2f481cd7615760c6d34065cb22bfd22e6880" + sha256: "50e982d500bc863e1d703448afdbf9e5a72eb48840a4f766fa361ffd6877055f" url: "https://pub.dev" source: hosted - version: "2.0.2" + version: "2.0.3" archive: dependency: transitive description: name: archive - sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d" + sha256: "6199c74e3db4fbfbd04f66d739e72fe11c8a8957d5f219f1f4482dbde6420b5a" url: "https://pub.dev" source: hosted - version: "3.4.10" + version: "4.0.2" args: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6 url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.6.0" async: dependency: transitive description: @@ -69,52 +74,52 @@ packages: dependency: transitive description: name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" + sha256: cef23f1eda9b57566c81e2133d196f8e3df48f244b317368d65c5943d91148f0 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" build_config: dependency: transitive description: name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 + sha256: "4ae2de3e1e67ea270081eaee972e1bd8f027d459f249e0f1186730784c2e7e33" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" build_daemon: dependency: transitive description: name: build_daemon - sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" + sha256: "294a2edaf4814a378725bfe6358210196f5ea37af89ecd81bfa32960113d4948" url: "https://pub.dev" source: hosted - version: "4.0.1" + version: "4.0.3" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a" + sha256: "99d3980049739a985cf9b21f30881f46db3ebc62c5b8d5e60e27440876b1ba1e" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.4.3" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "581bacf68f89ec8792f5e5a0b2c4decd1c948e97ce659dc783688c8a88fbec21" + sha256: "74691599a5bc750dc96a6b4bfd48f7d9d66453eab04c7f4063134800d6a5c573" url: "https://pub.dev" source: hosted - version: "2.4.8" + version: "2.4.14" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185 + sha256: "22e3aa1c80e0ada3722fe5b63fd43d9c8990759d0a2cf489c8c5d7b2bdebc021" url: "https://pub.dev" source: hosted - version: "7.2.11" + version: "8.0.0" built_collection: - dependency: transitive + dependency: "direct main" description: name: built_collection sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" @@ -125,34 +130,42 @@ packages: dependency: transitive description: name: built_value - sha256: c9aabae0718ec394e5bc3c7272e6bb0dc0b32201a08fe185ec1d8401d3e39309 + sha256: "28a712df2576b63c6c005c465989a348604960c0958d28be5303ba9baa841ac2" url: "https://pub.dev" source: hosted - version: "8.8.1" + version: "8.9.3" + built_value_generator: + dependency: transitive + description: + name: built_value_generator + sha256: "6ba3effca656e7f88102142e7d62b71373504d654132ca2895896b3a7013e567" + url: "https://pub.dev" + source: hosted + version: "8.9.3" cached_network_image: dependency: "direct main" description: name: cached_network_image - sha256: "28ea9690a8207179c319965c13cd8df184d5ee721ae2ce60f398ced1219cea1f" + sha256: "7c1183e361e5c8b0a0f21a28401eecdbde252441106a9816400dd4c2b2424916" url: "https://pub.dev" source: hosted - version: "3.3.1" + version: "3.4.1" cached_network_image_platform_interface: dependency: "direct main" description: name: cached_network_image_platform_interface - sha256: "9e90e78ae72caa874a323d78fa6301b3fb8fa7ea76a8f96dc5b5bf79f283bf2f" + sha256: "35814b016e37fbdc91f7ae18c8caf49ba5c88501813f73ce8a07027a395e2829" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.1.1" cached_network_image_web: dependency: transitive description: name: cached_network_image_web - sha256: "42a835caa27c220d1294311ac409a43361088625a4f23c820b006dd9bffb3316" + sha256: "980842f4e8e2535b8dbd3d5ca0b1f0ba66bf61d14cc3a17a9b4788a3685ba062" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.3.1" characters: dependency: transitive description: @@ -169,22 +182,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.3" - ci: - dependency: transitive - description: - name: ci - sha256: "145d095ce05cddac4d797a158bc4cf3b6016d1fe63d8c3d2fbd7212590adca13" - url: "https://pub.dev" - source: hosted - version: "0.1.0" cli_util: dependency: transitive description: name: cli_util - sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c url: "https://pub.dev" source: hosted - version: "0.4.1" + version: "0.4.2" clock: dependency: transitive description: @@ -197,18 +202,18 @@ packages: dependency: transitive description: name: code_builder - sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 + sha256: "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e" url: "https://pub.dev" source: hosted - version: "4.10.0" + version: "4.10.1" collection: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.0" color: dependency: transitive description: @@ -221,58 +226,66 @@ packages: dependency: transitive description: name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 + url: "https://pub.dev" + source: hosted + version: "3.1.2" + cross_file: + dependency: transitive + description: + name: cross_file + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "0.3.4+2" crypto: dependency: transitive description: name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.6" csslib: dependency: transitive description: name: csslib - sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" + sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.2" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 url: "https://pub.dev" source: hosted - version: "1.0.6" - custom_lint: + version: "1.0.8" + custom_lint_core: dependency: transitive description: - name: custom_lint - sha256: dfb893ff17c83cf08676c6b64df11d3e53d80590978d7c1fb242afff3ba6dedb + name: custom_lint_core + sha256: "02450c3e45e2a6e8b26c4d16687596ab3c4644dd5792e3313aa9ceba5a49b7f5" url: "https://pub.dev" source: hosted - version: "0.5.8" - custom_lint_core: + version: "0.7.0" + custom_lint_visitor: dependency: transitive description: - name: custom_lint_core - sha256: "2b235be098d157e244f18ea905a15a18c16a205e30553888fac6544bbf52f03f" + name: custom_lint_visitor + sha256: bfe9b7a09c4775a587b58d10ebb871d4fe618237639b1e84d5ec62d7dfef25f9 url: "https://pub.dev" source: hosted - version: "0.5.8" + version: "1.0.0+6.11.0" dart_style: dependency: transitive description: name: dart_style - sha256: "40ae61a5d43feea6d24bd22c0537a6629db858963b99b4bc1c3db80676f32368" + sha256: "7856d364b589d1f08986e140938578ed36ed948581fbc3bc9aef1805039ac5ab" url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.3.7" dartx: dependency: transitive description: @@ -293,26 +306,42 @@ packages: dependency: "direct main" description: name: dio - sha256: "797e1e341c3dd2f69f2dad42564a6feff3bfb87187d05abb93b9609e6f1645c3" + sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260" url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "5.7.0" dio_cache_interceptor: dependency: "direct main" description: name: dio_cache_interceptor - sha256: fb7905c0d12075d8786a6b63bffd64ae062d053f682cfaf28d145a2686507308 + sha256: "1346705a2057c265014d7696e3e2318b560bfb00b484dac7f9b01e2ceaebb07d" url: "https://pub.dev" source: hosted - version: "3.5.0" + version: "3.5.1" dio_cache_interceptor_hive_store: dependency: "direct main" description: name: dio_cache_interceptor_hive_store - sha256: "449b36541216cb20543228081125ad2995eb9712ec35bd030d85663ea1761895" + sha256: "127cda24a485f5b6469172edd8b81fac819147318bedd654be167527c498bf55" url: "https://pub.dev" source: hosted - version: "3.2.2" + version: "4.0.0" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + extension_type_unions: + dependency: "direct main" + description: + name: extension_type_unions + sha256: "1b2ac85028437f06087bf4bfd40fc20df7d704c3d611090ae17db855b42e9130" + url: "https://pub.dev" + source: hosted + version: "1.0.10" fake_async: dependency: transitive description: @@ -321,54 +350,102 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.1" + ferry: + dependency: "direct main" + description: + name: ferry + sha256: cb7e80fdc81ee24f1861bc8d5c176590cc317ac7052718ed0305cda129afc9e6 + url: "https://pub.dev" + source: hosted + version: "0.16.1+2" + ferry_cache: + dependency: transitive + description: + name: ferry_cache + sha256: b1c5953cb9307634e51bb7611da0bb5569b4a3c6bd16f85575f137f6e14fa8f0 + url: "https://pub.dev" + source: hosted + version: "0.10.0+1" + ferry_exec: + dependency: transitive + description: + name: ferry_exec + sha256: f7fead110937ef05031d7f81d476a65c0a813193865f027d86ee3c89c21b755c + url: "https://pub.dev" + source: hosted + version: "0.7.0" + ferry_generator: + dependency: "direct dev" + description: + name: ferry_generator + sha256: b1a61148003ec16a3f169758f1096919609edfb40310f9af6790fb3606430253 + url: "https://pub.dev" + source: hosted + version: "0.12.0+2" + ferry_hive_store: + dependency: "direct main" + description: + name: ferry_hive_store + sha256: "8926610a0f36ab3f2f62b3709363bf0d788b09c649541765425de85b4a3ac992" + url: "https://pub.dev" + source: hosted + version: "0.6.0" + ferry_store: + dependency: transitive + description: + name: ferry_store + sha256: b9ff6a54bf9b45033b7090821433337f92d64dca8ed178ebe4881c97a37857f0 + url: "https://pub.dev" + source: hosted + version: "0.6.0" ffi: dependency: transitive description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.3" file: dependency: transitive description: name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "7.0.1" file_picker: dependency: "direct main" description: name: file_picker - sha256: "4e42aacde3b993c5947467ab640882c56947d9d27342a5b6f2895b23956954a6" + sha256: c904b4ab56d53385563c7c39d8e9fa9af086f91495dfc48717ad84a42c3cf204 url: "https://pub.dev" source: hosted - version: "6.1.1" + version: "8.1.7" fixnum: dependency: transitive description: name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" flex_color_scheme: dependency: "direct main" description: name: flex_color_scheme - sha256: "32914024a4f404d90ff449f58d279191675b28e7c08824046baf06826e99d984" + sha256: "09bea5d776f694c5a67f2229f2aa500cc7cce369322dc6500ab01cf9ad1b4e1a" url: "https://pub.dev" source: hosted - version: "7.3.1" + version: "8.1.0" flex_seed_scheme: dependency: transitive description: name: flex_seed_scheme - sha256: "29c12aba221eb8a368a119685371381f8035011d18de5ba277ad11d7dfb8657f" + sha256: d3ba3c5c92d2d79d45e94b4c6c71d01fac3c15017da1545880c53864da5dfeb0 url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "3.5.0" flutter: dependency: "direct main" description: flutter @@ -378,58 +455,58 @@ packages: dependency: "direct main" description: name: flutter_android_volume_keydown - sha256: f07fa3e4362262ccf32be6522c8445cbac5a046c18f82c8bd7ba11391d057e9a + sha256: bf7fed0be85541b939d9deb97b375cb12e6e703aa013754441318b0b9014e711 url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.1" flutter_cache_manager: dependency: "direct main" description: name: flutter_cache_manager - sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba" + sha256: "400b6592f16a4409a7f2bb929a9a7e38c72cceb8ffb99ee57bbf2cb2cecf8386" url: "https://pub.dev" source: hosted - version: "3.3.1" + version: "3.4.1" flutter_gen_core: dependency: transitive description: name: flutter_gen_core - sha256: "3a6c3dbc1c0e260088e9c7ed1ba905436844e8c01a44799f6281edada9e45308" + sha256: "46ecf0e317413dd065547887c43f93f55e9653e83eb98dc13dd07d40dd225325" url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "5.8.0" flutter_gen_runner: dependency: "direct dev" description: name: flutter_gen_runner - sha256: "24889d5140b03997f7148066a9c5fab8b606dff36093434c782d7a7fb22c6fb6" + sha256: "77f0a02fc30d9fcf2549fe874eb3fde091435724904bcbb1af60aa40cbfab1f4" url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "5.8.0" flutter_hooks: dependency: "direct main" description: name: flutter_hooks - sha256: "09f64db63fee3b2ab8b9038a1346be7d8986977fae3fec601275bf32455ccfc0" + sha256: cde36b12f7188c85286fba9b38cc5a902e7279f36dd676967106c041dc9dde70 url: "https://pub.dev" source: hosted - version: "0.20.4" + version: "0.20.5" flutter_launcher_icons: dependency: "direct dev" description: name: flutter_launcher_icons - sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea" + sha256: "31cd0885738e87c72d6f055564d37fabcdacee743b396b78c7636c169cac64f5" url: "https://pub.dev" source: hosted - version: "0.13.1" + version: "0.14.2" flutter_lints: dependency: "direct dev" description: name: flutter_lints - sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 + sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "5.0.0" flutter_localizations: dependency: "direct main" description: flutter @@ -439,34 +516,34 @@ packages: dependency: "direct main" description: name: flutter_markdown - sha256: "30088ce826b5b9cfbf9e8bece34c716c8a59fa54461dcae1e4ac01a94639e762" + sha256: e37f4c69a07b07bb92622ef6b131a53c9aae48f64b176340af9e8e5238718487 url: "https://pub.dev" source: hosted - version: "0.6.18+3" + version: "0.7.5" flutter_native_splash: dependency: "direct dev" description: name: flutter_native_splash - sha256: "9cdb5d9665dab5d098dc50feab74301c2c228cd02ca25c9b546ab572cebcd6af" + sha256: "7062602e0dbd29141fb8eb19220b5871ca650be5197ab9c1f193a28b17537bc7" url: "https://pub.dev" source: hosted - version: "2.3.9" + version: "2.4.4" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle - sha256: b068ffc46f82a55844acfa4fdbb61fad72fa2aef0905548419d97f0f95c456da + sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e" url: "https://pub.dev" source: hosted - version: "2.0.17" + version: "2.0.24" flutter_riverpod: dependency: transitive description: name: flutter_riverpod - sha256: da9591d1f8d5881628ccd5c25c40e74fc3eef50ba45e40c3905a06e1712412d5 + sha256: "9532ee6db4a943a1ed8383072a2e3eeda041db5657cdf6d2acecf3c21ecbe7e1" url: "https://pub.dev" source: hosted - version: "2.4.9" + version: "2.6.1" flutter_staggered_grid_view: dependency: transitive description: @@ -489,42 +566,42 @@ packages: dependency: "direct main" description: name: fluttertoast - sha256: dfdde255317af381bfc1c486ed968d5a43a2ded9c931e87cbecd88767d6a71c1 + sha256: "24467dc20bbe49fd63e57d8e190798c4d22cbbdac30e54209d153a15273721d1" url: "https://pub.dev" source: hosted - version: "8.2.4" + version: "8.2.10" font_awesome_flutter: dependency: "direct main" description: name: font_awesome_flutter - sha256: "52671aea66da73b58d42ec6d0912b727a42248dd9a7c76d6c20f275783c48c08" + sha256: d3a89184101baec7f4600d58840a764d2ef760fe1c5a20ef9e6b0e9b24a07a3a url: "https://pub.dev" source: hosted - version: "10.6.0" + version: "10.8.0" freezed: dependency: "direct dev" description: name: freezed - sha256: "6c5031daae12c7072b3a87eff98983076434b4889ef2a44384d0cae3f82372ba" + sha256: "44c19278dd9d89292cf46e97dc0c1e52ce03275f40a97c5a348e802a924bf40e" url: "https://pub.dev" source: hosted - version: "2.4.6" + version: "2.5.7" freezed_annotation: dependency: "direct main" description: name: freezed_annotation - sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d + sha256: c2e2d632dd9b8a2b7751117abcfc2b4888ecfe181bd9fca7170d9ef02e595fe2 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.4" frontend_server_client: dependency: transitive description: name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "4.0.0" gap: dependency: "direct main" description: @@ -545,202 +622,322 @@ packages: dependency: "direct main" description: name: go_router - sha256: "3b40e751eaaa855179b416974d59d29669e750d2e50fcdb2b37f1cb0ca8c803a" + sha256: "7c2d40b59890a929824f30d442e810116caf5088482629c894b9e4478c67472d" url: "https://pub.dev" source: hosted - version: "13.0.1" + version: "14.6.3" go_router_builder: dependency: "direct dev" description: name: go_router_builder - sha256: f84449079eb1f09f59344fbbb8cdc6a6349d8973a83746a57953bd4130d852b6 + sha256: "293e366566c209f70a05508bb5fdd6ce536fa3f75e58ccba1f83341a7943a6be" url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.7.3" + gql: + dependency: transitive + description: + name: gql + sha256: "994e0c530b5ca9fce716945031b90c7925eb00bd37624c43ad4cb51883f383b3" + url: "https://pub.dev" + source: hosted + version: "1.0.0+1" + gql_code_builder: + dependency: transitive + description: + name: gql_code_builder + sha256: e1002177a33fc4460ffde86187d01f3fc714627e9418dff7c4a8cf6f26119d63 + url: "https://pub.dev" + source: hosted + version: "0.13.0" + gql_code_builder_serializers: + dependency: transitive + description: + name: gql_code_builder_serializers + sha256: "5344091f97afb44b15840e32889cacc18116e095105d07671ba762e897c465d4" + url: "https://pub.dev" + source: hosted + version: "0.1.0" + gql_exec: + dependency: transitive + description: + name: gql_exec + sha256: "957db95ba37028001f76c1904e18b848f57cfef878e572ce77c6d898fafecf8f" + url: "https://pub.dev" + source: hosted + version: "1.0.0+1" + gql_http_link: + dependency: "direct main" + description: + name: gql_http_link + sha256: ef6ad24d31beb5a30113e9b919eec20876903cc4b0ee0d31550047aaaba7d5dd + url: "https://pub.dev" + source: hosted + version: "1.1.0" + gql_link: + dependency: transitive + description: + name: gql_link + sha256: "4aa288a1e67c899b0d746a2209e949fd0dc87e56d9b759a5cdc46a7069722cf3" + url: "https://pub.dev" + source: hosted + version: "1.0.0+1" + gql_tristate_value: + dependency: transitive + description: + name: gql_tristate_value + sha256: ae045e7e272fbfd030084315140c683c9b032a9861a37165f68c2ecd8a759664 + url: "https://pub.dev" + source: hosted + version: "1.0.0" graphs: dependency: transitive description: name: graphs - sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" url: "https://pub.dev" source: hosted - version: "2.3.1" - hive: + version: "2.3.2" + hashcodes: dependency: transitive + description: + name: hashcodes + sha256: "80f9410a5b3c8e110c4b7604546034749259f5d6dcca63e0d3c17c9258f1a651" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + hive: + dependency: "direct main" description: name: hive sha256: "8dcf6db979d7933da8217edcec84e9df1bdb4e4edc7fc77dbd5aa74356d6d941" url: "https://pub.dev" source: hosted version: "2.2.3" + hive_ce: + dependency: transitive + description: + name: hive_ce + sha256: "918d3379fafea06d501a161805965f04d0ff164aa3948daeb746b31ed936a51b" + url: "https://pub.dev" + source: hosted + version: "2.9.0" + hive_flutter: + dependency: "direct main" + description: + name: hive_flutter + sha256: dca1da446b1d808a51689fb5d0c6c9510c0a2ba01e22805d492c73b68e33eecc + url: "https://pub.dev" + source: hosted + version: "1.1.0" hooks_riverpod: dependency: "direct main" description: name: hooks_riverpod - sha256: c12a456e03ef9be65b0be66963596650ad7a3220e96c7e7b0a048562ea32d6ae + sha256: "70bba33cfc5670c84b796e6929c54b8bc5be7d0fe15bb28c2560500b9ad06966" url: "https://pub.dev" source: hosted - version: "2.4.9" + version: "2.6.1" html: dependency: transitive description: name: html - sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" + sha256: "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec" url: "https://pub.dev" source: hosted - version: "0.15.4" + version: "0.15.5" http: - dependency: transitive + dependency: "direct main" description: name: http - sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139 + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "1.2.2" http_multi_server: dependency: transitive description: name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8 url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.2.2" http_parser: dependency: transitive description: name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.1.2" image: dependency: transitive description: name: image - sha256: "004a2e90ce080f8627b5a04aecb4cdfac87d2c3f3b520aa291260be5a32c033d" + sha256: "8346ad4b5173924b5ddddab782fc7d8a6300178c8b1dc427775405a01701c4a6" + url: "https://pub.dev" + source: hosted + version: "4.5.2" + image_size_getter: + dependency: transitive + description: + name: image_size_getter + sha256: c3900f04e31468a81aa23b09b1c7d09c3c952122bbe9ecdae336977b7be24c05 url: "https://pub.dev" source: hosted - version: "4.1.4" + version: "2.3.0+1" infinite_scroll_pagination: dependency: "direct main" description: name: infinite_scroll_pagination - sha256: b68bce20752fcf36c7739e60de4175494f74e99e9a69b4dd2fe3a1dd07a7f16a + sha256: "4047eb8191e8b33573690922a9e995af64c3949dc87efc844f936b039ea279df" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.1.0" intl: dependency: "direct main" description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.18.1" + version: "0.19.0" io: dependency: transitive description: name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.5" js: dependency: transitive description: name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf url: "https://pub.dev" source: hosted - version: "0.6.7" + version: "0.7.1" json_annotation: dependency: "direct main" description: name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.1" + version: "4.9.0" json_serializable: dependency: "direct dev" description: name: json_serializable - sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969 + sha256: c2fcb3920cf2b6ae6845954186420fca40bc0a8abcc84903b7801f17d7050d7c + url: "https://pub.dev" + source: hosted + version: "6.9.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06" url: "https://pub.dev" source: hosted - version: "6.7.1" + version: "10.0.7" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379" + url: "https://pub.dev" + source: hosted + version: "3.0.8" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" lints: dependency: "direct dev" description: name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "5.1.1" logging: dependency: transitive description: name: logging - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" + macros: + dependency: transitive + description: + name: macros + sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656" + url: "https://pub.dev" + source: hosted + version: "0.1.3-main.0" markdown: dependency: transitive description: name: markdown - sha256: acf35edccc0463a9d7384e437c015a3535772e09714cf60e07eeef3a15870dcd + sha256: ef2a1298144e3f985cc736b22e0ccdaf188b5b3970648f2d9dc13efd1d9df051 url: "https://pub.dev" source: hosted - version: "7.1.1" + version: "7.2.2" matcher: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.15.0" mime: dependency: transitive description: name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" network_info_plus: dependency: "direct main" description: name: network_info_plus - sha256: "2d9e88b9a459e5d4e224f828d26cc38ea140511e89b943116939994324be5c96" + sha256: "936e9dc9d78ba84f84147c28aa044722057e2eeb7777fa3d66e77f918c0e3b5b" url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "6.1.2" network_info_plus_platform_interface: dependency: transitive description: name: network_info_plus_platform_interface - sha256: "881f5029c5edaf19c616c201d3d8b366c5b1384afd5c1da5a49e4345de82fb8b" + sha256: "7e7496a8a9d8136859b8881affc613c4a21304afeb6c324bcefc4bd0aff6b94b" url: "https://pub.dev" source: hosted - version: "1.1.3" + version: "2.0.2" nm: dependency: transitive description: @@ -749,70 +946,86 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.0" + normalize: + dependency: transitive + description: + name: normalize + sha256: "703f0af9e6f43a5a71536e977b945238bc89f1a941347e7ba467865a20cc1a9f" + url: "https://pub.dev" + source: hosted + version: "0.10.0" octo_image: dependency: transitive description: name: octo_image - sha256: "45b40f99622f11901238e18d48f5f12ea36426d8eced9f4cbf58479c7aa2430d" + sha256: "34faa6639a78c7e3cbe79be6f9f96535867e879748ade7d17c9b1ae7536293bd" url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.1.0" package_config: dependency: transitive description: name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + sha256: "92d4488434b520a62570293fbd33bb556c7d49230791c1b4bbd973baf6d2dc67" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" package_info_plus: dependency: "direct main" description: name: package_info_plus - sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79" + sha256: "70c421fe9d9cc1a9a7f3b05ae56befd469fe4f8daa3b484823141a55442d858d" url: "https://pub.dev" source: hosted - version: "5.0.1" + version: "8.1.2" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6" + sha256: a5ef9986efc7bf772f2696183a3992615baa76c1ffb1189318dd8803778fb05b url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.2" path: dependency: "direct main" description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.1.0" path_provider: dependency: "direct main" description: name: path_provider - sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.5" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "477184d672607c0a3bf68fbbf601805f92ef79c82b64b4d6eb318cbca4c48668" + sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.15" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f" + sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.1" path_provider_linux: dependency: transitive description: @@ -833,58 +1046,66 @@ packages: dependency: transitive description: name: path_provider_windows - sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" + pedantic: + dependency: transitive + description: + name: pedantic + sha256: "67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602" + url: "https://pub.dev" + source: hosted + version: "1.11.1" permission_handler: dependency: "direct main" description: name: permission_handler - sha256: "860c6b871c94c78e202dc69546d4d8fd84bd59faeb36f8fb9888668a53ff4f78" + sha256: "18bf33f7fefbd812f37e72091a15575e72d5318854877e0e4035a24ac1113ecb" url: "https://pub.dev" source: hosted - version: "11.1.0" + version: "11.3.1" permission_handler_android: dependency: transitive description: name: permission_handler_android - sha256: "8da85e83a19152019275ad91f64498c238aa38309133dc582c447c544405b0ec" + sha256: "71bbecfee799e65aff7c744761a57e817e73b738fedf62ab7afd5593da21f9f1" url: "https://pub.dev" source: hosted - version: "12.0.2" + version: "12.0.13" permission_handler_apple: dependency: transitive description: name: permission_handler_apple - sha256: "1a816084338ada8d574b1cb48390e6e8b19305d5120fe3a37c98825bacc78306" + sha256: e6f6d73b12438ef13e648c4ae56bd106ec60d17e90a59c4545db6781229082a0 url: "https://pub.dev" source: hosted - version: "9.2.0" + version: "9.4.5" permission_handler_html: dependency: transitive description: name: permission_handler_html - sha256: "11b762a8c123dced6461933a88ea1edbbe036078c3f9f41b08886e678e7864df" + sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24" url: "https://pub.dev" source: hosted - version: "0.1.0+2" + version: "0.1.3+5" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface - sha256: d87349312f7eaf6ce0adaf668daf700ac5b06af84338bd8b8574dfbd93ffe1a1 + sha256: e9c8eadee926c4532d0305dff94b85bf961f16759c3af791486613152af4b4f9 url: "https://pub.dev" source: hosted - version: "4.0.2" + version: "4.2.3" permission_handler_windows: dependency: transitive description: name: permission_handler_windows - sha256: "1e8640c1e39121128da6b816d236e714d2cf17fac5a105dd6acdd3403a628004" + sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.2.1" petitparser: dependency: transitive description: @@ -897,10 +1118,10 @@ packages: dependency: transitive description: name: platform - sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" url: "https://pub.dev" source: hosted - version: "3.1.4" + version: "3.1.6" plugin_platform_interface: dependency: transitive description: @@ -909,14 +1130,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" - pointycastle: - dependency: transitive - description: - name: pointycastle - sha256: "43ac87de6e10afabc85c445745a7b799e04de84cebaa4fd7bf55a5e1e9604d29" - url: "https://pub.dev" - source: hosted - version: "3.7.4" pool: dependency: transitive description: @@ -925,70 +1138,78 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.1" + posix: + dependency: transitive + description: + name: posix + sha256: a0117dc2167805aa9125b82eee515cc891819bac2f538c83646d355b16f58b9a + url: "https://pub.dev" + source: hosted + version: "6.0.1" pub_semver: dependency: "direct main" description: name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.1.5" pubspec_parse: dependency: transitive description: name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082" url: "https://pub.dev" source: hosted - version: "1.2.3" + version: "1.5.0" queue: dependency: "direct main" description: name: queue - sha256: "9a41ecadc15db79010108c06eae229a45c56b18db699760f34e8c9ac9b831ff9" + sha256: "9bc29632072f4dac6cd0056acbb63361f654e2def9ceb4b08cfe0f9cf5618409" url: "https://pub.dev" source: hosted - version: "3.1.0+2" + version: "3.4.0" riverpod: dependency: transitive description: name: riverpod - sha256: "942999ee48b899f8a46a860f1e13cee36f2f77609eb54c5b7a669bb20d550b11" + sha256: "59062512288d3056b2321804332a13ffdd1bf16df70dcc8e506e411280a72959" url: "https://pub.dev" source: hosted - version: "2.4.9" + version: "2.6.1" riverpod_analyzer_utils: dependency: transitive description: name: riverpod_analyzer_utils - sha256: d4dabc35358413bf4611fcb6abb46308a67c4ef4cd5e69fd3367b11925c59f57 + sha256: c6b8222b2b483cb87ae77ad147d6408f400c64f060df7a225b127f4afef4f8c8 url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.5.8" riverpod_annotation: dependency: "direct main" description: name: riverpod_annotation - sha256: b70e95fbd5ca7ce42f5148092022971bb2e9843b6ab71e97d479e8ab52e98979 + sha256: e14b0bf45b71326654e2705d462f21b958f987087be850afd60578fcd502d1b8 url: "https://pub.dev" source: hosted - version: "2.3.3" + version: "2.6.1" riverpod_generator: dependency: "direct dev" description: name: riverpod_generator - sha256: ff8f064f1d7ef3cc6af481bba8e9a3fcdb4d34df34fac1b39bbc003167065be0 + sha256: "63546d70952015f0981361636bf8f356d9cfd9d7f6f0815e3c07789a41233188" url: "https://pub.dev" source: hosted - version: "2.3.9" + version: "2.6.3" rxdart: dependency: transitive description: name: rxdart - sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb" + sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962" url: "https://pub.dev" source: hosted - version: "0.27.7" + version: "0.28.0" scrollable_positioned_list: dependency: "direct main" description: @@ -1001,74 +1222,74 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02" + sha256: a752ce92ea7540fc35a0d19722816e04d0e72828a4200e83a98cf1a1eb524c9a url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.3.5" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: "8568a389334b6e83415b6aae55378e158fbc2314e074983362d20c562780fb06" + sha256: bf808be89fe9dc467475e982c1db6c2faf3d2acf54d526cd5ec37d86c99dbd84 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.4.1" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "7708d83064f38060c7b39db12aefe449cb8cdc031d6062280087bc4cdb988f5c" + sha256: "6a52cfcdaeac77cad8c97b539ff688ccfc458c007b4db12be584fbe5c0e49e03" url: "https://pub.dev" source: hosted - version: "2.3.5" + version: "2.5.4" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux - sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" + sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.1" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface - sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b" + sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.1" shared_preferences_web: dependency: transitive description: name: shared_preferences_web - sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21" + sha256: d2ca4132d3946fec2184261726b355836a82c33d7d5b67af32692aff18a4684e url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.4.2" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows - sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" + sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.1" shelf: dependency: transitive description: name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12 url: "https://pub.dev" source: hosted - version: "1.4.1" + version: "1.4.2" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67 url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.1" shimmer: dependency: "direct main" description: @@ -1081,7 +1302,7 @@ packages: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" sliver_tools: dependency: transitive description: @@ -1102,10 +1323,10 @@ packages: dependency: transitive description: name: source_helper - sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd" + sha256: "86d247119aedce8e63f4751bd9626fc9613255935558447569ad42f9f5b48b3c" url: "https://pub.dev" source: hosted - version: "1.3.4" + version: "1.3.5" source_span: dependency: transitive description: @@ -1126,26 +1347,50 @@ packages: dependency: transitive description: name: sqflite - sha256: "591f1602816e9c31377d5f008c2d9ef7b8aca8941c3f89cc5fd9d84da0c38a9a" + sha256: "2d7299468485dca85efeeadf5d38986909c5eb0cd71fd3db2c2f000e6c9454bb" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.1" + sqflite_android: + dependency: transitive + description: + name: sqflite_android + sha256: "78f489aab276260cdd26676d2169446c7ecd3484bbd5fead4ca14f3ed4dd9ee3" + url: "https://pub.dev" + source: hosted + version: "2.4.0" sqflite_common: dependency: transitive description: name: sqflite_common - sha256: bb4738f15b23352822f4c42a531677e5c6f522e079461fd240ead29d8d8a54a6 + sha256: "761b9740ecbd4d3e66b8916d784e581861fd3c3553eda85e167bc49fdb68f709" url: "https://pub.dev" source: hosted - version: "2.5.0+2" + version: "2.5.4+6" + sqflite_darwin: + dependency: transitive + description: + name: sqflite_darwin + sha256: "22adfd9a2c7d634041e96d6241e6e1c8138ca6817018afc5d443fef91dcefa9c" + url: "https://pub.dev" + source: hosted + version: "2.4.1+1" + sqflite_platform_interface: + dependency: transitive + description: + name: sqflite_platform_interface + sha256: "8dd4515c7bdcae0a785b0062859336de775e8c65db81ae33dd5445f35be61920" + url: "https://pub.dev" + source: hosted + version: "2.4.0" stack_trace: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.0" state_notifier: dependency: transitive description: @@ -1166,26 +1411,26 @@ packages: dependency: transitive description: name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" + sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871 url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" synchronized: dependency: transitive description: name: synchronized - sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" + sha256: "69fe30f3a8b04a0be0c15ae6490fc859a78ef4c43ae2dd5e8a623d45bfcf9225" url: "https://pub.dev" source: hosted - version: "3.1.0+1" + version: "3.3.0+3" term_glyph: dependency: transitive description: @@ -1198,34 +1443,34 @@ packages: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.3" time: dependency: transitive description: name: time - sha256: "83427e11d9072e038364a5e4da559e85869b227cf699a541be0da74f14140124" + sha256: "370572cf5d1e58adcb3e354c47515da3f7469dac3a95b447117e728e7be6f461" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.5" timing: dependency: transitive description: name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" + sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.2" typed_data: dependency: transitive description: name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.4.0" universal_io: dependency: transitive description: @@ -1238,74 +1483,90 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: d25bb0ca00432a5e1ee40e69c36c85863addf7cc45e433769d61bed3fe81fd96 + sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" url: "https://pub.dev" source: hosted - version: "6.2.3" + version: "6.3.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: "507dc655b1d9cb5ebc756032eb785f114e415f91557b73bf60b7e201dfedeb2f" + sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193" url: "https://pub.dev" source: hosted - version: "6.2.2" + version: "6.3.14" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" + sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626" url: "https://pub.dev" source: hosted - version: "6.2.4" + version: "6.3.2" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811 + sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.2.1" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234 + sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.2.2" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: a932c3a8082e118f80a475ce692fde89dc20fddb24c57360b96bc56f7035de1f + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b + sha256: "3ba963161bd0fe395917ba881d320b9c4f6dd3c4a233da62ab18a5025c85f1e9" url: "https://pub.dev" source: hosted - version: "2.2.3" + version: "2.4.0" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7 + sha256: "3284b6d2ac454cf34f114e1d3319866fdd1e19cdc329999057e44ffe936cfa77" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.4" uuid: dependency: transitive description: name: uuid - sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 + sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff url: "https://pub.dev" source: hosted - version: "4.3.3" + version: "4.5.1" + vector_graphics_codec: + dependency: transitive + description: + name: vector_graphics_codec + sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146" + url: "https://pub.dev" + source: hosted + version: "1.1.13" + vector_graphics_compiler: + dependency: transitive + description: + name: vector_graphics_compiler + sha256: "1b4b9e706a10294258727674a340ae0d6e64a7231980f9f9a3d12e4b42407aad" + url: "https://pub.dev" + source: hosted + version: "1.1.16" vector_math: dependency: transitive description: @@ -1314,46 +1575,62 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b + url: "https://pub.dev" + source: hosted + version: "14.3.0" watcher: dependency: transitive description: name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + sha256: "69da27e49efa56a15f8afe8f4438c4ec02eff0a117df1b22ea4aad194fe1c104" url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.1" web: dependency: transitive description: name: web - sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.3.0" + version: "1.1.0" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + url: "https://pub.dev" + source: hosted + version: "0.1.6" web_socket_channel: dependency: "direct main" description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "3.0.1" win32: dependency: transitive description: name: win32 - sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" + sha256: "154360849a56b7b67331c21f09a386562d88903f90a1099c5987afc1912e1f29" url: "https://pub.dev" source: hosted - version: "5.2.0" + version: "5.10.0" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.1.0" xml: dependency: transitive description: @@ -1366,10 +1643,10 @@ packages: dependency: transitive description: name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" sdks: - dart: ">=3.2.0 <4.0.0" - flutter: ">=3.16.0" + dart: ">=3.6.0 <4.0.0" + flutter: ">=3.27.0" diff --git a/pubspec.yaml b/pubspec.yaml index f8dd5801..14b4880c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,14 +8,18 @@ environment: sdk: ">=3.0.0 <4.0.0" dependencies: + built_collection: ^5.1.1 cached_network_image: ^3.2.2 cached_network_image_platform_interface: ^4.0.0 cupertino_icons: ^1.0.5 dio: ^5.0.0 dio_cache_interceptor: ^3.4.0 - dio_cache_interceptor_hive_store: ^3.2.1 - file_picker: ^6.0.0 - flex_color_scheme: ^7.3.1 + dio_cache_interceptor_hive_store: ^4.0.0 + extension_type_unions: ^1.0.10 + ferry: ^0.16.0+1 + ferry_hive_store: ^0.6.0 + file_picker: ^8.0.0+1 + flex_color_scheme: ^8.0.0 flutter: sdk: flutter flutter_android_volume_keydown: ^1.0.0 @@ -23,18 +27,22 @@ dependencies: flutter_hooks: ^0.20.0 flutter_localizations: sdk: flutter - flutter_markdown: ^0.6.17+2 + flutter_markdown: ^0.7.1 fluttertoast: ^8.1.1 font_awesome_flutter: ^10.2.1 freezed_annotation: ^2.2.0 gap: ^3.0.1 - go_router: ^13.0.1 + go_router: ^14.0.2 + gql_http_link: ^1.0.1+1 + hive: ^2.2.3 + hive_flutter: ^1.1.0 hooks_riverpod: ^2.1.1 + http: ^1.2.0 infinite_scroll_pagination: ^4.0.0 - intl: ^0.18.0 - json_annotation: ^4.8.1 - network_info_plus: ^4.0.0 - package_info_plus: ^5.0.1 + intl: ^0.19.0 + json_annotation: ^4.9.0 + network_info_plus: ^6.0.0 + package_info_plus: ^8.0.0 path: ^1.8.3 path_provider: ^2.0.11 permission_handler: ^11.0.0 @@ -45,21 +53,22 @@ dependencies: shared_preferences: ^2.0.15 shimmer: ^3.0.0 url_launcher: ^6.1.6 - web_socket_channel: ^2.2.0 + web_socket_channel: ^3.0.0 dev_dependencies: build_runner: ^2.3.2 # flutter_flavorizr: ^2.1.5 + ferry_generator: ^0.12.0 flutter_gen_runner: ^5.1.0+1 - flutter_launcher_icons: ^0.13.0 - flutter_lints: ^3.0.0 + flutter_launcher_icons: ^0.14.1 + flutter_lints: ^5.0.0 flutter_native_splash: ^2.2.14 flutter_test: sdk: flutter freezed: ^2.2.1 go_router_builder: ^2.0.0 json_serializable: ^6.5.4 - lints: ^3.0.0 + lints: ^5.0.0 riverpod_generator: ^2.0.0 flutter: @@ -102,4 +111,4 @@ flutter_launcher_icons: image_path: "assets/icons/launcher/sorayomi_icon.png" macos: generate: true - image_path: "assets/icons/launcher/ios_sorayomi_icon.png" + image_path: "assets/icons/launcher/sorayomi_icon.png" diff --git a/scripts/tachidesk-sorayomi-arm64.wxs b/scripts/tachidesk-sorayomi-arm64.wxs new file mode 100644 index 00000000..abdd69ff --- /dev/null +++ b/scripts/tachidesk-sorayomi-arm64.wxs @@ -0,0 +1,75 @@ + + + + + + + + VersionNT64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/tachidesk-sorayomi-x64.wxs b/scripts/tachidesk-sorayomi-x64.wxs index 6953635c..abdd69ff 100644 --- a/scripts/tachidesk-sorayomi-x64.wxs +++ b/scripts/tachidesk-sorayomi-x64.wxs @@ -1,6 +1,6 @@  - + @@ -30,8 +30,8 @@ - - + + @@ -72,4 +72,4 @@ - \ No newline at end of file + diff --git a/scripts/tachidesk-sorayomi.desktop b/scripts/tachidesk-sorayomi.desktop index e3e22d7e..fe882e0e 100644 --- a/scripts/tachidesk-sorayomi.desktop +++ b/scripts/tachidesk-sorayomi.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Name=Tachidesk Sorayomi +Name=Sorayomi Comment=Tachidesk UI flutter Exec=tachidesk-sorayomi Icon=tachidesk-sorayomi diff --git a/web/index.html b/web/index.html index a4a7840b..4a186488 100644 --- a/web/index.html +++ b/web/index.html @@ -27,7 +27,7 @@ - Tachidesk Sorayomi + Sorayomi - + - - - + + +